/* Coding School Booking - Per-Child Structure */
/* Primary: Coding Green #a6ce39, Coding Grey #4d4d4f */

.csb-booking-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    border: 2px solid #a6ce39;
}

.csb-booking-form h3 {
    margin: 0 0 12px 0;
    color: #4d4d4f;
    font-size: 20px;
    border-bottom: 2px solid #a6ce39;
    padding-bottom: 8px;
}

.csb-booking-form h4 {
    color: #4d4d4f;
    font-size: 16px;
    margin: 12px 0 8px 0;
}

.csb-booking-form h5 {
    color: #a6ce39;
    font-size: 15px;
    margin: 15px 0 10px 0;
    border-bottom: 2px solid #a6ce39;
    padding-bottom: 6px;
}

/* Children Footer - Add Another Child Button */
.csb-children-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Add Child Button */
.csb-add-child-btn {
    background: #a6ce39;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.csb-add-child-btn:hover {
    background: #8db32e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(166, 206, 57, 0.3);
}

.csb-add-child-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Child Entry - Per-Child Structure */
.csb-child-entry {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 2px solid #a6ce39;
    position: relative;
    transition: all 0.3s;
}

.csb-child-entry:hover {
    box-shadow: 0 3px 8px rgba(166, 206, 57, 0.2);
}

.csb-child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f9e6;
}

.csb-child-title {
    color: #a6ce39;
    font-size: 16px;
    font-weight: 600;
}

/* Remove Child Button */
.csb-remove-child {
    background: #f04e69;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.csb-remove-child:hover {
    background: #d63d56;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(240, 78, 105, 0.3);
}

.csb-remove-child .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Hide remove button on first child */
.csb-child-entry:first-child .csb-remove-child {
    display: none;
}

/* Student Selector (ACF auto-fill) */
.csb-student-selector {
    background: #f8f8f8;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    position: relative;
}

.csb-student-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 13px;
}

.csb-select-existing-student {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    cursor: pointer;
}

.csb-select-existing-student:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.csb-select-existing-student:hover {
    border-color: #999;
}

.csb-loading-students {
    display: inline-block;
    margin-left: 10px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.csb-loading-students::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #666;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

.csb-student-loaded {
    display: inline-block;
    margin-left: 10px;
    color: #a6ce39;
    font-size: 18px;
    font-weight: bold;
    animation: fadeInOut 3s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1.2); }
    40% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; }
}

/* Student selector when empty (no students found) */
.csb-student-selector.csb-no-students {
    display: none;
}

/* Child Date Section - CALENDAR FIRST */
.csb-child-date-section {
    background: #f0f9e6;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #a6ce39;
}

/* Child Package Section */
.csb-child-package-section {
    background: #ffffff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #dcddde;
}

/* Package Selection - Per Child */
.csb-package-options {
    border-top: 1px solid #dcddde;
}

.csb-package-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dcddde;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}

.csb-package-option:hover {
    background: #f9f9f9;
}

.csb-package-option.selected {
    background: #f0f9e6;
    border-left: 4px solid #a6ce39;
    padding-left: 16px;
}

.csb-package-option input[type="radio"] {
    margin: 0;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #a6ce39;
    flex-shrink: 0;
}

.csb-package-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csb-package-info {
    flex: 1;
}

.csb-package-lessons {
    font-weight: 700;
    color: #4d4d4f;
    font-size: 16px;
    margin-bottom: 4px;
}

.csb-package-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.csb-package-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.csb-package-badge.save {
    background: #f0f0f0;
    color: #4d4d4f;
}

.csb-package-badge.popular {
    background: #a6ce39;
    color: white;
}

.csb-package-price {
    text-align: right;
    flex-shrink: 0;
    margin-left: 20px;
}

.csb-package-unit-price {
    font-weight: 700;
    color: #4d4d4f;
    font-size: 20px;
}

.csb-package-currency {
    color: #939598;
    font-size: 13px;
    font-weight: 500;
}

/* Duration Selection - Per Child */
.csb-child-duration-section {
    margin-bottom: 15px;
}

.csb-duration-options {
    border-top: 1px solid #dcddde;
}

.csb-duration-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #dcddde;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}

.csb-duration-option:hover {
    background: #f9f9f9;
}

.csb-duration-option.selected {
    background: #f0f9e6;
    border-left: 4px solid #a6ce39;
    padding-left: 16px;
}

.csb-duration-option input[type="radio"] {
    margin: 0;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #a6ce39;
    flex-shrink: 0;
}

.csb-duration-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csb-duration-label {
    font-weight: 600;
    color: #4d4d4f;
    font-size: 15px;
}

.csb-duration-price {
    font-weight: 700;
    color: #a6ce39;
    font-size: 16px;
}

/* Child Schedule Display */
.csb-child-schedule-display {
    background: #f0f9e6;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid #a6ce39;
}

/* Schedule Summary */
.csb-schedule-summary {
    background: white;
    border: 1px solid #dcddde;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.csb-schedule-summary p {
    margin: 4px 0;
    color: #4d4d4f;
    font-size: 14px;
}

.csb-schedule-summary strong {
    color: #a6ce39;
}

/* Weekly Dates List */
.csb-weekly-dates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.csb-date-item {
    background: linear-gradient(135deg, #a6ce39 0%, #8db32e 100%);
    padding: 10px;
    border-radius: 6px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(77, 77, 79, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.csb-date-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(166, 206, 57, 0.3);
}

.csb-date-number {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.csb-date-text {
    flex: 1;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
}

.csb-date-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

/* Child Information Fields */
.csb-child-fields {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dcddde;
}

.csb-child-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4d4d4f;
    font-size: 13px;
}

.csb-child-fields .csb-input,
.csb-child-fields select {
    width: 100%;
    padding: 8px;
    border: 2px solid #dcddde;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.csb-child-fields .csb-other-school-field {
    margin-top: -5px;
}

.csb-child-fields .csb-input:focus,
.csb-child-fields select:focus {
    outline: none;
    border-color: #a6ce39;
    box-shadow: 0 0 5px rgba(166, 206, 57, 0.3);
}

.csb-child-fields p {
    margin-bottom: 8px;
}

/* Custom Options Section */
.csb-custom-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.csb-custom-options h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.csb-custom-option {
    margin-bottom: 12px;
}

.csb-custom-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4d4d4f;
    font-size: 13px;
}

.csb-custom-option label input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

.csb-custom-option .csb-input,
.csb-custom-option select,
.csb-custom-option textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #dcddde;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.csb-custom-option .csb-input:focus,
.csb-custom-option select:focus,
.csb-custom-option textarea:focus {
    outline: none;
    border-color: #a6ce39;
    box-shadow: 0 0 5px rgba(166, 206, 57, 0.3);
}

.csb-custom-option textarea {
    resize: vertical;
    min-height: 60px;
}

.csb-custom-option .required {
    color: #dc3232;
    font-weight: bold;
}

/* Delivery Method Field (selectable) */
.csb-delivery-method-field {
    background: #f0f9e6;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #a6ce39;
    margin-bottom: 10px;
}

.csb-delivery-method-field label {
    color: #a6ce39;
    font-weight: 600;
    font-size: 13px;
}

.csb-delivery-method {
    width: 100%;
    padding: 8px;
    border: 2px solid #a6ce39;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 4px;
    background: white;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.csb-delivery-method:focus {
    outline: none;
    border-color: #8db32e;
    box-shadow: 0 0 5px rgba(166, 206, 57, 0.4);
}

/* Delivery Mode Display (when not selectable) */
.csb-delivery-mode-display {
    background: #f0f9e6;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #a6ce39;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csb-delivery-mode-display label {
    color: #4d4d4f;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0;
}

.csb-delivery-mode-display .csb-delivery-badge {
    margin-left: 0;
    font-size: 12px;
    padding: 4px 10px;
}

/* Calendar Styles */
.csb-child-calendar,
.csb-calendar {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(77, 77, 79, 0.15);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #a6ce39;
}

.csb-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #a6ce39 0%, #8db32e 100%);
    color: white;
}

.csb-calendar-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
    line-height: 32px;
}

.csb-calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.csb-cal-month-year {
    font-size: 16px;
    font-weight: 600;
}

.csb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e5e5;
    padding: 0;
}

.csb-cal-day-header {
    background: #f9f9f9;
    padding: 6px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: #4d4d4f;
    text-transform: uppercase;
}

.csb-cal-day {
    background: white;
    padding: 6px 4px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.csb-cal-empty {
    background: #fafafa;
}

.csb-cal-day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #4d4d4f;
}

.csb-cal-day-time {
    font-size: 10px;
    color: #a6ce39;
    font-weight: 600;
    background: rgba(166, 206, 57, 0.15);
    padding: 1px 4px;
    border-radius: 8px;
    text-align: center;
}

.csb-cal-past {
    opacity: 0.3;
    pointer-events: none;
}

.csb-cal-today .csb-cal-day-number {
    color: #0097d6;
    font-weight: 700;
}

.csb-cal-available {
    cursor: pointer;
    border: 2px solid transparent;
}

.csb-cal-available:hover {
    background: #f0f9e6;
    border-color: #a6ce39;
    transform: scale(1.05);
}

.csb-cal-available::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: #a6ce39;
    border-radius: 50%;
}

.csb-cal-selected {
    background: #a6ce39 !important;
    color: white !important;
    border-color: #a6ce39 !important;
}

.csb-cal-selected .csb-cal-day-number,
.csb-cal-selected .csb-cal-day-time {
    color: white !important;
}

.csb-cal-selected .csb-cal-day-time {
    background: rgba(255, 255, 255, 0.2);
}

.csb-cal-selected::before {
    background: white;
}

/* Calendar Legend */
.csb-calendar-legend {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f9f9f9;
    flex-wrap: wrap;
    font-size: 12px;
    justify-content: center;
}

.csb-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4d4d4f;
}

.csb-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.csb-legend-dot.available {
    background: #a6ce39;
}

.csb-legend-dot.selected {
    background: #a6ce39;
}

.csb-legend-dot.today {
    background: #0097d6;
}

/* Time Slot Display in Cart */
.csb-time-slot-info {
    background: linear-gradient(135deg, #42c1c7 0%, #0097d6 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.csb-time-slot-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Delivery Badge Styling */
.csb-delivery-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.csb-delivery-badge.in-person,
.csb-delivery-badge.in_person {
    background: #a6ce39;
    color: white;
}

.csb-delivery-badge.online {
    background: #0097d6;
    color: white;
}

/* Loading States */
.csb-loading {
    text-align: center;
    padding: 20px;
    color: #4d4d4f;
    font-style: italic;
    font-size: 14px;
}

.csb-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.csb-spinner {
    border: 3px solid #dcddde;
    border-top: 3px solid #a6ce39;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error and Success Messages */
.csb-error {
    background: #fee;
    color: #f04e69;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #f04e69;
    margin: 8px 0;
    font-size: 13px;
}

.csb-success {
    background: #f0f9e6;
    color: #a6ce39;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #a6ce39;
    margin: 8px 0;
    font-size: 13px;
}

/* Button Styles */
.button.csb-button {
    background: #a6ce39;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.button.csb-button:hover {
    background: #8db32e;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .csb-booking-form {
        padding: 15px;
        margin: 10px 0;
    }
    
    .csb-booking-form h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .csb-booking-form h5 {
        font-size: 14px;
        margin: 12px 0 8px 0;
    }
    
    /* Children Footer - Center button on mobile */
    .csb-children-footer {
        justify-content: center;
    }
    
    .csb-add-child-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .csb-child-entry,
    .csb-child-date-section,
    .csb-child-package-section,
    .csb-child-schedule-display,
    .csb-child-fields {
        padding: 12px;
    }
    
    .csb-child-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .csb-remove-child {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Student Selector Mobile */
    .csb-student-selector {
        padding: 10px 12px;
    }

    .csb-student-selector label {
        font-size: 12px;
    }

    .csb-select-existing-student {
        padding: 8px 10px;
        font-size: 14px;
    }

    .csb-delivery-method-field {
        padding: 8px;
    }
    
    .csb-delivery-method {
        padding: 7px;
        font-size: 14px;
    }

    .csb-delivery-mode-display {
        padding: 8px;
        font-size: 12px;
        flex-wrap: wrap;
    }

    .csb-delivery-mode-display label {
        font-size: 12px;
    }

    .csb-delivery-mode-display .csb-delivery-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Package Selection Mobile */
    .csb-package-option {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .csb-package-option.selected {
        padding-left: 11px;
    }

    .csb-package-details {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .csb-package-price {
        margin-left: 0;
        margin-top: 8px;
        text-align: left;
    }

    .csb-package-lessons {
        font-size: 15px;
    }

    .csb-package-unit-price {
        font-size: 18px;
    }
    
    .csb-child-calendar,
    .csb-calendar {
        max-width: 100%;
    }
    
    .csb-calendar-nav {
        padding: 8px 12px;
    }
    
    .csb-calendar-nav button {
        width: 28px;
        height: 28px;
        font-size: 18px;
        line-height: 28px;
    }
    
    .csb-cal-month-year {
        font-size: 14px;
    }
    
    .csb-cal-day {
        min-height: 42px;
        padding: 4px 2px;
    }
    
    .csb-cal-day-header {
        padding: 5px 2px;
        font-size: 10px;
    }
    
    .csb-cal-day-number {
        font-size: 13px;
    }
    
    .csb-cal-day-time {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .csb-calendar-legend {
        gap: 8px;
        padding: 8px;
        font-size: 11px;
    }
    
    .csb-legend-dot {
        width: 8px;
        height: 8px;
    }
    
    .csb-weekly-dates-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .csb-date-item {
        padding: 8px;
    }
    
    .csb-date-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .csb-date-text {
        font-size: 12px;
        padding: 0 8px;
    }
    
    .csb-date-time {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .csb-schedule-summary {
        padding: 10px;
    }
    
    .csb-schedule-summary p {
        font-size: 13px;
    }
    
    .csb-child-fields .csb-input,
    .csb-child-fields select {
        padding: 7px;
        font-size: 14px;
    }
    
    .csb-time-slot-info {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .csb-delivery-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
}

/* Extra Small Mobile (phones < 375px) */
@media (max-width: 374px) {
    .csb-booking-form {
        padding: 12px;
    }
    
    .csb-booking-form h3 {
        font-size: 17px;
    }
    
    .csb-add-child-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .csb-add-child-btn .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .csb-package-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    .csb-package-lessons {
        font-size: 14px;
    }

    .csb-package-unit-price {
        font-size: 16px;
    }
    
    .csb-cal-day {
        min-height: 38px;
    }
    
    .csb-cal-day-number {
        font-size: 12px;
    }
    
    .csb-date-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 10px 8px;
    }
    
    .csb-date-text {
        padding: 0;
    }
    
    .csb-delivery-method-field label {
        font-size: 12px;
    }
    
    .csb-delivery-mode-display {
        padding: 6px;
    }

    .csb-delivery-mode-display label {
        font-size: 11px;
    }

    .csb-delivery-mode-display .csb-delivery-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .csb-time-slot-info {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .csb-child-calendar,
    .csb-calendar {
        max-width: 450px;
    }
    
    .csb-weekly-dates-list {
        grid-template-columns: repeat(2, 1fr);
    }
}