.soro-page {
    --soro-red: #970000;
    --soro-red-dark: #7c0000;
    --soro-cream: #f8f5f0;
    --soro-warm: #f4eee7;
    --soro-border: #e8ddd0;
    --soro-text: #171313;
    --soro-muted: #5f5651;
    --soro-soft-red: #d69da0;
    color: var(--soro-text);
    background: transparent;
    font-family: "Inter", "Aptos", "Segoe UI", Arial, sans-serif;
    padding: 0;
}

.soro-page * {
    box-sizing: border-box;
}

.soro-chat-card {
    max-width: 1080px;
    min-height: 445px;
    margin: 0 auto;
    border: 1px solid var(--soro-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(80, 0, 0, 0.02);
}

.soro-chat-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 18px;
    border-bottom: 1px solid #eee8e0;
}

.soro-avatar {
    display: block;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
}

.soro-chat-top p {
    margin: 0;
    font-weight: 700;
    color: #2f2a29;
}

.soro-icon-button,
.soro-chat-input button {
    border: 0;
    cursor: pointer;
}

.soro-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: transparent;
    color: #262121;
    font-size: 20px;
}

.soro-chat-body {
    min-height: 250px;
    max-height: 510px;
    overflow-y: auto;
    padding: 20px 18px 24px;
}

.soro-agent-note {
    position: relative;
    margin: 0 0 18px;
    padding-left: 28px;
    color: #4f4948;
    font-size: 0.92rem;
}

.soro-agent-note::before {
    content: "✦";
    position: absolute;
    left: 2px;
    color: #2c2928;
}

.soro-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}

.soro-quick-replies button,
.soro-option,
.soro-action {
    border: 0;
    border-radius: 8px;
    background: var(--soro-cream);
    color: #b0282a;
    cursor: pointer;
    font-weight: 800;
    padding: 13px 17px;
    text-align: left;
}

.soro-quick-replies button:hover,
.soro-option:hover,
.soro-action:hover {
    background: #f0e7dc;
}

.soro-message {
    max-width: 82%;
    margin: 0 0 12px;
    padding: 13px 15px;
    border-radius: 14px;
    line-height: 1.45;
}

.soro-message-user {
    margin-left: auto;
    background: var(--soro-red);
    color: #fff;
}

.soro-message-bot {
    background: var(--soro-cream);
    color: var(--soro-text);
}

.soro-flow-actions,
.soro-epds-options {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.soro-flow-actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.soro-epds-card {
    background: var(--soro-cream);
    border: 1px solid var(--soro-border);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.soro-epds-card h3 {
    margin: 0 0 8px;
    color: var(--soro-red);
    font-size: 1rem;
}

.soro-epds-card p {
    margin: 0 0 12px;
    color: #2d2928;
    font-weight: 700;
}

.soro-option {
    width: 100%;
    color: #2f2928;
    background: #fff;
    border: 1px solid #eadfd4;
}

.soro-chat-input {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 12px;
    align-items: center;
    padding: 0 18px 16px;
}

.soro-chat-input input {
    min-height: 48px;
    width: 100%;
    border: 1px solid #e1dfdc;
    border-radius: 11px;
    padding: 0 18px;
    background: #fafafa;
    color: var(--soro-text);
}

.soro-chat-input button {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: var(--soro-soft-red);
    color: #fff;
    font-size: 1.35rem;
}

.soro-privacy {
    margin: 0;
    padding: 0 18px 18px;
    text-align: center;
    color: #2d2928;
    font-size: 0.84rem;
    font-weight: 700;
}

.soro-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: rgba(20, 14, 12, 0.62);
    padding: 20px;
}

.soro-modal[hidden] {
    display: none;
}

.soro-modal-inner {
    width: min(920px, 100%);
    height: min(760px, 90vh);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.soro-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: var(--soro-red);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 10px;
}

.soro-calendly-widget {
    width: 100%;
    height: 100%;
    min-width: 320px;
}

.soro-calendly-widget iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.soro-calendly-fallback {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 64px 16px 16px;
    color: var(--soro-text);
    font-weight: 700;
}

@media (max-width: 800px) {
    .soro-page {
        padding: 0;
    }

    .soro-chat-card {
        min-height: 472px;
        border-radius: 10px;
    }

    .soro-chat-top {
        grid-template-columns: auto 1fr auto;
        align-items: start;
    }

    .soro-chat-top p {
        font-size: 0.91rem;
    }

    .soro-chat-body {
        min-height: 300px;
    }

    .soro-quick-replies {
        display: grid;
    }

    .soro-message {
        max-width: 100%;
    }
}
