:root {
    --wpf-theme-color: #4CAF50;
}

.wpf-custom-booking, .wpf-custom-booking * {
    box-sizing: border-box !important;
}

.wpf-custom-booking {
    display: flex !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    height: 450px !important; 
    min-height: 450px !important;
    width: 100% !important;
    font-family: inherit !important;
    overflow: hidden !important;
    border-radius: 8px;
    margin: 10px 0 !important;
}

.wpf-cal-section { 
    flex: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    min-width: 250px !important; 
    border-right: 1px solid #eee !important;
}

.wpf-cal-header {
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    gap: 10px !important;
    padding: 12px !important; 
    background: #fff !important; 
    border-bottom: 1px solid #eee !important;
}

.wpf-cal-header select {
    border: 1px solid #ddd !important; 
    padding: 6px 10px !important; 
    font-size: 14px !important; 
    font-weight: 600 !important;
    border-radius: 4px !important; 
    background: #f9f9f9 !important; 
    color: #333 !important;
    cursor: pointer !important;
    outline: none !important;
}

.wpf-cal-grid { 
    display: grid !important; 
    grid-template-columns: repeat(7, 1fr) !important; 
    grid-template-rows: 35px repeat(6, 1fr) !important;
    flex: 1 !important;
}

.wpf-day-name {
    background: #f8f8f8 !important; 
    text-align: center !important; 
    line-height: 35px !important;
    font-weight: bold !important; 
    font-size: 11px !important; 
    color: #888 !important;
    border-right: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
}

.wpf-day-name.active-column {
    background: var(--wpf-theme-color) !important;
    color: #fff !important;
}

.wpf-day {
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    border-right: 1px solid #eee !important; 
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    font-size: 15px !important;
    color: #444 !important;
    background: #fff !important;
}

.wpf-day.today { 
    color: var(--wpf-theme-color) !important; 
    font-weight: bold !important; 
}

.wpf-day.selected { 
    background: var(--wpf-theme-color) !important; 
    color: #ffffff !important; 
    font-weight: bold !important; 
}

.wpf-day.past { 
    color: #ccc !important; 
    background: #fafafa !important; 
    cursor: default !important; 
}

.wpf-day.empty {
    background: #fdfdfd !important;
}

.wpf-time-section { 
    width: 140px !important; 
    display: flex !important; 
    flex-direction: column !important; 
}

.wpf-time-nav { 
    height: 40px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    cursor: pointer !important; 
    background: transparent !important; 
    color: #999 !important; 
    font-size: 18px !important;
    transition: all 0.1s ease;
    user-select: none;
}

.wpf-time-nav.clicked {
    transform: scale(0.8) !important;
    color: var(--wpf-theme-color) !important;
}

.wpf-time-list { 
    flex: 1 !important; 
    overflow-y: auto !important; 
    padding: 10px !important; 
    scroll-behavior: smooth !important; 
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch; 
    user-select: none; 
    cursor: grab;
}

.wpf-time-list:active { cursor: grabbing; }
.wpf-time-list::-webkit-scrollbar { display: none; }

.wpf-time-item {
    margin-bottom: 8px !important; 
    padding: 10px 0 !important;
    border: 2px solid var(--wpf-theme-color) !important; 
    color: var(--wpf-theme-color) !important;
    text-align: center !important; 
    font-weight: bold !important; 
    border-radius: 6px !important; 
    cursor: pointer !important;
    font-size: 14px !important;
    transition: transform 0.1s ease;
}

.wpf-time-item:active {
    transform: scale(0.92) !important;
}

.wpf-time-item.active { background: var(--wpf-theme-color) !important; color: #fff !important; }
.wpf-time-item.past-time, .wpf-time-item.booked { border-color: #eee !important; color: #ddd !important; text-decoration: line-through !important; pointer-events: none !important; }

@media (max-width: 600px) {
    .wpf-custom-booking { flex-direction: column !important; height: auto !important; min-height: 500px !important; }
    .wpf-cal-section { border-right: none !important; }
    .wpf-time-section { 
        width: 100% !important; 
        height: 60px !important; 
        flex-direction: row !important; 
        border-top: 1px solid #eee !important; 
    }
    .wpf-time-nav { 
        width: 45px !important; 
        height: 100% !important; 
    }
    .wpf-time-list { 
        display: flex !important; 
        flex-direction: row !important; 
        overflow-x: auto !important; 
        padding: 10px !important; 
        gap: 8px !important;
        align-items: center !important;
    }
    .wpf-time-item { 
        min-width: 80px !important; 
        margin-bottom: 0 !important; 
        padding: 8px 0 !important;
    }
    .wpf-time-nav.up { transform: rotate(-90deg); }
    .wpf-time-nav.down { transform: rotate(-90deg); }
}