#pt-chat-root {
    --pt-chat-accent: #e0752c;
    --pt-chat-accent-dark: #c75c18;
    --pt-chat-surface: var(--w04, rgba(255, 255, 255, .82));
    --pt-chat-border: var(--w15, rgba(36, 32, 29, .15));
    --pt-chat-text: var(--w90, #24201d);
    --pt-chat-muted: var(--w55, rgba(36, 32, 29, .58));
    position: relative;
    z-index: 40;
}

.pt-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f28a3b, #df631b);
    color: #fff;
    font: 800 13px Manrope, sans-serif;
    box-shadow: 0 12px 28px rgba(224, 117, 44, .3);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.pt-chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(224, 117, 44, .4);
}

.pt-chat-launcher-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
}

.pt-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 84px;
    display: flex;
    flex-direction: column;
    width: min(368px, calc(100vw - 32px));
    height: min(590px, calc(100vh - 112px));
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--pt-chat-border);
    border-radius: 22px;
    background: var(--pt-chat-surface);
    color: var(--pt-chat-text);
    box-shadow: 0 26px 70px rgba(61, 39, 24, .2);
    backdrop-filter: blur(22px);
}

.pt-chat-panel[hidden] {
    display: none;
}

.pt-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 20px 16px;
    border-bottom: 1px solid var(--pt-chat-border);
}

.pt-chat-kicker {
    margin-bottom: 4px;
    color: var(--pt-chat-accent);
    font: 800 10px/1.2 Manrope, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pt-chat-title {
    margin: 0;
    color: var(--pt-chat-text);
    font: 800 18px/1.2 Manrope, sans-serif;
    letter-spacing: -.04em;
}

.pt-chat-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--pt-chat-border);
    border-radius: 9px;
    background: transparent;
    color: var(--pt-chat-muted);
    cursor: pointer;
}

.pt-chat-subtitle {
    margin: 0;
    padding: 11px 20px;
    border-bottom: 1px solid var(--pt-chat-border);
    color: var(--pt-chat-muted);
    font-size: 11px;
    line-height: 1.45;
}

.pt-chat-messages {
    flex: 1;
    min-height: 100px;
    overflow-y: auto;
    padding: 16px 15px;
}

.pt-chat-empty {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 15px 25px;
    color: var(--pt-chat-muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.pt-chat-message {
    max-width: 84%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pt-chat-message.visitor {
    margin-left: auto;
    border-bottom-right-radius: 5px;
    background: linear-gradient(135deg, #f28a3b, #df631b);
    color: #fff;
}

.pt-chat-message.admin {
    margin-right: auto;
    border-bottom-left-radius: 5px;
    background: var(--w08, rgba(36, 32, 29, .08));
    color: var(--pt-chat-text);
}

.pt-chat-time {
    display: block;
    margin-top: 5px;
    opacity: .62;
    font-size: 9px;
}

.pt-chat-form {
    padding: 13px 15px 15px;
    border-top: 1px solid var(--pt-chat-border);
}

.pt-chat-form textarea,
.pt-chat-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--pt-chat-border);
    border-radius: 10px;
    background: var(--w03, rgba(255, 255, 255, .44));
    color: var(--pt-chat-text);
    font: 400 12px/1.4 'Work Sans', sans-serif;
    outline: none;
}

.pt-chat-form textarea {
    min-height: 58px;
    padding: 10px 11px;
    resize: vertical;
}

.pt-chat-form input {
    min-height: 37px;
    padding: 8px 10px;
}

.pt-chat-form textarea:focus,
.pt-chat-form input:focus {
    border-color: var(--pt-chat-accent);
    box-shadow: 0 0 0 3px rgba(224, 117, 44, .12);
}

.pt-chat-contact-toggle {
    display: inline-flex;
    margin: 8px 0 7px;
    border: 0;
    background: transparent;
    color: var(--pt-chat-accent-dark);
    font: 700 11px Manrope, sans-serif;
    cursor: pointer;
}

.pt-chat-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 8px;
}

.pt-chat-contact-fields[hidden] {
    display: none;
}

.pt-chat-contact-fields input:first-child {
    grid-column: 1 / -1;
}

.pt-chat-submit-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-chat-submit {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--pt-chat-accent);
    color: #fff;
    font: 800 11px Manrope, sans-serif;
    cursor: pointer;
}

.pt-chat-submit:disabled {
    cursor: wait;
    opacity: .6;
}

.pt-chat-feedback {
    flex: 1;
    color: var(--pt-chat-muted);
    font-size: 10px;
    line-height: 1.35;
}

.pt-chat-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pt-chat-turnstile {
    display: grid;
    gap: 6px;
    margin: 8px 0 10px;
    color: var(--pt-chat-muted);
    font-size: 10px;
}

.pt-chat-turnstile-widget {
    min-height: 65px;
    overflow: hidden;
}

@media (max-width: 520px) {
    .pt-chat-launcher {
        right: 16px;
        bottom: 16px;
        padding: 0 15px;
    }

    .pt-chat-panel {
        right: 16px;
        bottom: 76px;
        width: calc(100vw - 32px);
        height: min(600px, calc(100vh - 96px));
    }
}