/* WooCommerce Store Notice Styling for Attribution Banner */
.woocommerce-store-notice.demo_store {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: linear-gradient(90deg, #ed3439 0%, #c72a2e 100%) !important;
    color: #1a1a1a !important;
    text-align: center !important;
    padding: 20px 20px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.6 !important;
    box-shadow: 0 4px 12px rgba(237, 52, 57, 0.4) !important;
    margin: 0 !important;
    border: none !important;
}

/* Enhanced banner structure */
.woocommerce-store-notice .eg-banner-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.woocommerce-store-notice .eg-banner-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.woocommerce-store-notice .eg-banner-text {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.woocommerce-store-notice .eg-share-link {
    background: transparent !important;
    border: none !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    text-decoration: underline !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: opacity 0.2s ease !important;
}

.woocommerce-store-notice .eg-share-link:hover {
    opacity: 0.85 !important;
}

.woocommerce-store-notice .eg-share-text {
    color: #1a1a1a !important;
}

.woocommerce-store-notice.demo_store a {
    color: #1a1a1a !important;
    text-decoration: underline !important;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
    color: #1a1a1a !important;
    opacity: 0.8 !important;
    text-decoration: none !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link:hover {
    opacity: 1 !important;
}

/* Ensure admin bar doesn't overlap */
body.admin-bar .woocommerce-store-notice.demo_store {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .woocommerce-store-notice.demo_store {
        top: 46px !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .woocommerce-store-notice.demo_store {
        font-size: 15px !important;
        padding: 16px 15px !important;
    }
    
    .woocommerce-store-notice .eg-banner-text {
        font-size: 15px !important;
    }
    
    .woocommerce-store-notice .eg-share-link {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-store-notice.demo_store {
        font-size: 14px !important;
        padding: 14px 12px !important;
        line-height: 1.5 !important;
    }
    
    .woocommerce-store-notice .eg-banner-text {
        font-size: 14px !important;
    }
    
    .woocommerce-store-notice .eg-share-link {
        font-size: 13px !important;
    }
    
    .woocommerce-store-notice .eg-banner-content {
        gap: 8px !important;
    }
}

/* Admin page styles */
.everygrind-admin-section {
    margin: 30px 0;
}

.everygrind-test-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.everygrind-test-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.everygrind-test-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.everygrind-media-preview {
    margin-top: 20px;
}

.everygrind-media-item {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.everygrind-media-item img {
    max-width: 200px;
    height: auto;
    margin-top: 10px;
}

.everygrind-debug-info {
    font-family: monospace;
    font-size: 12px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}
