.eac-chat {
box-sizing: border-box;
width: 100%;
max-width: none;
background: #fff;
color: #000;
padding: clamp(1rem, 3vw, 2rem);
border: 1px solid #a9a1ae;
border-radius: 1rem;
margin-block: 1.5rem;
}
.eac-chat :is(h2, p, label, small, strong) { color: #000; }
.eac-chat [hidden] { display: none !important; }
.eac-actions {
display: flex;
gap: .5rem;
flex-wrap: wrap;
margin-block: .75rem;
}
.eac-chat button {
font: inherit;
color: #000;
background: #f5eff8;
border: 1px solid #8a7298;
border-radius: .5rem;
padding: .45rem .7rem;
cursor: pointer;
}
.eac-chat button[type=submit] { background: #473454; color: white; }
.eac-chat button:disabled { opacity: .65; cursor: wait; }
.eac-chat .eac-form,
.eac-chat .eac-form > label {
box-sizing: border-box;
display: block;
width: 100%;
max-width: none;
}
.eac-chat .eac-form > label > textarea.eac-input {
box-sizing: border-box;
display: block;
width: 100%;
max-width: 100%;
min-height: 10rem;
background: #fff;
color: #000;
resize: vertical;
font: inherit;
padding: .75rem;
margin-block: .4rem;
border: 1px solid #8a7298;
border-radius: .5rem;
}
.eac-log div { margin-block: .85rem; }
.eac-log div p { margin-block: .15rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.eac-status:empty { display: none; }
.eac-log a { color: #000; text-decoration: underline; }
.eac-log > div { scroll-margin-top: 5rem; }
.eac-floating[hidden] { display: none !important; }
.eac-floating {
position: fixed;
right: max(1rem, env(safe-area-inset-right));
bottom: max(1rem, env(safe-area-inset-bottom));
z-index: 9999;
}
.eac-floating .eac-launcher {
display: flex;
align-items: center;
gap: .55rem;
min-height: 3.5rem;
padding: .4rem .9rem .4rem .6rem;
border: 0;
border-radius: 2rem;
color: #fff;
background: #275b3c;
font: inherit;
font-weight: 700;
box-shadow: 0 .25rem .9rem #0003;
cursor: pointer;
}
.eac-floating .eac-clover {
display: block;
width: 34px;
height: 34px;
max-width: none;
object-fit: contain;
}
.eac-floating .eac-panel {
position: absolute;
inset: auto 0 4.25rem auto;
box-sizing: border-box;
width: min(28rem, calc(100vw - 2rem));
max-width: none;
max-height: calc(100vh - 6.25rem);
max-height: calc(100dvh - 6.25rem);
margin: 0;
padding: 0;
overflow: auto;
overscroll-behavior: contain;
border: 1px solid #a9a1ae;
border-radius: 1rem;
background: #fff;
color: #000;
box-shadow: 0 .5rem 2rem #0003;
}
.eac-panel-bar {
position: sticky;
top: 0;
display: flex;
justify-content: flex-end;
padding: .25rem .5rem 0;
background: #fff;
z-index: 1;
}
.eac-floating .eac-close {
min-width: 2rem;
min-height: 2rem;
border: 0;
background: #fff;
color: #000;
font: 1.5rem/1 sans-serif;
cursor: pointer;
}
.eac-floating .eac-chat {
margin: 0;
padding: 0 1rem 1rem;
border: 0;
}
.eac-floating .eac-chat .eac-form > label > textarea.eac-input { min-height: 6rem; }
.eac-floating .eac-log > div { scroll-margin-top: 2.5rem; }
.eac-floating .eac-panel:not([open]) { display: none; }