/* =========================================================
   SANVI MASALE - CHECKOUT PAGE
========================================================= */

.checkout-page {
    background: #f7f7f7;
    min-height: 700px;
}


/* =========================================================
   BANNER
========================================================= */

.checkout-page-banner {
    background: linear-gradient(
        135deg,
        #fff7f7,
        #ffffff
    );
    border-bottom: 1px solid #eeeeee;
    padding: 55px 0;
}

.checkout-banner-content {
    text-align: center;
}

.checkout-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #777;
    font-size: 14px;
}

.checkout-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.checkout-breadcrumb a:hover {
    color: #d62828;
}

.checkout-breadcrumb i {
    color: #aaa;
    font-size: 11px;
}

.checkout-banner-content h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    color: #222;
}

.checkout-banner-content p {
    margin: 10px 0 0;
    color: #777;
    font-size: 15px;
}


/* =========================================================
   SECTION
========================================================= */

.checkout-section {
    padding: 45px 0 70px;
}


/* =========================================================
   CHECKOUT CARD
========================================================= */

.checkout-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    margin-bottom: 22px;
    overflow: hidden;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 25px;
    border-bottom: 1px solid #eeeeee;
}

.checkout-section-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff1f1;
    color: #d62828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.checkout-card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.checkout-card-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #888;
}

.checkout-card-body {
    padding: 25px;
}


/* =========================================================
   LABEL
========================================================= */

.checkout-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.checkout-label span {
    color: #d62828;
}

.checkout-label small {
    font-weight: 400;
    color: #999;
}


/* =========================================================
   INPUT
========================================================= */

.checkout-input-group {
    position: relative;
}

.checkout-input-group > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    z-index: 2;
}

.checkout-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 12px 15px 12px 42px;
    outline: none;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
}

.checkout-input:focus {
    border-color: #d62828;
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.08);
}

.checkout-input::placeholder {
    color: #aaa;
}


/* =========================================================
   SELECT
========================================================= */

.checkout-select {
    appearance: auto;
    cursor: pointer;
}


/* =========================================================
   TEXTAREA
========================================================= */

.checkout-textarea-group > i {
    top: 20px;
    transform: none;
}

.checkout-textarea {
    resize: vertical;
    min-height: 95px;
}

.checkout-notes {
    padding-left: 15px;
    resize: vertical;
}


/* =========================================================
   DELIVERY INFORMATION
========================================================= */

.delivery-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 16px;
}

.delivery-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff1f1;
    color: #d62828;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-info-box > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.delivery-info-box strong {
    color: #333;
    font-size: 14px;
}

.delivery-info-box span {
    color: #888;
    font-size: 12px;
    margin-top: 3px;
}

.delivery-info-box span b {
    color: #159957;
}

.delivery-free {
    color: #159957;
    font-weight: 700;
    font-size: 14px;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.checkout-summary-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.checkout-summary-header {
    padding: 22px 24px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-summary-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.checkout-summary-header span {
    font-size: 13px;
    color: #777;
}

.checkout-summary-body {
    padding: 22px 24px;
}


/* =========================================================
   PRODUCTS
========================================================= */

.checkout-product {
    display: flex;
    gap: 13px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eeeeee;
}

.checkout-product:last-child {
    margin-bottom: 0;
}

.checkout-product-image {
    width: 65px;
    height: 65px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-product-details {
    flex: 1;
    position: relative;
    min-width: 0;
}

.checkout-product-details h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    padding-right: 65px;
}

.checkout-product-details span {
    display: block;
    color: #888;
    font-size: 12px;
}

.checkout-product-details strong {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    color: #222;
}


/* =========================================================
   PRICE SUMMARY
========================================================= */

.checkout-price-summary {
    margin-top: 20px;
}

.checkout-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
}

.checkout-price-row span {
    color: #777;
}

.checkout-price-row strong {
    color: #333;
}

.checkout-free {
    color: #159957 !important;
}

.checkout-price-divider {
    height: 1px;
    background: #eeeeee;
    margin: 18px 0;
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-total-row span {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.checkout-total-row strong {
    font-size: 23px;
    font-weight: 800;
    color: #d62828;
}


/* =========================================================
   TERMS
========================================================= */

.checkout-terms {
    margin-top: 22px;
    padding: 13px;
    background: #fafafa;
    border-radius: 8px;
}

.checkout-terms label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
}

.checkout-terms input {
    margin-top: 3px;
    accent-color: #d62828;
}

.checkout-terms a {
    color: #d62828;
    text-decoration: none;
    font-weight: 600;
}


/* =========================================================
   PLACE ORDER BUTTON
========================================================= */

.place-order-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    background: #d62828;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.place-order-btn:hover {
    background: #b71c1c;
    transform: translateY(-1px);
}

.place-order-btn:active {
    transform: translateY(0);
}


/* =========================================================
   SECURITY
========================================================= */

.checkout-security {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 14px;
    background: #f7f7f7;
    border-radius: 8px;
}

.checkout-security > i {
    color: #159957;
    font-size: 20px;
}

.checkout-security div {
    display: flex;
    flex-direction: column;
}

.checkout-security strong {
    font-size: 12px;
    color: #444;
}

.checkout-security span {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}


/* =========================================================
   BENEFITS
========================================================= */

.checkout-benefits {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    margin-top: 20px;
    overflow: hidden;
}

.checkout-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
}

.checkout-benefit:last-child {
    border-bottom: 0;
}

.checkout-benefit > i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff1f1;
    color: #d62828;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-benefit div {
    display: flex;
    flex-direction: column;
}

.checkout-benefit strong {
    font-size: 13px;
    color: #333;
}

.checkout-benefit span {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .checkout-summary-card {
        position: static;
    }

}


@media (max-width: 767px) {

    .checkout-page-banner {
        padding: 40px 0;
    }

    .checkout-banner-content h1 {
        font-size: 30px;
    }

    .checkout-section {
        padding: 30px 0 50px;
    }

    .checkout-card-header {
        padding: 18px;
    }

    .checkout-card-body {
        padding: 18px;
    }

    .checkout-summary-header,
    .checkout-summary-body {
        padding-left: 18px;
        padding-right: 18px;
    }

}


@media (max-width: 480px) {

    .checkout-banner-content h1 {
        font-size: 27px;
    }

    .checkout-breadcrumb {
        font-size: 12px;
        gap: 7px;
    }

    .checkout-card-header h2 {
        font-size: 17px;
    }

    .checkout-card-header p {
        font-size: 11px;
    }

    .checkout-total-row strong {
        font-size: 20px;
    }

}