/* Основные стили для страницы оформления заказа */

/* Базовые стили контейнера */
.container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.checkout-main {
    background-color: #3C3231;
    padding: 20px 0; /* Уменьшено с 60px на 40px */
    min-height: 70vh;
    flex-grow: 1;
}

.checkout-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 16px;
}

.back-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(179, 158, 141, 0.1);
}

.checkout-title {
    color: rgba(179, 158, 141, 0.5);
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

/* Форма оформления */
.checkout-form-section {
    background-color: #332928;
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #B39E8D;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background-color: #3C3231;
    border: 2px solid #B39E8D;
    border-radius: 12px;
    padding: 16px 20px;
    color: rgba(179, 158, 141, 0.5);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #B39E8D;
    background-color: #332928;
    box-shadow: 0 0 0 3px rgba(179, 158, 141, 0.1);
}

.form-input::placeholder {
    color: #8A7E75;
}

.required-mark {
    color: #B39E8D;
    font-size: 18px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 16px;
}

/* Delivery styles removed from project */

.delivery-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: none !important;
    border: 1px solid rgba(179, 158, 141, 0.5) !important;
    border-radius: 6px !important;
    color: #B39E8D !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* active delivery-option styles removed */

/* Стили для секции способа оплаты */
.payment-section {
    margin-top: 24px;
}

.payment-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .option-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: none !important;
    border: 1px solid rgba(179, 158, 141, 0.5) !important;
    border-radius: 6px !important;
    color: #B39E8D !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.payment-option.active .option-content,
.payment-option input[type="radio"]:checked + .option-content {
    background-color: rgba(179, 158, 141, 0.1) !important;
    border-color: #B39E8D !important;
    color: #B39E8D !important;
}

.address-section {
    background-color: #3C3231;
    border-radius: 12px;
    padding: 20px;
}

.courier-address-section,

.pickup-address-section {
    transition: all 0.3s ease;
}

.address-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #B39E8D;
}

.address-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    text-decoration: underline;
}

/* Стили для блока выбранного адреса */
.selected-address-display {
    margin-top: 10px;
    color: #B39E8D;
}

.selected-address-info {
    flex-grow: 1;
    margin-right: 10px;
}

.selected-address-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #B39E8D;
}

.selected-address-details {
    background-color: #332928;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #B39E8D;
}

.selected-address-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(179, 158, 141, 0.5);
}

.selected-address-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.change-address-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
    margin-top: 0;
    align-self: flex-start;
}

/* Selected delivery styles removed from project */
.selected-delivery-display {
    margin-top: 15px;
    color: #B39E8D;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.selected-delivery-info {
    flex-grow: 1;
    margin-right: 10px;
}

.selected-delivery-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #B39E8D;
}

.selected-delivery-address {
    background-color: #332928;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #B39E8D;
}

.selected-delivery-address-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(179, 158, 141, 0.5);
    margin-bottom: 8px;
}

.selected-delivery-hours {
    font-size: 14px;
    color: #B39E8D;
    font-style: italic;
}

.change-delivery-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
    margin-top: 0;
    align-self: flex-start;
}

.pickup-info {
    color: #B39E8D;
}

.pickup-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #B39E8D;
}

.pickup-address {
    background-color: #332928;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #B39E8D;
}

.pickup-address-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(179, 158, 141, 0.5);
    margin-bottom: 8px;
}

/* .pickup-hours styles removed - no working hours */

/* Стили для информации о самовывозе */
.pickup-info-section {
    background-color: #332928;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #4A453F;
}

.pickup-info-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pickup-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pickup-info-header svg {
    color: #B39E8D;
    flex-shrink: 0;
}

.pickup-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.pickup-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 36px;
}

.pickup-address {
    color: #B39E8D;
    font-size: 16px;
    font-weight: 500;
}

.pickup-hours {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.pickup-note {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
}

/* Мобильные стили для информации о самовывозе */
.pickup-info-mobile {
    background-color: #332928;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #4A453F;
}

.pickup-info-content-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pickup-info-header-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pickup-info-header-mobile svg {
    color: #B39E8D;
    flex-shrink: 0;
}

.pickup-title-mobile {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
}

.pickup-details-mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 30px;
}

.pickup-address-mobile {
    color: #B39E8D;
    font-size: 14px;
    font-weight: 500;
}

.pickup-hours-mobile {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.pickup-note-mobile {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 500;
}

/* Способы оплаты */
.payment-section {
    margin: 40px 0 0 0;
}

.payment-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(179, 158, 141, 0.1) 0%, rgba(179, 158, 141, 0.05) 100%);
    border: 2px solid rgba(179, 158, 141, 0.3);
    border-radius: 12px;
    color: #B39E8D;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(179, 158, 141, 0.1);
}

.payment-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(179, 158, 141, 0.2);
    border-color: rgba(179, 158, 141, 0.5);
}

.payment-option.active .payment-content,
.payment-option input[type="radio"]:checked + .payment-content {
    background: linear-gradient(135deg, #B39E8D 0%, #9d8b7d 100%);
    border-color: #B39E8D;
    color: #3C3231;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 158, 141, 0.3);
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.payment-brands {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.gift-card-section {
    background-color: #3C3231;
    border-radius: 12px;
    padding: 20px;
}

.gift-card-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #B39E8D;
}

.add-gift-card-btn {
    background: none;
    border: none;
    color: #B39E8D;
    cursor: pointer;
    font-size: 16px;
    text-decoration: underline;
}

/* Сводка заказа */
.checkout-summary {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.order-summary {
    background-color: #332928;
    border-radius: 16px;
    padding: 32px;
}

.order-summary h3 {
    color: rgba(179, 158, 141, 0.5);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.order-items-container {
    margin-bottom: 24px;
    border-bottom: 1px solid #B39E8D;
    padding-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(179, 158, 141, 0.3);
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-image {
    width: 70px;
    height: 70px;
    background-color: #3C3231;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    color: rgba(179, 158, 141, 0.5);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-quantity {
    color: #FFFFFF;
    font-size: 14px;
}

.item-price {
    color: #B39E8D !important; /* Коричневый цвет для видимости на тёмном фоне */
    font-size: 16px;
    font-weight: 600;
}

.order-total {
    background-color: rgba(179, 158, 141, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.total-line:last-child {
    margin-bottom: 0;
}

.total-final {
    border-top: 1px solid #B39E8D;
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 18px;
}

.total-label {
    color: #FFFFFF;
    font-size: 14px;
}

.total-final .total-label,
.total-final .total-value {
    color: rgba(179, 158, 141, 0.5);
    font-weight: 600;
    font-size: 18px;
}

.total-value {
    color: #B39E8D;
    font-weight: 600;
}

.address-delivery-btn {
    width: 100%;
    background: none !important;
    border: 1px solid rgba(179, 158, 141, 0.5) !important;
    color: #B39E8D !important;
    border-radius: 6px !important;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.address-btn:hover {
    background-color: rgba(179, 158, 141, 0.1) !important;
    border-color: #B39E8D !important;
    transform: none;
    box-shadow: none;
}

.address-btn:disabled {
    background-color: rgba(179, 158, 141, 0.05) !important;
    border-color: rgba(179, 158, 141, 0.3) !important;
    color: rgba(179, 158, 141, 0.5) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Agreement Checkbox */
.agreement-checkout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background-color: rgba(179, 158, 141, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(179, 158, 141, 0.2);
}

.agreement-checkout input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #B39E8D;
    flex-shrink: 0;
}

.agreement-checkout-text {
    font-size: 14px;
    line-height: 1.5;
    color: #FFFFFF;
    cursor: pointer;
}

.agreement-checkout-text a {
    color: #B39E8D;
    text-decoration: underline;
}

.agreement-checkout-text a:hover {
    color: #D4C3B6;
}

.order-footer {
    border-top: 1px solid #B39E8D;
    padding-top: 24px;
}

.order-note {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.terms-link {
    color: #FFFFFF;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .checkout-content {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    
    .payment-content {
        padding: 16px 12px;
        gap: 8px;
        font-size: 14px;
    }
    
    .payment-brands {
        font-size: 10px;
    }
    
    .payment-icon {
        height: 20px;
    }
}

/* Адаптация для малых десктопов и больших планшетов */
@media (max-width: 1150px) and (min-width: 1025px) {
    .checkout-content {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .payment-content {
        padding: 14px 10px;
        gap: 6px;
        font-size: 13px;
    }
    
    .payment-brands {
        font-size: 9px;
    }
    
    .order-summary {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .checkout-summary {
        position: static;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Адаптация для 4K и ультраширокие мониторы */
@media (min-width: 2560px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .payment-content {
        padding: 36px 28px;
        gap: 18px;
        font-size: 18px;
    }
    
    .payment-brands {
        font-size: 16px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr 500px;
        gap: 80px;
    }
}

/* Адаптация для больших 4K мониторы */
@media (max-width: 2559px) and (min-width: 1921px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .payment-content {
        padding: 32px 24px;
        gap: 16px;
        font-size: 17px;
    }
    
    .payment-brands {
        font-size: 15px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr 450px;
        gap: 70px;
    }
}

/* Адаптация для больших десктопов */
@media (max-width: 1920px) and (min-width: 1681px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .payment-content {
        padding: 28px 20px;
        gap: 14px;
    }
}

/* Адаптация для стандартных широкоформатных мониторов */
@media (max-width: 1680px) and (min-width: 1441px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .payment-content {
        padding: 26px 18px;
        gap: 12px;
        font-size: 15px;
    }
    
    .payment-brands {
        font-size: 13px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr 420px;
        gap: 55px;
    }
}

/* Адаптация для 15-17 дюймовых ноутбуков */
@media (max-width: 1440px) and (min-width: 1367px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .payment-content {
        padding: 24px 16px;
        gap: 10px;
    }
    
    .payment-brands {
        font-size: 12px;
    }
}

/* Адаптация для стандартных ноутбуков HD */
@media (max-width: 1366px) {
    .payment-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .payment-content {
        padding: 18px 12px;
        gap: 8px;
    }
    
    .payment-brands {
        font-size: 11px;
    }
    
    .checkout-content {
        gap: 40px;
    }
}

/* Адаптация для компактных ноутбуков */
@media (max-width: 1280px) and (min-width: 1201px) {
    .payment-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-content {
        padding: 16px 10px;
        gap: 6px;
        font-size: 13px;
    }
    
    .payment-brands {
        font-size: 10px;
    }
    
    .payment-icon {
        height: 18px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }
    
    .checkout-form-section,
    .order-summary {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .checkout-main {
        padding: 20px 0;
    }
    
    .checkout-form-section,
    .order-summary {
        padding: 24px;
    }
    
    .checkout-content {
        gap: 24px;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .checkout-title {
        font-size: 24px;
    }
    
    .checkout-form-section,
    .order-summary {
        padding: 20px;
    }
}

/* Модальное окно с картой */
.map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.map-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    background-color: #332928;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideInModal 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #B39E8D;
    background-color: #332928;
}

.map-modal-header h3 {
    color: rgba(179, 158, 141, 0.5);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Выбор типа доставки в модальном окне */
.delivery-type-section {
    padding: 20px 24px 0;
    background-color: #332928;
    border-bottom: 1px solid rgba(179, 158, 141, 0.3);
}

.delivery-type-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.delivery-type-option {
    flex: 1;
    cursor: pointer;
}

.delivery-type-option input[type="radio"] {
    display: none;
}

.delivery-type-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #3C3231;
    border: 2px solid rgba(179, 158, 141, 0.3);
    border-radius: 12px;
    color: #B39E8D;
    transition: all 0.3s ease;
}

.delivery-type-option.active .delivery-type-content,
.delivery-type-option input[type="radio"]:checked + .delivery-type-content {
    background-color: rgba(179, 158, 141, 0.1);
    border-color: #B39E8D;
    color: rgba(179, 158, 141, 0.5);
}

.delivery-type-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-type-name {
    font-size: 14px;
    font-weight: 600;
}

.delivery-type-desc {
    font-size: 12px;
    opacity: 0.8;
}

.close-modal {
    background: none;
    border: none;
    color: #B39E8D;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(179, 158, 141, 0.1);
    transform: scale(1.1);
}

.map-container {
    height: 400px;
    background-color: #3C3231;
    position: relative;
}

.map {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #3C3231;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B39E8D;
    font-size: 16px;
}

.address-input-section {
    padding: 20px 8px;
    background-color: #332928;
}

.courier-search-section,


.search-address {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    position: relative; /* Добавляем для правильного позиционирования подсказок */
}

.address-input {
    flex: 1;
    background-color: #3C3231;
    border: 2px solid #B39E8D;
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(179, 158, 141, 0.5);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.address-input:focus {
    outline: none;
    border-color: #B39E8D;
    background-color: #332928;
    box-shadow: 0 0 0 3px rgba(179, 158, 141, 0.1);
}

.address-input::placeholder {
    color: #8A7E75;
}

/* Стили для списка подсказок адресов */
.address-suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #3C3231 !important;
    border: 2px solid #4A453F !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 10000 !important; /* Увеличиваем z-index */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    margin-top: -2px !important; /* Убираем зазор между input и подсказками */
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Класс для принудительного отображения */
.address-suggestions.force-visible {
    display: block !important;
    min-height: 50px !important;
    width: auto !important;
    height: auto !important;
}

.suggestions-list {
    padding: 0;
    margin: 0;
}

.suggestion-item {
    padding: 12px 16px;
    color: rgba(179, 158, 141, 0.5);
    cursor: pointer;
    border-bottom: 1px solid #4A453F;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #4A453F;
}

.suggestion-item.active {
    background-color: #B39E8D;
}

.suggestion-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #B39E8D;
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.suggestion-loading {
    padding: 12px 16px;
    color: #8A7E75;
    text-align: center;
    font-style: italic;
}

/* Делаем контейнер поиска относительно позиционированным */
.search-address {
    position: relative;
}

.search-btn {
    background-color: #B39E8D;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(179, 158, 141, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #A08D7A;
    transform: translateY(-2px);
}

.selected-address {
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 16px 8px;
    background-color: #3C3231;
    border-radius: 12px;
    border-left: 4px solid #B39E8D;
}

.address-label {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: 500;
}

.address-text {
    font-size: 16px;
    color: rgba(179, 158, 141, 0.5);
    font-weight: 500;
    line-height: 1.4;
}

/* Основной контент модального окна */
.map-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.map-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid rgba(179, 158, 141, 0.2);
    background-color: #332928;
    flex-shrink: 0;
}

.cancel-btn,
.confirm-address-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cancel-btn {
    background-color: transparent;
    color: #B39E8D;
    border: 2px solid #B39E8D;
}

.cancel-btn:hover {
    background-color: rgba(179, 158, 141, 0.1);
}

.confirm-address-btn {
    background-color: #B39E8D;
    color: rgba(179, 158, 141, 0.5);
}

.confirm-address-btn:hover {
    background-color: #A08D7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 158, 141, 0.3);
}

.confirm-address-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .map-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-modal-header,
    .address-input-section {
        padding: 16px 20px;
    }
    
    .search-address {
        flex-direction: column;
        gap: 12px;
    }
    
    .map-modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cancel-btn,
    .confirm-address-btn {
        width: 100%;
    }
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Стили для кнопки "Выбрать" */
.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #666;
}

.search-btn:disabled:hover {
    background-color: #666;
    transform: none;
}

/* ГЛОБАЛЬНОЕ ПРАВИЛО: Весь текст меньше 20px = БЕЛЫЙ */
/* Текст с размером шрифта меньше 20px */
*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.checkout-title):not(.section-title):not(.item-price):not(.total-value) {
    color: #FFFFFF !important;
}

/* Исключения - заголовки остаются коричневыми */
h1, h2, h3, h4, h5, h6,
.checkout-title,
.section-title,
.main-title,
.price,
.total-price,
.item-price,
.total-value {
    color: #B39E8D !important;
}

/* Специфичные элементы оформления заказа */
.item-quantity,
.total-label,
.agreement-checkout-text,
.order-note,
.terms-link,

.address-label,
.change-address-btn,
.change-delivery-btn,
.suggestion-text,

.form-label,
.input-field::placeholder {
    color: #FFFFFF !important;
}

/* УНИВЕРСАЛЬНОЕ ПРАВИЛО ДЛЯ КНОПОК - БЕЛЫЙ ТЕКСТ */
button,
.btn,
.add-btn,
.back-btn,
.checkout-btn,
.search-btn,
.remove-btn,
.order-btn,
.submit-btn,
.cancel-btn,
.confirm-btn,
input[type="button"],
input[type="submit"] {
    color: #FFFFFF !important;
}

/* Остальные элементы footer - используем стили из main.css */
.footer {
    background: #2A2220 !important;
    height: 185px !important;
    min-height: 185px !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding: 9px 40px 8px 40px !important; /* Увеличена высота до 185px: верх 9px, низ 8px */
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Выравнивание по верху */
    position: relative !important;
    overflow: visible !important;
    gap: 0 !important; /* Убираем автоматические отступы */
}

.footer-logo-section {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0px !important;
    margin: 0 0 5px 0 !important;
    flex-shrink: 0 !important;
}

.footer-logo {
    height: 57px !important;
    width: 131px !important;
    max-height: 57px !important;
}

.footer-logo-text {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #B39E8D !important;
}

.footer-gradient-line {
    height: 1px !important;
    min-height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%) !important;
    margin: 0 0 15px 0 !important; /* 15px до меню (-2px) */
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.footer-menu {
    display: flex !important;
    justify-content: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    margin: 0 0 15px 0 !important; /* 15px до контактов (-2px) */
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.footer-link {
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
    opacity: 0.5 !important;
}

.footer-link:hover {
    color: #B39E8D !important;
}

.footer-contacts {
    display: flex !important;
    justify-content: center !important;
    gap: 25px !important;
    margin: 0 0 12px 0 !important; /* 12px до копирайта (-5px) */
    opacity: 1 !important;
    transform: translateY(0) !important;
    flex-shrink: 0 !important;
}

.footer-contact-item {
    text-align: center !important;
}

.footer-phone {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    opacity: 0.5 !important;
}

.footer-address {
    color: #FFFFFF !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    opacity: 0.5 !important;
}

.footer-copyright-inline {
    font-size: 13px !important; /* Увеличено с 9px на 4px */
    color: #FFFFFF !important;
    opacity: 0.75 !important;
    font-weight: 400 !important;
    display: block !important;
    text-align: center !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important; /* Убираем все отступы */
    border: none !important; /* Убираем градиентную линию */
}

/* Унифицированный футер для checkout */
.footer-menu {
    display: flex !important;
    justify-content: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
}

.footer-link {
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
    opacity: 0.5 !important;
}
.footer-link:hover {
    color: #B39E8D !important;
    opacity: 1 !important;
    transform: translateY(-2px);
}

.footer-contacts {
    display: flex !important;
    justify-content: center !important;
    gap: 25px !important;
    margin: 0 0 12px 0 !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    flex-shrink: 0 !important;
}
.footer-contact-item {
    text-align: center !important;
    background: none !important;
    border: none !important;
}

/* Градиентная линия в футере */
.footer-gradient-line {
    min-height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%) !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Копирайт в футере */
.footer-copyright-inline {
    font-size: 13px !important; /* Увеличено с 9px на 4px */
    color: #FFFFFF !important;
    opacity: 0.75 !important; /* 75% прозрачности */
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    display: block !important;
    font-weight: 400 !important;
}

/* Стили для информации об оплате */
.payment-info-section {
    background-color: #332928;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #4A453F;
}

.payment-info-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-info-header svg {
    color: #B39E8D;
    flex-shrink: 0;
}

.payment-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 36px;
}

.payment-description {
    color: #B39E8D;
    font-size: 16px;
    font-weight: 500;
}

.payment-note {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
}

/* Мобильные стили для информации об оплате */
.payment-info-mobile {
    background-color: #332928;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #4A453F;
}

.payment-info-content-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-info-header-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-info-header-mobile svg {
    color: #B39E8D;
    flex-shrink: 0;
}

.payment-title-mobile {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
}

.payment-details-mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 30px;
}

.payment-description-mobile {
    color: #B39E8D;
    font-size: 14px;
    font-weight: 500;
}

.payment-note-mobile {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 500;
}

/* Мобильные стили для опций оплаты */
.payment-options-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option-mobile {
    background: linear-gradient(135deg, rgba(179, 158, 141, 0.1) 0%, rgba(179, 158, 141, 0.05) 100%);
    border: 2px solid rgba(179, 158, 141, 0.3);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(179, 158, 141, 0.1);
}

.payment-option-mobile:hover:not(.active) {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(179, 158, 141, 0.2);
    border-color: rgba(179, 158, 141, 0.5);
}

.payment-option-mobile.active {
    border-color: #B39E8D;
    background: linear-gradient(135deg, #B39E8D 0%, #9d8b7d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(179, 158, 141, 0.3);
}

.payment-option-mobile input[type="radio"] {
    display: none;
}

.payment-content-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon-mobile {
    width: 32px;
    height: 32px;
    background-color: #B39E8D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #332928;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.payment-option-mobile.active .payment-icon-mobile {
    background-color: #3C3231;
    color: #B39E8D;
}

.payment-text-mobile {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-name-mobile {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.payment-desc-mobile {
    color: #B39E8D;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.payment-option-mobile.active .payment-name-mobile,
.payment-option-mobile.active .payment-desc-mobile {
    color: #3C3231;
    font-weight: 600;
}

/* Принудительное отображение футера на странице чекаута */
body footer.footer,
html footer.footer,
.checkout-main ~ footer.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: 185px !important;
    background: #2A2220 !important;
    margin: 0 !important;
    margin-top: 40px !important; /* Отступ от main */
    padding: 9px 40px 8px 40px !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

