/* WooPromo Styles v3.0.0 */
:root {
    --woopromo-bg: #ffffff;
    --woopromo-text: #1a1a1a;
    --woopromo-text-secondary: #666666;
    --woopromo-btn: #7c3aed;
    --woopromo-btn-text: #ffffff;
    --woopromo-card-bg: #f5f3ff;
}

@keyframes woopromo-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes woopromo-slideIn {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

#woopromo-overlay,
#woopromo-overlay *,
#woopromo-overlay *::before,
#woopromo-overlay *::after {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    float: none !important;
    clear: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    list-style: none !important;
    background-image: none !important;
    min-height: 0 !important;
    max-height: none !important;
    min-width: 0 !important;
}

#woopromo-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: var(--woopromo-text, #1a1a1a) !important;
    -webkit-font-smoothing: antialiased !important;
}

#woopromo-overlay.woopromo-visible {
    display: flex !important;
    animation: woopromo-fadeIn 0.3s ease !important;
}

#woopromo-overlay #woopromo-popup {
    background: var(--woopromo-bg, #ffffff) !important;
    border-radius: 20px !important;
    padding: 36px 32px 28px !important;
    max-width: 400px !important;
    width: 100% !important;
    position: relative !important;
    text-align: center !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    animation: woopromo-slideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
    overflow: visible !important;
}

#woopromo-overlay #woopromo-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: transparent !important;
    cursor: pointer !important;
    color: var(--woopromo-text, #1a1a1a) !important;
    opacity: 0.35 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: opacity 0.2s, background 0.2s !important;
}
#woopromo-overlay #woopromo-close:hover {
    opacity: 0.7 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
#woopromo-overlay #woopromo-close svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

#woopromo-overlay .woopromo-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}

#woopromo-overlay .woopromo-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: var(--woopromo-btn, #7c3aed) !important;
    color: var(--woopromo-btn-text, #ffffff) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
}
#woopromo-overlay .woopromo-badge svg {
    width: 14px !important;
    height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

#woopromo-overlay .woopromo-auto-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #16a34a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
#woopromo-overlay .woopromo-auto-info svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

#woopromo-overlay #woopromo-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--woopromo-text, #1a1a1a) !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    text-align: center !important;
}

#woopromo-overlay #woopromo-message {
    color: var(--woopromo-text, #1a1a1a) !important;
    opacity: 0.55 !important;
    font-size: 14px !important;
    margin: 0 0 24px !important;
    line-height: 1.5 !important;
    padding: 0 8px !important;
    text-align: center !important;
}

#woopromo-overlay #woopromo-product {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    border: 1px solid var(--woopromo-border, rgba(0,0,0,0.08)) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin: 0 0 24px !important;
    text-align: left !important;
    background: transparent !important;
}

#woopromo-overlay .woopromo-product-img-wrap {
    flex-shrink: 0 !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(0,0,0,0.03) !important;
}

#woopromo-overlay #woopromo-product-image {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
}

#woopromo-overlay .woopromo-product-details {
    flex: 1 !important;
    min-width: 0 !important;
}

#woopromo-overlay .woopromo-product-details h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
    color: var(--woopromo-text, #1a1a1a) !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#woopromo-overlay .woopromo-prices {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

#woopromo-overlay .woopromo-new-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--woopromo-btn, #7c3aed) !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

#woopromo-overlay .woopromo-old-price {
    font-size: 13px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

#woopromo-overlay .woopromo-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
}

#woopromo-overlay .woopromo-add-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    background: var(--woopromo-btn, #7c3aed) !important;
    color: var(--woopromo-btn-text, #ffffff) !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    display: block !important;
    text-decoration: none !important;
}
#woopromo-overlay .woopromo-add-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    filter: brightness(1.05) !important;
}
#woopromo-overlay .woopromo-add-btn:active {
    transform: translateY(0) !important;
}

#woopromo-overlay .woopromo-remove-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    background: transparent !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    display: none !important;
    text-align: center !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
#woopromo-overlay .woopromo-remove-btn.woopromo-visible {
    display: block !important;
}
#woopromo-overlay .woopromo-remove-btn:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

#woopromo-overlay .woopromo-old-price.woopromo-hidden {
    display: none !important;
}

#woopromo-overlay .woopromo-auto-info.woopromo-hidden {
    display: none !important;
}

#woopromo-overlay .woopromo-product-img-wrap.woopromo-hidden {
    display: none !important;
}

#woopromo-overlay .woopromo-skip-btn {
    background: none !important;
    color: var(--woopromo-text, #1a1a1a) !important;
    opacity: 0.4 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 10px 16px !important;
    transition: opacity 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
#woopromo-overlay .woopromo-skip-btn svg {
    width: 14px !important;
    height: 14px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
#woopromo-overlay .woopromo-skip-btn:hover {
    opacity: 0.7 !important;
}

@media (max-width: 480px) {
    #woopromo-overlay #woopromo-popup {
        padding: 28px 20px 22px !important;
        border-radius: 16px !important;
    }
    #woopromo-overlay #woopromo-title {
        font-size: 20px !important;
    }
}
