/* WooCommerce Food Delivery Frontend Styles */

/* Payment Methods Container */
#saved_payment_methods {
    margin: 15px 0;
    min-height: 50px;
}

.no-payment-methods {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #ddd;
}

.payment-methods-loading {
    text-align: center;
    padding: 20px;
    color: #007cba;
    font-weight: 500;
    background: #f8f9ff;
    border-radius: 5px;
    border: 1px solid #e1e5e9;
}

.payment-methods-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    font-weight: 500;
    background: #fff5f5;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* Add Card Form Styles */
#add_card_form {
    padding: 20px;
}

.mobile_payment-form-group {
    margin-bottom: 15px;
}

.mobile_payment-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.mobile_payment-form-group input,
.mobile_payment-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mobile_payment-form-group input:focus,
.mobile_payment-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.mobile_payment-form-row {
    display: flex;
    gap: 15px;
}

.mobile_payment-form-row .mobile_payment-form-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.mobile_payment-submit-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile_payment-submit-btn:hover {
    background: #005a87;
}

.mobile_payment-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Payment Method Styles */
.mobile_payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile_payment-method-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.mobile_payment-method-left input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #007cba;
    cursor: pointer;
}

.mobile_payment-card-icon {
    width: 40px;
    height: 25px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 2px;
}

.mobile_payment-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
}

.card-holder {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-expiry {
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
}

.card-cvc {
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
}

.card-nickname {
    font-size: 13px;
    color: #007cba;
    font-weight: 500;
    margin-top: 2px;
}

.mobile_payment-delete-btn {
    background: #dc3545;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile_payment-delete-btn:hover {
    background: #c82333;
}

.mobile_payment-delete-btn img {
    width: 16px;
    height: 16px;
}

/* Payment method actions container */
.mobile_payment-method-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Default badge styling */
.default-badge {
    background: #007cba;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile_payment-method[data-is-default="true"] .card-nickname {
    color: #007cba;
    font-weight: 600;
}

/* Selected payment method highlight */
.mobile_payment-method input[type="radio"]:checked + .mobile_payment-card-icon + .mobile_payment-card-details {
    color: #007cba;
}

/* Checkout Map Styles */
#wc-food-delivery-checkout-map {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#wc-food-delivery-checkout-map.location-selected {
    border-color: #28a745;
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.2);
}

#wc-food-delivery-checkout-map h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#wc-food-delivery-checkout-map .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Location Finder */
.location-finder {
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#delivery-location-search {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#delivery-location-search:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#delivery-location-search.searching {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230073aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

#use-current-location {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#use-current-location:hover {
    background: #218838;
    transform: translateY(-1px);
}

#use-current-location:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Map Container */
#delivery-map-container {
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Location Info Display */
.location-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.coordinates-display {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.coordinate-label {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.address-display {
    margin-top: 15px;
}

.address-label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

#address-display {
    color: #333;
    font-weight: 500;
}

/* Success and Error Messages */
.location-success-message,
.location-error-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.location-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.location-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delivery Map Container */
.wc-food-delivery-map-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Map Filters */
.delivery-map-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.delivery-map-filters h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-controls label {
    font-weight: 500;
    color: #555;
    margin-right: 5px;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-width: 150px;
}

.filter-controls .button {
    background: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.filter-controls .button:hover {
    background: #005a87;
}

/* Map Container */
#wc-food-delivery-map {
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Map Legend */
.delivery-map-legend {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.delivery-map-legend h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-color.pending { background: #FFA500; }
.legend-color.processing { background: #0073AA; }
.legend-color.on-hold { background: #FF6B6B; }
.legend-color.completed { background: #28A745; }
.legend-color.cancelled { background: #6C757D; }

/* Orders Summary */
.orders-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.orders-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.summary-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Info Window Styles */
.order-info-window {
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.order-info-window h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.order-details {
    width: 100%;
    margin-bottom: 15px;
    font-size: 12px;
}

.order-details td {
    padding: 3px 0;
    vertical-align: top;
}

.order-details td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.order-actions .button {
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.order-actions .button:hover {
    background: #005a87;
    color: #fff;
}

/* Order Details Page Styles */
.woocommerce-order-delivery-details {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.woocommerce-order-delivery-details h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.delivery-location h3,
.delivery-info h3 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.delivery-address,
.delivery-coordinates,
.delivery-notes,
.delivery-time,
.delivery-status {
    margin-bottom: 10px;
    line-height: 1.5;
}

.delivery-address strong,
.delivery-coordinates strong,
.delivery-notes strong,
.delivery-time strong,
.delivery-status strong {
    color: #555;
}

.status-pending {
    color: #FFA500;
    font-weight: 600;
}

/* Delivery Info Window */
.delivery-info-window {
    max-width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.delivery-info-window h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delivery-info-window p {
    margin: 0 0 15px 0;
    font-size: 12px;
    line-height: 1.4;
}

.delivery-actions {
    text-align: center;
}

.delivery-actions .button {
    background: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.delivery-actions .button:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #delivery-location-search {
        min-width: auto;
    }
    
    .coordinates-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .delivery-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select,
    .filter-controls .button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .summary-stats {
        justify-content: center;
    }
    
    .legend-items {
        justify-content: center;
    }
    
    #wc-food-delivery-map {
        height: 300px !important;
    }
    
    #delivery-map-container {
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    #wc-food-delivery-checkout-map {
        padding: 15px;
    }
    
    .delivery-map-filters,
    .delivery-map-legend,
    .orders-summary {
        padding: 10px;
    }
    
    .summary-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .woocommerce-order-delivery-details {
        padding: 15px;
    }
}

/* Google Maps Info Window Customization */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,0) 100%) !important;
}

/* Loading States */
.wc-food-delivery-map-container.loading {
    position: relative;
}

.wc-food-delivery-map-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wc-food-delivery-map-container.loading::before {
    content: 'Loading orders...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    font-weight: bold;
    color: #0073aa;
}

/* Error States */
.wc-food-delivery-map-container.error {
    border: 2px solid #dc3545;
    background: #f8d7da;
}

.wc-food-delivery-map-container.error .error-message {
    color: #721c24;
    text-align: center;
    padding: 20px;
    font-weight: bold;
}

/* Success States */
.wc-food-delivery-map-container.success {
    border: 2px solid #28a745;
}

/* Animation for markers */
@keyframes markerDrop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.marker-animation {
    animation: markerDrop 0.5s ease-out;
}

/* Hover effects */
.filter-controls select:hover {
    border-color: #0073aa;
}

.filter-controls select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Accessibility improvements */
.filter-controls label {
    cursor: pointer;
}

.filter-controls select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wc-food-delivery-map-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .filter-controls,
    .delivery-map-legend {
        display: none;
    }
    
    #wc-food-delivery-map {
        height: 400px !important;
        border: 1px solid #000;
    }
    
    #delivery-map-container {
        height: 300px !important;
        border: 1px solid #000;
    }
}

/* Location Picker Shortcode Styles */
.wc-food-delivery-location-picker {
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wc-food-delivery-location-picker:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.location-picker-header {
    text-align: center;
    margin-bottom: 25px;
}

.location-picker-header h3 {
    color: #333;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.location-picker-header .description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.location-input-section {
    margin-bottom: 25px;
}

.address-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

#delivery-address-search {
    flex: 1;
    min-width: 300px;
    padding: 15px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

#delivery-address-search:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

#search-address {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#search-address:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.current-location-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 300px;
}

.current-location-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#location-picker-map {
    border: 3px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#location-picker-map:hover {
    border-color: #0073aa;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.15);
}

.location-details {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.coordinates-display {
    margin-bottom: 20px;
}

.coordinates-display p {
    margin: 8px 0;
    color: #333;
}

.coordinates-display strong {
    color: #0073aa;
    font-weight: 600;
}

.coordinates-text {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
}

.address-text {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.location-actions {
    text-align: center;
}

#save-delivery-location {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

#save-delivery-location:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

#save-delivery-location:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#save-location-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
}

#save-location-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#save-location-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design for Location Picker */
@media (max-width: 768px) {
    .wc-food-delivery-location-picker {
        padding: 20px 15px;
    }
    
    .location-picker-header h3 {
        font-size: 20px;
    }
    
    .location-picker-header .description {
        font-size: 14px;
    }
    
    .address-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #delivery-address-search {
        min-width: auto;
        width: 100%;
    }
    
    #search-address,
    .current-location-btn {
        width: 100%;
        max-width: none;
    }
    
    .coordinates-text,
    .address-text {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    #save-delivery-location {
        width: 100%;
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* Enhanced Map Controls */
.gm-style .gm-control-active {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.gm-style .gm-control-active:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Custom Marker Styles */
.gm-style .gm-style-iw {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
}

/* Order Info Window Styling */
.order-info-window {
    padding: 20px;
    max-width: 300px;
}

.order-info-window h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 18px;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 8px;
}

.order-info-window p {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.order-info-window strong {
    color: #0073aa;
    font-weight: 600;
}

/* Meal & Delivery Selection Styles */
.meal-delivery-selection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.meal-delivery-selection h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.selection-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.selection-group {
    flex: 1;
    min-width: 200px;
}

.selection-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.selection-group select,
.selection-group input[type="date"],
.selection-group input[type="datetime-local"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.selection-group select:focus,
.selection-group input[type="date"]:focus,
.selection-group input[type="datetime-local"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.selection-group input[type="date"],
.selection-group input[type="datetime-local"] {
    cursor: pointer;
}

.selection-group input[type="date"]::-webkit-calendar-picker-indicator,
.selection-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    background: #0073aa;
    color: white;
}

.selection-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.selection-group input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    background: #005a87;
}

/* Responsive adjustments for selection groups */
@media (max-width: 768px) {
    .selection-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .selection-group {
        min-width: auto;
    }
}

/* Standalone Meal Preferences Shortcode Styles */
.wc-food-delivery-meal-preferences {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.wc-food-delivery-meal-preferences:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.meal-preferences-title {
    color: #333;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 15px;
}

.meal-preferences-form {
    max-width: 800px;
    margin: 0 auto;
}

.quick-time-selection {
    margin: 25px 0;
    text-align: center;
}

.quick-time-selection label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.quick-time-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-time-btn {
    background: #f8f9fa;
    color: #555;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-time-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.quick-time-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.meal-preferences-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.save-preferences-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.save-preferences-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.save-preferences-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.preferences-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.preferences-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.preferences-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Saved Locations Dropdown Styling */
.saved_locations_container {
    margin-bottom: 15px;
}

.saved_locations_select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.saved_locations_select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.saved_locations_select option {
    padding: 8px;
    font-size: 14px;
}

/* Location Tag Input Styling */
.location_tag_container {
    margin: 15px 0;
}

.location_tag_input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.location_tag_input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.location_tag_input::placeholder {
    color: #999;
    font-style: italic;
}

/* Save Location Tag Button */
.save_location_tag_btn {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    height: fit-content;
}

.save_location_tag_btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.save_location_tag_btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 124, 186, 0.3);
}

.save_location_tag_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Meal Preferences */
@media (max-width: 768px) {
    .wc-food-delivery-meal-preferences {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .meal-preferences-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .quick-time-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-time-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .save-preferences-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wc-food-delivery-meal-preferences {
        padding: 15px 10px;
    }
    
    .meal-preferences-title {
        font-size: 18px;
    }
    
    .quick-time-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}