.checkout-area {
    padding: 40px 0 80px;
    background: #fafafa;
    min-height: 60vh;
}

.checkout-panel {
    background: #fff;
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 24px;
    border: 1px solid #eceff8;
}

.checkout-panel h4 {
    font-family: "Cinzel", serif;
    color: #140C40;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eceff8;
}

.checkout-panel h4 i {
    color: #1a75bc;
    margin-right: 8px;
}

/* Address Selection */
.address-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    padding: 16px 18px;
    border: 2px solid #eceff8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    position: relative;
}

.address-option:hover {
    border-color: #7ec0e8;
    background: rgba(26, 117, 188, 0.02);
}

.address-option.selected,
.address-option input[type="radio"]:checked ~ .address-option-body {
    border-color: transparent;
}

.address-option input[type="radio"]:checked + label .address-option {
    border-color: transparent;
}

label:has(input[type="radio"]:checked) .address-option {
    border-color: #1a75bc;
    background: rgba(26, 117, 188, 0.04);
    box-shadow: 0 2px 12px rgba(26, 117, 188, 0.12);
}

.address-option input[type="radio"] {
    margin-top: 3px;
    margin-right: 14px;
    accent-color: #1a75bc;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.address-option-body {
    flex: 1;
}

.address-option-body .address-name {
    font-weight: 600;
    color: #140C40;
    font-size: 15px;
    margin-bottom: 2px;
}

.address-option-body .address-phone {
    color: #646D77;
    font-size: 13px;
    margin-bottom: 4px;
}

.address-option-body .address-detail {
    color: #646D77;
    font-size: 13px;
    line-height: 1.5;
}

.address-badge-default {
    display: inline-block;
    background: #1a75bc;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.address-empty-state {
    text-align: center;
    padding: 30px 20px;
    background: #f7f7fd;
    border-radius: 8px;
    border: 1px dashed #d4d0e8;
}

.address-empty-state i {
    font-size: 36px;
    color: #7ec0e8;
    margin-bottom: 12px;
    display: block;
}

.address-empty-state p {
    margin-bottom: 12px;
    color: #646D77;
}

.btn-add-address {
    display: inline-block;
    background: #1a75bc;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-add-address:hover {
    background: #140C40;
    color: #fff;
    text-decoration: none;
}

/* Order Notes */
.checkout-notes textarea {
    width: 100%;
    border: 1px solid #eceff8;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #140C40;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.checkout-notes textarea:focus {
    outline: none;
    border-color: #1a75bc;
    box-shadow: 0 0 0 3px rgba(26, 117, 188, 0.1);
}

.checkout-notes textarea::placeholder {
    color: #a0a8b4;
}

/* Order Summary Sidebar */
.checkout-summary {
    background: #fff;
    border: 1px solid #eceff8;
    border-radius: 12px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}

.checkout-summary h4 {
    font-family: "Cinzel", serif;
    color: #140C40;
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eceff8;
}

.checkout-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f8;
}

.checkout-item:last-of-type {
    border-bottom: none;
}

.checkout-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eceff8;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.checkout-item-name {
    font-weight: 600;
    font-size: 13px;
    color: #140C40;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-qty {
    color: #646D77;
    font-size: 12px;
}

.checkout-item-price {
    font-weight: 600;
    color: #140C40;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 12px;
}

.checkout-divider {
    border-top: 1px solid #eceff8;
    margin: 16px 0;
}

.checkout-voucher .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.checkout-voucher .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #eceff8;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #140C40;
    background: #fff;
    box-shadow: none;
}

.checkout-voucher .form-control:focus {
    outline: none;
    border-color: #1a75bc;
    box-shadow: 0 0 0 3px rgba(26, 117, 188, 0.1);
}

.checkout-voucher #btn-apply-voucher {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #1a75bc;
    border-radius: 0 8px 8px 0;
    background: #1a75bc;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.checkout-voucher #btn-apply-voucher:hover {
    background: #140C40;
    border-color: #140C40;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #646D77;
}

.checkout-row span:last-child {
    font-weight: 500;
    color: #140C40;
}

.checkout-row.shipping span:last-child {
    color: #646D77;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    border-top: 2px solid #140C40;
    margin-top: 8px;
}

.checkout-total span:first-child {
    font-weight: 700;
    font-size: 16px;
    color: #140C40;
    font-family: "Cinzel", serif;
}

.checkout-total span:last-child {
    font-weight: 700;
    font-size: 22px;
    color: #1a75bc;
}

.btn-place-order {
    display: block;
    width: 100%;
    background: #1a75bc;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    text-align: center;
}

.btn-place-order:hover {
    background: #140C40;
    box-shadow: 0 6px 20px rgba(20, 12, 64, 0.2);
    transform: translateY(-1px);
}

.btn-place-order:active {
    transform: translateY(0);
}

.btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.checkout-secure-note {
    text-align: center;
    margin-top: 14px;
    color: #a0a8b4;
    font-size: 12px;
}

.checkout-secure-note i {
    margin-right: 4px;
    color: #28a745;
}

/* Payment Method */
.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-option {
    display: block;
    margin-bottom: 0;
    cursor: pointer;
}

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

.payment-method-body {
    padding: 16px 18px;
    border: 2px solid #eceff8;
    border-radius: 10px;
    transition: all 0.25s ease;
    background: #fff;
}

.payment-method-option input[type="radio"]:checked + .payment-method-body {
    border-color: #1a75bc;
    background: rgba(26, 117, 188, 0.04);
    box-shadow: 0 0 0 1px rgba(26, 117, 188, 0.15);
}

.payment-method-title {
    font-weight: 600;
    color: #140C40;
    margin-bottom: 4px;
}

.payment-method-title i {
    color: #1a75bc;
    margin-right: 8px;
}

.payment-method-desc {
    font-size: 13px;
    color: #6b7280;
}

.paypal-payment-section {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #eceff8;
}

#paypal-button-container {
    margin-bottom: 16px;
    min-height: 48px;
}

.payment-message {
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 8px;
}

.payment-message-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.payment-message-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.payment-message-info {
    display: block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.paypal-payment-hint {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.paypal-payment-hint i {
    color: #1a75bc;
    margin-right: 6px;
}

.paypal-sandbox-hint {
    margin: 0;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.paypal-sandbox-hint i {
    color: #d97706;
    margin-right: 6px;
}

/* Checkout Result Pages */
.checkout-result {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    border: 1px solid #eceff8;
}

.checkout-result-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.checkout-result-success .checkout-result-icon {
    color: #22c55e;
}

.checkout-result-failed .checkout-result-icon {
    color: #ef4444;
}

.checkout-result h2 {
    font-family: "Cinzel", serif;
    color: #140C40;
    margin-bottom: 12px;
}

.checkout-result p {
    color: #4b5563;
    margin-bottom: 8px;
}

.checkout-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn-checkout-secondary {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid #140C40;
    color: #140C40;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-checkout-secondary:hover {
    background: #140C40;
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-summary {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 575px) {
    .checkout-panel {
        padding: 20px 16px;
    }

    .checkout-summary {
        padding: 20px 16px;
    }

    .address-option {
        padding: 12px 14px;
    }
}
