/**
 * Frontend Styles for Jolo Customization Plugin
 */

/* Main Message Wrapper */
.jolo-message-wrapper {
    margin: 15px 0;
    clear: both;
}

/* Individual Message Styling */
.jolo-message {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #2196F3;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.jolo-message:last-child {
    margin-bottom: 0;
}

.jolo-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%);
}

/* Backward compatibility for old class name */
.jolo-printable-message-wrapper {
    margin: 15px 0;
    clear: both;
}

/* Printable Information Input Field - Positioned After Add to Cart */
.jolo-printable-info-wrapper {
    margin: 30px 0 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.jolo-printable-info-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2196F3, #1976D2, #0D47A1);
}

/* Header Section */
.jolo-printable-info-header {
    margin-bottom: 20px;
    text-align: center;
}

.jolo-printable-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: bold;
    color: #1976D2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jolo-print-icon {
    font-size: 24px;
}

.jolo-printable-notice {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Field Styling */
.jolo-printable-info-field {
    margin-bottom: 15px;
}

.jolo-printable-info-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.jolo-printable-info-field label .required {
    color: #dc3545;
    margin-left: 3px;
    font-size: 18px;
}

.jolo-printable-info-field textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
    min-height: 120px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #333 !important; /* Force text color to dark gray/black */
}

.jolo-printable-info-field textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #fafafa;
    color: #000 !important; /* Ensure text remains visible when focused */
}

.jolo-printable-info-field textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: #fff5f5;
    color: #d32f2f !important; /* Red text color for error state */
}

/* Placeholder text styling */
.jolo-printable-info-field textarea::placeholder {
    color: #666 !important;
    opacity: 1;
}

.jolo-printable-info-field textarea::-webkit-input-placeholder {
    color: #666 !important;
}

.jolo-printable-info-field textarea::-moz-placeholder {
    color: #666 !important;
    opacity: 1;
}

.jolo-printable-info-field textarea:-ms-input-placeholder {
    color: #666 !important;
}

.jolo-printable-info-field textarea:-moz-placeholder {
    color: #666 !important;
    opacity: 1;
}

.jolo-field-description {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    background: rgba(33, 150, 243, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #2196F3;
}

/* Payment Message positioned after field description */
.jolo-printable-payment-message {
    margin: 12px 0;
    padding: 12px 15px;
    background: #f0f8ff;
    border: 1px solid #2196F3;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.jolo-printable-payment-message .printable-item-notice {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.jolo-printable-payment-message strong {
    color: #1976D2;
}

.jolo-char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.jolo-char-counter.error {
    color: #dc3545;
    font-weight: bold;
}

.jolo-char-counter .char-count {
    font-weight: bold;
    font-size: 14px;
}

/* Help Section */
.jolo-printable-help {
    margin-top: 15px;
}

.jolo-help-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 10px;
}

.jolo-help-details summary {
    cursor: pointer;
    font-size: 13px;
    color: #0073aa;
    font-weight: 500;
    padding: 5px 0;
}

.jolo-help-details summary:hover {
    color: #005177;
}

.jolo-help-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.jolo-help-content ul {
    margin: 0;
    padding-left: 20px;
}

.jolo-help-content li {
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Validation Messages */
.jolo-validation-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jolo-validation-message::before {
    content: "⚠️";
    font-size: 18px;
}

/* Success and Loading States */
.jolo-printable-info-field.valid textarea {
    border-color: #28a745;
    background: #f8fff9;
}

.jolo-printable-info-field.valid .jolo-char-counter {
    color: #28a745;
}

.jolo-printable-info-field.valid::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
}

.jolo-printable-info-field.loading textarea {
    opacity: 0.6;
    cursor: wait;
}

.jolo-printable-info-field.loading::after {
    content: "⏳";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    animation: pulse 1.5s infinite;
}

/* Cart and Checkout Display */
.woocommerce-cart-form .jolo-printable-info,
.woocommerce-checkout .jolo-printable-info {
    background: #f0f8ff;
    padding: 10px 15px;
    border-left: 4px solid #2196F3;
    margin: 8px 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jolo-printable-info-wrapper {
        margin: 20px 0 15px 0;
        padding: 20px 15px;
    }
    
    .jolo-printable-title {
        font-size: 18px;
    }
    
    .jolo-printable-info-field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    .jolo-printable-info-field label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .jolo-printable-info-wrapper {
        padding: 15px 12px;
        margin: 15px 0 10px 0;
    }
    
    .jolo-printable-title {
        font-size: 16px;
        flex-direction: column;
        gap: 5px;
    }
    
    .jolo-field-description {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Animation Effects */
@keyframes joloFieldFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.jolo-printable-info-wrapper {
    animation: joloFieldFadeIn 0.5s ease-out;
}

/* Focus and Accessibility */
.jolo-printable-info-field textarea:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .jolo-printable-info-wrapper {
        border: 3px solid #000;
        background: #fff;
    }
    
    .jolo-printable-info-field textarea {
        border: 2px solid #000;
        background: #fff;
        color: #000 !important; /* Ensure black text in high contrast */
    }
    
    .jolo-printable-info-field textarea::placeholder {
        color: #666 !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .jolo-printable-info-wrapper {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        border-color: #444;
        color: #e0e0e0;
    }
    
    .jolo-printable-title {
        color: #64B5F6;
    }
    
    .jolo-printable-info-field textarea {
        background: #1a1a1a;
        border-color: #555;
        color: #e0e0e0 !important; /* Light text for dark mode */
    }
    
    .jolo-printable-info-field textarea::placeholder {
        color: #aaa !important;
    }
    
    .jolo-field-description {
        background: rgba(100, 181, 246, 0.1);
        border-left-color: #64B5F6;
        color: #bbb;
    }
}

/* Print Styles */
@media print {
    .jolo-printable-info-wrapper {
        border: 2px solid #000 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Validation Messages */
.woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Cart and Checkout Display */
.woocommerce-cart-form .jolo-printable-info,
.woocommerce-checkout .jolo-printable-info {
    background: #f0f8ff;
    padding: 8px 12px;
    border-left: 4px solid #2196F3;
    margin: 5px 0;
    border-radius: 0 4px 4px 0;
}

.woocommerce-cart-form .jolo-printable-info strong,
.woocommerce-checkout .jolo-printable-info strong {
    color: #1976D2;
    display: block;
    margin-bottom: 4px;
}

/* Highlight Printable Information in Cart */
.jolo-printable-cart-value {
    background: #e8f5e8 !important;
    color: #2e7d32 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 2px solid #4caf50 !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin: 2px 0 !important;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.3) !important;
}

/* JavaScript-enhanced highlighting for cart variations */
.jolo-highlighted-variation {
    background: #e3f2fd !important;
    border: 2px solid #2196F3 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin: 8px 0 !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2) !important;
}

.jolo-highlighted-variation dt {
    color: #1976D2 !important;
    font-weight: bold !important;
}

.jolo-highlighted-value,
.jolo-highlighted-value p {
    background: #fff3e0 !important;
    border: 1px solid #ff9800 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    color: #e65100 !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin: 4px 0 !important;
}

/* Make sure the entire cart item data row is visible */
.woocommerce table.shop_table .cart_item .product-name .variation dt,
.woocommerce-page table.shop_table .cart_item .product-name .variation dt {
    font-weight: bold;
    color: #333;
}

.woocommerce table.shop_table .cart_item .product-name .variation dd,
.woocommerce-page table.shop_table .cart_item .product-name .variation dd {
    margin: 0 0 5px 0;
}

/* Order Details Display */
.order_details .jolo-printable-info,
.woocommerce-order-details .jolo-printable-info {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jolo-printable-info-wrapper {
        margin: 15px 0;
        padding: 15px;
    }
    
    .jolo-printable-info-field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .jolo-printable-info-field label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .jolo-printable-info-wrapper {
        padding: 12px;
        margin: 10px 0;
    }
    
    .jolo-field-description {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .jolo-printable-info-wrapper {
        border: 1px solid #000 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .jolo-printable-info-field textarea {
        border: 1px solid #000 !important;
        background: #fff !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .jolo-printable-info-wrapper {
        border: 2px solid #000;
        background: #fff;
    }
    
    .jolo-printable-info-field textarea {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
    
    .jolo-printable-info-field label {
        color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .jolo-printable-info-wrapper {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .jolo-printable-info-field textarea {
        background: #1a1a1a;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .jolo-printable-info-field label {
        color: #e0e0e0;
    }
    
    .jolo-field-description {
        color: #bbb;
    }
    
    .jolo-char-counter {
        color: #bbb;
    }
}

/* Focus and Accessibility */
.jolo-printable-info-field textarea:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Animation for Field Appearance */
@keyframes joloFieldFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jolo-printable-info-wrapper {
    animation: joloFieldFadeIn 0.3s ease-out;
}

/* Loading State */
.jolo-printable-info-field.loading textarea {
    opacity: 0.6;
    cursor: wait;
}

/* Success State (when properly filled) */
.jolo-printable-info-field.valid textarea {
    border-color: #28a745;
}

.jolo-printable-info-field.valid .jolo-char-counter {
    color: #28a745;
}

/* Default Message Styling */
.jolo-printable-message-wrapper .printable-item-notice {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #2196F3;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.jolo-printable-message-wrapper .printable-item-notice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%);
}

/* Message Typography */
.jolo-message-wrapper h1,
.jolo-message-wrapper h2,
.jolo-message-wrapper h3,
.jolo-message-wrapper h4,
.jolo-message-wrapper h5,
.jolo-message-wrapper h6,
.jolo-printable-message-wrapper h1,
.jolo-printable-message-wrapper h2,
.jolo-printable-message-wrapper h3,
.jolo-printable-message-wrapper h4,
.jolo-printable-message-wrapper h5,
.jolo-printable-message-wrapper h6 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.jolo-message p,
.jolo-message-wrapper p,
.jolo-printable-message-wrapper p {
    margin-bottom: 10px;
}

.jolo-message p:last-child,
.jolo-message-wrapper p:last-child,
.jolo-printable-message-wrapper p:last-child {
    margin-bottom: 0;
}

.jolo-message strong,
.jolo-message-wrapper strong,
.jolo-printable-message-wrapper strong {
    color: #1976D2;
}

.jolo-message a,
.jolo-message-wrapper a,
.jolo-printable-message-wrapper a {
    color: #1976D2;
    text-decoration: none;
}

.jolo-message a:hover,
.jolo-message-wrapper a:hover,
.jolo-printable-message-wrapper a:hover {
    text-decoration: underline;
}

/* Loop/Shop Page Printable Badge */
.jolo-loop-printable-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shortcode Message Styling */
.jolo-printable-message-shortcode {
    margin: 15px 0;
}

/* Theme Compatibility */
.single-product .jolo-printable-message-wrapper {
    order: 1;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jolo-printable-message-wrapper .printable-item-notice {
        padding: 12px;
        font-size: 13px;
        margin: 15px 0;
    }
    
    .jolo-loop-printable-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .jolo-printable-message-wrapper .printable-item-notice {
        padding: 10px;
        border-left-width: 3px;
    }
}

/* Animation Effects */
@keyframes joloFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jolo-printable-message-wrapper {
    animation: joloFadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    .jolo-printable-message-wrapper .printable-item-notice {
        border: 1px solid #000 !important;
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .jolo-loop-printable-badge {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .jolo-printable-message-wrapper .printable-item-notice {
        border-left-color: #000;
        background: #fff;
        color: #000;
        border: 1px solid #000;
    }
    
    .jolo-loop-printable-badge {
        background: #000;
        color: #fff;
        border: 1px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .jolo-printable-message-wrapper {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .jolo-printable-message-wrapper .printable-item-notice {
        background: #1a1a1a;
        color: #e0e0e0;
        border-left-color: #64B5F6;
    }
    
    .jolo-printable-message-wrapper strong {
        color: #64B5F6;
    }
    
    .jolo-printable-message-wrapper a {
        color: #64B5F6;
    }
}

/* WooCommerce Theme Specific Adjustments */
.woocommerce div.product .jolo-printable-message-wrapper {
    margin-bottom: 20px;
}

.woocommerce-variation-description + .jolo-printable-message-wrapper {
    margin-top: 15px;
}

/* Storefront Theme Compatibility */
.storefront .jolo-printable-message-wrapper {
    font-family: inherit;
}

/* Astra Theme Compatibility */
.ast-single-post .jolo-printable-message-wrapper {
    margin: 1.5em 0;
}

/* OceanWP Theme Compatibility */
.oceanwp-theme .jolo-printable-message-wrapper {
    margin-bottom: 20px;
}

/* GeneratePress Theme Compatibility */
.generate-columns-container .jolo-printable-message-wrapper {
    width: 100%;
}

/* Custom Message Variants */
.jolo-printable-message-wrapper .notice-info {
    border-left-color: #00a0d2;
}

.jolo-printable-message-wrapper .notice-warning {
    border-left-color: #ffb900;
    background: #fff8e5;
}

.jolo-printable-message-wrapper .notice-success {
    border-left-color: #00a32a;
    background: #f0fff4;
}

.jolo-printable-message-wrapper .notice-error {
    border-left-color: #d63638;
    background: #ffeaea;
}

/* Delivery Slots Frontend Styles */
.jolo-delivery-slots-checkout,
.jolo-delivery-slots-order {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.jolo-delivery-slots-checkout::before,
.jolo-delivery-slots-order::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    border-radius: 12px 12px 0 0;
}

.jolo-delivery-slots-checkout h3,
.jolo-delivery-slots-order h2 {
    margin: 0 0 15px 0;
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jolo-delivery-slots-checkout h3::before,
.jolo-delivery-slots-order h2::before {
    content: "🚚";
    font-size: 24px;
}

.jolo-delivery-info {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
}

.jolo-delivery-notice {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.jolo-delivery-slots-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.jolo-delivery-slot {
    background: #fff;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.jolo-delivery-slot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.jolo-delivery-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #28a745;
}

.jolo-delivery-slot .slot-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #28a745;
    margin-bottom: 8px;
}

.jolo-delivery-slot .slot-time {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.jolo-delivery-slot .slot-date {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.jolo-delivery-contact {
    margin: 15px 0 0 0;
    padding: 10px 15px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 6px;
    font-size: 13px;
    color: #155724;
    text-align: center;
    font-weight: 500;
}

/* Email Styles (already included in PHP, but for completeness) */
.jolo-delivery-slots-email {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.jolo-delivery-slots-email h2 {
    margin-top: 0;
    color: #28a745;
    font-size: 18px;
}

.jolo-delivery-slots-email .jolo-delivery-slot {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border-left: 3px solid #28a745;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jolo-delivery-slots-checkout,
    .jolo-delivery-slots-order {
        margin: 15px 0;
        padding: 15px;
    }
    
    .jolo-delivery-slots-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .jolo-delivery-slot {
        padding: 12px;
    }
    
    .jolo-delivery-slot .slot-time {
        font-size: 16px;
    }
    
    .jolo-delivery-slots-checkout h3,
    .jolo-delivery-slots-order h2 {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .jolo-delivery-slots-checkout,
    .jolo-delivery-slots-order {
        margin: 10px 0;
        padding: 12px;
    }
    
    .jolo-delivery-info {
        padding: 12px;
    }
    
    .jolo-delivery-slot {
        padding: 10px;
    }
    
    .jolo-delivery-contact {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .jolo-delivery-slots-checkout,
    .jolo-delivery-slots-order {
        border: 3px solid #000;
        background: #fff;
    }
    
    .jolo-delivery-slot {
        border: 2px solid #000;
        background: #fff;
    }
    
    .jolo-delivery-slot .slot-name,
    .jolo-delivery-slots-checkout h3,
    .jolo-delivery-slots-order h2 {
        color: #000;
    }
    
    .jolo-delivery-slot .slot-time {
        color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .jolo-delivery-slots-checkout,
    .jolo-delivery-slots-order {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        border-color: #444;
        color: #e0e0e0;
    }
    
    .jolo-delivery-info {
        background: rgba(42, 42, 42, 0.8);
        color: #e0e0e0;
    }
    
    .jolo-delivery-slot {
        background: #1a1a1a;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .jolo-delivery-slot .slot-name,
    .jolo-delivery-slots-checkout h3,
    .jolo-delivery-slots-order h2 {
        color: #4ade80;
    }
    
    .jolo-delivery-slot .slot-time {
        color: #e0e0e0;
    }
    
    .jolo-delivery-slot .slot-date {
        color: #aaa;
    }
    
    .jolo-delivery-contact {
        background: rgba(74, 222, 128, 0.2);
        border-color: rgba(74, 222, 128, 0.5);
        color: #4ade80;
    }
}

/* Print Styles */
@media print {
    .jolo-delivery-slots-checkout,
    .jolo-delivery-slots-order {
        border: 2px solid #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .jolo-delivery-slot {
        border: 1px solid #000 !important;
        background: #f9f9f9 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .jolo-delivery-slot::before {
        background: #000 !important;
    }
}

/* Accessibility Enhancements */
.jolo-delivery-slot:focus-within {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Animation Effects */
@keyframes joloSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jolo-delivery-slots-checkout,
.jolo-delivery-slots-order {
    animation: joloSlideIn 0.5s ease-out;
}

.jolo-delivery-slot {
    animation: joloSlideIn 0.3s ease-out;
}

.jolo-delivery-slot:nth-child(1) { animation-delay: 0.1s; }
.jolo-delivery-slot:nth-child(2) { animation-delay: 0.2s; }
.jolo-delivery-slot:nth-child(3) { animation-delay: 0.3s; }
.jolo-delivery-slot:nth-child(4) { animation-delay: 0.4s; }
.jolo-delivery-slot:nth-child(5) { animation-delay: 0.5s; }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .jolo-delivery-slots-checkout,
    .jolo-delivery-slots-order,
    .jolo-delivery-slot {
        animation: none;
    }
    
    .jolo-delivery-slot {
        transition: none;
    }
    
    .jolo-delivery-slot:hover {
        transform: none;
    }
}

/* Theme Compatibility */
.woocommerce-checkout .jolo-delivery-slots-checkout {
    margin-bottom: 20px;
}

.woocommerce-order-details .jolo-delivery-slots-order {
    margin-top: 20px;
}

/* Storefront Theme */
.storefront .jolo-delivery-slots-checkout,
.storefront .jolo-delivery-slots-order {
    font-family: inherit;
}

/* Astra Theme */
.ast-single-post .jolo-delivery-slots-order {
    margin: 2em 0;
}

/* OceanWP Theme */
.oceanwp-theme .jolo-delivery-slots-checkout,
.oceanwp-theme .jolo-delivery-slots-order {
    margin: 1.5em 0;
}
