.tdb-floating-chat {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7b5301 0%, #705907 100%);
    color: #fff;
    text-decoration: none;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(10, 19, 46, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tdb-floating-chat:hover,
.tdb-floating-chat:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 19, 46, 0.28);
}

.tdb-floating-chat-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
    flex-shrink: 0;
}

.tdb-floating-chat-label {
    line-height: 1;
}

@media (max-width: 480px) {
    .tdb-floating-chat {
        right: 1rem;
        bottom: 1rem;
        padding: 0.9rem;
        border-radius: 50%;
        width: 3.25rem;
        height: 3.25rem;
        justify-content: center;
    }

    .tdb-floating-chat-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
}

.tdb-chat-gate {
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1.5rem 2.5rem;
    background: linear-gradient(160deg, #fdfbf7 0%, #f3ece0 100%);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow-y: auto;
    box-sizing: border-box;
}

.tdb-chat-gate-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10, 19, 46, 0.1);
    padding: 2rem 1.75rem 2.25rem;
    margin: auto 0;
}

.tdb-chat-gate-card h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #0a132e;
}

.tdb-chat-gate-card p {
    color: #666;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tdb-chat-gate-field {
    margin-bottom: 1rem;
}

.tdb-chat-gate-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #333;
}

.tdb-chat-gate-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(123, 83, 1, 0.25);
    border-radius: 10px;
    font-size: 1rem;
}

.tdb-chat-gate-field input:focus {
    outline: none;
    border-color: #7b5301;
    box-shadow: 0 0 0 3px rgba(123, 83, 1, 0.15);
}

.tdb-chat-gate-error {
    background: #fff3f3;
    color: #a33;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tdb-chat-gate-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #705907;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.tdb-chat-gate-submit:hover {
    background: #7b5301;
}

.tdb-chat-gate-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.45;
}

.tdb-chat-gate-back {
    display: inline-block;
    margin-top: 1rem;
    color: #705907;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.tdb-chat-gate-nav {
    margin-bottom: 1rem;
}

.tdb-chat-gate-back-top {
    margin-top: 0;
}

.tdb-chat-gate-back-after-error {
    display: inline-block;
    margin: 0 0 1rem;
    font-weight: 600;
}

.tdb-chat-closed-card {
    text-align: center;
}

.tdb-chat-closed-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #eef6ee;
    color: #2d6a2d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
