/* Consistent edges and useful state feedback. */
.button, .icon-button, .service-option, .history-item, .admin-ticket { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.button:disabled { opacity: .6; cursor: default; transform: none; }
.dialog-back-button { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; border-radius: 7px; padding: 7px 4px; margin: -12px 0 14px; font-size: 12px; font-weight: 550; color: var(--color-text); }
.dialog-back-button .icon { width: 17px; height: 17px; font-size: 16px; }
.dialog-back-button:hover { background: var(--color-surface); padding-inline: 8px; }
.contact-choice h2 { margin-top: 0; }
.chat-header .icon-button { margin-left: 0; }
.chat-header [data-chat-close] { margin-left: auto; }
.chat-header .chat-back { width: 32px; flex-shrink: 0; }
.chat-header > div { min-width: 0; }
.chat-header h2 { overflow-wrap: anywhere; }
.reference-copy { display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; border: 0; color: var(--color-text-muted); background: none; font-size: 10px; cursor: pointer; }
.reference-copy:hover { color: var(--color-text); }
.reference-copy code { font: inherit; letter-spacing: .03em; }
.conversation-summary > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: flex-start; padding: 4px 9px; border-radius: 30px; background: #fff2ad; color: #5e4900; font-size: 10px; font-weight: 650; line-height: 1.5; }
.status-pill.closed { background: #e9e9e6; color: #53565a; }
.history-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.history-meta code { font-size: 9px; color: var(--color-text-muted); }
.history-meta .status-pill { font-size: 9px; margin: 0; }
.closed-conversation { flex-shrink: 0; padding: 18px 21px; background: var(--color-surface); border-top: 1px solid var(--color-border); text-align: center; }
.closed-conversation > .bi { display: inline-block; margin-right: 7px; }
.closed-conversation strong { font-size: 13px; }
.closed-conversation p { font-size: 12px; line-height: 1.7; color: var(--color-text-muted); margin: 7px 0 13px; }
.closed-conversation .button { min-height: 40px; font-size: 12px; }
.admin-conversation-header { flex-wrap: wrap; }
.admin-conversation-header .status-pill { align-self: center; margin-left: auto; }
.finalize-button { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); min-height: 37px; padding: 8px 11px; font-size: 11px; gap: 7px; }
.finalize-button:hover { border-color: #b59512; background: #fff4b8; color: #151515; }
.ticket-reference { font-size: 9px !important; color: var(--color-text-muted); }
.inbox-filters { flex-wrap: wrap; }
.new-chat-form input:focus-visible, .new-chat-form textarea:focus-visible, .new-chat-form select:focus-visible, .message-composer textarea:focus-visible, .admin-login input:focus-visible, #admin-search:focus-visible { outline: none; border-color: #a78300; box-shadow: 0 0 0 3px rgb(255 211 38 / 23%); }
.header-quote.button { min-height: 37px; padding: 8px 14px; font-size: 12px; }
.main-nav .header-quote::after { display: none; }
.about-simple { padding-block: 12px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 65px; align-items: center; }
.about-simple h2 { font-size: 29px; }
.about-simple p { font-size: 14px; line-height: 1.8; color: var(--color-text-muted); margin-top: 15px; max-width: 590px; }
.about-points { display: grid; gap: 12px; }
.about-points > span { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.about-points .bi { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #ffd326; color: #151515; font-size: 17px; }
.contact-simple-details a { overflow-wrap: anywhere; }
.contact-simple-details .bi { width: 21px; font-size: 19px; flex-shrink: 0; }
.footer-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; padding-bottom: 16px; font-size: 12px; color: #d1d1d1; }
.footer-navigation a:hover { color: #ffd326; }
.footer-navigation .bi { font-size: 17px; }
.footer-cookie-note { font-size: 10px; color: #aaa; padding-bottom: 17px; line-height: 1.7; }
.creator-credit { color: #d1d1d1; }
.admin-push-button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); padding: 8px 11px; border-radius: 8px; font-size: 11px; min-height: 36px; }
.admin-push-button[aria-pressed="true"] { background: #ffd326; color: #151515; border-color: #ffd326; }
.admin-push-button:disabled { opacity: .6; cursor: default; }
.admin-language-switch { display: flex; gap: 2px; border: 1px solid var(--color-border); border-radius: 7px; padding: 3px; }
.admin-language-switch button { min-width: 29px; min-height: 27px; padding: 3px; background: none; border: 0; border-radius: 4px; font-size: 10px; }
.admin-language-switch button[aria-pressed="true"] { background: #ffd326; color: #151515; font-weight: 650; }
.push-help { font-size: 11px; line-height: 1.7; color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding: 16px 7px 0; margin-top: 20px; }
.push-feedback { background: var(--color-surface); border: 1px solid #b39729; border-radius: 7px; padding: 10px; margin-top: 10px; font-size: 11px; line-height: 1.6; }
.admin-global-error { position: fixed; right: 20px; top: 78px; width: min(400px, calc(100% - 40px)); z-index: 50; box-shadow: 0 6px 25px rgb(0 0 0 / 12%); }
html[data-theme="dark"] .status-pill { background: #4a3c10; color: #ffe47c; }
html[data-theme="dark"] .status-pill.closed { background: #343434; color: #d1d1d1; }

@media (max-width: 700px) {
  .chat-header > img { display: none; }
  .chat-header { gap: 8px; }
  .admin-conversation-header { gap: 9px; }
  .admin-conversation-header > div { flex: 1; min-width: 0; }
  .admin-conversation-header .finalize-button { font-size: 10px; padding: 7px 9px; }
  .finalize-button > span { max-width: 90px; line-height: 1.3; text-align: left; }
  .about-simple { display: block; padding-block: 8px 29px; }
  .about-simple h2 { font-size: 25px; }
  .about-simple p { font-size: 13px; margin-top: 12px; }
  .about-points { margin-top: 21px; gap: 10px; }
  .footer-navigation { gap: 15px; font-size: 11px; }
  .footer-cookie-note { font-size: 10px; }
  .footer-bottom { gap: 8px 16px; }
  .admin-header { padding-inline: 12px; gap: 8px; }
  .admin-header-actions { gap: 9px; }
  .admin-wordmark { font-size: 18px; }
  .admin-push-button { width: 32px; height: 32px; min-height: 32px; padding: 6px; }
  .admin-push-button span { display: none; }
  .admin-logout span { display: none; }
  .notification-button { width: 32px; height: 32px; font-size: 21px; }
  .admin-language-switch button { min-width: 22px; }
  .hero { padding-block: 18px; }
  .service-card .service-image { height: 74px; }
}

@media (max-width: 360px) { .admin-wordmark { font-size: 16px; } .admin-header-actions { gap: 6px; } .admin-header { padding-inline: 10px; } }

/* Motion gives feedback without moving the layout or hiding content. */
.service-card { transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.service-card .service-image img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card-action .icon, .button .icon, .contact-option > .bi:last-child { transition: transform .22s ease; }
.button:active, .icon-button:active, .card-action:active { transform: scale(.97); }
.service-card:focus-within { border-color: #b3951b; box-shadow: 0 0 0 3px rgb(255 211 38 / 16%); }
.service-option:focus-visible, .contact-option:focus-visible, .admin-ticket:focus-visible { outline: 2px solid #b3951b; outline-offset: -2px; border-radius: 7px; }
.chat-content, .admin-empty, .closed-conversation { animation: content-arrive .24s ease both; }
@keyframes content-arrive { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-5px); border-color: #d0b33a; box-shadow: 0 12px 30px rgb(0 0 0 / 7%); }
  .service-card:hover .service-image img { transform: scale(1.035); }
  .card-action:hover .icon, .button:hover .icon { transform: translate(2px, -1px); }
  .contact-option:hover > .bi:last-child { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
