/* Checkout Modal Styles - Адаптировано под стиль сайта */

/* Основные переменные из main.css */
:root {
    --font-primary: 'Rubik', sans-serif;
    --color-primary: #ff6b35; /* Основной оранжевый для акцентов */
    --color-primary-dark: #e65a29;
    --color-secondary: #faac7e; /* Светло-оранжевый из лого */
    --color-text: #333333; /* Основной цвет текста */
    --color-text-light: #666666; /* Светлый текст */
    --color-bg: #ffffff; /* Фон модального окна */
    --color-bg-light: #f8f9fa; /* Светлый фон для блоков */
    --color-border: #eeeeee; /* Цвет границ */
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Модальное окно */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    font-family: var(--font-primary);
    box-sizing: border-box;
}

.checkout-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.checkout-modal-content {
    background: var(--color-bg);
    border-radius: 16px; /* Немного больше, чем стандартный */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1100px;
    max-height: 80vh;
    height: 80vh;
    overflow: hidden;
    animation: slideIn 0.4s ease;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
}

/* Хедер */
.checkout-modal-header {
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
}

.checkout-modal-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.checkout-modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.checkout-modal-close:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.form-group.party-size-group {

}

/* == Checkout Progress Bar Redesign == */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0 0 32px 0;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 32%;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 8px;
}

/* Шаги прогресса */
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80px; /* Give some width for the label */
}

/* Прижимаем номер первого шага к левому краю */
.progress-step:nth-child(2) {
    transform: translateX(-26px); /* сдвигаем влево, чтобы кружок оказался на краю */
}

/* Прижимаем номер последнего шага к правому краю */
.progress-step:last-child {
    transform: translateX(26px); /* сдвигаем вправо */
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 12px;
    background-color: var(--color-bg);
    border: 3px solid var(--color-border);
    color: var(--color-text-light);
    transition: all 0.4s ease;
    position: relative;
}

.step-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.4s ease;
}

/* Active State */
.progress-step.active .step-number {
    border-color: none;
    border: 0px;
    background: #ff6b35;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.25);
}

.progress-step.active .step-label {
    color: var(--color-primary);
}

/* Completed State */
.progress-step.completed .step-number {
    border-color: none;
    border: 0px;
    background: linear-gradient(135deg, #ff6b35 0%, #ffe1d6 100%);
    color: #fff;
}
.progress-step.completed .step-number::before {
    content: '✔';
    font-size: 18px;
    color: #fff;
    position: absolute;
}
.progress-step.completed .step-number {
    font-size: 0; /* Hide number and show checkmark */
}


.progress-step.completed .step-label {
    color: var(--color-text);
}

/* Connecting Line Progress */
.checkout-progress .progress-line {
    position: absolute;
    top: 32%;
    left: 0;
    height: 8px;
    background: linear-gradient(90deg, #FFC2AC 0%, #FF6B35 100%);
    z-index: 1;
    transform: translateY(-50%);
    transition: width 0.4s ease;
    width: 0; /* Initial width */
    border-radius: 8px;
}

/* Заполнение линии прогресса исходя из активного шага */
.step-2-active .checkout-progress .progress-line { width: 50%; }
.step-3-active .checkout-progress .progress-line { width: 100%; }


/* Основное содержимое */
.checkout-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.checkout-content {
    flex: 1;
    padding: 20px 32px 0px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.checkout-step {
    animation: fadeIn 0.3s ease;
    padding-bottom: 20px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}  

.step-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title i {
    color: var(--color-primary);
}

/* Формы */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

#address-details-row .form-group {
    width: calc(50% - 10px);
}

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

.form-group-checkbox label {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
}

.form-group-checkbox.agreement a {
    color: var(--color-primary);
    font-weight: 600;
}

.form-group label {
    font-weight: 400;
    color: var(--color-text);
    font-size: 14px;
}

.form-group-checkbox-desc {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 300;
    margin-bottom: 4px;
    margin-top: -4px;
}

.form-group label i {
    display: none; /* Убираем иконки, чтобы соответствовать стилю сайта */
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--color-bg-light);
    color: var(--color-text);
    font-family: var(--font-primary);
}

.form-group #notes {
    height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* Варианты доставки */
.delivery-type-selection,
.payment-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.delivery-option,
.payment-option {
    cursor: pointer;
    position: relative;
    display: flex;          /* позволяем контенту растягиваться */
    height: 100%;           /* растягиваем label до полной высоты grid-строки */
}

.delivery-option input[type="radio"],
.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 80px;
    transition: var(--transition);
    background: var(--color-bg-light);
    flex: 1 1 auto;        /* заполняем всю доступную высоту */
}

.delivery-option:hover .option-content,
.payment-option:hover .option-content {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.delivery-option input:checked + .option-content,
.payment-option input:checked + .option-content {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: var(--shadow);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.delivery-option input:checked + .option-content .option-icon,
.payment-option input:checked + .option-content .option-icon {
    transform: scale(1.1);
}

.option-text { flex: 1; }

.option-title {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
    font-size: 16px;
}

.option-desc {
    color: var(--color-text-light);
    font-size: 14px;
}

/* Секция адреса */
.address-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 12px;
    margin-top: -2px;
    margin-bottom: 16px;
}

.address-hint i {
    color: var(--checkout-info);
}

/* Цвет текста в address-hint по статусу */
.address-hint.loading { color: #f57f17; }
.address-hint.success { color: #2e7d32; }
.address-hint.error   { color: var(--color-danger); }

.delivery-map {
    height: 250px;
    width: 100%;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
}

/* Статус доставки */
.delivery-status {
    margin-top: 16px;
}

.delivery-status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    font-weight: 400;
    animation: fadeIn 0.3s ease;
    border: 1px solid transparent;
}

.delivery-status-message.pending,
.delivery-status-message.loading {
    background-color: #fff8e1;
    color: #f57f17;
    border-color: #ffecb3;
}

.delivery-status-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.delivery-status-message.error {
    background-color: #ffebee;
    color: var(--color-danger);
    border-color: #ffcdd2;
}

.address-suggest-container {
    position: relative;
}

/* Боковая панель с корзиной */
.checkout-sidebar {
    width: 340px;
    background: var(--color-bg-light);
    border-left: 1px solid var(--color-border);
    padding: 24px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;    
}

.checkout-cart {
    position: sticky;
    top: 30px;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

.checkout-cart-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 24px;
}

/* Товары в корзине */
.checkout-cart-title{cursor:default;}
.checkout-cart-items {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;               /* фикс iOS: занимает доступную высоту */
    min-height: 0;                /* фикс Safari + flex */
    gap: 8px;
    margin-bottom: 24px;
    overflow-y: auto;
    padding-right: 10px;
}

.checkout-cart-item {
    display: flex;
    gap: 16px;  
    padding: 12px 0;
    border-bottom: 1px solid hsl(0deg 0% 0% / 5%);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 0px;
    flex-shrink: 0;
    position: relative; /* для бейджа подарка */
    overflow: visible;
}

.cart-item-image img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 20px;
}

/* Бейдж "Подарок" на изображении товара */
.gift-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: #ff6b35; /* основной оранжевый */
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

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

.cart-item-name {
    font-weight: 500; font-size: 15px; margin-bottom: 4px;
}

.cart-item-variant {
    color: var(--color-text-light); 
    font-size: 12px; 
    line-height: 1.4;
    margin-top: 4px;
}

.cart-item-options {
    color: var(--color-text-light); font-size: 12px; line-height: 1.4;
}

.cart-item-price {
    display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
}

.cart-item-price .quantity {
    color: var(--color-text-light); font-size: 13px;
}

.cart-item-price .total {
    font-weight: 500; color: var(--color-text); font-size: 15px;
}

.cart-empty {
    text-align: center; color: var(--color-text-light); padding: 40px 20px;
}

/* Итоговая информация */
.checkout-cart-summary {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

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

.summary-row span:first-child {
    color: var(--color-text-light);
}
.summary-row span:last-child {
    font-weight: 500;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 500;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 12px;
}

.summary-row.total span:first-child {
    color: var(--color-text);
}

.summary-row.total span:last-child {
    color: var(--color-primary);
    font-size: 20px;
}

/* Футер с навигацией */
.checkout-modal-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto; /* Отступ сверху и выход за пределы родительского padding */
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
}

.footer-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-actions {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

/* Кнопки */
.btn-back,
.btn-cancel,
.btn-next,
.btn-submit {
    padding: 12px 21px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    font-family: var(--font-primary);
}

.btn-cancel {
    display: none;
}

.btn-back, .btn-cancel {
    background: var(--color-bg);
    color: var(--color-text-light);
    border-color: var(--color-border);
}

.btn-back:hover, .btn-cancel:hover {
    border-color: var(--color-text-light);
    color: var(--color-text);
}

.btn-next,
.btn-submit {
    background: linear-gradient(90deg, #ff8243 0%, #ff6b35 100%);
    color: var(--color-bg);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    white-space: nowrap; /* предотвращаем перенос текста */
}

/* небольшой отступ между спиннером и текстом */
.btn-submit {
    position: relative; /* база для абсолютного позиционирования спиннера */
}

.btn-submit .loading-spinner {
    /* убираем прежние margin-fix, размещаем абсолютным позиционированием */
    position: absolute;
    left: 20px;              /* расстояние от левого края кнопки */
    top: 20%;               /* по центру высоты */
    transform: translateY(-50%);
}

/* чтобы текст не наезжал на спиннер, даём дополнительный внутренний отступ */
.btn-submit.loading,         /* класс добавляется скриптом во время отправки */
.btn-submit:disabled {
    padding-left: 48px;      /* 20px (отступ) + 20px (спиннер) + 8px (gap) */
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-submit:disabled,
.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Мобильная корзина */
.checkout-mobile-cart { display: none; } /* Скрываем по умолчанию */

/* Загрузочный спиннер */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* === PARTY SIZE CONTROL (reuse cart styles) === */
#party-size-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F4;
    border-radius: 16px;
    padding: 2px;
    border: none;
    width: max-content;
}
#party-size-control .quantity-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}
#party-size-control .quantity-btn:hover:not(:disabled) {
    background: #e55a2b;
    transform: scale(1.1);
}
#party-size-control .quantity-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
}
#party-size-control .item-quantity {
    min-width: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* === DELIVERY EXTRA (date/time & party size) === */
.delivery-extra-section { 
}
.form-row.compact {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 0px;
    align-items: flex-start;
}
.delivery-main-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.delivery-schedule {
    flex-grow: 1;
}

.delivery-schedule .delivery-time-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.form-group address-suggest-container {
    margin-bottom: 20px;
}

#address-details-row {
    margin-top: 12px;
}

.delivery-time-options .time-option {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg-light);
    padding: 10px 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    font-family: var(--font-primary);
    font-size: 14px;
}

.delivery-time-options .time-option:hover {
    border-color: var(--color-primary);
}

.delivery-time-options .time-option input[type="radio"] {
    accent-color: var(--color-primary);
}

.scheduled-datetime {
    margin-top: 20px; /* remove margin from previous layout */
}
.scheduled-datetime label {
    display: block;
    margin-bottom: 8px; /* Same as other labels */
    font-weight: 400;
    color: var(--color-text);
    font-size: 14px;
}
.scheduled-datetime input[type="datetime-local"] {
    width: -webkit-fill-available;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    font-family: var(--font-primary);
    font-size: 14px;
}

/* === DELIVERY TIME SLIDER === */
.delivery-time-slider {
    width: 100%;
    position: relative;
    display: flex;
    background: #f8f9fa;
    border-radius: 64px;
    padding: 4px; /* немного меньше внутренний отступ */
    overflow: hidden;
    --item-count: 2;
}

.delivery-time-slider input[type="radio"] {
    display: none; /* Hide original radio buttons */
}

.delivery-time-slider .slider-option {
    display: flex;
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    user-select: none;
    align-items: center;
    justify-content: center;
}

.delivery-time-slider .slider-thumb {
    position: absolute;
    top: 4px;
    left: calc(4px + (100% - 8px) / var(--item-count) * 0);
    width: calc((100% - 8px) / var(--item-count));
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Move thumb and change text color on selection */
#time_now:checked ~ .slider-thumb {
    transform: translateX(0);
    left: calc(4px + (100% - 8px) / var(--item-count) * 0);
}

#time_scheduled:checked ~ .slider-thumb {
    transform: translateX(0); /* сброс transform */
    left: calc(4px + (100% - 8px) / var(--item-count) * 1);
}

#time_now:checked ~ .slider-option[for="time_now"],
#time_scheduled:checked ~ .slider-option[for="time_scheduled"] {
    color: #ff6b35;
    font-weight: 600;
}

.party-size-group input[type="number"] {
    width: 100%;
    max-width: -webkit-fill-available;
}

/* Кастомный чекбокс с оранжевым фоном и белой галочкой */
.form-group-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #ff6b35;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.form-group-checkbox input[type="checkbox"]:checked {
    background: #ff6b35;
}

.form-group-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 3px;
    width: 3px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .cart-title-toggle-icon{display:inline-block;margin-left:8px;transition:transform 0.3s;}
    .checkout-cart-title.collapsed .cart-title-toggle-icon{transform:rotate(180deg);}

    .checkout-cart-title{cursor:pointer;}
    .checkout-cart-items.collapsed{display:none;}

    /* Disable sticky when list collapsed */
    .checkout-modal-footer.footer-no-sticky{position:static;}

    /* iOS fix: отключаем sticky и fill-available, даём естественную высоту */
    .checkout-cart{
        position: static;
        height: auto;
    }

    .delivery-type-selection, .payment-type-selection {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .checkout-sidebar {
        width: 100%;
        box-sizing: border-box;
    }

    .checkout-modal {
        padding: 0px;
    }

    .checkout-modal-content {
        max-width: 100vw;
        max-height: 100%;
        height: 100%;
        width: 100vw;
        border-radius: 0px;
    }

    .checkout-header-top {
        padding: 12px 20px;
    }

    .checkout-modal-title {
        font-size: 20px;
    }

    .checkout-modal-body {
        flex-direction: column;
    }

    .checkout-content {
        padding: 12px 20px 0px 20px;
    }

    .checkout-progress::before {
        width: 84%;
        left: 8%;
    }

    .progress-step:last-child {
        transform: translateX(0px);
    }

    .progress-step:nth-child(2) {
        transform: translateX(-0px);
    }

    .checkout-progress .progress-line {
        left: 8%;
    }

    .checkout-cart-title {
        font-size: 16px;
    }

    .checkout-cart-title i {
        margin-right: 8px;
    }

    .checkout-modal-footer {
        padding: 12px 0px 12px 0px;
        width: 101%;
    }

    .btn-back, .btn-cancel, .btn-next, .btn-submit{
        padding: 10px 16px;
        font-size: 14px;
    }

    .form-group input, .form-group textarea, .form-group select {
        font-size: 14px;
    }

    .delivery-type-selection, .payment-type-selection {
        grid-template-columns: 1fr;
        gap: 8px;   
    }

    .address-suggest-container textarea {
        height: 44px;
    }
}

@media (max-width: 480px) {
    .checkout-modal {
        padding: 0px;
    }

    .checkout-modal-content {
        max-width: 100vw;
        max-height: 100%;
        height: 100%;
        width: 100vw;
        border-radius: 0px;
    }

    .checkout-header-top {
        padding: 12px 20px;
    }

    .checkout-modal-title {
        font-size: 20px;
    }

    .checkout-modal-body {
        flex-direction: column;
    }

    .checkout-content {
        padding: 12px 20px 0px 20px;
    }

    .checkout-progress::before {
        width: 84%;
        left: 8%;
    }

    .progress-step:last-child {
        transform: translateX(0px);
    }

    .progress-step:nth-child(2) {
        transform: translateX(-0px);
    }

    .checkout-progress .progress-line {
        left: 8%;
    }

    .checkout-cart-title {
        font-size: 16px;
    }

    .checkout-cart-title i {
        margin-right: 8px;
    }

    .checkout-modal-footer {
        padding: 12px 0px 12px 0px;
        width: 101%;
    }

    .btn-back, .btn-cancel, .btn-next, .btn-submit{
        padding: 10px 16px;
        font-size: 14px;
    }

    .form-group input, .form-group textarea, .form-group select {
        font-size: 14px;
    }

    .delivery-type-selection, .payment-type-selection {
        grid-template-columns: 1fr;
        gap: 8px;   
    }

    .address-suggest-container textarea {
        height: 44px;
    }
}

