/* assets/css/timer-widget.css */

.etw-wrapper {
    box-sizing: border-box;
    width: 100%;
}

.etw-wrapper *,
.etw-wrapper *::before,
.etw-wrapper *::after {
    box-sizing: inherit;
}

.etw-title {
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.5em;
    line-height: 1.3;
}

.etw-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.etw-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.etw-number {
    display: block;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s ease;
}

.etw-label {
    display: block;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.etw-separator {
    display: flex;
    align-items: center;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    padding-bottom: 1em;
}

.etw-expired-message {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    padding: 10px;
}

/* Flip animation */
@keyframes etw-flip {
    0%   { transform: translateY(0);     opacity: 1; }
    50%  { transform: translateY(-8px);  opacity: 0.4; }
    100% { transform: translateY(0);     opacity: 1; }
}

.etw-number.etw-updated {
    animation: etw-flip 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 480px) {
    .etw-items {
        gap: 8px !important;
    }

    .etw-item {
        min-width: 60px !important;
    }

    .etw-separator {
        font-size: 24px !important;
    }
}
