/* Store Notice Styles */
.store-notice {
    position: fixed;
    top: 350px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #D80000 !important;
    color: #FFFFFF !important;
    padding: 20px 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 999999 !important; /* Increased z-index to be above everything */
    max-width: 600px !important;
    width: 90% !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    animation: slideDown 0.5s ease !important;
    margin: 0 auto !important;
    pointer-events: auto !important;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .store-notice {
    top: 382px !important; /* 350px + 32px admin bar height */
}

/* Ensure it's above everything including navbars */
.store-notice,
#store-notice {
    z-index: 999999 !important;
}

.store-notice-content {
    line-height: 1.6 !important;
}

.store-notice-content b {
    font-weight: bold !important;
    font-size: 1.1em !important;
}

.understand-btn {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 10px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

.understand-btn:hover {
    background: #333333 !important;
    transform: scale(1.05) !important;
}

.understand-btn:active {
    transform: scale(0.95) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .store-notice {
        top: 300px !important;
        padding: 15px 20px !important;
        max-width: 95% !important;
        width: 92% !important;
    }
    
    .admin-bar .store-notice {
        top: 328px !important;
    }
    
    .store-notice-content {
        font-size: 14px !important;
    }
    
    .understand-btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .store-notice {
        top: 250px !important;
        padding: 12px 15px !important;
        max-width: 98% !important;
        width: 94% !important;
    }
    
    .admin-bar .store-notice {
        top: 278px !important;
    }
    
    .store-notice-content {
        font-size: 13px !important;
    }
    
    .understand-btn {
        padding: 6px 15px !important;
        font-size: 13px !important;
    }
}

/* For larger screens, ensure it stays centered */
@media (min-width: 1200px) {
    .store-notice {
        max-width: 700px !important;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}