/* WooCommerce Dynamic Promo Messages Styles */
.wc-dynamic-promo-container {
    margin: 15px 0;
    position: relative;
    z-index: 5;
}

.promo-message {
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Hidden by default */
    display: none;
}

.promo-message::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: promoShimmer 4s infinite;
    pointer-events: none;
}

@keyframes promoShimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Active state - fully visible */
.promo-message.active {
    display: block !important;
}

/* Force display when style attribute is used */
.promo-message[style*="display: block"] {
    display: block !important;
}

.promo-message[style*="display: none"] {
    display: none !important;
}

.promo-message-content {
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1.6;
}

.promo-message-content p {
    margin: 0;
    padding: 0;
}

.promo-message-content strong {
    font-weight: 700;
}

.promo-message-content em {
    font-style: italic;
}

/* Integration with pricing options */
.wc-dynamic-pricing-container + .wc-dynamic-promo-container {
    margin-top: 20px;
}

.wc-dynamic-promo-container + .wc-dynamic-pricing-container {
    margin-top: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .promo-message {
        padding: 15px;
        border-radius: 8px;
    }
    
    .promo-message-content {
        font-size: 14px;
    }
}

/* Special effects for emphasis */
.promo-message-content ul,
.promo-message-content ol {
    text-align: left;
    margin: 10px 0;
    padding-left: 20px;
}

.promo-message-content li {
    margin: 5px 0;
}

.promo-message-content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.promo-message-content a:hover {
    text-decoration: none;
    opacity: 0.8;
}