/* BookitOnce Frontend Styles - Clean Minimal Version with Mobile Optimization */

/* Only essential styles - theme-specific styling handled in theme files */

.bookitonce-booking-widget {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.bo-step {
    display: none;
}

.bo-step.active {
    display: block;
}

/* Time slots styling - mobile optimized */
.bo-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.bo-time-slot {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.9rem;
    min-height: 44px; /* Touch-friendly minimum */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo-time-slot:hover {
    background: #e9e9e9;
    transform: translateY(-1px);
}

.bo-time-slot.selected {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

/* Week navigation */
.bo-week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.bo-week-nav button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.bo-week-nav .week-display {
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

/* Calendar grid */
.bo-calendar-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bo-day-container {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
}

.bo-day-header {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

.bo-no-times {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Form elements */
.bo-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 44px;
    box-sizing: border-box;
}

.bo-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.bo-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    min-height: 44px;
}

.bo-btn-primary {
    background: #2271b1;
    color: white;
}

.bo-btn-primary:hover:not(:disabled) {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.bo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bo-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .bo-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.75rem;
    }
    
    .bo-time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .bo-week-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bo-week-nav button {
        width: 100%;
        max-width: 200px;
        padding: 0.75rem;
    }
    
    .bo-calendar-grid {
        gap: 0.75rem;
    }
    
    .bo-day-container {
        padding: 0.75rem;
    }
    
    .bo-day-header {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .bo-btn {
        width: 100%;
        padding: 1rem;
        margin-top: 1rem;
    }
}