/* ============================================================
   CASALINDA CART V1
   Full cart page / same visual DNA as minicart
   ============================================================ */


/* ------------------------------------------------------------
   PAGE
   ------------------------------------------------------------ */

.checkout-cart-index .page-title-wrapper {
    display: none;
}

.checkout-cart-index #maincontent {
    padding-top: 24px;
}

.checkout-cart-index .cart-form {
    margin: 0;
}


/* ------------------------------------------------------------
   MAIN GRID
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
}

.checkout-cart-index .cl-cart-products {
    min-width: 0;
}

.checkout-cart-index .cl-cart-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 15px;
    padding-bottom: 14px;

    border-bottom: 1px solid #dce4e8;
}

.checkout-cart-index .cl-cart-products__header h2 {
    margin: 0;

    color: #10283c;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
}

.checkout-cart-index .cl-cart-products__header p {
    margin: 5px 0 0;

    color: #6b7d87;
    font-size: 11px;
    font-weight: 700;
}


/* ------------------------------------------------------------
   PRODUCT LIST
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.checkout-cart-index .cl-cart-list__item {
    margin: 0;
    padding: 0;
}


/* ------------------------------------------------------------
   PRODUCT CARD
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 17px;

    min-height: 134px;
    padding: 13px;

    border: 1px solid #dce4e8;
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 1px 3px rgba(16, 40, 60, .035);
}

.checkout-cart-index .cl-cart-item__image {
    display: flex;

    width: 108px;
    height: 108px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid #edf1f3;
    border-radius: 7px;

    background: #fff;
}

.checkout-cart-index .cl-cart-item__image .product-image-container {
    width: 100% !important;
    height: 100% !important;
}

.checkout-cart-index .cl-cart-item__image .product-image-wrapper {
    height: 100%;
    padding-bottom: 0 !important;
}

.checkout-cart-index .cl-cart-item__image .product-image-photo {
    position: static !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain;
}

.checkout-cart-index .cl-cart-item__body {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.checkout-cart-index .cl-cart-item__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;

    align-items: start;
}

.checkout-cart-index .cl-cart-item__identity {
    min-width: 0;
}

.checkout-cart-index .cl-cart-item__name {
    margin: 0;

    color: #10283c;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 850;
}

.checkout-cart-index .cl-cart-item__name a {
    color: inherit;
    text-decoration: none;
}

.checkout-cart-index .cl-cart-item__name a:hover {
    color: #315d7d;
}

.checkout-cart-index .cl-cart-item__options {
    margin: 7px 0 0;

    color: #687b86;
    font-size: 10px;
    line-height: 1.4;
}

.checkout-cart-index .cl-cart-item__options > div {
    display: flex;
    gap: 5px;
}

.checkout-cart-index .cl-cart-item__options dt {
    font-weight: 500;
}

.checkout-cart-index .cl-cart-item__options dd {
    margin: 0;
    font-weight: 700;
}


/* ------------------------------------------------------------
   ROW TOTAL
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-item__amount {
    min-width: 95px;

    text-align: right;
}

.checkout-cart-index .cl-cart-item__amount-label {
    display: block;
    margin-bottom: 3px;

    color: #7a8b94;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .035em;
}

.checkout-cart-index .cl-cart-item__amount .price-box {
    color: #10283c;
    font-size: 14px;
    font-weight: 900;
}


/* hide Magento tax text noise */

.checkout-cart-index .cl-cart-item .price-label,
.checkout-cart-index .cl-cart-item .price-excluding-tax::before,
.checkout-cart-index .cl-cart-item .price-excluding-tax::after,
.checkout-cart-index .cl-cart-item .price-including-tax::before,
.checkout-cart-index .cl-cart-item .price-including-tax::after {
    display: none !important;
    content: none !important;
}


/* ------------------------------------------------------------
   CARD BOTTOM
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: auto;
    padding-top: 11px;
}


/* ------------------------------------------------------------
   QTY STEPPER
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-item__qty {
    display: grid;
    grid-template-columns: 32px 38px 32px;

    height: 34px;
    overflow: hidden;

    border: 1px solid #ccd7dd;
    border-radius: 6px;

    background: #fff;
}

.checkout-cart-index .cl-cart-item__qty-button {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: #fff;

    color: #10283c;

    font-size: 17px;
    line-height: 1;
    font-weight: 700;
}

.checkout-cart-index
.cl-cart-item__qty-button:hover:not(:disabled) {
    background: #f2f5f7;
}

.checkout-cart-index .cl-cart-item__qty-button:disabled {
    opacity: .3;
    cursor: default;
}

.checkout-cart-index .cl-cart-item__qty-input {
    width: 38px;
    height: 32px;

    padding: 0;

    border: 0;
    border-right: 1px solid #e2e8eb;
    border-left: 1px solid #e2e8eb;
    border-radius: 0;

    background: #fff;

    color: #10283c;

    font-size: 12px;
    font-weight: 900;
    text-align: center;

    appearance: textfield;
    -moz-appearance: textfield;
}

.checkout-cart-index
.cl-cart-item__qty-input::-webkit-inner-spin-button,
.checkout-cart-index
.cl-cart-item__qty-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}


/* ------------------------------------------------------------
   ITEM ACTIONS
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-cart-index .cl-cart-item__actions a,
.checkout-cart-index .cl-cart-item__actions button {
    display: inline-flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    padding: 0 !important;

    border: 1px solid #d5dfe4 !important;
    border-radius: 6px !important;

    background: #fff !important;

    color: #315d7d !important;
}

.checkout-cart-index .cl-cart-item__actions a:hover,
.checkout-cart-index .cl-cart-item__actions button:hover {
    background: #f2f6f8 !important;
}

.checkout-cart-index
.cl-cart-item__actions
.action-delete,
.checkout-cart-index
.cl-cart-item__actions
.action.remove {
    color: #b42318 !important;
}


/* ------------------------------------------------------------
   UPDATE / CART ACTIONS
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 13px;
}

.checkout-cart-index .cl-cart-update,
.checkout-cart-index .cl-cart-toolbar .btn {
    min-height: 36px;

    padding: 0 13px;

    border: 1px solid #cfd9df;
    border-radius: 6px;

    background: #fff;

    color: #315d7d;

    font-size: 10px;
    font-weight: 800;
}

.checkout-cart-index .cl-cart-update:hover,
.checkout-cart-index .cl-cart-toolbar .btn:hover {
    background: #f3f6f8;
}


/* ------------------------------------------------------------
   SUMMARY
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-summary {
    position: sticky;
    top: 18px;

    padding: 17px;

    border: 1px solid #dce4e8;
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 2px 8px rgba(16, 40, 60, .045);
}

.checkout-cart-index .cl-cart-summary__title {
    margin: 0 0 11px;
    padding-bottom: 12px;

    border-bottom: 1px solid #e5ebee;

    color: #10283c;

    font-size: 17px;
    line-height: 1.15;
    font-weight: 900;
}


/* ------------------------------------------------------------
   SUMMARY ACTIONS / COUPON
   ------------------------------------------------------------ */

.checkout-cart-index .cart-summary-actions {
    margin: 0 0 12px !important;
}

.checkout-cart-index .coupon-form {
    border-bottom: 1px solid #e5ebee;
}

.checkout-cart-index .coupon-form > summary {
    padding: 11px 0 !important;

    color: #315d7d;

    font-size: 11px;
    font-weight: 800;
}

.checkout-cart-index .coupon-form > summary svg {
    width: 17px;
    height: 17px;
}

.checkout-cart-index .coupon-form .form-input {
    min-height: 39px;

    border-color: #ccd7dd;
    border-radius: 6px;

    font-size: 11px;
}

.checkout-cart-index .coupon-form .btn {
    min-height: 39px;

    border-radius: 6px;

    background: #315d7d;

    color: #fff;

    font-size: 10px;
    font-weight: 900;
}


/* ------------------------------------------------------------
   TOTALS
   ------------------------------------------------------------ */

.checkout-cart-index #cart-totals {
    margin: 5px 0 14px;
}

.checkout-cart-index #cart-totals [class*="border-gray"] {
    border-color: #e3e9ec !important;
}

.checkout-cart-index #cart-totals .price {
    color: #10283c;
    font-weight: 850;
}

.checkout-cart-index #cart-totals .price-label,
.checkout-cart-index #cart-totals .price-excluding-tax::before,
.checkout-cart-index #cart-totals .price-excluding-tax::after,
.checkout-cart-index #cart-totals .price-including-tax::before,
.checkout-cart-index #cart-totals .price-including-tax::after {
    display: none !important;
    content: none !important;
}


/* ------------------------------------------------------------
   CHECKOUT BUTTON
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-checkout {
    display: flex;

    width: 100%;
    min-height: 47px;

    align-items: center;
    justify-content: center;

    margin-top: 11px;
    padding: 0 15px;

    border: 1px solid #f7dc3d;
    border-radius: 6px;

    background: #f7dc3d;

    color: #10283c !important;

    font-size: 12px;
    line-height: 1.15;
    font-weight: 900;

    text-decoration: none !important;
}

.checkout-cart-index .cl-cart-checkout:hover {
    background: #efd229;
}


/* ------------------------------------------------------------
   EXPRESS / EXTRA PAYMENT BUTTONS
   ------------------------------------------------------------ */

.checkout-cart-index .checkout-methods-items {
    margin-top: 10px;
}


/* ------------------------------------------------------------
   MESSAGES
   ------------------------------------------------------------ */

.checkout-cart-index .cl-cart-item__message {
    margin-top: 8px;

    font-size: 10px;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 1023px) {

    .checkout-cart-index .cl-cart-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .checkout-cart-index .cl-cart-summary {
        position: static;
        order: 2;
    }

    .checkout-cart-index .cl-cart-products {
        order: 1;
    }
}


@media (max-width: 640px) {

    .checkout-cart-index #maincontent {
        padding-top: 15px;
    }

    .checkout-cart-index .cl-cart-products__header h2 {
        font-size: 22px;
    }

    .checkout-cart-index .cl-cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 11px;

        min-height: 0;
        padding: 10px;
    }

    .checkout-cart-index .cl-cart-item__image {
        width: 76px;
        height: 76px;
    }

    .checkout-cart-index .cl-cart-item__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .checkout-cart-index .cl-cart-item__amount {
        min-width: 0;
        text-align: left;
    }

    .checkout-cart-index .cl-cart-item__amount-label {
        display: none;
    }

    .checkout-cart-index .cl-cart-item__name {
        font-size: 12px;
    }

    .checkout-cart-index .cl-cart-item__bottom {
        flex-wrap: wrap;
    }

    .checkout-cart-index .cl-cart-summary {
        padding: 15px;
    }
}

/* CASALINDA CART POLISH 1 */
.checkout-cart-index .page-title-wrapper,
.checkout-cart-index .page-title {
    display: none !important;
}


/* ============================================================
   CASALINDA CART FINAL POLISH
   ============================================================ */


/* Quantità aggiornata automaticamente: niente bottone legacy */

.checkout-cart-index .cl-cart-toolbar {
    display: none !important;
}


/* ------------------------------------------------------------
   DIAMANTES
   ------------------------------------------------------------ */

.checkout-cart-index
.cl-cart-summary
.cl-cart-rewards {
    margin: 10px 0 12px;
    padding: 12px 0 0;

    border-top: 1px solid #e3e9ec;
}

.checkout-cart-index
.cl-cart-rewards
.payment-option-title {
    margin: 0 0 9px;
    padding: 0;
}

.checkout-cart-index
.cl-cart-rewards
.payment-option-title strong {
    color: #10283c;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
}

.checkout-cart-index
.cl-cart-rewards
.payment-option-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.checkout-cart-index
.cl-cart-rewards
.wk_rs_points_details {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 9px !important;

    border: 1px solid #dce4e8 !important;
    border-radius: 6px;

    background: #f6f8f9;
}

.checkout-cart-index
.cl-cart-rewards
.wk_rs_cartsign {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;

    width: auto !important;
    min-width: 0 !important;
}

.checkout-cart-index
.cl-cart-rewards
.wk_rs_reward_value {
    color: #10283c !important;

    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.checkout-cart-index
.cl-cart-rewards
.wk_rs_amount_currency {
    color: #10283c !important;

    font-size: 11px !important;
    font-weight: 800 !important;
}

.checkout-cart-index
.cl-cart-rewards
.wk_rs_reward_text,
.checkout-cart-index
.cl-cart-rewards
.wk_rs_reward_text span,
.checkout-cart-index
.cl-cart-rewards
.wk_rs_points_details p,
.checkout-cart-index
.cl-cart-rewards
.wk_rs_points_details p span {
    margin: 0 !important;

    color: #6b7d87 !important;

    font-size: 9px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.checkout-cart-index
.cl-cart-rewards
#reward-form {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;

    align-items: end;

    margin-top: 2px;
}

.checkout-cart-index
.cl-cart-rewards
#reward-form
.payment-option-inner {
    margin: 0 !important;
}

.checkout-cart-index
.cl-cart-rewards
#reward-form
.field {
    margin: 0 !important;
}

.checkout-cart-index
.cl-cart-rewards
#reward-form
.control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-cart-index
.cl-cart-rewards
#reward_points {
    width: 100% !important;
    height: 38px !important;

    padding: 0 10px !important;

    border: 1px solid #ccd7dd !important;
    border-radius: 6px !important;

    background: #fff !important;

    color: #10283c !important;

    font-size: 11px !important;
}

.checkout-cart-index
.cl-cart-rewards
#apply_rewards {
    height: 38px;

    padding: 0 12px;

    border: 1px solid #315d7d;
    border-radius: 6px;

    background: #315d7d;

    color: #fff;

    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.checkout-cart-index
.cl-cart-rewards
#apply_rewards:hover {
    background: #274d69;
}

.checkout-cart-index
.cl-cart-rewards
.payment-option-content
> .payment-option-inner {
    grid-column: 1 / -1;
}

.checkout-cart-index
.cl-cart-rewards
.actions-toolbar {
    display: none !important;
}

.checkout-cart-index
.cl-cart-rewards
#cancel-Reward-form {
    display: grid;
    gap: 8px;

    margin-top: 3px;
}

.checkout-cart-index
.cl-cart-rewards
.wk_applied_rewards {
    margin: 0;

    color: #10283c;

    font-size: 10px;
    line-height: 1.4;
}

.checkout-cart-index
.cl-cart-rewards
.action-cancel {
    min-height: 34px;

    padding: 0 11px;

    border: 1px solid #ccd7dd;
    border-radius: 6px;

    background: #fff;

    color: #315d7d;

    font-size: 10px;
    font-weight: 900;
}

.checkout-cart-index
.cl-cart-rewards
hr {
    display: none;
}


/* ------------------------------------------------------------
   SUMMARY LAST TOUCH
   ------------------------------------------------------------ */

.checkout-cart-index
.cl-cart-summary
#cart-totals {
    margin-bottom: 8px;
}

.checkout-cart-index
.cl-cart-summary
.cl-cart-checkout {
    margin-top: 9px;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 640px) {

    .checkout-cart-index
    .cl-cart-rewards
    .payment-option-content {
        grid-template-columns: 1fr;
    }

    .checkout-cart-index
    .cl-cart-rewards
    #reward-form {
        grid-template-columns: 1fr;
    }

    .checkout-cart-index
    .cl-cart-rewards
    #apply_rewards {
        width: 100%;
    }
}
