/* Cart Styles - Стили для компонента корзины */

/* Стили для кнопки оформления заказа */
.checkout-btn {
    background: #c62828;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(103, 24, 25, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    z-index: 1000;
}

.map-business-container {
    width: 100%;
    height: 300px;
    
    margin-top: 12px;
    display: none;
}

.map-business-container-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.map-business-container-map {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
    height: 100%;
}

.map-business-container-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-business-container.active {
    display: block;
}

.cart-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-service-item:last-child {
    margin-bottom: 0;
}

.quantity-controls-btns {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.checkout-btn:hover {
    background: #ab2222;
    transform: translateX(-50%) translateY(-1px);
}

.checkout-btn.hidden {
    display: none !important;
}

.checkout-text {
    font-weight: 500;
    white-space: nowrap;
}

.checkout-total {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.address-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    align-items: baseline;
}

.address-details label {
    
    color: #606060;
    text-align: right;
    white-space: nowrap;
}

.address-details > div {
    font-weight: 400;
    color: #111827;
    text-align: left;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #ab2222;
}

/* Общий класс для скрытия элементов */
.hidden {
    display: none !important;
}

/* Стили для надписи "Спасибо за заказ!" */
.thank-you-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.thank-you-message h3 {
    margin: 0;
    color: #52c41a;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.order-modal-body {
    overflow-y: auto;
}
.delivery-map {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 12px;
}

.cook-time-options {
    display: flex;
    gap: 8px;
    margin: 10px 0 8px 0;
}

.cook-time-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.cook-time-btn.active {
    border-color: #1890ff;
    background: #e6f7ff;
}

.cook-time-picker {
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
}

/* Модальное окно корзины */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.order-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    height: 90vh;
    min-height: 90vh;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', Arial, sans-serif;
}

/* Мобильные стили для модального окна */
@media (max-width: 768px) {
    .order-modal {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .order-modal-overlay {
        padding: 0;
    }
}

.order-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
}

.cart-section {
    flex: 1;
    display: none;
    padding: 10px;
    background: #fcfcfc;
    margin-bottom: 20px;
}

.cart-section.active {
    display: block;
}

.order-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.footer-totals {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-client {
    font-weight: bold;
    font-size: 1.1em;
}

.total-restaurant {
    font-size: 0.9em;
    color: #666;
}


.time-option {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.time-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.time-option :hover {
    border-color: #c62828;
    background: #f8f9ff;
}

.time-option.selected {
    border-color: #c62828;
}

.total-label {
    margin-right: 10px;
}

.total-amount {
    font-weight: bold;
}

.total-restaurant .total-amount {
    font-weight: normal;
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

/* Шаги заказа */
.order-steps {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    flex-grow: 1;
    margin-right: 10px;
}

.step {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;

}

.step.active {
    background: #c43e3e;
    color: white;
}

.step.completed {
    background: #1aa260;
    color: white;
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step.active .step-number {
    background: rgba(255, 255, 255, 0.2);
}

.step.completed .step-number {
    background: rgba(255, 255, 255, 0.2);
}

.step-title {
    font-weight: 500;
}

@media (max-width: 768px) {
    .order-steps {
        gap: 5px;
    }
    
    .step {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .step-title {
        display: none;
    }
    
    .step-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* Кнопка продолжения */
.continue-btn {
    padding: 12px 24px;
    background: #c62828;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    background: #961c1c;
}

.continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Стили для экрана услуг */
.cart-services-container,
.cart-services-list {
    margin-bottom: 20px;
}

.cart-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

.service-info {
    flex: 1;
}

.service-group {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.service-name {
    font-weight: 500;
    color: #333;
}

.service-options {
    margin-top: 6px;
}

.service-options small {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.service-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-btn,
.remove-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.add-btn {
    background: #52c41a;
    color: white;
}

.add-btn:hover {
    background: #389e0d;
}

.remove-btn {
    background: #ff4d4f;
    color: white;
}

.remove-btn:hover {
    background: #cf1322;
}

.service-price {
    font-weight: bold;
    color: #000;
    
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-cart-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.empty-cart-hint {
    font-size: 14px;
}

.cart-services-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.services-count {
    font-weight: bold;
    color: #1890ff;
}

/* Стили для экрана доставки */
.delivery-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.delivery-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.delivery-option.disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    color: #666;
}



.delivery-option:hover {
    background: #e6e6e6;
}

.delivery-option.selected {
    color: #fff;
    background: #c62828;
}


.option-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.option-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.option-description {
    font-size: 14px;
    color: #666;
}

.restaurant-address,
.payment-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.restaurant-address h5,
.payment-section h5 {
    margin: 0 0 10px 0;
    color: #333;
}



.map-link {
    color: #1890ff;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}





.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option label {
    cursor: pointer;
    font-size: 16px;
}

/* Стили для экрана данных пользователя */
.cart-user-data-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
}

.user-data-form .form-row {
    display: flex;
    gap: 12px;
}

.user-data-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.user-data-form label {
    font-size: 13px;
    color: #475569;
}

.user-data-form input[type="text"],
.user-data-form input[type="email"] {
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
}

.user-data-error {
    margin-top: 8px;
}

/* Стили для экрана оплаты */
.cart-payment-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
}

.no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-items h3 {
    margin-bottom: 10px;
}

.no-items p {
    margin: 0;
}

/* Стили для компонента подтверждения */
.cart-confirmation-container {
    padding: 20px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.confirmation-header p {
    margin: 0;
    color: #666;
}

.confirmation-content {
    margin-bottom: 30px;
}

.confirmation-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.confirmation-section h5 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.order-notes-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.order-notes-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.order-notes-input::placeholder {
    color: #9ca3af;
}

.confirmation-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: baseline;
}

.detail-row {
    display: contents;
}

.confirmation-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirmation-service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

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

.confirmation-service-item .service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.confirmation-service-item .service-name {
    color: #111827;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

.confirmation-service-item .service-extras {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.3;
    margin-left: 8px;
}

.confirmation-service-item .service-price {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 16px;
}

.confirmation-total,
.success-total {
    
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.confirmation-total .total-row,
.success-total .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-total .total-label,
.success-total .total-label {
    
    font-size: 16px;
    font-weight: 500;
}

.confirmation-total .total-value,
.success-total .total-value {
    
    font-size: 24px;
    font-weight: 700;
}

/* Success Screen Styles */
.cart-success-container {
    padding: 20px;
}

.cart-success-container .success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.cart-success-container .success-icon i {
    font-size: 64px;
    color: #10b981;
}

.cart-success-container h4 {
    text-align: center;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.cart-success-container .order-number {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.cart-success-container .order-number strong {
    color: #111827;
    font-weight: 600;
}

.success-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.success-section h5 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.success-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: baseline;
}

.success-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.success-notes {
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.success-actions {
    margin-top: 24px;
    text-align: center;
}

.success-actions .btn {
    min-width: 200px;
    padding: 14px 24px;
    font-size: 16px;
}

.confirmation-client-data,
.confirmation-delivery {
    margin-top: 15px;
}

.data-row,
.delivery-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.data-row:last-child,
.delivery-type {
    border-bottom: none;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn,
.back-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #c62828;
    color: white;
}

.confirm-btn:hover {
    background: #931a1a;
}

.back-btn {
    background: #f0f0f0;
    color: #333;
}

.back-btn:hover {
    background: #e0e0e0;
}

/* Стили для компонента успешного заказа */
.cart-success-container {
    padding: 20px;
    text-align: center;
}

.success-header {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-header h3 {
    margin: 0 0 10px 0;
    color: #52c41a;
}

.success-header p {
    margin: 0;
    color: #666;
}

.success-content {
    margin-bottom: 30px;
}

.success-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.success-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.order-info,
.success-contacts {
    margin-top: 15px;
}

.info-row,
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child,
.contact-row:last-child {
    border-bottom: none;
}

.success-order-summary {
    margin-top: 15px;
}

.success-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.success-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #ddd;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 15px;
}

.success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.close-btn,
.new-order-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.close-btn {
    background: #f0f0f0;
    color: #333;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
}

.close-btn:hover {
    background: #e0e0e0;
}

.new-order-btn {
    background: #c62828;
    color: white;
}

.new-order-btn:hover {
    background: #c62828;
}

/* Стили для компонента ошибки */
.cart-error-container {
    padding: 20px;
    text-align: center;
}

.error-header {
    margin-bottom: 30px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-header h3 {
    margin: 0 0 10px 0;
    color: #ff4d4f;
}

.error-header p {
    margin: 0;
    color: #666;
}

.error-content {
    margin-bottom: 30px;
}

.error-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.error-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.error-details {
    margin-top: 15px;
}

.error-message {
    color: #ff4d4f;
    font-weight: 500;
    margin-bottom: 10px;
}

.error-code {
    color: #666;
    font-size: 0.9em;
}

.error-suggestions {
    margin-top: 15px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.suggestion-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-btn,
.back-btn,
.close-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.retry-btn {
    background: #c62828;
    color: white;
}

.retry-btn:hover {
    background: #981e1e;
}

.back-btn {
    background: #f0f0f0;
    color: #333;
}

.back-btn:hover {
    background: #e0e0e0;
}

.close-btn {
    background: #c62828;
    color: white;
}

.close-btn:hover {
    background: #ad2222;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .service-controls {
        width: 100%;
        justify-content: space-between;
    }

    .service-price-container {
        order: 2;

    }

    .quantity-controls-btns {
        order: 1;
        flex-direction: row;
    }

    .quantity-btn.add {
        order: 2;
    }

    .quantity-btn.remove {
        order: 1;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
    }

    .service-info {
        justify-self: start;
        align-items: start;
    }

    .cart-service-item {
        align-items: start;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    .confirmation-actions,
    .success-actions,
    .error-actions {
        flex-direction: column;
    }
    
    .confirm-btn,
    .back-btn,
    .new-order-btn,
    .retry-btn {
        width: 100%;
    }
}

/* Стили для секции времени доставки */
.delivery-time-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.working-hours-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.today-hours {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.schedule-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.schedule-link:hover {
    color: #0056b3;
}

.full-schedule {
    margin-top: 10px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-content h6 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.schedule-day:last-child {
    border-bottom: none;
}

.schedule-day.closed {
    color: #6c757d;
}

.day-name {
    font-weight: 500;
    font-size: 13px;
}

.day-hours {
    font-size: 13px;
    color: #495057;
}

.schedule-day.closed .day-hours {
    color: #dc3545;
}

.no-schedule {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.cook-time-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cook-time-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cook-time-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.cook-time-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.cook-time-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #dee2e6;
    color: #6c757d;
}

.cook-time-btn.disabled:hover {
    border-color: #dee2e6;
    color: #6c757d;
}

.closed-message {
    margin-top: 10px;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-size: 14px;
}

.service-price-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.service-price-item {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.error-message i {
    color: #dc3545;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .working-hours-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cook-time-options {
        flex-direction: column;
    }
    
    .schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Стили для модалки выбора опций */
.options-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.options-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.options-modal-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.options-modal-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.option-group {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.option-group:last-child {
    margin-bottom: 0;
}

/* Стили для свитчеров */
.switch-container {
    position: relative;
    width: 50px;
    height: 24px;
}

.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch-slider span {
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    transform: translateX(-13px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-input:checked + .switch-slider {
    background-color: #007bff;
}

.switch-input:checked + .switch-slider span {
    transform: translateX(13px);
}

.switch-input:focus + .switch-slider {
    box-shadow: 0 0 1px #007bff;
}

/* Убираем старые стили для radio и checkbox */
.option-group input[type="radio"],
.option-group input[type="checkbox"] {
    display: none;
}

.option-group > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.option-group > div:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.option-group > div:last-child {
    margin-bottom: 0;
}

/* Убираем старые стили для label */
.option-group label {
    display: none;
}

.option-group > div > div:last-child {
    flex: 1;
    margin-left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-group > div > div:last-child > span:first-child {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.option-group > div > div:last-child > span:last-child {
    font-size: 12px;
    font-weight: 500;
}

.option-group > div > div:last-child > span:last-child[style*="color: #27ae60"] {
    color: #27ae60 !important;
}

.option-group > div > div:last-child > span:last-child[style*="color: #e74c3c"] {
    color: #e74c3c !important;
}

.options-modal-content button[type="button"] {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.options-modal-content button[type="button"]:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.options-modal-content button[type="submit"] {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.options-modal-content button[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.options-modal-content button[type="submit"]:active {
    transform: translateY(0);
}

/* Стили для футера модалки */
.options-modal-content .footer {
    position: sticky;
    bottom: 0;
    background: white;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    max-width: 300px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

.notification-warning {
    background: #f39c12;
}

/* Адаптивность для модалки опций */
@media (max-width: 768px) {
    .options-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .option-group {
        padding: 12px;
    }
    
    .options-modal-content button {
        padding: 12px 16px;
        font-size: 16px;
    }
} /* Cart Minimal Theme - Минимальный стиль для корзины */

/* ===== ОБЩИЕ СТИЛИ ===== */
.cart-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.cart-header {
    background: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cart-content {
    padding: 20px;
}

/* ===== ЭКРАН УСЛУГ ===== */
.cart-services-container {
    padding: 0;

    margin-bottom: 20px;
}

.cart-services-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.cart-services-list {
    margin-bottom: 15px;
}



.service-info {
    flex: 1;
}

.service-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.service-extras {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.service-notes {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.service-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

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



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



.quantity-value{
    width: 20px;
    height: 28px;
    text-align: center;
    /* border: 1px solid #ddd;
    border-radius: 4px; */
    font-size: 22px;
}

.service-price {
    font-weight: 600;
    color: #000000;
    min-width: 60px;
    text-align: right;
}

.remove-service-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #dc3545;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-service-btn:hover {
    background: #dc3545;
    color: white;
}

.cart-services-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-weight: 600;
}

.services-count {
    color: #666;
}

.services-total {
    color: #007bff;
    font-size: 16px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-cart p {
    margin: 0;
    font-size: 16px;
}

/* ===== ЭКРАН ДОСТАВКИ ===== */
.cart-delivery-container {
    /* padding: 20px;
    background: #f8f9fa;
    border-radius: 8px; */
    margin-bottom: 20px;
}

.cart-delivery-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.delivery-method-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}




.delivery-address-section {
    margin-bottom: 20px;
}

.delivery-address-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.address-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.address-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.map-btn {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.map-btn:hover {
    background: #0056b3;
}

.map-container {
    margin-bottom: 15px;
}

.delivery-map {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.address-info {
    padding: 15px;
    background: #d8f4e3;
    border: 1px solid #caebd7;
    border-radius: 6px;
}

.address-details {
    
    flex-direction: column;
    gap: 5px;
    
}







.delivery-time-section {
    margin-bottom: 20px;
}

.delivery-time-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.time-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}



.time-picker {
    /* padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px; */
}

.datetime-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    
}

.delivery-info {
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: #333;
}

/* ===== ЭКРАН ДАННЫХ ПОЛЬЗОВАТЕЛЯ ===== */
.cart-user-data-container {
    padding: 5px;

}

.cart-user-data-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.user-data-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: #dc3545;
}

/* ===== ЭКРАН ПОДТВЕРЖДЕНИЯ ===== */
.cart-confirmation-container {
    padding: 5px;
    /* background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px; */
}

.cart-confirmation-container h4 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.order-summary {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-summary h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
    color: #007bff;
}

.summary-label {
    color: #666;
}

.summary-value {
    color: #333;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-methods h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
   
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 5px 0;
}



.payment-option:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.payment-option.selected {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.payment-option i {
    font-size: 20px;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.payment-option span {
    flex: 1;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
}

.payment-option input[type="radio"]:checked + label {
    color: #007bff;
}

.payment-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

/* ===== ЭКРАН УСПЕШНОГО ЗАКАЗА ===== */
.cart-success-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.success-message {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.order-details {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.order-details h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label,
.confirmation-details > span.detail-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
}

.detail-value,
.confirmation-details > span.detail-value {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}

/* ===== КНОПКИ И ЭЛЕМЕНТЫ УПРАВЛЕНИЯ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
}

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

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .delivery-method-selection {
        flex-direction: column;
    }
    
    .time-options {
        flex-direction: column;
    }
    
    .address-input-group {
        flex-direction: column;
    }
    
    .service-controls {
        flex-direction: row;
        gap: 5px;
    }
    
    .cart-services-summary {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================================================
   OPTIONS MODAL STYLES - Стили для модалки выбора опций
   ============================================================================ */

/* Модалка выбора опций */
.options-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.options-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

/* Заголовок модалки */
.options-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.options-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.options-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-modal-close:hover {
    color: #666;
}

/* Содержимое модалки */
.options-content {
    /* Стили для содержимого */
}

/* Группа опций */
.option-group {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.option-group-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.option-group-required {
    color: #e74c3c;
    font-weight: bold;
}

.option-group-description {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

/* Элемент опции */
.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.option-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Контейнер свитчера */
.switch-container {
    position: relative;
    width: 50px;
    height: 24px;
}

/* Скрытый input */
.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Слайдер свитчера */
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Точка внутри свитчера */
.switch-slider span {
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    transform: translateX(-13px);
}

/* Активное состояние свитчера */
.switch-input:checked + .switch-slider {
    background-color: #007bff;
}

.switch-input:checked + .switch-slider span {
    transform: translateX(13px);
}

/* Информация об опции */
.option-item-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.option-item-price {
    font-size: 12px;
    font-weight: 500;
}

.option-item-price.positive {
    color: #27ae60;
}

.option-item-price.negative {
    color: #e74c3c;
}

/* Контейнер кнопок */
.options-button-container {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Кнопка отмены */
.options-cancel-btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.options-cancel-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* Кнопка добавления */
.options-add-btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.options-add-btn:hover {
    background: #0056b3;
}

/* Отображение цены */
.options-price-display {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.options-price-display .price-breakdown {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    width: fit-content;
    margin: 0 auto;
     transition: all 0.3s ease;
    transform: translateY(-100%); 
    opacity: 0;
    will-change: transform, opacity;
}

.notification.show {
     transform: translateY(0); 
    opacity: 1;
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.info {
    background-color: #3498db;
}

.notification.warning {
    background-color: #f39c12;
}
