/* SCH Webinar Countdown – frontend styles */

.sch-countdown-wrap {
    font-family: var(--sch-font, 'Rajdhani', sans-serif);
    max-width: 560px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.sch-countdown-inner {
    background: var(--sch-card-bg, #F7F5F8) !important;
    border: 1px solid rgba(147, 40, 109, 0.18);
    border-top: 3px solid var(--sch-primary, #93286D) !important;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(147, 40, 109, 0.07);
    text-align: center !important;
    max-width: 560px;
    margin: 0 auto !important;
}

/* Label above countdown */
.sch-countdown-label {
    font-size: var(--sch-label-size, 13px);
    font-weight: var(--sch-label-weight, 500);
    font-variant: small-caps;
    text-transform: var(--sch-label-transform, uppercase);
    letter-spacing: 0.12em;
    color: var(--sch-primary, #93286D);
    margin: 0 0 6px;
    line-height: 1.4;
}

/* Webinar title */
.sch-countdown-title {
    font-size: var(--sch-title-size, 20px);
    font-weight: var(--sch-title-weight, 700);
    text-transform: var(--sch-title-transform, none);
    color: var(--sch-digit-color, #1a1a2e);
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Digit row */
.sch-countdown-digits {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sch-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
}

.sch-digit {
    font-family: var(--sch-font, 'Rajdhani', sans-serif);
    font-size: var(--sch-digit-size, 48px);
    font-weight: var(--sch-digit-weight, 700);
    text-transform: var(--sch-digits-transform, none);
    color: var(--sch-digit-color, #1a1a2e);
    line-height: 1;
}

.sch-unit {
    font-size: var(--sch-unit-size, 11px);
    font-weight: var(--sch-unit-weight, 400);
    text-transform: var(--sch-unit-transform, uppercase);
    letter-spacing: 0.1em;
    color: #888888;
    margin-top: 4px;
}

.sch-colon {
    font-family: var(--sch-font, 'Rajdhani', sans-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--sch-secondary, #D94770);
    line-height: 1;
    padding-top: 4px;
    user-select: none;
}

/* Webinar date & time — filled by countdown.js in the visitor's own locale and
   timezone. Static information: rendered in every phase and never hidden. */
.sch-countdown-date {
    font-family: var(--sch-font, 'Rajdhani', sans-serif);
    font-size: var(--sch-date-size, 14px);
    font-weight: var(--sch-date-weight, 500);
    text-transform: var(--sch-date-transform, none);
    color: var(--sch-date-color, #1a1a2e);
    opacity: 0.75;
    margin: 0 0 18px;
    line-height: 1.4;
}

/* Before JS runs (or if no timestamp) the element is empty — collapse it so it
   leaves no gap. */
.sch-countdown-date:empty {
    display: none;
}

/* Live indicator */
.sch-live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sch-pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sch-secondary, #D94770);
    flex-shrink: 0;
    animation: sch-pulse 1.4s ease-in-out infinite;
}

@keyframes sch-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.sch-live-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--sch-secondary, #D94770);
}

/* Ended message */
.sch-ended-msg {
    font-size: 14px;
    color: #888888;
    font-style: italic;
    margin: 0;
    padding: 4px 0;
}

/* Join button */
.sch-join-btn {
    display: inline-block;
    background: var(--sch-btn-bg, #93286D);
    color: var(--sch-btn-color, #ffffff) !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--sch-font, 'Rajdhani', sans-serif);
    font-weight: var(--sch-btn-weight, 600);
    font-size: var(--sch-btn-size, 15px);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 4px;
}

.sch-join-btn:hover,
.sch-join-btn:focus {
    background: var(--sch-btn-hover, #D94770);
    color: var(--sch-btn-color, #ffffff) !important;
    outline: none;
}

.sch-join-btn-wrap {
    text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
    .sch-join-btn {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .sch-digit {
        font-size: clamp(28px, var(--sch-digit-size, 48px), var(--sch-digit-size, 48px));
    }

    .sch-colon {
        font-size: 30px;
        padding-top: 2px;
    }

    .sch-segment {
        min-width: 50px;
    }
}
