/* WP Foto Vote - "Soft cards" countdown. Override any --fv-timer-* variable to restyle. */
.fv-timer-soft {
    --fv-timer-card-bg: var(--fotov-design-timer-bg, #ffffff);
    --fv-timer-card-shadow: var(--fotov-design-timer-shadow, 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .05));
    --fv-timer-card-border: rgba(15, 23, 42, .05);
    --fv-timer-text: var(--fotov-design-timer-text, #0f172a);
    --fv-timer-label: var(--fotov-design-timer-label, #64748b);
    --fv-timer-accent: var(--fotov-design-timer-accent, #ef4444);

    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 20px;
    padding: 4px 4px 14px;
    text-align: center;
    color: var(--fv-timer-text);
}
.fv-timer-soft *,
.fv-timer-soft *::before,
.fv-timer-soft *::after { box-sizing: border-box; }
.fv-timer-soft [hidden] { display: none !important; }

.fv-timer-soft .fv-timer-soft__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fv-timer-label);
}

.fv-timer-soft__blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 1.6vw, 8px);
}
.fv-timer-soft__block {
    flex: 1 1 0;
    min-width: 0;
    max-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px;
    border-radius: var(--fotov-design-timer-radius, 12px);
    border: 1px solid var(--fv-timer-card-border);
    background: var(--fv-timer-card-bg);
    box-shadow: var(--fv-timer-card-shadow);
}
.fv-timer-soft__val {
    font-size: clamp(18px, 6vw, 26px);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--fv-timer-text);
}
.fv-timer-soft__val.is-wide { font-size: clamp(14px, 4.6vw, 20px); }
.fv-timer-soft__block.is-seconds .fv-timer-soft__val { color: var(--fv-timer-accent); }
.fv-timer-soft__label {
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(8px, 2.5vw, 11px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--fv-timer-label);
}
.fv-timer-soft__sep {
    flex: 0 0 auto;
    padding-bottom: 16px;
    font-size: clamp(16px, 5vw, 24px);
    font-weight: 600;
    color: var(--fv-timer-label);
    animation: fv-timer-soft-pulse 1s infinite;
}
@keyframes fv-timer-soft-pulse {
    0%, 100% { opacity: .9; }
    50% { opacity: .25; }
}

/* Ended / started: one soft card with a flag and a message. */
.fv-timer-soft__done {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 14px 22px;
    border-radius: calc(var(--fotov-design-timer-radius, 12px) + 2px);
    border: 1px solid var(--fv-timer-card-border);
    background: var(--fv-timer-card-bg);
    box-shadow: var(--fv-timer-card-shadow);
    text-align: left;
}
.fv-timer-soft__done-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--fv-timer-accent);
}
.fv-timer-soft__done-icon svg { width: 22px; height: 22px; }
.fv-timer-soft__done-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--fv-timer-text);
}

.fv-timer-soft__sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .fv-timer-soft__sep { animation: none; }
}
