/* ================================================
   ZSQUARE Business Hours PRO — style.css
   Matches Taj Notary hours widget design
   ================================================ */

/* ── Card ────────────────────────────────────── */
.zsq-hours-card {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Header row ──────────────────────────────── */
.zsq-hours-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

/* ── Status block ────────────────────────────── */
.zsq-status-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zsq-status-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 2px;
}

.zsq-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pulsing dot */
.zsq-status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: zsq-pulse 2s infinite;
}

.zsq-status-dot.is-open   { background-color: #15803D; }
.zsq-status-dot.is-closed { background-color: #c8102e; }

@keyframes zsq-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.zsq-status-text {
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    font-family: Georgia, serif;
}

.zsq-status-text.is-open   { color: #15803D; }
.zsq-status-text.is-closed { color: #c8102e; }

/* ── Clock block ─────────────────────────────── */
.zsq-clock-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: right;
    flex-shrink: 0;
}

.zsq-clock-icon {
    color: #9CA3AF;
    margin-top: 3px;
    flex-shrink: 0;
    line-height: 1;
}

.zsq-clock-icon svg {
    display: block;
}

.zsq-clock-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.zsq-clock-time {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.zsq-clock-date {
    font-size: 11px;
    color: #6B7280;
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin-top: 2px;
}

/* ── Hours list ──────────────────────────────── */
.zsq-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Day row ─────────────────────────────────── */
.zsq-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F3F4F6;
    border-radius: 10px;
    padding: 14px 20px;
    transition: background-color 0.2s ease;
}

.zsq-day-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zsq-day-name {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

/* ── TODAY badge ─────────────────────────────── */
.zsq-today-badge {
    display: none; /* shown by JS */
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #ffffff;
    color: #c8102e;
    border-radius: 4px;
    padding: 2px 8px;
    line-height: 1.6;
}

/* ── Hours / Closed text ─────────────────────── */
.zsq-day-hours {
    font-size: 15px;
    font-weight: 400;
    color: #111827;
}

.zsq-day-hours.is-closed {
    color: #c8102e;
    font-weight: 500;
}

/* ── Today row ───────────────────────────────── */
.zsq-day-row.is-today {
    background-color: #c8102e;
}

.zsq-day-row.is-today .zsq-day-name {
    color: #ffffff;
    font-weight: 700;
}

.zsq-day-row.is-today .zsq-day-hours {
    color: #ffffff;
    font-weight: 600;
}

.zsq-day-row.is-today .zsq-today-badge {
    background-color: #ffffff;
    color: #c8102e;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 500px) {
    .zsq-hours-header {
        flex-direction: column;
        gap: 12px;
    }
    .zsq-clock-block {
        text-align: left;
    }
    .zsq-clock-text {
        align-items: flex-start;
    }
    .zsq-clock-time {
        font-size: 18px;
    }
    .zsq-status-text {
        font-size: 22px;
    }
    .zsq-hours-card {
        padding: 20px 16px;
    }
}
