.checkout-page {
    background-color: var(--color-white);
}
.flex-checkout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

/* Left Column */
.left-column {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Address Styles */
.address-container {
    margin-bottom: 20px;
}

.selected-address {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.address-details {
    flex: 1;
}

.address-name {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.address-badge {
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: normal;
}

.address-phone {
    color: #666;
    margin-bottom: 5px;
}

.address-text {
    font-size: 14px;
    color: #333;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-edit-btn,
.address-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

.address-delete-btn {
    color: #d9534f;
}

.add-address-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0066cc;
    cursor: pointer;
    margin-bottom: 30px;
}

.add-address-btn:hover {
    background-color: #f5f5f5;
}

/* Checkout shipping summary (saved addresses) */
.checkout-ship-summary {
    margin-bottom: 1rem;
}

.checkout-ship-summary__subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.checkout-ship-summary__divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 0 1rem;
}

.checkout-ship-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-ship-summary__row {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0.75rem 1.25rem;
    align-items: start;
    font-size: 0.9375rem;
}

.checkout-ship-summary__row--notes {
    align-items: stretch;
}

.checkout-ship-summary__label {
    color: #666;
    font-weight: 500;
}

.checkout-ship-summary__value {
    color: #1a1a1a;
    word-break: break-word;
}

.checkout-ship-summary__value--multiline {
    line-height: 1.45;
}

.checkout-ship-summary__notes {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    box-sizing: border-box;
}
.checkout-ship-summary__notes:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    outline: 0;
}
.checkout-ship-summary__footer {
    margin-top: 1rem;
}

.checkout-ship-summary__change {
    background: none;
    border: none;
    padding: 0;
    color: #0066cc;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.checkout-ship-summary__change:hover {
    color: #004499;
}

.checkout-ship-summary__add-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.875rem;
    color: #0066cc;
    font-size: 0.9375rem;
    text-decoration: none;
}

.checkout-ship-summary__add-link:hover {
    text-decoration: underline;
}

.checkout-ship-empty {
    padding: 1rem;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9375rem;
}

.checkout-ship-empty p {
    margin: 0 0 0.75rem;
}

.checkout-pick-address {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.checkout-pick-address__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    margin: 0;
}

.checkout-pick-address__item:last-child {
    border-bottom: none;
}

.checkout-pick-address__item input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkout-pick-address__text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #333;
}

/* Responsive moved to bottom (see below) */

/* Payment Methods */
.payment-section {
    margin-top: 30px;
}

.payment-methods {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
    background-color: #f9f9f9;
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option.selected {
    background-color: #e6f7ff;
}

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

.payment-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
}

.payment-info {
    flex: 1;
}

.payment-text {
    font-weight: 500;
    margin-bottom: 3px;
}

.payment-desc {
    font-size: 12px;
    color: #666;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.item-image {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.item-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.item-price {
    font-weight: 600;
}

/* Promo Section */
.promo-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.promo-input {
    display: flex;
    margin-bottom: 10px;
}

.promo-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.apply-btn {
    padding: 10px 20px;
    background-color: #5bc0de;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.promo-applied {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-code-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.promo-code-tag i {
    font-size: 0.75rem;
}

.promo-remove-btn {
    background: none;
    border: none;
    color: #c62828;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    line-height: 1;
    font-weight: 700;
}

.promo-remove-btn:hover {
    color: #b71c1c;
}

.promo-message {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    padding: 0.25rem 0;
}

.promo-message--success {
    color: #2e7d32;
}

.promo-message--error {
    color: #c62828;
}

.promo-hint {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.no-promo {
    font-style: italic;
    margin-top: 5px;
}

.promo-link {
    color: #0066cc;
    cursor: pointer;
    margin-top: 5px;
}

/* Public vouchers list (checkout) */
.checkout-public-vouchers {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background-color: #fffdf7;
    border: 1px solid #ffe0b2;
    border-radius: 0.5rem;
}

.checkout-public-vouchers__title {
    margin: 0 0 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.checkout-public-vouchers__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.45;
}

.checkout-public-vouchers__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-public-vouchers__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0.375rem;
}

.checkout-public-vouchers__item:last-child {
    margin-bottom: 0;
}

.checkout-public-vouchers__item--disabled {
    opacity: 0.72;
}

.checkout-public-vouchers__info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.checkout-public-vouchers__code {
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    color: #ff6b35;
}

.checkout-public-vouchers__label {
    font-size: 0.8125rem;
    color: #333;
}

.checkout-public-vouchers__meta {
    font-size: 0.75rem;
    color: #888;
}

.checkout-public-vouchers__apply-btn {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid #ff6b35;
    background: #ff6b35;
    color: #fff;
    border-radius: 0.25rem;
    cursor: pointer;
}

.checkout-public-vouchers__apply-btn:hover {
    filter: brightness(0.95);
}

.checkout-public-vouchers__reason {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #999;
    max-width: 6.5rem;
    text-align: right;
}

@media (max-width: 768px) {
    .checkout-public-vouchers__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-public-vouchers__apply-btn,
    .checkout-public-vouchers__reason {
        align-self: flex-end;
        max-width: none;
    }
}

/* Summary Lines */
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #333;
}

.summary-line.discount {
    color: #d9534f;
}

.summary-line.total {
    font-size: 18px;
    font-weight: 600;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.place-order-btn:hover {
    background-color: #004499;
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
    font-family: inherit;
}

.swal2-input {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.swal2-input:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
}

.swal2-select {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.swal2-textarea {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-size: 14px !important;
    margin: 0 !important;
    resize: vertical !important;
}

/* SweetAlert2 Form Layout */
.swal2-form-container {
    text-align: left;
}

.swal2-form-group {
    margin-bottom: 15px;
}

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

.swal2-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.swal2-form-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: 0;
}

.swal2-form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.swal2-form-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: 0;
}

.swal2-form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 60px;
    resize: vertical;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.swal2-form-textarea:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: 0;
}



/* Address action buttons hover effects */
.address-edit-btn:hover {
    color: #ff6b35;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.address-delete-btn:hover {
    color: #c9302c;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Responsive adjustments for SweetAlert2 */
@media (max-width: 768px) {
    .swal2-popup {
        width: 95% !important;
        margin: 0 auto !important;
    }

    .swal2-form-group {
        margin-bottom: 12px;
    }

    .swal2-form-label {
        font-size: 13px;
    }

    .swal2-form-input,
    .swal2-form-select,
    .swal2-form-textarea {
        font-size: 13px;
        padding: 8px;
    }
}

/* =========================
   RESPONSIVE (desktop-first)
   Breakpoints: 1199 / 991 / 767 / 374
   ========================= */

@media (max-width: 1199px) {
    .flex-checkout {
        max-width: 100%;
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }
}

@media (max-width: 991px) {
    .flex-checkout {
        grid-template-columns: 1fr;
    }

    .left-column,
    .order-summary {
        padding: 0;
    }

    .checkout-ship-summary__row {
        grid-template-columns: 8.5rem 1fr;
        gap: 0.5rem 1rem;
    }

    .payment-option {
        padding: 0.875rem;
    }

    .payment-icon {
        margin-right: 0.75rem;
    }
}

@media (max-width: 767px) {
    .flex-checkout {
        padding: 0;
        gap: 1rem;
    }

    .section-title,
    .summary-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .checkout-ship-summary__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .checkout-ship-summary__label {
        font-size: 0.8125rem;
    }

    .order-item {
        gap: 0.75rem;
    }

    .item-image {
        width: 3.5rem;
        height: 3.5rem;
        margin-right: 0;
        flex: 0 0 auto;
    }

    .promo-input {
        flex-direction: column;
        gap: 0.5rem;
    }

    .promo-input input {
        border-radius: 0.25rem;
    }

    .apply-btn {
        width: 100%;
        border-radius: 0.25rem;
    }

    .checkout-public-vouchers__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-public-vouchers__apply-btn,
    .checkout-public-vouchers__reason {
        align-self: flex-end;
        max-width: none;
    }

    .place-order-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* SweetAlert2 on small screens */
    .swal2-popup {
        width: 95% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 374px) {

    .payment-desc {
        font-size: 0.75rem;
    }

    .checkout-public-vouchers {
        padding: 0.75rem;
    }
}