.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;
}

/* 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-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;
}

/* 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: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

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

/* 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;
}

/* 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;
    }
}

/* 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 Styles */
@media (max-width: 768px) {
    .flex-checkout {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
