/* =========================================================
   CHECKOUT
========================================================= */

.checkout-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkout-heading > div:first-child span {
    color: #ff3d81;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.checkout-heading h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 4px 0 0;
}

.checkout-secure {
    color: #198754;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   CARD
========================================================= */

.checkout-card,
.checkout-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border-bottom: 1px solid #eee;
}

.checkout-card-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-card-header strong {
    font-size: 13px;
}

.checkout-card-header > a {
    color: #ff3d81;
    font-size: 10px;
    font-weight: 600;
}

.checkout-step {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff1f6;
    color: #ff3d81;
    font-size: 10px;
    font-weight: 700;
}

.checkout-card-body {
    padding: 20px;
}


/* =========================================================
   ADDRESS
========================================================= */

.address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-option {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 9px;
    cursor: pointer;
}

.address-option:has(input:checked) {
    border-color: #ff3d81;
    background: #fff8fb;
}

.address-option input {
    margin-top: 4px;
    accent-color: #ff3d81;
}

.address-content {
    flex: 1;
}

.address-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.address-top strong {
    font-size: 12px;
}

.address-type,
.default-address {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 8px;
}

.address-type {
    background: #f1f5f9;
    color: #64748b;
}

.default-address {
    background: #dcfce7;
    color: #15803d;
}

.address-content p {
    color: #666;
    font-size: 10px;
    line-height: 1.6;
    margin: 7px 0 0;
}

.address-content small {
    display: block;
    color: #888;
    font-size: 9px;
    margin-top: 5px;
}

.no-address {
    text-align: center;
    padding: 25px;
}

.no-address > i {
    display: block;
    font-size: 35px;
    color: #ff3d81;
    margin-bottom: 10px;
}

.no-address strong {
    display: block;
    font-size: 13px;
}

.no-address p {
    color: #888;
    font-size: 10px;
}

.btn-add-address {
    border: none;
    background: #ff3d81;
    color: #fff;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 10px;
}


/* =========================================================
   PAYMENT
========================================================= */

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: #ff3d81;
    background: #fff8fb;
}

.payment-option input {
    accent-color: #ff3d81;
}

.payment-option strong {
    display: block;
    font-size: 11px;
}

.payment-option strong i {
    color: #ff3d81;
    margin-right: 5px;
}

.payment-option small {
    display: block;
    margin-top: 3px;
    color: #888;
    font-size: 9px;
}

.disabled-payment {
    opacity: .5;
    cursor: not-allowed;
}


/* =========================================================
   SUMMARY
========================================================= */

.checkout-summary {
    padding: 20px;
    position: sticky;
    top: 20px;
}

.checkout-summary h3 {
    font-size: 15px;
    margin-bottom: 18px;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkout-item-image {
    position: relative;
    width: 52px;
    height: 62px;
    flex-shrink: 0;
    background: #f8f8f8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-image > i {
    color: #aaa;
}

.checkout-item-image > span {
    position: absolute;
    right: -1px;
    top: -1px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff3d81;
    color: #fff;
    border-radius: 10px;
    font-size: 8px;
}

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-details strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.checkout-item-details small {
    display: block;
    color: #888;
    font-size: 8px;
    margin-top: 3px;
}

.checkout-item > strong {
    font-size: 10px;
    white-space: nowrap;
}

.checkout-summary .summary-row {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 10px;
    margin-bottom: 12px;
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 17px 0;
}

.checkout-total span {
    font-size: 12px;
}

.checkout-total strong {
    font-size: 18px;
}

.place-order-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 7px;
    background: #ff3d81;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.place-order-button:hover {
    background: #e91e68;
}

.place-order-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.checkout-note {
    text-align: center;
    color: #888;
    font-size: 8px;
    margin-top: 12px;
}


/* =========================================================
   MODAL
========================================================= */

#addressModal label {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 600;
}

#addressModal .form-control,
#addressModal .form-select {
    height: 40px;
    border-radius: 6px;
    font-size: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .checkout-heading {
        align-items: flex-start;
    }

    .checkout-secure {
        display: none;
    }

    .checkout-heading h1 {
        font-size: 21px;
    }

}