/**
 * Stylesheet for 'Cuenta regresiva' Plugin
 * Designed by Media Tools
 */

/* Main Container */
.cr-countdown-container {
    margin: 20px 0;
    padding: 10px 0;
    font-family: inherit;
}

/* Urgency Title */
.cr-countdown-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cr-label-color, #777777);
    margin-bottom: 10px;
}

/* Timer Wrapper */
.cr-countdown-timer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Base Block style */
.cr-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 55px;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Numbers styling */
.cr-countdown-num {
    font-size: var(--cr-num-font-size, 18px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cr-text-color, #333333);
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Labels styling */
.cr-countdown-lbl {
    font-size: var(--cr-lbl-font-size, 11px);
    font-weight: 500;
    text-transform: capitalize;
    color: var(--cr-label-color, #777777);
    margin-top: 3px;
    line-height: 1;
}

/* --- Skins --- */

/* 1. Square Ghost (Minimalist thin border outline) */
.cr-skin-ghost .cr-countdown-block {
    background-color: transparent;
    border: 1px solid var(--cr-border-color, #cccccc);
}

/* 2. Glassmorphism (Translúcido / Frosty glass effect) */
.cr-skin-glass .cr-countdown-block {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
/* For dark page background fallback */
.cr-skin-glass {
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    display: inline-block;
}

/* 3. Modern Gradient (Borde de gradiente moderno) */
.cr-skin-gradient .cr-countdown-block {
    border: 2px solid transparent;
    background: linear-gradient(var(--cr-bg-color, #ffffff), var(--cr-bg-color, #ffffff)) padding-box,
                linear-gradient(135deg, #007cba, #00d4ff) border-box;
    box-shadow: 0 4px 10px rgba(0, 124, 186, 0.08);
}

/* 4. Premium Highlight (Sólido y destacado) */
.cr-skin-highlight .cr-countdown-block {
    background-color: var(--cr-bg-color, #f5f5f7);
    border: 1px solid var(--cr-border-color, #e5e5ea);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.cr-skin-highlight .cr-countdown-num {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Expiry message styling */
.cr-countdown-expiry-message {
    font-size: 14px;
    font-weight: 600;
    color: #d94f4f;
    padding: 10px 15px;
    background-color: #fff1f1;
    border-left: 4px solid #d94f4f;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .cr-countdown-block {
        min-width: 48px;
        padding: 6px 8px;
    }
}
