/* Florazo Delivery Scheduler Styles */

.florazo-delivery-scheduler {
    margin: 20px 0;
    padding: 0;
}

/* Section Titles */
.florazo-delivery-scheduler .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D2D2D;
    margin: 0 0 15px 0;
    padding: 0;
}

/* Delivery Sections - Compact */
.delivery-section {
    margin-bottom: 18px;
}

/* ============================================
   DELIVERY DATE SELECTOR
   ============================================ */

.delivery-date-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.date-option {
    flex: 1;
    min-width: 130px;
    max-width: 180px;
    padding: 15px 12px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75px;
}

.date-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-option .date-label {
    font-size: 13px;
    font-weight: 700;
    color: #2D2D2D;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.date-option .date-sublabel {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    display: block;
    text-transform: uppercase;
}

.date-option:hover {
    border-color: #5FAF6F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 175, 111, 0.2);
}

.date-option.selected {
    border-color: #5FAF6F;
    background: #F0F9F3;
    box-shadow: 0 4px 12px rgba(95, 175, 111, 0.25);
}

.date-option.selected .date-label {
    color: #5FAF6F;
}

.date-option.selected .date-sublabel {
    color: #5FAF6F;
}

/* Calendar option special styling */
.calendar-option {
    position: relative;
}

.calendar-option .calendar-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    color: #2D2D2D;
    transition: color 0.3s ease;
}

.calendar-option.selected .calendar-icon {
    color: #5FAF6F;
}

.custom-date-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    border: none;
    background: transparent;
    pointer-events: none;
}

.calendar-option {
    position: relative;
    overflow: visible;
}

.calendar-option.selected .calendar-icon {
    display: none !important;
}

.calendar-option.selected .date-sublabel {
    display: block !important;
}

/* Calendar option should match other date options when selected */
.calendar-option.selected .date-label {
    color: #5FAF6F !important;
    font-weight: 700 !important;
}

.calendar-option.selected .date-sublabel {
    color: #5FAF6F !important;
    font-weight: 700 !important;
}

/* Custom date display in calendar option */
.calendar-option .date-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-option .custom-date-main {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.calendar-option .custom-date-sub {
    font-size: 11px;
    font-weight: 700;
    color: #999;
}

.calendar-option.selected .custom-date-sub {
    color: #5FAF6F;
}

/* ============================================
   DELIVERY TIME SELECTOR
   ============================================ */

.delivery-time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-option {
    padding: 16px 12px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.time-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-option .time-label {
    font-size: 14px;
    font-weight: 600;
    color: #2D2D2D;
    display: block;
    line-height: 1.3;
}

.time-option .time-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: #5FAF6F;
    display: block;
    margin-top: 2px;
}

.time-option:hover {
    border-color: #5FAF6F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 175, 111, 0.2);
}

.time-option.selected {
    border-color: #5FAF6F;
    background: #F0F9F3;
    box-shadow: 0 4px 12px rgba(95, 175, 111, 0.25);
}

.time-option.selected .time-label {
    color: #5FAF6F;
}

/* Express delivery highlight */
.express-option {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF4D6 100%);
    border-color: #FFD700;
}

.express-option .time-label {
    color: #FF8C00;
}

.express-option .time-sublabel {
    color: #FF8C00;
    font-weight: 700;
}

.express-option:hover {
    border-color: #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.express-option.selected {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF4D6 0%, #FFEAA7 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ============================================
   DELIVERY INFO TEXT
   ============================================ */

.delivery-info-text {
    margin: 18px 0 20px;
    padding: 15px;
    background: #F8F9FA;
    border-left: 4px solid #5FAF6F;
    border-radius: 8px;
}

.delivery-info-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5A5A5A;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .florazo-delivery-scheduler {
        margin: 25px 0;
    }
    
    .delivery-section {
        margin-bottom: 20px;
    }
    
    .delivery-date-options {
        gap: 10px;
    }
    
    .date-option {
        min-width: 110px;
        max-width: 150px;
        padding: 12px 10px;
        min-height: 70px;
    }
    
    .date-option .date-label {
        font-size: 12px;
    }
    
    .date-option .date-sublabel {
        font-size: 10px;
    }
    
    .delivery-time-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .time-option {
        padding: 14px 10px;
        min-height: 55px;
    }
    
    .time-option .time-label {
        font-size: 13px;
    }
    
    .delivery-info-text {
        padding: 15px;
        margin: 20px 0 25px;
    }
    
    .delivery-info-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .delivery-date-options {
        gap: 8px;
    }
    
    .date-option {
        min-width: 100px;
        padding: 10px 8px;
        min-height: 65px;
    }
    
    .date-option .date-label {
        font-size: 11px;
    }
    
    .calendar-option .calendar-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }
    
    .delivery-time-options {
        gap: 8px;
    }
    
    .time-option {
        padding: 12px 8px;
    }
    
    .time-option .time-label {
        font-size: 12px;
    }
    
    .time-option .time-sublabel {
        font-size: 11px;
    }
}

/* ============================================
   PRODUCT PAGE LAYOUT ADJUSTMENTS
   ============================================ */

/* Ensure proper spacing after scheduler */
.florazo-delivery-scheduler + .quantity,
.florazo-delivery-scheduler + .cart {
    margin-top: 25px !important;
}

/* Total display (if you want to show running total) */
.delivery-scheduler-total {
    margin: 20px 0;
    padding: 20px;
    background: #F0F9F3;
    border-radius: 12px;
    text-align: center;
}

.delivery-scheduler-total .total-label {
    font-size: 14px;
    color: #5A5A5A;
    margin-bottom: 8px;
}

.delivery-scheduler-total .total-amount {
    font-size: 32px;
    font-weight: 700;
    color: #5FAF6F;
}

.delivery-scheduler-total .total-breakdown {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

