/* ResultsAiX Support Desk, public shortcodes */

.asd-public-card {
    /* Full width of the theme's content column, like any other block on the page. */
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
}
.asd-public-card h2 { margin: 0 0 4px; font-size: 24px; }
.asd-public-card .asd-lede { color: #6b7280; margin: 0 0 24px; }

.asd-form .asd-row { margin-bottom: 16px; }
.asd-form label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 4px; color: #111827; }
.asd-form label span { color: #9ca3af; font-weight: 400; font-size: 11px; }
.asd-form label .asd-req { color: #ef4444; }
.asd-form input, .asd-form select, .asd-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
}
.asd-form input:focus, .asd-form select:focus, .asd-form textarea:focus {
    outline: 2px solid #b45309; outline-offset: -1px; border-color: #b45309;
}
.asd-form textarea { resize: vertical; min-height: 120px; }

.asd-form .asd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 0; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    background: #b45309; color: #fff;
}
.asd-form .asd-btn:hover { background: #92400e; }
.asd-form .asd-status { margin-left: 12px; color: #6b7280; font-size: 13px; }

.asd-kb-suggestions {
    background: #fff8ea; border: 1px solid #f0d9a8; border-radius: 8px;
    padding: 14px 18px; margin: 8px 0 16px;
}
.asd-kb-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #92400e; }
.asd-kb-suggestions ul { margin: 0; padding: 0; list-style: none; }
.asd-kb-suggestions li { padding: 6px 0; font-size: 13px; }
.asd-kb-suggestions a { color: #92400e; font-weight: 500; }

.asd-success {
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px;
    padding: 16px 20px; color: #065f46;
}

.asd-portal-login p { color: #6b7280; font-size: 14px; }
.asd-portal-ticket {
    border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px;
    margin-bottom: 12px; background: #fff;
}
.asd-portal-ticket h3 { margin: 0 0 4px; font-size: 15px; }
.asd-portal-ticket .asd-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }

.asd-kb-browser .asd-kb-search input { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
.asd-kb-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.asd-kb-cat-chip { padding: 6px 12px; background: #f3f4f6; border-radius: 999px; font-size: 12px; color: #374151; }
.asd-kb-cat-chip:hover { background: #e5e7eb; text-decoration: none; }
.asd-kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.asd-kb-item { padding: 16px; background: #fafafa; border: 1px solid #e5e7eb; border-radius: 10px; }
.asd-kb-item h3 { margin: 0 0 8px; font-size: 15px; }
.asd-kb-item p { margin: 0; color: #6b7280; font-size: 13px; }
.asd-empty { padding: 32px; text-align: center; color: #6b7280; }

/* Portal: licenses & downloads box */
.asd-portal-license-box { margin-top: 28px; padding: 22px 24px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; }
.asd-portal-license-box h3 { margin: 0 0 8px; }
.asd-portal-license-box p { color: #6b7280; font-size: 14px; margin: 0 0 14px; }

/* The button look, unscoped. It was only ever defined inside .asd-form, so
   anything outside one (the Ask button, the contact link) rendered bare. */
.asd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 0; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
    background: #b45309; color: #fff; font-family: inherit; line-height: 1.2;
}
.asd-btn:hover { background: #92400e; color: #fff; }

/* Knowledge base: ask a question, get an answer */
.asd-kb-browser .asd-kb-search { display: flex; gap: 8px; align-items: stretch; }
.asd-kb-browser .asd-kb-search input { flex: 1; min-width: 0; }
.asd-kb-browser .asd-kb-search button { flex: 0 0 auto; white-space: nowrap; }
.asd-kb-answer { margin-top: 18px; }
.asd-kb-thinking { color: #6b7280; font-size: 14px; padding: 14px 2px; }
.asd-kb-ans { background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid #b45309; border-radius: 12px; padding: 20px 22px; }
.asd-kb-ans-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.asd-kb-ans-head b { font-size: 12px; color: #b45309; text-transform: uppercase; letter-spacing: .05em; }
.asd-kb-ans p { margin: 0 0 11px; font-size: 14.5px; line-height: 1.66; color: #1f2937; }
.asd-kb-ans p:last-child { margin-bottom: 0; }
.asd-kb-ans ol, .asd-kb-ans ul { margin: 0 0 11px; padding-left: 22px; }
.asd-kb-ans li { font-size: 14.5px; line-height: 1.66; color: #1f2937; margin-bottom: 5px; }
.asd-kb-src { margin-top: 14px; border-top: 1px solid #f1f2f5; padding-top: 13px; }
.asd-kb-src-lab { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; font-weight: 700; margin: 0 0 9px; }
.asd-kb-src-item { margin-bottom: 11px; }
.asd-kb-src-item a { font-size: 13.5px; color: #b45309; font-weight: 600; text-decoration: none; }
.asd-kb-src-item a:hover { text-decoration: underline; }
.asd-kb-src-name { font-size: 13.5px; color: #374151; font-weight: 600; }
.asd-kb-src-item span { display: block; font-size: 12.5px; color: #6b7280; margin-top: 2px; line-height: 1.5; }
.asd-kb-badge { display: inline-block; font-size: 10px; font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .03em; background: #fffdf7; color: #b45309; border-radius: 4px; padding: 2px 6px; margin-left: 5px; vertical-align: 1px; }
.asd-kb-none { color: #6b7280; font-size: 14px; margin: 10px 0; }
.asd-kb-next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; margin-top: 14px; font-size: 14px; color: #374151; }
.asd-kb-next .asd-btn { margin-left: auto; }
.asd-btn-dark { background: #111827; color: #fff; border: 0; }
.asd-btn-dark:hover { background: #1f2937; color: #fff; }
.asd-carried { background: #fffdf7; border: 1px solid #f0d9a8; color: #92400e; border-radius: 9px; padding: 11px 14px; font-size: 13.5px; margin: 0 0 18px; }

/* ===== Customer portal ===== */
.asd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.asd-portal-loading { color: #6b7280; margin: 0; }
#asd-portal-body.is-busy { opacity: .55; pointer-events: none; }
.asd-portal-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin: 0 0 18px; }
.asd-portal-top h2 { margin: 0; }
.asd-portal-who { margin: 2px 0 0; font-size: 13px; color: #6b7280; overflow-wrap: anywhere; }
.asd-portal-top-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.asd-btn-quiet { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.asd-btn-quiet:hover { border-color: #9ca3af; color: #111827; }
.asd-portal-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 14px; font-weight: 600; }
button.asd-portal-ticket { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; cursor: pointer; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; transition: border-color .15s, box-shadow .15s; }
button.asd-portal-ticket:hover, button.asd-portal-ticket:focus-visible { border-color: #111827; box-shadow: 0 4px 14px rgba(0,0,0,.06); outline: none; }
.asd-portal-ticket-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.asd-portal-ticket-top strong { font-size: 15.5px; line-height: 1.35; color: #111827; overflow-wrap: anywhere; min-width: 0; }
.asd-portal-preview { display: block; margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: #4b5563; overflow-wrap: anywhere; }
.asd-portal-meta { display: block; margin: 6px 0 0; font-size: 12.5px; color: #6b7280; }
.asd-portal .asd-pill { display: inline-block; flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: #f3f4f6; color: #374151; }
.asd-portal .asd-pill-open { background: #dbeafe; color: #1e40af; }
.asd-portal .asd-pill-pending { background: #fef3c7; color: #92400e; }
.asd-portal .asd-pill-resolved, .asd-portal .asd-pill-closed { background: #dcfce7; color: #166534; }
.asd-portal-empty { text-align: center; padding: 26px 10px; color: #6b7280; }
.asd-portal-back { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 0; margin: 0 0 14px; color: #4b5563; cursor: pointer; }
.asd-portal-back:hover { color: #111827; text-decoration: underline; }
.asd-portal-thread-head h2 { margin: 0 0 4px; overflow-wrap: anywhere; }
.asd-portal-thread { margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.asd-portal-msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; }
.asd-portal-msg.is-you { align-self: flex-end; background: #f3f4f6; border-color: #e5e7eb; border-bottom-right-radius: 4px; }
.asd-portal-msg.is-us { align-self: flex-start; background: #eff6ff; border-color: #bfdbfe; border-bottom-left-radius: 4px; }
.asd-portal-msg-who { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin: 0 0 4px; font-size: 12.5px; color: #6b7280; }
.asd-portal-msg-who strong { color: #111827; font-size: 13px; }
.asd-portal-msg-body { font-size: 14.5px; line-height: 1.6; color: #1f2937; overflow-wrap: anywhere; }
.asd-portal-msg-body p { margin: 0 0 8px; } .asd-portal-msg-body p:last-child { margin-bottom: 0; }
.asd-portal-msg-body img { max-width: 100%; height: auto; }
.asd-portal-files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.asd-portal-files span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid #e5e7eb; color: #374151; overflow-wrap: anywhere; }
.asd-portal-reply label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; color: #111827; }
.asd-portal-reply textarea { width: 100%; box-sizing: border-box; }
.asd-portal-reply-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.asd-portal-status { font-size: 13.5px; color: #6b7280; }
.asd-portal-signin { max-width: 460px; }
.asd-portal-signin .asd-btn { margin-top: 4px; }
.asd-portal-hint { font-size: 13px; color: #6b7280; margin: 14px 0 0; line-height: 1.55; }
.asd-portal-sent-ic { width: 52px; height: 52px; border-radius: 50%; background: #dbeafe; color: #1e40af; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 0 10px; }
@media (max-width: 560px) { .asd-portal-msg { max-width: 100%; } .asd-portal-ticket-top { flex-direction: column; gap: 6px; } }

/* The thank-you after sending a ticket */
.asd-success { text-align: left; }
.asd-done-ic { width: 52px; height: 52px; border-radius: 50%; background: #dcfce7; color: #166534; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; margin: 0 0 10px; }
.asd-success h3 { margin: 0 0 4px; font-size: 22px; }
.asd-done-ref { margin: 0 0 16px; color: #4b5563; }
.asd-done-steps { margin: 0; padding: 0 0 0 20px; line-height: 1.65; color: #374151; }
.asd-done-steps li { margin: 0 0 8px; }
.asd-done-steps b { color: #111827; }
.asd-success { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; color: #1f2937; }

/* ".asd-form .asd-btn" is more specific than a lone class, so the quiet button says so too. */
.asd-form .asd-btn.asd-btn-quiet, .asd-portal .asd-btn.asd-btn-quiet { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.asd-form .asd-btn.asd-btn-quiet:hover, .asd-portal .asd-btn.asd-btn-quiet:hover { background: #f9fafb; border-color: #9ca3af; color: #111827; }

/* Their license keys and products */
.asd-portal-account h3 { margin: 26px 0 10px; font-size: 16px; color: #111827; }
.asd-portal-key { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; margin: 0 0 8px; background: #fff; }
.asd-portal-key-tx { min-width: 0; }
.asd-portal-key-tx strong { display: block; font-size: 14.5px; color: #111827; overflow-wrap: anywhere; }
.asd-portal-key-tx code { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: #f3f4f6; color: #111827; font-size: 13px; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.asd-portal-key .asd-btn { flex: 0 0 auto; }
.asd-portal-owned { list-style: none; margin: 0; padding: 0; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.asd-portal-owned li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 10px 14px; margin: 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.asd-portal-owned li:last-child { border-bottom: 0; }
.asd-portal-owned li strong { font-weight: 600; color: #111827; overflow-wrap: anywhere; min-width: 0; }
.asd-portal-owned li span { flex: 0 0 auto; color: #6b7280; font-size: 12.5px; }
@media (max-width: 480px) { .asd-portal-key { flex-direction: column; align-items: stretch; } }

/* ------------------------------------------------------------------
   The theme cannot recolour our buttons. Themes style every link (a, a:hover,
   .entry-content a, .raix-prose a) with their brand colour and weight, and a
   link-shaped button then shows gold text on a purple button. These rules are
   scoped to the desk's own blocks and win on purpose.
   ------------------------------------------------------------------ */
.asd-public-card *, .asd-public-card *::before, .asd-public-card *::after { box-sizing: border-box; }
.asd-public-card a.asd-btn, .asd-public-card a.asd-btn:link, .asd-public-card a.asd-btn:visited,
.asd-public-card button.asd-btn { text-decoration: none !important; font-weight: 600 !important; box-shadow: none; }
.asd-public-card a.asd-btn-primary, .asd-public-card a.asd-btn-primary:link, .asd-public-card a.asd-btn-primary:visited,
.asd-public-card a.asd-btn-primary:hover, .asd-public-card a.asd-btn-primary:focus, .asd-public-card a.asd-btn-primary:active,
.asd-public-card button.asd-btn-primary, .asd-public-card button.asd-btn-primary:hover { color: #fff !important; background: #b45309; border: 0; }
.asd-public-card a.asd-btn-primary:hover, .asd-public-card button.asd-btn-primary:hover { background: #92400e; }
.asd-public-card a.asd-btn-quiet, .asd-public-card a.asd-btn-quiet:visited, .asd-public-card button.asd-btn-quiet { color: #374151 !important; background: #fff !important; border: 1px solid #d1d5db !important; }
.asd-public-card a.asd-btn-quiet:hover, .asd-public-card button.asd-btn-quiet:hover { color: #111827 !important; background: #f9fafb !important; border-color: #9ca3af !important; }
.asd-public-card button.asd-btn:disabled { opacity: .6; cursor: default; }
.asd-public-card .asd-btn:focus-visible { outline: 3px solid #e9b949; outline-offset: 2px; }
/* The theme's heading and paragraph rules are kept, only their spacing is ours. */
.asd-public-card h2 { line-height: 1.2; }
.asd-public-card p { max-width: none; }

/* The contact form uses the width it now has: name and email side by side. */
@media (min-width: 760px) {
    .asd-submit-form .asd-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
    .asd-submit-form .asd-form > .asd-row, .asd-submit-form .asd-form > .asd-kb-suggestions, .asd-submit-form .asd-form > .asd-hp { grid-column: 1 / -1; }
    .asd-submit-form .asd-form > .asd-row.asd-row-half { grid-column: auto; }
}
.asd-row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Customer page: groups, finished tickets, the reopen bar */
.asd-portal-group { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.asd-portal-top + .asd-portal-group, .asd-portal-note + .asd-portal-group { margin-top: 6px; }
button.asd-portal-ticket.is-done { background: #fafafa; }
button.asd-portal-ticket.is-done .asd-portal-ticket-top strong { color: #374151; }
.asd-portal-open-hint { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #92400e; }
.asd-portal-reopen { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.asd-portal-reopen strong { display: block; font-size: 15px; color: #14532d; }
.asd-portal-reopen span { display: block; font-size: 13.5px; color: #166534; margin-top: 2px; }
.asd-portal-reopen .asd-btn { flex: 0 0 auto; }
/* A thread reads better at a comfortable measure even on a wide page. */
.asd-portal-thread .asd-portal-msg { max-width: min(88%, 860px); }

/* The theme's heading sizes must not blow up the small group labels. */
.asd-public-card h3.asd-portal-group { font-size: 13px !important; line-height: 1.3 !important; margin: 22px 0 10px !important; letter-spacing: .05em !important; }

/* Screenshots on the contact form */
.asd-public-card label.asd-drop { display: block; border: 2px dashed #f0d9a8; border-radius: 12px; background: #fffdf7; padding: 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.asd-public-card label.asd-drop:hover, .asd-public-card label.asd-drop.is-over { border-color: #b45309; background: #fff8ea; }
.asd-drop-big { display: block; font-size: 14.5px; font-weight: 600; color: #b45309; }
.asd-drop-sm { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: #6b7280; }
.asd-drop input[type="file"] { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.asd-drop-list { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #111827; overflow-wrap: anywhere; }
.asd-done-files { margin: 14px 0 0; padding: 10px 14px; border-radius: 9px; background: #fffdf7; color: #92400e; font-size: 13.5px; }
.asd-portal-face { width: 24px; height: 24px; border-radius: 50%; margin-right: 6px; vertical-align: middle; object-fit: cover; }
.asd-portal-msg-who { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------
   Answer first. One question, the answer, then the form only if it is
   needed. Kept quiet on purpose: this is the first thing a customer with
   a problem sees, and it must not look like a wall being put up.
   ------------------------------------------------------------------ */
.asd-step-ask .asd-lede { max-width: 62ch; }
.asd-ask-foot { margin: 6px 0 0; font-size: 12.5px; color: #6b7280; }
.asd-public-card .asd-help { font-size: 12.5px; color: #6b7280; }

.asd-answer { font-size: 15.5px; line-height: 1.65; color: #111827; }
.asd-answer p { margin: 0 0 12px; }
.asd-answer ol, .asd-answer ul { margin: 0 0 12px; padding-left: 22px; }
.asd-answer li { margin: 0 0 6px; }

.asd-answer-src { margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; background: #f8fafc; border: 1px solid #e5e7eb; }
.asd-public-card .asd-answer-src h3 { margin: 0 0 8px !important; font-size: 13px !important; line-height: 1.3 !important; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.asd-answer-src ul { margin: 0; padding: 0; list-style: none; }
.asd-answer-src li { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; }
.asd-answer-src li small { display: block; font-weight: 400; font-size: 12.5px; line-height: 1.5; color: #6b7280; margin-top: 2px; }

.asd-verdict { margin: 22px 0 0; padding: 18px; border-radius: 12px; background: #fffdf7; border: 1px solid #f0d9a8; }
.asd-verdict-q { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #14110b; }
.asd-verdict .asd-help { margin: 10px 0 0; color: #b45309; }

.asd-step-sorted { text-align: left; }
.asd-already { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.asd-already p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #166534; }

/* ------------------------------------------------------------------
   Signed in: the desk that already knows you.
   ------------------------------------------------------------------ */
.asd-signin-offer { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 24px; padding: 18px 20px; border-radius: 12px; background: linear-gradient(135deg, #fffdf7, #fff8ea); border: 1px solid #f0d9a8; }
.asd-signin-offer.is-sent { background: #f0fdf4; border-color: #bbf7d0; }
.asd-signin-tx { flex: 1 1 320px; min-width: 0; }
.asd-signin-tx strong { display: block; font-size: 16px; color: #14110b; }
.asd-signin-offer.is-sent .asd-signin-tx strong { color: #14532d; }
.asd-signin-tx span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: #b45309; }
.asd-signin-offer.is-sent .asd-signin-tx span { color: #166534; }
.asd-signin-form { display: flex; gap: 8px; flex: 0 1 380px; flex-wrap: wrap; }
.asd-signin-form input { flex: 1 1 200px; min-width: 0; padding: 10px 14px; border: 1px solid #f0d9a8; border-radius: 8px; font-size: 14px; background: #fff; font-family: inherit; }
.asd-signin-offer .asd-help { flex: 1 1 100%; margin: 0; color: #b45309; }

/* The way in for anybody who has bought something, so it is the loudest thing
   on the page rather than a note above the form. */
.asd-signin-offer.is-lead { position: relative; margin: 6px 0 28px; padding: 26px 22px 20px; border-width: 2px; border-color: #e9b949; box-shadow: 0 10px 24px -14px rgba(180, 83, 9, .45); }
.asd-signin-offer.is-lead .asd-signin-flag { position: absolute; top: -11px; left: 20px; padding: 4px 12px; border-radius: 999px; background: #b45309; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.asd-signin-offer.is-lead .asd-signin-tx strong { font-size: 21px; line-height: 1.25; }
.asd-signin-offer.is-lead .asd-signin-tx span { font-size: 14.5px; }
.asd-signin-offer.is-lead .asd-signin-form input { padding: 13px 15px; font-size: 15px; border-width: 2px; }
.asd-signin-offer.is-lead .asd-signin-form .asd-btn { padding: 13px 22px; font-size: 15px; }
.asd-signin-offer.is-lead.is-sent .asd-signin-flag { background: #166534; }
/* On a phone that flag is too long to sit on one line, and a pill hanging off
   the top edge grows DOWNWARDS over the heading when it wraps. So on a narrow
   screen it stops hanging and takes a line of its own at the top of the card,
   where it can wrap as much as it likes and still push the heading down. */
@media (max-width: 600px) {
    .asd-signin-offer.is-lead { padding: 16px 16px 18px; }
    .asd-signin-offer.is-lead .asd-signin-flag {
        position: static; top: auto; left: auto;
        flex: 1 1 100%; order: -1; align-self: flex-start;
        margin: 0 0 10px; padding: 5px 12px; line-height: 1.35;
    }
    .asd-signin-offer.is-lead .asd-signin-tx strong { font-size: 19px; }
}

.asd-chat-top { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.asd-chat-top-tx { min-width: 0; }
.asd-public-card .asd-chat-top h2 { margin: 0 0 2px; }
.asd-chat-top .asd-lede { margin: 0; }
.asd-chat-knows { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid #e5e7eb; }
.asd-chat-knows p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #374151; }
.asd-chat-owned { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.asd-chat-owned li { font-size: 12.5px; font-weight: 600; color: #92400e; background: #fffdf7; border: 1px solid #f0d9a8; border-radius: 999px; padding: 4px 11px; }
.asd-chat-owned li.asd-chat-more { color: #6b7280; background: #fff; border-color: #e5e7eb; font-weight: 400; }

.asd-chat-thread { min-height: 180px; max-height: 60vh; overflow-y: auto; padding: 4px 2px; margin: 0 0 14px; }
.asd-chat-msg { display: flex; margin: 0 0 12px; }
.asd-chat-you { justify-content: flex-end; }
.asd-chat-bubble { max-width: min(80%, 620px); padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.6; }
.asd-chat-desk .asd-chat-bubble { background: #f3f4f6; color: #111827; border-bottom-left-radius: 5px; }
.asd-chat-you .asd-chat-bubble { background: #b45309; color: #fff; border-bottom-right-radius: 5px; }
.asd-chat-bubble p { margin: 0 0 8px; }
.asd-chat-bubble p:last-child { margin: 0; }
.asd-chat-dots { display: flex; gap: 5px; align-items: center; padding: 15px 18px; }
.asd-chat-dots span { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: asd-dot 1.2s infinite ease-in-out; }
.asd-chat-dots span:nth-child(2) { animation-delay: .15s; }
.asd-chat-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes asd-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.asd-chat-handover { margin: 4px 0 14px; padding: 10px 14px; border-radius: 9px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 13.5px; }
.asd-chat-form textarea { width: 100%; box-sizing: border-box; padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; font-family: inherit; resize: vertical; min-height: 58px; }
.asd-chat-form textarea:focus { outline: 2px solid #b45309; outline-offset: -1px; border-color: #b45309; }
.asd-chat-form .asd-row-actions { margin-top: 10px; }
.asd-chat-foot { margin: 12px 0 0; }
/* Where an answer came from, and the way out when it has none. */
.asd-chat-sources { margin: -6px 0 14px; padding: 0 2px; font-size: 12.5px; color: #6b7280; }
.asd-chat-sources a { color: #b45309; }
.asd-chat-offer { margin: 2px 0 14px; }
.asd-chat-bubble a { color: inherit; text-decoration: underline; word-break: break-word; }
.asd-chat-you .asd-chat-bubble a { color: #fff; }
.asd-chat-product { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; font-size: 13.5px; color: #4b5563; }
.asd-chat-product label { margin: 0; font-weight: 600; }
.asd-chat-product label span { font-weight: 400; color: #6b7280; }
.asd-chat-product select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.asd-chat-face { flex: 0 0 auto; }
@media (max-width: 560px) { .asd-chat-bubble { max-width: 92%; } }

/* A customer's face on their own page. The admin has its own copy of this;
   the public side cannot borrow it, so it is stated here too. */
.asd-public-card .asd-face { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: var(--asd-face, 36px); height: var(--asd-face, 36px); border-radius: 50%; overflow: hidden; background: #fdf0d5; color: #92400e; font-weight: 800; font-size: calc(var(--asd-face, 36px) * .42); line-height: 1; vertical-align: middle; }
.asd-public-card .asd-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
