/* assets/css/safe-play.css */

/* SafePlay Tab Styles */
.wsp-safeplay-container {
    max-width: 800px;
    margin: 0 auto;
}

.wsp-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.wsp-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #000 !important;
}

.wsp-section p,
.wsp-section label {
    color: #000 !important;
}

.wsp-form {
    margin-top: 20px;
}

.wsp-form label {
    display: inline-block;
    min-width: 150px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000 !important;
}

.wsp-form input[type="number"],
.wsp-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 10px;
}

.wsp-form .description {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Notices */
.wsp-notice {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.wsp-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.wsp-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.wsp-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wsp-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Warning Box */
.wsp-warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.wsp-warning-box strong {
    color: #000 !important;
}

.wsp-warning-box p {
    color: #000 !important;
    margin: 0;
}

/* Current Limits Display */
.wsp-current-limits {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin-bottom: 20px;
}

.wsp-current-limits p {
    margin: 5px 0;
    color: #000 !important;
}

.wsp-current-limits p strong {
    color: #000 !important;
}

/* Buttons */
.wsp-form .button {
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
}

.wsp-form .button-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.wsp-form .button-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.wsp-form .button-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.wsp-form .button-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Popup Notification */
.wsp-popup {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideUp 0.3s ease-in-out;
    max-width: 320px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wsp-popup-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.wsp-popup-content h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.wsp-popup-content p {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 14px;
    line-height: 1.4;
}

.wsp-popup-content .button {
    padding: 6px 16px;
    margin-right: 8px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.wsp-popup-content .button-primary {
    background: #0073aa;
    color: white;
}

.wsp-popup-content .button-primary:hover {
    background: #005a87;
}

.wsp-popup-content .button:not(.button-primary) {
    background: #dc3545;
    color: white;
}

.wsp-popup-content .button:not(.button-primary):hover {
    background: #c82333;
}

/* Cart/Checkout Limit Notice */
.wsp-limit-exceeded-notice {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
}

.wsp-limit-exceeded-notice h3 {
    margin-top: 0;
    color: #dc3545;
    font-size: 20px;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.wsp-limit-exceeded-notice p {
    margin: 10px 0;
    color: #000;
    font-size: 15px;
}

.wsp-limit-exceeded-notice p strong {
    color: #333;
}

.wsp-limit-exceeded-notice .wsp-removed-notice {
    background: #fff3cd;
    padding: 10px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}

.wsp-limit-exceeded-notice .wsp-removed-notice em {
    color: #856404;
    font-weight: 600;
}

.wsp-limit-exceeded-notice .button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.wsp-limit-exceeded-notice .button:hover {
    background: #005a87;
}

/* Product Page Notice */
.wsp-product-limit-notice {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Admin Styles */
.form-table .wsp-status-active {
    color: #28a745;
    font-weight: bold;
}

.form-table .wsp-status-excluded {
    color: #dc3545;
    font-weight: bold;
}

.form-table .wsp-status-break {
    color: #ffc107;
    font-weight: bold;
}

/* My Account Menu Icon */
.woocommerce-MyAccount-navigation-link--safeplay a:before {
    content: "\f132";
    font-family: dashicons;
}

/* Responsive */
@media (max-width: 768px) {
    .wsp-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .wsp-form label {
        display: block;
        margin-bottom: 5px;
    }
    
    .wsp-form input[type="number"],
    .wsp-form select {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}