.calendar-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .calendar-container {
        grid-template-columns: 400px 1fr;
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0;
    color: #64748b;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:not(.disabled):not(.empty):hover {
    background: #f1f5f9;
}

.dark .calendar-day:not(.disabled):not(.empty):hover {
    background: #1e293b;
}

.calendar-day.selected {
    background: #007ACC;
    color: white;
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    border: 2px solid #007ACC;
}

.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.option-card:hover {
    border-color: #007ACC;
    background: #f8fafc;
}

.dark .option-card {
    border-color: #334155;
}

.dark .option-card:hover {
    border-color: #007ACC;
    background: #1e293b;
}

.option-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.option-detail-modal.active {
    display: flex;
}

.option-detail-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dark .option-detail-content {
    background: #1e293b;
}

.option-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px 24px;
}

.option-detail-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.dark .option-detail-header {
    background: #1e293b;
    border-color: #334155;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.dark .quantity-selector {
    border-color: #334155;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dark .quantity-btn {
    background: #334155;
    border-color: #475569;
}

.quantity-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #007ACC;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    z-index: 10;
}

.dark .sticky-bottom {
    background: #1e293b;
    border-color: #334155;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #007ACC;
    background: #f8fafc;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #007ACC;
    color: white;
    border-color: #007ACC;
}

.dark .pagination-btn {
    background: #1e293b;
    border-color: #334155;
}

.dark .pagination-btn:hover:not(:disabled) {
    background: #334155;
}

@media (max-width: 767px) {
    .mobile-option-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }

    .dark .mobile-option-panel {
        background: #1e293b;
    }

    .mobile-option-panel.active {
        transform: translateY(0);
    }

    .mobile-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-backdrop.active {
        display: block;
    }
}
