/**
 * Promotional Band Widget Styles
 */

.promotional-band-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    left: 0;
    right: 0;
}

/* When absolute positioning is applied (via enable_overlap),
   ensure full width is maintained */
.promotional-band-wrapper[style*="position: absolute"] {
    width: 100%;
}

.promotional-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Section - Text Content */
.promotional-band-left {
    flex: 1;
    min-width: 0;
}

.promotional-band-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.promotional-band-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Center Section - Countdown */
.promotional-band-center {
    flex: 0 0 auto;
    text-align: center;
}

.countdown-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.countdown-unit {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.countdown-complete-message {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Right Section - Buttons */
.promotional-band-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.promotional-band-button {
    display: block;
    width: 100%;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: none;
}

.promotional-band-button.button-primary {
    border: none;
    box-shadow: 0 2px 8px rgba(40, 204, 148, 0.3);
}

.promotional-band-button.button-secondary {
    border: none;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.promotional-band-button.button-outline {
    background-color: transparent;
    border-width: 2px;
}

.promotional-band-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.promotional-band-button.button-primary:hover {
    box-shadow: 0 6px 16px rgba(33, 105, 82, 0.4);
}

.promotional-band-button.button-secondary:hover {
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.promotional-band-button.button-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 204, 148, 0.3);
}

/* Hidden state for widget */
.promotional-band-wrapper.widget-hidden {
    display: none;
}

/* Animation for countdown completion */
.countdown-complete-message {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Countdown flip animation */
.countdown-number.flip {
    animation: flipNumber 0.6s ease;
}

@keyframes flipNumber {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .promotional-band-inner {
        gap: 20px;
    }

    .promotional-band-title {
        font-size: 20px;
    }

    .promotional-band-subtitle {
        font-size: 13px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-unit {
        font-size: 10px;
    }

    .promotional-band-button {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .promotional-band-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .promotional-band-left {
        width: 100%;
    }

    .promotional-band-center {
        width: 100%;
    }

    .promotional-band-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .promotional-band-title {
        font-size: 18px;
    }

    .countdown-item {
        min-width: 45px;
    }

    .countdown-number {
        font-size: 20px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .promotional-band-button {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .promotional-band-inner {
        gap: 15px;
    }

    .promotional-band-title {
        font-size: 16px;
    }

    .promotional-band-subtitle {
        font-size: 12px;
    }

    .countdown-timer {
        gap: 3px;
    }

    .countdown-item {
        min-width: 40px;
        padding: 8px 10px;
    }

    .countdown-number {
        font-size: 18px;
    }

    .countdown-unit {
        font-size: 9px;
    }

    .promotional-band-button {
        width: 100%;
        min-width: unset;
    }
}

/* RTL Support */
[dir="rtl"] .promotional-band-inner {
    direction: rtl;
}

[dir="rtl"] .countdown-timer {
    direction: ltr;
}

/* Accessibility */
.promotional-band-button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.promotional-band-button:focus:not(:focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {
    .promotional-band-wrapper {
        margin-top: 0 !important;
    }
}

/* Elementor Editor Fixes */
.elementor-editor-active .promotional-band-wrapper {
    pointer-events: auto;
}
