.msg-root {
display: flex;
flex-direction: column;
min-width: 0;
border: 1px solid var(--color-card-border, #ece2ce);
border-radius: 16px;
background-color: #fff;
overflow: hidden;
}
.msg-thread {
height: clamp(300px, 56vh, 560px);
height: clamp(300px, 56dvh, 560px);
padding: 14px 14px 8px;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
background:
radial-gradient(ellipse 70% 40% at 100% 0%, rgba(233, 197, 104, 0.14), transparent 70%),
linear-gradient(180deg, #fffdf8, #fbf6ea);
}
.msg-root.is-compact .msg-thread {
height: clamp(220px, 40vh, 340px);
height: clamp(220px, 40dvh, 340px);
}
.msg-thread {
display: flex;
flex-direction: column;
}
.msg-thread > :first-child {
margin-top: auto;
}
.msg-thread > .msg-empty,
.msg-thread > .msg-loading {
margin: auto 0;
}
.msg-thread:focus-visible {
outline: 2px solid var(--color-gold, #d4a017);
outline-offset: -2px;
}
.msg {
display: flex;
flex-direction: column;
gap: 3px;
max-width: 84%;
margin: 0 0 12px;
}
.msg-me {
align-items: flex-end;
margin-left: auto;
}
.msg-team {
align-items: flex-start;
margin-right: auto;
}
.msg-bubble {
padding: 10px 14px;
border-radius: 18px;
font-size: 0.95rem;
line-height: 1.5;
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: break-word;
}
.msg-me .msg-bubble {
border-bottom-right-radius: 5px;
background: linear-gradient(135deg, #f2d27a, #e9c568);
color: var(--color-espresso, #3b2a20);
box-shadow: 0 1px 0 rgba(166, 121, 16, 0.18);
}
.msg-team .msg-bubble {
border: 1px solid var(--color-gold-light, #e9c568);
border-bottom-left-radius: 5px;
background-color: #fff;
color: var(--color-espresso, #3b2a20);
}
.msg-who {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
font-weight: 700;
color: var(--color-gold-dark, #a67910);
}
.msg-avatar {
display: inline-grid;
place-items: center;
width: 22px;
height: 22px;
border-radius: 50%;
background-color: var(--color-espresso, #3b2a20);
color: var(--color-gold-light, #e9c568);
font-size: 0.55rem;
font-weight: 800;
letter-spacing: 0.02em;
}
.msg-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 8px;
padding: 0 4px;
font-size: 0.72rem;
color: var(--color-espresso-soft, #6b5443);
}
.msg-order-tag {
align-self: inherit;
padding: 5px 11px;
border-radius: 999px;
background-color: rgba(212, 160, 23, 0.14);
font-size: 0.72rem;
font-weight: 700;
color: var(--color-gold-dark, #a67910);
}
.msg-order-tag:hover {
background-color: rgba(212, 160, 23, 0.26);
}
.msg.is-pending .msg-bubble {
opacity: 0.7;
}
.msg.is-failed .msg-bubble {
border: 1px solid #d9988f;
background: #fbeceb;
}
.msg-failed {
font-weight: 700;
color: #a33a36;
}
.msg-retry,
.msg-remove {
display: inline-flex;
align-items: center;
gap: 4px;
min-height: 32px;
padding: 0 8px;
border: 0;
border-radius: 8px;
background: none;
font: inherit;
font-size: 0.75rem;
font-weight: 700;
color: var(--color-gold-dark, #a67910);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.msg-remove {
color: var(--color-espresso-soft, #6b5443);
font-weight: 600;
}
.msg-day {
display: flex;
justify-content: center;
margin: 4px 0 12px;
}
.msg-day span {
padding: 3px 12px;
border-radius: 999px;
background-color: rgba(59, 42, 32, 0.07);
font-size: 0.72rem;
font-weight: 700;
color: var(--color-espresso-soft, #6b5443);
}
.msg-note {
margin: 4px auto 8px;
padding: 8px 14px;
max-width: 92%;
border: 1px dashed var(--color-gold-light, #e9c568);
border-radius: 12px;
font-size: 0.8rem;
text-align: center;
color: var(--color-espresso-soft, #6b5443);
}
.msg-jump {
align-self: center;
margin: -42px 0 10px;
padding: 7px 16px;
border: 0;
border-radius: 999px;
background-color: var(--color-espresso, #3b2a20);
color: #fff;
font: inherit;
font-size: 0.8rem;
font-weight: 700;
box-shadow: 0 6px 16px rgba(59, 42, 32, 0.3);
cursor: pointer;
position: relative;
z-index: 2;
}
.msg-jump[hidden] {
display: none;
}
.msg-empty,
.msg-gate {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 28px 18px;
text-align: center;
}
.msg-empty-icon,
.msg-gate-icon {
display: grid;
place-items: center;
width: 54px;
height: 54px;
border-radius: 50%;
background-color: rgba(212, 160, 23, 0.16);
color: var(--color-gold-dark, #a67910);
}
.msg-empty h3,
.msg-gate h3 {
margin: 4px 0 0;
font-size: 1.1rem;
}
.msg-empty p,
.msg-gate p {
max-width: 34ch;
margin: 0;
font-size: var(--fs-body-sm, 0.875rem);
line-height: 1.5;
color: var(--color-espresso-soft, #6b5443);
}
.msg-gate {
border: 1px solid var(--color-card-border, #ece2ce);
border-radius: 16px;
background: linear-gradient(135deg, #fffaf0, #fbf0d3);
}
.msg-gate-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin-top: 6px;
}
.msg-gate-actions .btn {
min-height: 46px;
}
.msg-gate p.msg-gate-alt {
margin-top: 4px;
font-size: 0.8rem;
}
.msg-loading {
display: grid;
gap: 10px;
}
.msg-loading span {
height: 44px;
border-radius: 16px;
background: rgba(59, 42, 32, 0.06);
}
.msg-loading span:nth-child(2) {
width: 62%;
margin-left: auto;
}
.msg-loading span:nth-child(3) {
width: 74%;
}
.msg-composer {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
border-top: 1px solid var(--color-card-border, #ece2ce);
background-color: #fff;
}
.msg-composer[hidden] {
display: none;
}
.msg-starters {
display: flex;
gap: 8px;
overflow-x: auto;
padding-bottom: 2px;
scrollbar-width: none;
}
.msg-starters::-webkit-scrollbar {
display: none;
}
.msg-starters[hidden] {
display: none;
}
.msg-starter {
flex: none;
min-height: 38px;
padding: 0 14px;
border: 1px solid var(--color-gold-light, #e9c568);
border-radius: 999px;
background-color: var(--color-cream, #faf3e4);
font: inherit;
font-size: 0.82rem;
font-weight: 600;
color: var(--color-espresso, #3b2a20);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.msg-starter:active {
background-color: var(--color-cream-soft, #f3e9d4);
}
.msg-order {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.8rem;
font-weight: 700;
color: var(--color-espresso-soft, #6b5443);
}
.msg-order[hidden] {
display: none;
}
.msg-order span {
flex: none;
}
.msg-order select {
flex: 1;
min-width: 0;
min-height: 42px;
padding: 0 10px;
border: 1.5px solid var(--color-card-border, #ece2ce);
border-radius: 12px;
background-color: #fff;
font: inherit;
font-size: 16px;
color: var(--color-espresso, #3b2a20);
}
.msg-input-row {
display: flex;
align-items: flex-end;
gap: 8px;
}
.msg-input-row textarea {
flex: 1;
min-width: 0;
min-height: 46px;
max-height: 150px;
padding: 11px 16px;
border: 1.5px solid var(--color-card-border, #ece2ce);
border-radius: 23px;
background-color: #fffdf8;
font: inherit;
font-size: 16px;
line-height: 1.4;
color: var(--color-espresso, #3b2a20);
resize: none;
}
.msg-input-row textarea:focus {
outline: none;
border-color: var(--color-gold, #d4a017);
box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}
.msg-send {
flex: none;
display: grid;
place-items: center;
width: 46px;
height: 46px;
border: 0;
border-radius: 50%;
background-color: var(--color-gold, #d4a017);
color: var(--color-espresso, #3b2a20);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: background-color 0.15s ease, opacity 0.15s ease;
}
.msg-send:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.msg-send:not(:disabled):active {
background-color: var(--color-gold-dark, #a67910);
}
.msg-error {
margin: 0;
font-size: 0.82rem;
font-weight: 600;
color: #a33a36;
}
.msg-error[hidden] {
display: none;
}
.msg-foot {
display: flex;
justify-content: space-between;
gap: 12px;
margin: 0;
font-size: 0.72rem;
color: var(--color-espresso-soft, #6b5443);
}
.msg-foot .is-near {
font-weight: 700;
color: #a33a36;
}
@media (max-width: 520px) {
.msg-foot-hint {
display: none;
}
.msg {
max-width: 90%;
}
}
.contact-messaging {
margin-top: 12px;
}
.msg-contact-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.msg-contact-head h3 {
margin: 0;
font-size: 1.05rem;
}
.msg-contact-head p {
margin: 2px 0 0;
font-size: 0.8rem;
color: var(--color-espresso-soft, #6b5443);
}
.msg-full-link {
flex: none;
padding: 8px 14px;
border: 1px solid var(--color-gold-light, #e9c568);
border-radius: 999px;
font-size: 0.8rem;
font-weight: 700;
color: var(--color-gold-dark, #a67910);
}
html.mm-motion:not(.mm-soft):not(.mm-lite) .msg-new {
animation: msg-in 0.28s var(--mm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)) backwards;
}
html.mm-hi.mm-motion:not(.mm-soft):not(.mm-lite) .msg-new {
animation: msg-pop 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}
@keyframes msg-in {
from {
opacity: 0;
transform: translateY(8px);
}
}
@keyframes msg-pop {
from {
opacity: 0;
transform: translateY(10px) scale(0.94);
}
}
