﻿/* ew-calendar.css — subscribe panel for the earnings calendar (see ew-calendar.js). */

.ew-cal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.ew-cal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--surface, #FFFFFF);
    color: var(--text, #050505);
    border: 1px solid var(--border, #D6DCE6);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 26px 26px 22px;
}

.ew-cal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #5B6472);
}

    .ew-cal-close:hover {
        color: var(--text, #050505);
    }

.ew-cal-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.ew-cal-sub {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--text-muted, #5B6472);
    line-height: 1.4;
}

/* Apple one-tap subscribe button — gold, brand-forward. */
.ew-cal-btn.ew-cal-apple {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    background: var(--ew-gold, #DDB785);
    color: var(--ew-dark, #050505);
    margin-bottom: 18px;
}

    .ew-cal-btn.ew-cal-apple:hover {
        filter: brightness(0.96);
    }

.ew-cal-block {
    margin-bottom: 12px;
}

.ew-cal-block-h {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.ew-cal-steps {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #5B6472);
    line-height: 1.4;
}

.ew-cal-url-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.ew-cal-url {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--border, #D6DCE6);
    border-radius: 8px;
    background: var(--surface-alt, #F3F5F9);
    color: var(--text, #050505);
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ew-cal-copy {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--border-strong, #B8C1D1);
    border-radius: 8px;
    background: var(--surface, #FFFFFF);
    color: var(--text, #050505);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

    .ew-cal-copy:hover {
        background: var(--surface-alt, #F3F5F9);
    }
