.checkout-main {
    padding: 40px 0 60px;
    background: var(--shop-color-bg);
}

.checkout-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.flex-checkout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.left-column {
    flex: 1;
    min-width: 0;
}

.order-summary {
    width: 400px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--shop-color-border, #eee);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-color-text, #333);
    margin: 0 0 15px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
}

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

.selected-address {
    background: #fff;
    border: 1px solid var(--shop-color-border, #eee);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.address-details {
    flex: 1;
    min-width: 0;
}

.address-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-color-text, #333);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.address-badge {
    display: inline-block;
    background: #d93a10;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
}

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

.address-text {
    font-size: 14px;
    color: var(--shop-color-text, #333);
    line-height: 1.5;
}

.address-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.address-edit-btn,
.address-delete-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--shop-color-border, #eee);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.address-edit-btn:hover {
    border-color: #d93a10;
    color: #d93a10;
}

.address-delete-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.add-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px dashed #d93a10;
    border-radius: 8px;
    color: #d93a10;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.add-address-btn:hover {
    background: #d93a10;
    color: #fff;
    border-style: solid;
}

.payment-section {
    margin-top: 30px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--shop-color-border, #eee);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #d93a10;
}

.payment-option.selected {
    border-color: #d93a10;
    background: rgba(217, 58, 16, 0.03);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.payment-info {
    flex: 1;
    min-width: 0;
}

.payment-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-color-text, #333);
    margin-bottom: 3px;
}

.payment-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-color-text, #333);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--shop-color-border, #eee);
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
}

.order-item-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.order-item-list::-webkit-scrollbar {
    width: 4px;
}

.order-item-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.order-item-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dotted var(--shop-color-border, #eee);
}

.order-item:last-child {
    border-bottom: 0;
}

.order-item.out-of-stock-item {
    opacity: 0.6;
}

.item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 1px solid #ededed;
    border-radius: 4px;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--shop-color-text, #333);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-variant {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

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

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: #d93a10;
}

.stock-warning {
    font-size: 12px;
    color: #ff4d4f;
    margin-top: 4px;
    font-weight: 500;
}

.promo-section {
    padding: 15px 0;
    border-bottom: 1px solid var(--shop-color-border, #eee);
}

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

.promo-input input {
    flex: 1;
    height: 42px;
    padding: 0 15px;
    border: 1px solid var(--shop-color-border, #eee);
    border-radius: 4px;
    font-size: 14px;
    color: var(--shop-color-text, #333);
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.promo-input input:focus {
    border-color: #d93a10;
}

.promo-input input::placeholder {
    color: #999;
}

.apply-btn {
    height: 42px;
    padding: 0 20px;
    background: #d93a10;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.apply-btn:hover {
    background: #c13310;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--shop-color-text, #333);
}

.summary-line.discount span:last-child {
    color: #27a208;
}

.summary-line.total {
    padding-top: 15px;
    margin-top: 5px;
    border-top: 1px solid var(--shop-color-border, #eee);
}

.summary-line.total span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.summary-line.total span:last-child {
    font-size: 18px;
    font-weight: 700;
    color: #d93a10;
}

.place-order-btn {
    width: 100%;
    height: 48px;
    margin-top: 20px;
    background: #d93a10;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

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

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

.swal2-form-container {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 5px;
}

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

.swal2-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--shop-color-text, #333);
    margin-bottom: 6px;
}

.swal2-form-input,
.swal2-form-select,
.swal2-form-textarea {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    border: 1px solid var(--shop-color-border, #eee);
    border-radius: 4px;
    font-size: 14px;
    color: var(--shop-color-text, #333);
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.swal2-form-input:focus,
.swal2-form-select:focus,
.swal2-form-textarea:focus {
    border-color: #d93a10;
}

.swal2-form-textarea {
    height: 80px;
    padding: 12px 15px;
    resize: none;
}

.swal2-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .flex-checkout {
        flex-direction: column;
    }

    .order-summary {
        width: 100%;
        position: static;
        order: -1;
    }

    .order-item-list {
        max-height: 250px;
    }
}

@media (max-width: 767px) {
    .checkout-main {
        padding: 20px 0 40px;
    }

    .section-title {
        font-size: 16px;
    }

    .order-summary {
        padding: 15px;
        border-radius: 0;
        margin: 0 -15px;
        width: calc(100% + 30px);
        border-left: 0;
        border-right: 0;
    }

    .summary-title {
        font-size: 16px;
    }

    .selected-address {
        flex-direction: column;
        gap: 12px;
    }

    .address-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .payment-option {
        padding: 12px;
    }

    .payment-icon {
        width: 32px;
        height: 32px;
    }

    .promo-input {
        flex-direction: column;
    }

    .apply-btn {
        width: 100%;
    }

    .place-order-btn {
        height: 44px;
        font-size: 14px;
    }
}
