/* Public Styles for Delivery Scheduler */

/* Checkout Section */
#ds-delivery-slot-section {
    clear: both;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

#ds-delivery-slot-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Slot Picker Container */
#ds-slot-picker {
    margin: 15px 0;
}

.ds-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Slot Grid */
.ds-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ds-slot-option {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.ds-slot-option:hover {
    border-color: #96588a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ds-slot-option.selected {
    border-color: #96588a;
    background: #f0e5ed;
}

.ds-slot-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.ds-slot-option.disabled:hover {
    border-color: #ddd;
    box-shadow: none;
}

.ds-slot-date {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.ds-slot-time {
    color: #666;
    font-size: 14px;
}

.ds-slot-capacity {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #999;
}

.ds-slot-capacity.filling {
    color: #e67e22;
    font-weight: 600;
}

.ds-slot-capacity.full {
    color: #e74c3c;
    font-weight: 600;
}

.ds-slot-full-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

/* Order Details Page */
.ds-order-delivery-slot {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.ds-order-delivery-slot h2 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.ds-order-delivery-slot table {
    width: 100%;
}

.ds-order-delivery-slot th {
    text-align: left;
    padding: 10px;
    background: #e9ecef;
    font-weight: 600;
    width: 40%;
}

.ds-order-delivery-slot td {
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ds-slot-grid {
        grid-template-columns: 1fr;
    }

    #ds-delivery-slot-section {
        padding: 15px;
    }
}

/* Error Messages */
.ds-error-message {
    color: #e74c3c;
    padding: 10px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    margin: 10px 0;
}

/* Success Messages */
.ds-success-message {
    color: #27ae60;
    padding: 10px;
    background: #efe;
    border: 1px solid #cfc;
    border-radius: 4px;
    margin: 10px 0;
}