.live-chat-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.live-chat-form * { box-sizing: border-box; }
.live-chat-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }

.live-chat-form input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #bfc9b4;
    border-radius: 8px;
    background: #fff;
    color: #30372b;
    font: inherit;
}

.live-chat-form :focus-visible { outline: 3px solid #97aa7c; outline-offset: 3px; }

.live-chat-page {
    max-width: 740px;
}

.live-chat-page .guest-heading h1 {
    color: #193e2c;
    font-family: Georgia, serif;
}

.live-chat-page .guest-button:not(.secondary) {
    background: #174e38;
    border-color: #174e38;
}

.live-chat-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
}

.live-chat-choices legend {
    margin-bottom: 8px;
    font-weight: 700;
}

.live-chat-choices label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #c4ccb7;
    border-radius: 8px;
    background: #f6f7ef;
}

.live-chat-choices input[type="radio"] {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #174e38;
}

.live-chat-concern {
    display: grid;
    gap: 12px;
}

.live-chat-concern select,
.live-chat-concern textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bfc9b4;
    border-radius: 8px;
    background: #fff;
    color: #30372b;
    font: inherit;
}

.live-chat-concern textarea {
    resize: vertical;
}

.live-chat-page .live-chat-recover {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-chat-recover input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #174e38;
}

.live-chat-status {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e2ead9;
    color: #304d32;
    font-size: 13px;
}

.live-chat-status[data-status="pending"] { background: #fff0cc; color: #6d4a18; }
.live-chat-status[data-status="declined"] { background: #f8e3df; color: #832f2c; }
.live-chat-status[data-status="closed"] { background: #eae8e2; color: #4b4d45; }
.live-chat-page [data-chat-state] { margin: 0; }
.live-chat-page [data-chat-waiting] > .guest-notice { margin-bottom: 14px; }

.live-chat-page [data-chat-status].is-error {
    color: #9d2a25;
}

@media (max-width: 520px) {
    .live-chat-choices {
        grid-template-columns: 1fr;
    }
}

.live-chat-history-list { display: grid; gap: 8px; margin-bottom: 12px; }
.live-chat-history-list:empty { display: none; }
.live-chat-history-item { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.live-chat-history-item small { font-weight: 400; }
