/* Custom Delivery Slot — frontend styles */

#cds-picker {
    margin: 1.5em 0;
    padding: 1.2em;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
}

#cds-picker h3 {
    margin: 0 0 0.8em;
    font-size: 1.1em;
}

.cds-picker .cds-label {
    margin: 0.3em 0 0.6em;
    font-weight: 600;
}

.cds-picker .cds-hint {
    color: #777;
    font-style: italic;
    margin: 0.4em 0;
}

.cds-picker .cds-no-delivery {
    color: #b00;
    font-weight: 600;
    padding: 0.6em 0.8em;
    background: #fff2f2;
    border: 1px solid #f5c2c2;
    border-radius: 6px;
}

/* Day grid: wraps on mobile to multiple rows */
.cds-day-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1em;
}

.cds-day-btn {
    flex: 1 1 90px;
    min-width: 80px;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.cds-day-btn:hover:not(.is-disabled) {
    border-color: #2271b1;
    background: #f0f7ff;
}

.cds-day-btn.is-active {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.cds-day-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f3f3f3;
    color: #777;
}

.cds-day-name {
    font-weight: 700;
    font-size: 0.95em;
}

.cds-day-date {
    font-size: 0.8em;
    margin-top: 2px;
}

/* Slot list */
.cds-slot-area {
    margin-top: 0.8em;
    padding-top: 0.8em;
    border-top: 1px dashed #ddd;
}

.cds-slot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cds-slot-list li {
    margin: 0.3em 0;
}

.cds-slot-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cds-slot-option:hover {
    border-color: #2271b1;
}

.cds-slot-option input[type="radio"] {
    margin: 0;
}

@media (max-width: 480px) {
    .cds-day-btn {
        flex: 1 1 calc(33% - 8px);
        min-width: 0;
    }
}
