/* Common structural styles for all themes */
/* Hide promo bar by default - will be shown via JS after checking conditions */
.cualli-promotion-bar {
    display: none;
}

/* Rest of your existing styles... */
.cualli-promotion-bar {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cualli-promotion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cualli-promotion-text {
    flex: 1;
    min-width: 250px;
}

.cualli-promotion-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.cualli-promotion-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

.cualli-countdown-container {
    display: flex;
    gap: 10px;
}

.cualli-countdown-item {
    border-radius: 8px;
    padding: 8px 5px;
    min-width: 50px;
    text-align: center;
}

.cualli-countdown-number {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.cualli-countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.cualli-promotion-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cualli-coupon-code {
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cualli-buy-now-btn {
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.cualli-buy-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.cualli-buy-now-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .cualli-promotion-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        padding: 12px 15px;
    }
    
    .cualli-promotion-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cualli-countdown-container {
        justify-content: center;
        order: 2;
    }
    
    .cualli-promotion-actions {
        justify-content: center;
        order: 1;
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }
    
    .cualli-promotion-text {
        order: 3;
        min-width: 100%;
    }
    
    .cualli-coupon-code,
    .cualli-buy-now-btn {
        width: auto;
        flex: 0 0 auto;
        text-align: center;
    }
    
    .cualli-promotion-actions {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .cualli-coupon-code {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .cualli-buy-now-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) {
    .cualli-promotion-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        padding: 10px 20px;
    }
    
    .cualli-promotion-actions {
        flex-wrap: nowrap;
    }
}

/* Admin bar adjustment */
.admin-bar .cualli-promotion-bar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .cualli-promotion-bar {
        top: auto;
    }
}

/* Animation for button hover effects */
@media (hover: hover) {
    .cualli-buy-now-btn {
        transition: all 0.3s ease;
    }
}

/* Very small mobile devices (phones under 400px) */
@media (max-width: 400px) {
    .cualli-promotion-actions {
        gap: 8px;
    }
    
    .cualli-coupon-code {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .cualli-buy-now-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    /* Reduce padding on the promotion bar for very small screens */
    .cualli-promotion-bar {
        padding: 10px 12px;
    }
}

/* Close button styles */
.cualli-close-button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1031;
}

.cualli-close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.cualli-close-icon {
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    margin-top: -1px;
}

/* Mobile close button adjustments */
@media (max-width: 767.98px) {
    .cualli-close-button {
        top: 10px;
        right: 10px;
        transform: none;
    }
    
    .cualli-close-button:hover {
        transform: scale(1.1);
    }
}
