/* Checkout Container */
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.checkout-breadcrumb {
    background: white;
    padding: 15px 0px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.checkout-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.checkout-breadcrumb a:hover {
    color: #2e4053;
}

.checkout-breadcrumb span {
    color: #212121;
    font-weight: 500;
}

/* Login Prompt Banner */
.checkout-login-banner {
    background: linear-gradient(135deg, #2e4053 0%, #1a2733 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.checkout-login-info {
    flex: 1;
}

.checkout-login-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.checkout-login-desc {
    font-size: 14px;
    opacity: 0.9;
}

.checkout-login-btn {
    background: white;
    color: #2e4053;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Main Layout */
.checkout-main-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

/* Section Card */
.checkout-section {
    background: white;
    border-radius: 8px;
    padding: 25px 0px;
    margin-bottom: 20px;
}

.checkout-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-number {
    width: 30px;
    height: 30px;
    background: #2e4053;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Form */
.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
    display: block;
}

.checkout-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #212121;
    outline: none;
    transition: all 0.3s;
}

.checkout-form-input:focus {
    border-color: #2e4053;
    box-shadow: 0 0 0 3px rgba(46, 64, 83, 0.1);
}

.checkout-form-input::placeholder {
    color: #999;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

textarea.checkout-form-input {
    resize: vertical;
    min-height: 100px;
}

/* Address Card (for logged in users) */
.checkout-address-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.checkout-address-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.checkout-address-card:hover {
    border-color: #2e4053;
    box-shadow: 0 2px 8px rgba(46, 64, 83, 0.1);
}

.checkout-address-card.selected {
    border-color: #2e4053;
    background: #f8f9fa;
}

.checkout-address-type {
    display: inline-block;
    background: #2e4053;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.checkout-address-name {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.checkout-address-details {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.checkout-address-phone {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
}

.checkout-add-address-btn {
    width: 100%;
    background: transparent;
    border: 2px dashed #2e4053;
    color: #2e4053;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-add-address-btn:hover {
    background: #f8f9fa;
}

/* Payment Options */
.checkout-payment-options {
    display: grid;
    gap: 15px;
}

.checkout-payment-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-payment-option:hover {
    border-color: #2e4053;
    box-shadow: 0 2px 8px rgba(46, 64, 83, 0.1);
}

.checkout-payment-option.selected {
    border-color: #2e4053;
    background: #f8f9fa;
}

.checkout-payment-radio {
    width: 20px;
    height: 20px;
    accent-color: #2e4053;
    cursor: pointer;
}

.checkout-payment-info {
    flex: 1;
}

.checkout-payment-name {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 4px;
}

.checkout-payment-desc {
    font-size: 13px;
    color: #666;
}

.checkout-payment-icon {
    /* width: 50px;
    height: 50px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Order Summary */
.checkout-summary {
    background: white;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.checkout-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
}

.checkout-summary-label {
    color: #666;
}

.checkout-summary-value {
    font-weight: 500;
    color: #212121;
}

.checkout-summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #212121;
}

.checkout-summary-savings {
    background: #e8f5e9;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    color: #388e3c;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.checkout-place-order-btn {
    width: 100%;
    background: #ff6f00;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-place-order-btn:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.checkout-secure-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.checkout-continue-btn {
    width: 100%;
    background: #2e4053;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 20px;
}

.checkout-continue-btn:hover {
    background: #1a2733;
}

/* Login Modal */
.checkout-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.checkout-login-modal.active {
    display: flex;
}

.checkout-login-modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.checkout-login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.checkout-login-modal-close:hover {
    background: #f5f5f5;
    color: #212121;
}

.checkout-login-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 10px;
}

.checkout-login-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.checkout-login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.checkout-login-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.checkout-login-tab.active {
    color: #2e4053;
    border-bottom-color: #2e4053;
}

.checkout-login-form {
    display: none;
}

.checkout-login-form.active {
    display: block;
}

.checkout-login-submit {
    width: 100%;
    background: #2e4053;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.checkout-login-submit:hover {
    background: #1a2733;
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-main-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-login-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}