
/* General Container */
.cart-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    font-family: 'Noto Sans KR', sans-serif;
}

.main-content {
    flex: 2;
}

/* Main Content Sections */
.cart-items-section {
    margin-top: 10;
}

/* Cart Items Section */
.item-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.item-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f8f9fa;
}

.select-item-btn {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.item-notice {
    font-size: 14px;
    color: #666;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;

}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
}

.btn-add-treatment,
.btn-select-without-treatment {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-treatment {
    background-color: #333;
    color: white;
}

.btn-add-treatment:hover {
    background-color: #555;
}

.btn-select-without-treatment {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-select-without-treatment:hover {
    background-color: #f8f9fa;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.select-all-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.cart-header-buttons {
    display: flex;
    gap: 8px;
}

.btn-selected-delete,
.btn-clear-all {
    background: white;
    border: 0px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #505050;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: underline;
}

.btn-selected-delete:hover,
.btn-clear-all:hover {
    background-color: #f8f9fa;
    border-color: #999;
    font-weight: 700;
}

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

.btn-clear-all {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-clear-all:hover {
    font-weight: 700;
}

/* Cart Items List */
.cart-items-list {
    margin: 0 0 20px 0;
    border-radius: 8px;
    background: white;
}

.cart-item {
    display: flex;
    min-height: 4rem;
    align-items: flex-start;
    border-top: 1px solid #f0f0f0;
    gap: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-name .event-badge {
    position: relative;
    top: -2px;
    left: -10px;
    background-color: #e91e63 !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin-right: 8px !important;
    line-height: 1.2 !important;
    min-height: 20px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

.event-badge {
    position: relative;
    top: -2px;
    left: -10px;
    background-color: #e91e63 !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin-right: 8px !important;
    line-height: 1.2 !important;
    min-height: 20px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

.cart-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.cart-item-price-section {
    min-width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
}

.cart-item-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
}

.cart-item-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    white-space: nowrap;
}

.cart-item-discount-rate {
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    white-space: nowrap;
}

.cart-item-final-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.cart-item-price-only {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: right;
    white-space: nowrap;
}

/* Calendar Section */
.calendar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    color: #666;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calendar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

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

.calendar-weekdays > div {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #666;
}

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

.calendar-day {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.calendar-day.selected {
    background-color: #e91e63;
    color: white;
    font-weight: 600;
    border-radius: 15px;
}

.calendar-day.today {
    background-color: #fff3e0;
    font-weight: 600;
}

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

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

/* Time Selection */
.time-slots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.time-slot {
    padding: 12px 8px;
    border: 1px solid #ddd;
    background: white;
    /* border-radius: 5px; */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.time-slot:hover {
    background-color: #f8f9fa;
    border-color: #333;
}

.time-slot.selected {
    background-color: #333;
    color: white;
    border-color: #333;
}

/* Customer Info Section */
.info-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.tab-btn:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

.tab-btn.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

.customer-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Agreement Section */
.agreement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agreement-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agreement-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.agreement-item label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.view-detail {
    padding: 4px 8px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
}

/* Booking Action */
.booking-action {
    text-align: center;
}

.btn-book {
    background-color: #333;
    color: white;
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-book:hover {
    background-color: #555;
}

/* Right Column - Sidebar */
.sidebar-content {
    position: sticky;
    top: 0;
    height: fit-content;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    margin-top: 70px;
}

.sidebar-content > div {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-content > div:last-child {
    border-bottom: none;
}
 

/* 예약일시 섹션 */
.datetime-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.datetime-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.datetime-row:last-child {
    border-bottom: none;
}

.datetime-row span:first-child {
    color: #666;
    font-weight: 600;
}

.datetime-row span:last-child {
    color: #333;
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
}

.summary-row span:first-child {
    font-weight: 600;
}

.summary-row:last-of-type {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.summary-total {
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    padding-top: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.payment-summary {
    margin: 0px;
    padding: 0px;
}

.payment-amount-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.summary-total strong {
    color: #333;
    font-size: 16px;
}

.vat-notice {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.notice-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    background-color: #F5F5F5;
    padding: 10px 20px;
}

.notice-text p {
    margin: 5px 0;
}

/* Cart Notification Badge */
.cart-notification-badge {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.cart-notification-badge.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification-badge.error {
    background-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 900px) {
    .cart-container {
        flex-direction: column;
        gap: 30px;
        padding: 15px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-content {
        order: 2;
        min-width: auto;
        position: static;
        margin-top: 10px;
    }
    
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sidebar-content .booking-action {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        border-top: 1px solid #eee;
        border-bottom: none;
        z-index: 1000;
        border-radius: 0;
    }
    
    .sidebar-content .booking-action .btn-book {
        width: 100%;
    }
    
    body {
        padding-bottom: 80px;
    }
}
