/* Ringotel Chat Widget — Premium Styles v2 */

:root {
    --rc-primary: #4F46E5;
    --rc-primary-light: #818CF8;
    --rc-primary-dark: #4338CA;
    --rc-primary-subtle: #EEF2FF;
    --rc-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6D28D9 100%);
    --rc-gradient-soft: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --rc-text: #0F172A;
    --rc-text-secondary: #475569;
    --rc-text-light: #94A3B8;
    --rc-bg: #FFFFFF;
    --rc-surface: #F8FAFC;
    --rc-surface-warm: #FAFAF9;
    --rc-border: #E2E8F0;
    --rc-border-light: #F1F5F9;
    --rc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --rc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --rc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --rc-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    --rc-shadow-button: 0 8px 30px rgba(79, 70, 229, 0.35);
    --rc-radius: 20px;
    --rc-radius-md: 14px;
    --rc-radius-sm: 10px;
    --rc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rc-green: #10B981;
    --rc-green-light: #34D399;
}

/* Reset */
.ringotel-chat-widget,
.ringotel-chat-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ringotel-chat-widget {
    position: fixed;
    bottom: 24px;
    z-index: 999999;
    font-family: var(--rc-font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ringotel-chat-right { right: 24px; }
.ringotel-chat-left { left: 24px; }

/* ═══════════════════════════════════════
   FLOATING BUTTON
   ═══════════════════════════════════════ */

.ringotel-chat-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rc-gradient);
    border: none;
    cursor: pointer;
    box-shadow: var(--rc-shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    outline: none;
}

.ringotel-chat-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--rc-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(14px);
}

.ringotel-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 36px rgba(79, 70, 229, 0.5);
}

.ringotel-chat-button:hover::before { opacity: 0.5; }
.ringotel-chat-button:active { transform: scale(0.94); }

.ringotel-chat-button svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.ringotel-chat-icon { display: block; }
.ringotel-chat-close-icon { display: none; }

.ringotel-chat-button.ringotel-chat-open .ringotel-chat-icon { display: none; }
.ringotel-chat-button.ringotel-chat-open .ringotel-chat-close-icon {
    display: block;
    animation: rcSpinIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rcSpinIn {
    from { transform: rotate(-90deg) scale(0.5); opacity: 0; }
    to { transform: rotate(0deg) scale(1); opacity: 1; }
}

.ringotel-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2.5px solid white;
    animation: rcBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rcBadgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ═══════════════════════════════════════
   CHAT WINDOW
   ═══════════════════════════════════════ */

.ringotel-chat-window {
    position: absolute;
    bottom: 80px;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 640px;
    max-height: calc(100vh - 120px);
    background: var(--rc-bg);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.ringotel-chat-window.ringotel-chat-window-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ringotel-chat-right .ringotel-chat-window { right: 0; }
.ringotel-chat-left .ringotel-chat-window { left: 0; }

/* ═══════════════════════════════════════
   HEADER — Tall, centered, premium
   ═══════════════════════════════════════ */

.ringotel-chat-header {
    background: var(--rc-gradient);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.ringotel-chat-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 0%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 100%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ringotel-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* Top bar: title + minimize */
.ringotel-chat-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 0;
    position: relative;
}

.ringotel-chat-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.95;
}

.ringotel-chat-minimize {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.ringotel-chat-minimize:hover { background: rgba(255, 255, 255, 0.22); }
.ringotel-chat-minimize svg { width: 16px; height: 16px; }

/* Profile section: avatar centered */
.ringotel-chat-header-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 20px;
    position: relative;
}

.ringotel-chat-header-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ringotel-chat-header-avatar svg {
    width: 28px;
    height: 28px;
    color: white;
    opacity: 0.9;
}

.ringotel-chat-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ringotel-chat-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rc-green);
    border: 2.5px solid rgba(79, 70, 229, 0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: rcOnlinePulse 2.5s ease-in-out infinite;
}

@keyframes rcOnlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

.ringotel-chat-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    gap: 3px;
}

.ringotel-chat-agent-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ringotel-chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
}

.ringotel-chat-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--rc-green-light);
}

/* ═══════════════════════════════════════
   PRE-CHAT FORM
   ═══════════════════════════════════════ */

.ringotel-prechat-form {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--rc-bg);
    padding: 28px 24px;
    animation: rcFadeUp 0.4s ease;
    overflow-y: auto;
}

@keyframes rcFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ringotel-prechat-content {
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.ringotel-prechat-icon {
    margin-bottom: 14px;
}

.ringotel-prechat-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--rc-primary-light);
    opacity: 0.7;
}

.ringotel-prechat-heading {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--rc-text);
    letter-spacing: -0.02em;
}

.ringotel-prechat-description {
    margin: 0 0 22px 0;
    font-size: 13.5px;
    color: var(--rc-text-secondary);
    line-height: 1.55;
}

.ringotel-prechat-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.ringotel-prechat-field { text-align: left; }

.ringotel-prechat-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rc-text);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.ringotel-prechat-field .required { color: #EF4444; margin-left: 2px; }
.ringotel-prechat-field .optional { color: var(--rc-text-light); font-weight: 400; font-size: 11.5px; }

.ringotel-prechat-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    font-size: 14px;
    font-family: var(--rc-font);
    color: var(--rc-text);
    background: var(--rc-surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ringotel-prechat-input::placeholder { color: #94A3B8; }

.ringotel-prechat-input:focus {
    border-color: var(--rc-primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--rc-bg);
}

.ringotel-prechat-input.ringotel-input-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: rcShake 0.4s ease;
}

@keyframes rcShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

.ringotel-prechat-button {
    width: 100%;
    padding: 12px 24px;
    background: var(--rc-gradient);
    color: white;
    border: none;
    border-radius: var(--rc-radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--rc-font);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.25);
}

.ringotel-prechat-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
    filter: brightness(1.05);
}

.ringotel-prechat-button:active { transform: translateY(0) scale(0.98); }
.ringotel-prechat-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ringotel-prechat-privacy {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--rc-text-light);
    text-align: center;
}

.ringotel-prechat-privacy a {
    color: var(--rc-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.ringotel-prechat-privacy a:hover {
    color: var(--rc-primary);
}

/* ═══════════════════════════════════════
   MESSAGES AREA
   ═══════════════════════════════════════ */

.ringotel-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 12px;
    background: var(--rc-bg);
    scroll-behavior: smooth;
}

/* Subtle top fade so messages feel like they scroll under the header */
.ringotel-chat-messages::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    height: 12px;
    margin: -20px -16px 8px;
    background: linear-gradient(to bottom, var(--rc-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Scrollbar */
.ringotel-chat-messages::-webkit-scrollbar { width: 4px; }
.ringotel-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ringotel-chat-messages::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
.ringotel-chat-messages::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Message Bubbles */
.ringotel-chat-message {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    animation: rcMsgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Add spacing between different senders */
.ringotel-chat-message-user + .ringotel-chat-message-agent,
.ringotel-chat-message-agent + .ringotel-chat-message-user,
.ringotel-chat-message-system + .ringotel-chat-message-user,
.ringotel-chat-message-system + .ringotel-chat-message-agent {
    margin-top: 14px;
}

@keyframes rcMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ringotel-chat-message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* Message avatar (inline with agent bubbles) */
.ringotel-chat-message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rc-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--rc-shadow-xs);
}

.ringotel-chat-message-avatar svg {
    width: 15px;
    height: 15px;
    color: white;
}

.ringotel-chat-message-avatar .ringotel-chat-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Bubble content */
.ringotel-chat-message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 78%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.55;
    font-size: 13.5px;
    position: relative;
    letter-spacing: 0.005em;
}

/* Timestamp — always visible but subtle */
.ringotel-chat-message-time {
    font-size: 10.5px;
    color: var(--rc-text-light);
    margin-top: 3px;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ringotel-chat-message:hover .ringotel-chat-message-time { opacity: 1; }

/* User Messages */
.ringotel-chat-message-user { align-items: flex-end; }

.ringotel-chat-message-user .ringotel-chat-message-content {
    background: var(--rc-gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.ringotel-chat-message-user .ringotel-chat-message-time { text-align: right; }

/* Agent Messages */
.ringotel-chat-message-agent { align-items: flex-start; }

.ringotel-chat-message-agent .ringotel-chat-message-content {
    background: var(--rc-surface);
    color: var(--rc-text);
    border: 1px solid var(--rc-border-light);
    border-bottom-left-radius: 6px;
    box-shadow: var(--rc-shadow-xs);
}

/* System Messages */
.ringotel-chat-message-system { align-items: center; margin-top: 10px; margin-bottom: 10px; }

.ringotel-chat-message-system .ringotel-chat-message-content {
    background: var(--rc-primary-subtle);
    color: var(--rc-primary-dark);
    border: none;
    font-size: 12px;
    text-align: center;
    border-radius: 20px;
    padding: 5px 14px;
    max-width: 90%;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   INPUT AREA
   ═══════════════════════════════════════ */

.ringotel-chat-input-area {
    border-top: 1px solid var(--rc-border-light);
    padding: 12px 14px;
    background: var(--rc-bg);
}

.ringotel-chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ringotel-chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--rc-border);
    border-radius: 24px;
    font-size: 13.5px;
    font-family: var(--rc-font);
    color: var(--rc-text);
    background: var(--rc-surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ringotel-chat-input::placeholder { color: #94A3B8; }

.ringotel-chat-input:focus {
    border-color: var(--rc-primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    background: var(--rc-bg);
}

.ringotel-chat-send {
    height: 40px;
    padding: 0 16px;
    border-radius: 24px;
    background: var(--rc-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    font-family: var(--rc-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.ringotel-chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.ringotel-chat-send:active { transform: scale(0.9); }
.ringotel-chat-send svg { width: 17px; height: 17px; }

/* ═══════════════════════════════════════
   END CHAT BUTTON
   ═══════════════════════════════════════ */

.ringotel-end-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 6px;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--rc-border-light);
    border-radius: 8px;
    color: var(--rc-text-light);
    font-size: 11.5px;
    font-family: var(--rc-font);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ringotel-end-chat:hover {
    color: #EF4444;
    border-color: #FECACA;
    background: #FEF2F2;
}

.ringotel-end-chat svg { flex-shrink: 0; }

/* ═══════════════════════════════════════
   TYPING INDICATOR
   ═══════════════════════════════════════ */

.ringotel-typing-wrapper {
    padding: 4px 16px 10px;
    background: var(--rc-bg);
}

.ringotel-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--rc-surface);
    border-radius: 18px;
    border: 1px solid var(--rc-border-light);
    width: fit-content;
    box-shadow: var(--rc-shadow-xs);
}

.ringotel-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--rc-primary-light);
    animation: rcTyping 1.4s ease-in-out infinite;
}

.ringotel-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ringotel-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes rcTyping {
    0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* ═══════════════════════════════════════
   IMAGES & LINKS
   ═══════════════════════════════════════ */

.ringotel-chat-image {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    display: block;
    margin: 4px 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ringotel-chat-image:hover { transform: scale(1.02); opacity: 0.92; }

.ringotel-chat-message-content a { color: inherit; text-decoration: none; }

.ringotel-chat-link {
    text-decoration: underline !important;
    text-underline-offset: 2px;
    word-break: break-all;
    transition: opacity 0.15s ease;
}

.ringotel-chat-link:hover { opacity: 0.8; }
.ringotel-chat-message-user .ringotel-chat-link { color: rgba(255, 255, 255, 0.9) !important; }
.ringotel-chat-message-agent .ringotel-chat-link { color: var(--rc-primary) !important; }

/* ═══════════════════════════════════════
   POWERED BY FOOTER
   ═══════════════════════════════════════ */

.ringotel-chat-powered {
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    color: var(--rc-text-secondary);
    background: var(--rc-bg);
    border-top: 1px solid var(--rc-border);
    letter-spacing: 0.01em;
}

.ringotel-chat-powered a {
    color: var(--rc-primary);
    text-decoration: none;
    font-weight: 600;
}

.ringotel-chat-powered a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   TRANSCRIPT MODAL
   ═══════════════════════════════════════ */

.ringotel-transcript-modal {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--rc-bg);
    padding: 28px 24px;
    animation: rcFadeUp 0.4s ease;
    overflow-y: auto;
}

.ringotel-transcript-content {
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.ringotel-transcript-icon { margin-bottom: 12px; }
.ringotel-transcript-icon svg { stroke: var(--rc-primary-light); opacity: 0.7; }

.ringotel-transcript-heading {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--rc-text);
    letter-spacing: -0.02em;
}

.ringotel-transcript-description {
    margin: 0 0 16px 0;
    font-size: 13.5px;
    color: var(--rc-text-secondary);
    line-height: 1.5;
}

.ringotel-transcript-field { margin-bottom: 10px; }

.ringotel-transcript-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Primary action: close chat / skip transcript */
.ringotel-transcript-skip-btn {
    width: 100%;
    padding: 13px 24px;
    background: var(--rc-gradient);
    color: white;
    border: none;
    border-radius: var(--rc-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--rc-font);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.25);
    margin-bottom: 6px;
}

.ringotel-transcript-skip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
    filter: brightness(1.05);
}

.ringotel-transcript-skip-btn:active { transform: translateY(0) scale(0.98); }

/* Secondary section: optional email transcript */
.ringotel-transcript-email-section {
    border-top: 1px solid var(--rc-border-light);
    margin-top: 14px;
    padding-top: 14px;
    animation: rcFadeUp 0.3s ease;
}

.ringotel-transcript-toggle-link {
    margin: 16px 0 0;
    font-size: 13px;
}

.ringotel-transcript-toggle-link a {
    color: var(--rc-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.ringotel-transcript-toggle-link a:hover {
    color: var(--rc-primary);
}

.ringotel-transcript-or {
    font-size: 12.5px;
    color: var(--rc-text-light);
    margin: 0 0 10px 0;
    font-weight: 500;
}

.ringotel-transcript-send-btn {
    width: 100%;
    padding: 10px 24px;
    background: var(--rc-surface);
    color: var(--rc-text-secondary);
    border: 1.5px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--rc-font);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ringotel-transcript-send-btn:hover {
    color: var(--rc-primary);
    border-color: var(--rc-primary-light);
    background: var(--rc-primary-subtle);
}

.ringotel-transcript-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ringotel-transcript-status {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.ringotel-transcript-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.ringotel-transcript-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ═══════════════════════════════════════
   OFFLINE STATE
   ═══════════════════════════════════════ */

.ringotel-chat-online-dot.ringotel-chat-offline {
    background: #94A3B8;
    animation: none;
    box-shadow: none;
}

.ringotel-chat-status-dot.ringotel-chat-offline {
    background-color: #94A3B8;
}

.ringotel-offline-icon svg {
    stroke: #94A3B8;
}

.ringotel-offline-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 160px;
    font-family: var(--rc-font);
    line-height: 1.55;
}

/* Cloudflare Turnstile widget */
.ringotel-turnstile-field {
    display: flex;
    justify-content: center;
}

.ringotel-turnstile-field .cf-turnstile {
    transform-origin: center;
}

/* Compact Turnstile inside transcript modal */
.ringotel-transcript-email-section .ringotel-turnstile-field .cf-turnstile {
    transform: scale(0.85);
    transform-origin: center;
    margin: -4px 0;
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 480px) {
    .ringotel-chat-widget {
        bottom: 12px;
    }

    .ringotel-chat-right {
        right: 12px !important;
        left: auto !important;
    }

    .ringotel-chat-left {
        left: 12px !important;
        right: auto !important;
    }

    .ringotel-chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        z-index: 9999999;
    }

    .ringotel-chat-button {
        width: 56px;
        height: 56px;
    }

    .ringotel-chat-header { border-radius: 0; }
    .ringotel-prechat-content { max-width: 100%; }
    .ringotel-chat-message-content { max-width: 85%; }
}
