/* Delivery Countdown Styles */
.delivery-countdown-wrapper {
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: center;
    margin: 1em;
    padding: 15px 20px;
    background: #27ae60;
    color: #fff;
        }
}

/* Animation keyframes for urgent countdown */
@keyframes countdownPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}600;
    border-radius: .5em;
    border: none;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    line-height: 1.4;
}

/* Override all nested elements to ensure white text */
.delivery-countdown-wrapper * {
    color: #fff;
}

.deadline-info {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.delivery-info {
    font-size: 1.4em;
    font-variant: small-caps;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.quicker-option,
.selected-quickest,
.promotion-message {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    margin: 8px 0;
}

.faster-delivery-title {
    font-size: 1.8em;
    font-weight: 400;
}

.quicker-option {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    margin: 8px 0;
    padding: 8px 0;
}

.selected-quickest {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    margin: 8px 0;
    padding: 8px 0;
}

.promotion-message {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    margin: 8px 0;
    padding: 8px 0;
}

.delivery-countdown-timer {
    display: inline-block;
    margin: 0 auto;
    padding: .5em 1em;
    font-size: 1.4em;
    border-radius: .5em;
    background-color: #fff;
    color: #27ae60;
    font-weight: 800;
}

.delivery-countdown-timer span.delivery-countdown {
    color: #27ae60;
    animation: deadlinePulse 1.5s ease-in-out infinite;
}

@keyframes deadlinePulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

.phone-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted #fff;
}

.phone-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.delivery-countdown {
    font-weight: 700;
    color: #fff;
    font-size: 1em;
    display: inline;
}

.delivery-date {
    font-weight: 700;
    color: #fff;
    font-size: 1em;
    display: inline;
}

.delivery-countdown.countdown-urgent {
    color: #e74c3c;
    font-weight: 700;
    animation: countdownPulse 2s infinite;
}

/* Styling for XStore delivery elements */
.et-estimated-delivery .delivery-countdown,
.delivery-date .delivery-countdown {
    padding: 2px 6px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

/* Styling for WooCommerce product options plugin */
.woosppo_main_parent_divv .delivery-countdown,
.plugify_expo_sty_div .delivery-countdown {
    display: block;
    font-size: 0.9em;
    margin-bottom: 4px;
    color: #fff;
    margin-left: 0;
    padding: 2px 4px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 2px;
    text-align: center;
}

.plugify_expo_sty_div .delivery-countdown-wrapper {
    margin: 1em 0;
}

.plugify_expo_sty_div .delivery-countdown-wrapper .delivery-info {
    font-size: 1em;
}

.plugify_expo_sty_div .delivery-countdown {
    font-size: 1em !important;
    font-weight: 600;
    color: #27ae60;
    background-color: #fff;
    padding: .5em;
    border-radius: .5em;
    margin: 0.5em 0;
    text-align: center;
}

/* Disable background pulsing for urgent countdown in plugify - only animate text color */
.plugify_expo_sty_div .delivery-countdown.countdown-urgent {
    animation: none !important;
    background-color: #fff !important;
    color: #e74c3c;
    font-weight: 700;
    animation: plugifyTextPulse 2s infinite;
}

@keyframes plugifyTextPulse {
    0% { 
        color: #e74c3c;
        transform: scale(1);
    }
    50% { 
        color: #c0392b;
        transform: scale(1.05);
    }
    100% { 
        color: #e74c3c;
        transform: scale(1);
    }
}

/* Hide promotion messages for non-quickest options in plugify */
.plugify_expo_sty_div .quicker-option,
.plugify_expo_sty_div .promotion-message {
    display: none;
}

/* Radio button labels with countdown */
label .delivery-countdown {
    font-size: 0.75em;
    margin-top: 2px;
    width: 100%;
    text-align: center;
}

/* Specific override for border-bottun labels */
label.border-bottun .delivery-countdown {
    font-size: 0.75em;
}

/* Responsive design */
@media (max-width: 768px) {
    .delivery-countdown {
        font-size: 0.8em;
    }
    
    .woosppo_main_parent_divv .delivery-countdown,
    .plugify_expo_sty_div .delivery-countdown {
        font-size: 0.75em;
    }
    
    label .delivery-countdown {
        font-size: 0.7em;
    }
    
    .delivery-banner-countdown {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 10px 0;
        order: -1;
        min-width: auto;
        width: 100%;
    }
    
    .banner-countdown-timer {
        font-size: 16px;
    }
    
    .countdown-number {
        font-size: 18px;
    }
    
    .dropdown-countdown-timer {
        font-size: 13px;
    }
    
    .dropdown-time-number {
        font-size: 14px;
    }
}

/* Animation for urgent countdown */
.delivery-countdown.countdown-urgent {
    animation: countdownPulse 2s infinite;
}

@keyframes countdownPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Dropdown countdown styles */
.dropdown-countdown-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
}

.dropdown-countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #61ce70;
    font-weight: bold;
    font-size: 14px;
}

.dropdown-deadline-label {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

.dropdown-timer {
    display: flex;
    align-items: center;
    gap: 2px;
}

.dropdown-countdown-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.dropdown-time-number {
    font-size: 1.6rem;
    font-weight: bold;
    color: #61ce70;
}

.dropdown-time-label {
    font-size: 1.4rem;
    color: #666;
    margin-right: 3px;
}

.dropdown-time-separator {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin: 0 1px;
}

/* Dropdown countdown styles */
.dropdown-countdown-container {
    margin-top: 10px;
    padding: 8px;
    background: rgba(39, 174, 96, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.dropdown-countdown-timer {
    font-size: 0.9em;
}

.dropdown-countdown-timer .deadline-info {
    margin-bottom: 4px;
}

.dropdown-countdown-timer .delivery-info {
    margin-bottom: 0;
}

/* Banner countdown styles - New simplified design */
.delivery-countdown-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.webifySEO-banner-content {
    background: linear-gradient(135deg, #61ce70, #4fb85f);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.banner-left {
    flex: 1;
    text-align: left;
}

.banner-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.9;
    text-transform: uppercase;
}

.banner-date {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

.banner-right {
    flex: 1;
    text-align: right;
}

.banner-action {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.9;
}

.banner-phone {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

/* Banner responsive design */
@media (max-width: 768px) {
    .delivery-countdown-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .webifySEO-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .banner-left,
    .banner-right {
        flex: none;
        text-align: center;
    }
    
    .banner-date {
        font-size: 16px;
    }
}
