/*
 * Coming Soon & Maintenance by Colorlib — shared front-end styles.
 * Replaces the former Font Awesome / Material icon-font CDNs.
 */

/* Inline SVG icons (output by ccsm_icon()). Inherit color + scale with font-size. */
.ccsm-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex: none;
}

/*
 * Countdown digits for templates that ship an empty .cd100 container
 * (formerly rendered by the jQuery FlipClock plugin). Colors are inherited
 * so the digits adapt to each template's text color.
 */
.ccsm-cd {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ccsm-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 78px;
}

.ccsm-cd-num {
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
}

.ccsm-cd-label {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/*
 * Keyboard focus. The per-template resets used to remove every focus outline
 * and substitute nothing, so keyboard users could not see where they were.
 * :focus-visible keeps mouse clicks visually unchanged.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Fallback for engines without :focus-visible. */
@supports not selector(:focus-visible) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus {
        outline: 3px solid #1a73e8;
        outline-offset: 2px;
    }
}

/* Visually hidden, still announced. Used for form labels and status text. */
.ccsm-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Inline validation message, announced via role="alert". */
.ccsm-field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #d63638;
}

.ccsm-input-invalid {
    box-shadow: inset 0 0 0 2px #d63638;
}

/*
 * Respect a reduced-motion preference: disables the tilt transform, the
 * slideshow cross-fade and the templates' trans-04 transitions.
 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .js-tilt {
        transform: none !important;
    }
}
