.aq-chat-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-height: 44px;
    padding: 0 10px;
    color: #873507;
    background: #fff8f2;
    border: 1px solid #dfb79e;
    border-radius: 22px;
    white-space: nowrap;
    font: 600 13px/1.2 system-ui, sans-serif;
    cursor: pointer;
}
.aq-chat-trigger:hover, .aq-chat-trigger[aria-expanded="true"] { background: #ffe7d6; }
.aq-chat-trigger img { width: 19px; height: 19px; flex: 0 0 19px; object-fit: contain; }
.aq-product-share:has(> .aq-chat-trigger) { display: flex; align-items: center; gap: 6px; width: max-content; flex: 0 0 auto; }
.aq-product-share > .aq-chat-trigger { flex: 0 0 auto; }
.aq-product-share > .aq-share-trigger { flex: 0 0 44px; }
.aq-product-share > .aq-share-trigger.aq-share-with-caption {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 7px;
    box-sizing: border-box; width: auto; height: 44px; padding: 0 10px; border: 1px solid #dfb79e;
    border-radius: 22px; background: #fff8f2; color: #873507; white-space: nowrap; font: 600 13px/1.2 system-ui, sans-serif;
}
.aq-product-share > .aq-share-trigger.aq-share-with-caption:hover,
.aq-product-share > .aq-share-trigger.aq-share-with-caption[aria-expanded="true"] { background: #ffe7d6; }
.aq-share-with-caption svg { flex: 0 0 19px; width: 19px; height: 19px; }
body.single-product .aq-share-host:has(.aq-chat-trigger) > #ppc-button-ppcp-gateway-v6 { max-width: calc(100% - 180px) !important; }
@media (max-width: 480px) {
    body.single-product .aq-share-host:has(.aq-chat-trigger) { flex-wrap: wrap; }
    body.single-product .aq-share-host:has(.aq-chat-trigger) > #ppc-button-ppcp-gateway-v6 { max-width: 100% !important; }
}
body.single-product .aq-product-share-fallback { overflow: visible; }
.aq-chat-panel[hidden], .aq-chat-panel [hidden] { display: none !important; }
.aq-chat-panel {
    position: fixed;
    z-index: 10000000;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 32px));
    max-height: min(530px, calc(100dvh - 32px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #272522;
    border: 1px solid #dfd3cb;
    border-radius: 12px;
    box-shadow: 0 12px 38px #241a1740;
    font: 15px/1.45 system-ui, sans-serif;
}
.aq-chat-lock { overflow: hidden; }
.aq-chat-panel.aq-chat-fullscreen { inset: 0; z-index: 2147483647; width: 100%; height: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.aq-chat-lock #wpadminbar { display: none; }
.aq-chat-fullscreen .aq-chat-history { flex: 1; min-height: 0; height: auto; overscroll-behavior: contain; }
.aq-chat-fullscreen .aq-chat-heading, .aq-chat-fullscreen .aq-chat-form, .aq-chat-fullscreen .aq-chat-feedback, .aq-chat-fullscreen .aq-chat-privacy { flex-shrink: 0; }
.aq-chat-heading { display: flex; flex: 0 0 auto; align-items: center; padding: 6px 8px 6px 14px; color: white; background: #873507; }
.aq-chat-heading strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.aq-chat-product { background: #fff; border-bottom: 1px solid #eadbd1; min-width: 0; }
.aq-chat-product-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #342119 !important; text-decoration: none; }
.aq-chat-product-card:hover { background: #fff7f1; }
.aq-chat-product-card img { width: 52px; height: 52px; object-fit: contain; border: 1px solid #eadbd1; border-radius: 7px; background: white; }
.aq-chat-product-card span { display: grid; gap: 1px; min-width: 0; }
.aq-chat-product-card strong { line-height: 1.25; overflow-wrap: anywhere; }
.aq-chat-product-card small { color: #72584d; font-size: 11px; }
.aq-chat-resize, .aq-chat-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; line-height: 1; background: transparent; color: white; border: 0; border-radius: 5px; cursor: pointer; font-size: 24px; }
.aq-chat-resize:hover, .aq-chat-close:hover { background: #ffffff26; }
.aq-chat-history { min-height: 96px; height: min(270px, 38dvh); overflow-y: auto; padding: 12px; background: #faf7f4; }
.aq-chat-message { max-width: 88%; width: fit-content; margin: 0 auto 8px 0; padding: 7px 10px; border-radius: 9px; background: #eee6df; color: #26211d; white-space: pre-wrap; overflow-wrap: anywhere; }
.aq-chat-message.aq-chat-mine { margin-left: auto; margin-right: 0; background: #fbe1d0; }
.aq-chat-message time { display: block; text-align: end; font-size: 11px; color: #62514a; }
.aq-chat-message-row { display: flex; align-items: flex-start; gap: 7px; }
.aq-chat-row-mine { flex-direction: row-reverse; }
.aq-chat-avatar { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; overflow: hidden; border-radius: 50%; background: #e7e9eb; color: #495661; font-size: 11px; font-weight: 700; }
.aq-chat-avatar svg { width: 17px; height: 17px; fill: currentColor; }
.aq-chat-avatar-shop { background: white; color: #873507; border: 1px solid #eadbd1; box-sizing: border-box; }
.aq-chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.aq-chat-message-row .aq-chat-message { max-width: calc(100% - 42px); min-width: 0; box-sizing: border-box; }
.aq-chat-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin: 0; padding: 10px; }
.aq-chat-form textarea { box-sizing: border-box; width: 100%; min-width: 0; height: clamp(64px, 16dvh, 106px); max-height: max(106px, 28dvh); resize: vertical; padding: 9px 10px; border: 1px solid #d6c8bf; border-radius: 6px; font: inherit; }
.aq-chat-fullscreen .aq-chat-form textarea { height: clamp(64px, 20dvh, 148px); }
.aq-chat-compose-tools { display: flex; align-items: center; gap: 7px; }
.aq-chat-form .aq-chat-send { margin-inline-start: auto; height: 42px; min-height: 42px; box-sizing: border-box; padding-block: 5px; }
.aq-chat-attach, .aq-chat-remove, .aq-chat-emoji-toggle { display: inline-grid; place-items: center; padding: 0; width: 40px; height: 40px; border: 1px solid #d6c8bf; border-radius: 6px; background: #fff; color: #873507; font-size: 20px; cursor: pointer; }
.aq-chat-compose-tools :is(.aq-chat-attach, .aq-chat-emoji-toggle) { border: 0; border-radius: 50%; background: transparent; color: #452b20; }
.aq-chat-compose-tools :is(.aq-chat-attach, .aq-chat-emoji-toggle):hover { color: #873507; background: #f8ece3; }
.aq-chat-compose-tools svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.aq-chat-emoji-picker { display: flex; flex-wrap: wrap; gap: 3px; }
.aq-chat-emoji { min-width: 36px; min-height: 36px; padding: 0; border: 1px solid #eadbd1; background: #fff8f3; border-radius: 6px; cursor: pointer; font-size: 19px; }
.aq-chat-selection { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #5e3c2a; font-size: 13px; overflow-wrap: anywhere; }
.aq-chat-remove { flex: 0 0 32px; width: 32px; height: 32px; }
.aq-chat-file { display: grid; gap: 4px; margin-block: 4px; white-space: normal; }
.aq-chat-photo { display: block; width: auto; max-width: min(100%, 460px); max-height: min(280px, 42dvh); border-radius: 5px; }
.aq-chat-photo:not([src]) { width: 64px; height: 28px; background: #fff7; }
.aq-chat-file-download { padding: 4px 0; border: 0; background: transparent; color: #6f2c0b; text-align: start; text-decoration: underline; overflow-wrap: anywhere; cursor: pointer; font: inherit; }
.aq-chat-send, .aq-chat-older, .aq-chat-staff-link { border: 1px solid #873507; border-radius: 6px; padding: 8px 11px; color: #fff !important; background: #873507; cursor: pointer; }
.aq-chat-form .aq-chat-send:disabled { opacity: 1; cursor: wait; }
.aq-chat-older { display: block; margin: 0 auto 10px; }
.aq-chat-feedback:not(:empty) { padding: 0 10px 8px; color: #852822; font-size: 13px; }
.aq-chat-privacy { margin: 0; padding: 0 10px 10px; color: #62514a; font-size: 12px; }
.aq-chat-privacy a { color: #6f2c0b; text-decoration: underline; }
.aq-chat-staff-link { display: inline-block; position: fixed; right: var(--aq-cookie-right, 16px); bottom: max(12px, env(safe-area-inset-bottom), calc(var(--aq-cookie-bottom, 88px) - 42px)); z-index: 100090; }
#aq-chat-mount > .aq-chat-staff-link { box-sizing: border-box; height: 34px; }
@media (max-width: 600px) {
    body:has(#aq-chat-mount > .aq-chat-staff-link) #cmplz-manage-consent .cmplz-manage-consent { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 42px) !important; }
    html:not(.aq-cookie-dismissed) body:has(#cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-show) #aq-chat-mount > .aq-chat-staff-link { visibility: hidden; }
}
.aq-chat-thread { display: flex; flex-direction: column; gap: 4px; width: 100%; border: 1px solid #e5d9ce; background: #fff; padding: 12px; margin: 8px 0; border-radius: 7px; color: #28221d; text-align: start; cursor: pointer; }
.aq-chat-unread { border-inline-start: 4px solid #9d4217; background: #fff1e8; }
#aq-chat-staff-inbox { max-width: 640px; margin-block: 16px; }
#aq-chat-staff-inbox .aq-chat-staff-link { position: static; }
.aq-chat-body, .aq-chat-content, .aq-chat-dialogue { display: flex; flex: 1 1 auto; min-height: 0; min-width: 0; }
.aq-chat-content, .aq-chat-dialogue { flex-direction: column; }
.aq-chat-dialogue .aq-chat-history { flex: 1 1 auto; min-height: 0; }
.aq-chat-dialogue > :not(.aq-chat-history) { flex-shrink: 0; }
.aq-chat-staff-panel:not(.aq-chat-fullscreen) { width: min(795px, calc(100vw - 32px)); height: min(590px, calc(100dvh - 32px)); max-height: none; }
.aq-chat-sidebar { flex: 0 0 clamp(190px, 24vw, 275px); min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #eadbd1; background: #fff; }
.aq-chat-sidebar-title { display: block; padding: 13px 12px 4px; }
.aq-chat-staff-list { overflow: auto; padding: 3px 7px 10px; }
.aq-chat-staff-list .aq-chat-thread { display: flex; flex-direction: row; align-items: center; margin: 3px 0; gap: 8px; padding: 9px 7px; }
.aq-chat-staff-list .aq-chat-thread > span:nth-child(2) { min-width: 0; }
.aq-chat-staff-list .aq-chat-thread strong, .aq-chat-staff-list .aq-chat-thread small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-chat-staff-list .aq-chat-thread[aria-current="true"] { background: #ffebdd; border-color: #bb662e; }
.aq-chat-placeholder, .aq-chat-staff-list > p { margin: 12px; color: #72584d; }
.aq-chat-inbox-toggle { display: none; color: white; border: 1px solid #ffffff75; background: transparent; border-radius: 6px; padding: 6px 8px; cursor: pointer; }
@media (min-width: 950px) {
    .aq-chat-fullscreen .aq-chat-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,250px); grid-template-rows: minmax(0,1fr); }
    .aq-chat-fullscreen .aq-chat-content:has(.aq-chat-product[hidden]) { display: flex; }
    .aq-chat-fullscreen .aq-chat-product { grid-column: 2; grid-row: 1; border-left: 1px solid #eadbd1; border-bottom: 0; }
    .aq-chat-fullscreen .aq-chat-dialogue { grid-column: 1; grid-row: 1; }
}
@media (max-width: 600px) {
    .aq-chat-inbox-toggle { display: block; }
    .aq-chat-sidebar { flex: 1; border: 0; }
    .aq-chat-staff-panel:not(.aq-chat-list-open) .aq-chat-sidebar, .aq-chat-staff-panel.aq-chat-list-open .aq-chat-content { display: none; }
}
.aq-chat-trigger:focus-visible, .aq-chat-panel :focus-visible, .aq-chat-thread:focus-visible, .aq-chat-staff-link:focus-visible { outline: 2px solid #bd601f; outline-offset: 2px; }
