.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: #c4b5fd;
    background: rgba(159, 120, 255, 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(159, 120, 255, 0.04);
    box-shadow: 0 2px 12px rgba(159, 120, 255, 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: #c4b5fd;
    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(159, 120, 255, 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-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;
}

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