/* CubeWeb cart 2.3.0
 * Custom visual shell, native WooCommerce cart logic.
 */

body.woocommerce-cart,
body.cw-woo.woocommerce-cart {
    background: #f7f9f8 !important;
}

body.woocommerce-cart .ws-page,
body.woocommerce-cart main,
body.woocommerce-cart .site-main {
    overflow: visible !important;
}

.cw-cart-page {
    min-height: 72vh;
    padding: 150px 0 110px;
    background:
        radial-gradient(circle at 8% 4%, rgba(31, 173, 166, .07), transparent 27%),
        #f7f9f8;
}

.cw-cart-page__container {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto;
}

.cw-cart-runtime,
.cw-cart-runtime .woocommerce,
.cw-cart-runtime .woocommerce-notices-wrapper {
    width: 100%;
}

.cw-cart-runtime .woocommerce-notices-wrapper:empty {
    display: none;
}

.cw-cart-runtime .woocommerce-error,
.cw-cart-runtime .woocommerce-info,
.cw-cart-runtime .woocommerce-message {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 58px;
    margin: 0 0 22px !important;
    padding: 15px 18px !important;
    border: 1px solid #d9e5e3 !important;
    border-left: 4px solid #16a6a0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #15383a !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    box-shadow: 0 10px 30px rgba(11, 43, 45, .04) !important;
}

.cw-cart-runtime .woocommerce-error::before,
.cw-cart-runtime .woocommerce-info::before,
.cw-cart-runtime .woocommerce-message::before,
.cw-cart-runtime .woocommerce-error::after,
.cw-cart-runtime .woocommerce-info::after,
.cw-cart-runtime .woocommerce-message::after {
    display: none !important;
    content: none !important;
}

.cw-cart-runtime .woocommerce-error .button,
.cw-cart-runtime .woocommerce-info .button,
.cw-cart-runtime .woocommerce-message .button {
    margin-left: auto !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
}

.cw-cart {
    width: 100%;
    color: #102f32;
}

/* Hard reset of legacy child-theme cart rules. */
body.woocommerce-cart .cw-cart .woocommerce-cart-form {
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-cart .cw-cart .cart_totals.cw-cart-summary {
    position: sticky !important;
    top: 118px !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: #0e3335 !important;
    box-shadow: 0 24px 55px rgba(8, 42, 44, .18) !important;
}

body.woocommerce-cart .cw-cart .cw-cart-coupon .button,
body.woocommerce-cart .cw-cart .cw-cart-update {
    border-radius: 11px !important;
}

body.woocommerce-cart .cw-cart .cw-cart-summary__cta .checkout-button {
    border: 0 !important;
    border-radius: 14px !important;
    background: #25afa8 !important;
    box-shadow: 0 14px 30px rgba(37,175,168,.2) !important;
}

.cw-cart *,
.cw-cart *::before,
.cw-cart *::after {
    box-sizing: border-box;
}

.cw-cart__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 38px;
}

.cw-cart__kicker {
    display: block;
    margin-bottom: 5px;
    color: #129b95;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cw-cart__header h1 {
    margin: 0 !important;
    color: #0d3032 !important;
    font-size: clamp(42px, 5vw, 66px) !important;
    font-weight: 800 !important;
    line-height: .98 !important;
    letter-spacing: -.045em !important;
}

.cw-cart__continue {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    color: #1c4547 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease;
}

.cw-cart__continue:hover {
    color: #109b95 !important;
    transform: translateX(-2px);
}

.cw-cart__continue svg {
    width: 18px;
    height: 18px;
}

.cw-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
}

.cw-cart__main,
.cw-cart__summary,
.cw-cart__form {
    min-width: 0;
}

.cw-cart-panel {
    overflow: hidden;
    border: 1px solid #dce7e5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(19, 55, 58, .055);
}

.cw-cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid #e5eeec;
}

.cw-cart-panel__head h2 {
    margin: 0 !important;
    color: #0f3133 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.cw-cart-panel__head span {
    color: #678083;
    font-size: 13px;
    font-weight: 700;
}

.cw-cart-list {
    padding: 0 28px;
}

.cw-cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
    padding: 30px 0;
    border-bottom: 1px solid #e5eeec;
}

.cw-cart-item:last-child {
    border-bottom: 0;
}

.cw-cart-item__media {
    position: relative;
    overflow: hidden;
    width: 150px;
    height: 150px;
    border-radius: 18px;
    background: #eef3f2;
}

.cw-cart-item__media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.cw-cart-item__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
}

.cw-cart-item__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #7f999a;
    background:
        linear-gradient(145deg, rgba(255,255,255,.55), transparent 60%),
        #eaf0ef;
}

.cw-cart-item__placeholder svg {
    width: 54px;
    height: 54px;
}

.cw-cart-item__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cw-cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.cw-cart-item__copy {
    min-width: 0;
}

.cw-cart-item__type {
    display: inline-flex;
    margin-bottom: 8px;
    color: #718789;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cw-cart-item h3 {
    margin: 0 !important;
    color: #0c2e31 !important;
    font-size: clamp(20px, 2vw, 25px) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    letter-spacing: -.02em !important;
}

.cw-cart-item h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.cw-cart-item h3 a:hover {
    color: #129b95 !important;
}

.cw-cart-item__meta,
.cw-cart-item__meta p,
.cw-cart-item .variation,
.cw-cart-item .variation p {
    margin: 8px 0 0 !important;
    color: #6b8183 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.cw-cart-item .variation dt,
.cw-cart-item .variation dd {
    display: inline !important;
    float: none !important;
    margin: 0 5px 0 0 !important;
}

.cw-cart-item__remove {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    padding: 7px 9px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #748789 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.cw-cart-item__remove:hover {
    background: #fff0f0 !important;
    color: #c94848 !important;
}

.cw-cart-item__remove::before,
.cw-cart-item__remove::after {
    display: none !important;
    content: none !important;
}

.cw-cart-item__remove svg {
    width: 17px;
    height: 17px;
}

.cw-cart-item__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 30px;
}

.cw-cart-item__label {
    display: block;
    margin-bottom: 7px;
    color: #789092;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cw-cart-item__single-qty {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dce7e5;
    border-radius: 10px;
    color: #153b3e;
    font-size: 14px;
    font-weight: 800;
    background: #f9fbfb;
}

.cw-qty {
    display: inline-grid;
    grid-template-columns: 38px 48px 38px;
    align-items: center;
    height: 42px;
    overflow: hidden;
    border: 1px solid #d8e5e3;
    border-radius: 11px;
    background: #fff;
}

.cw-qty__button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #153d40;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.cw-qty__button:hover {
    background: #f0f6f5;
}

.cw-qty .quantity {
    width: 48px !important;
    margin: 0 !important;
}

.cw-qty input.qty {
    width: 48px !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-left: 1px solid #edf2f1 !important;
    border-right: 1px solid #edf2f1 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #12383b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.cw-qty input.qty::-webkit-inner-spin-button,
.cw-qty input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.cw-cart-item__price {
    text-align: right;
}

.cw-cart-item__price strong {
    display: block;
    color: #0d3032;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.cw-cart-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
    align-items: end;
    padding: 26px 28px 28px;
    border-top: 1px solid #e5eeec;
    background: #fbfcfc;
}

.cw-cart-coupon {
    display: grid;
    grid-template-columns: minmax(210px, .9fr) minmax(280px, 1.1fr);
    gap: 18px;
    align-items: center;
}

.cw-cart-coupon__copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cw-cart-coupon__copy > svg {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    color: #16a49e;
}

.cw-cart-coupon__copy strong,
.cw-cart-coupon__copy span {
    display: block;
}

.cw-cart-coupon__copy strong {
    color: #14393b;
    font-size: 13px;
    font-weight: 800;
}

.cw-cart-coupon__copy span {
    margin-top: 2px;
    color: #7a8f91;
    font-size: 11px;
    line-height: 1.35;
}

.cw-cart-coupon__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.cw-cart-coupon input {
    width: 100% !important;
    height: 46px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d7e4e2 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #15383a !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.cw-cart-coupon .button,
.cw-cart-update {
    height: 46px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 46px !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.cw-cart-coupon .button {
    background: #163d40 !important;
    color: #fff !important;
}

.cw-cart-coupon .button:hover {
    background: #0d2e30 !important;
}

.cw-cart-actions__update {
    display: flex;
    justify-content: flex-end;
}

.cw-cart-update {
    background: transparent !important;
    color: #627b7d !important;
    border: 1px solid #d8e5e3 !important;
}

.cw-cart-update:hover:not(:disabled) {
    color: #153d40 !important;
    background: #fff !important;
}

.cw-cart-update:disabled,
.cw-cart-update[disabled] {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

.cw-cart-summary {
    position: sticky;
    top: 118px;
    overflow: hidden;
    border-radius: 24px;
    background: #0e3335;
    color: #fff;
    box-shadow: 0 24px 55px rgba(8, 42, 44, .18);
}

.cw-cart-summary__head {
    padding: 30px 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.cw-cart-summary__head > span {
    display: block;
    margin-bottom: 5px;
    color: #7bd4cf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cw-cart-summary__head h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
}

.cw-cart-summary__rows {
    padding: 10px 30px 0;
}

.cw-cart-summary__row,
.cw-cart-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cw-cart-summary__row {
    min-height: 54px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #c9d8d8;
    font-size: 13px;
}

.cw-cart-summary__row strong,
.cw-cart-summary__row .amount {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
}

.cw-cart-summary__row a {
    color: #82ddd7 !important;
}

.cw-cart-summary__shipping {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    color: #d5e1e1;
}

.cw-cart-summary__shipping table,
.cw-cart-summary__shipping tbody,
.cw-cart-summary__shipping tr,
.cw-cart-summary__shipping th,
.cw-cart-summary__shipping td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

.cw-cart-summary__shipping th {
    margin-bottom: 10px !important;
    color: #fff !important;
}

.cw-cart-summary__shipping ul#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cw-cart-summary__shipping ul#shipping_method li {
    margin: 8px 0 !important;
}

.cw-cart-summary__shipping a,
.cw-cart-summary__shipping .shipping-calculator-button {
    color: #82ddd7 !important;
}

.cw-cart-summary__total {
    padding: 22px 0 18px;
    color: #fff;
}

.cw-cart-summary__total > span {
    font-size: 16px;
    font-weight: 800;
}

.cw-cart-summary__total strong,
.cw-cart-summary__total .amount {
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.035em;
}

.cw-cart-summary__total small.includes_tax,
.cw-cart-summary__total small.tax_label {
    display: block;
    margin-top: 5px;
    color: #9eb6b7 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.cw-cart-summary__cta {
    padding: 0 30px 24px !important;
}

.cw-cart-summary__cta .checkout-button,
.cw-cart-summary__cta a.checkout-button,
.cw-cart-summary__cta .button.alt {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #25afa8 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(37,175,168,.2) !important;
    transition: transform .2s ease, background .2s ease !important;
}

.cw-cart-summary__cta .checkout-button:hover,
.cw-cart-summary__cta a.checkout-button:hover,
.cw-cart-summary__cta .button.alt:hover {
    background: #31beb7 !important;
    transform: translateY(-1px);
}

.cw-cart-summary__footer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 30px 24px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: #9fb5b6;
    font-size: 11px;
    line-height: 1.45;
}

.cw-cart-summary__footer svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #69cbc5;
}

.cw-cart-summary .woocommerce-shipping-destination,
.cw-cart-summary .woocommerce-shipping-calculator,
.cw-cart-summary .shipping-calculator-form {
    color: #c4d4d4 !important;
}

.cw-cart-summary input,
.cw-cart-summary select,
.cw-cart-summary .select2-selection {
    background: #fff !important;
    color: #12383b !important;
}

/* Native Woo wrappers that should not introduce their own layout. */
.cw-cart .cart-collaterals,
.cw-cart .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.cw-cart .cart_totals > h2,
.cw-cart .cart_totals > table {
    display: none !important;
}

.cw-cart .cross-sells {
    width: 100% !important;
    float: none !important;
    margin-top: 36px !important;
}

/* Empty cart */
.cw-cart-runtime .wc-empty-cart-message,
.cw-cart-runtime .cart-empty {
    text-align: center;
}

.cw-cart-runtime .cart-empty {
    margin: 50px 0 18px !important;
    color: #0e3335 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
}

.cw-cart-runtime .return-to-shop {
    text-align: center;
}

.cw-cart-runtime .return-to-shop .button {
    min-height: 50px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    background: #1aa8a1 !important;
    color: #fff !important;
    font-weight: 800 !important;
    line-height: 50px !important;
}

@media (max-width: 1120px) {
    .cw-cart__layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 24px;
    }

    .cw-cart-coupon {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .cw-cart-page {
        padding: 125px 0 80px;
    }

    .cw-cart-page__container {
        width: min(100% - 36px, 760px);
    }

    .cw-cart__layout {
        grid-template-columns: 1fr;
    }

    .cw-cart__summary {
        order: 2;
    }

    .cw-cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cw-cart-page {
        padding: 108px 0 64px;
    }

    .cw-cart-page__container {
        width: min(100% - 24px, 600px);
    }

    .cw-cart__header {
        align-items: flex-start;
        margin-bottom: 26px;
    }

    .cw-cart__header h1 {
        font-size: 43px !important;
    }

    .cw-cart__continue span {
        display: none;
    }

    .cw-cart-panel,
    .cw-cart-summary {
        border-radius: 18px;
    }

    .cw-cart-panel__head {
        padding: 20px;
    }

    .cw-cart-list {
        padding: 0 20px;
    }

    .cw-cart-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 15px;
        padding: 22px 0;
    }

    .cw-cart-item__media {
        width: 96px;
        height: 112px;
        border-radius: 13px;
    }

    .cw-cart-item__type {
        margin-bottom: 5px;
    }

    .cw-cart-item h3 {
        font-size: 18px !important;
    }

    .cw-cart-item__remove span {
        display: none;
    }

    .cw-cart-item__bottom {
        align-items: flex-end;
        margin-top: 18px;
    }

    .cw-cart-item__price strong {
        font-size: 18px;
    }

    .cw-cart-actions {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cw-cart-coupon__copy span {
        display: none;
    }

    .cw-cart-actions__update,
    .cw-cart-update {
        width: 100%;
    }

    .cw-cart-coupon__form {
        grid-template-columns: 1fr auto;
    }

    .cw-cart-summary__head,
    .cw-cart-summary__rows,
    .cw-cart-summary__cta,
    .cw-cart-summary__footer {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

@media (max-width: 420px) {
    .cw-cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .cw-cart-item__media {
        width: 82px;
        height: 98px;
    }

    .cw-cart-item__bottom {
        gap: 12px;
    }

    .cw-qty {
        grid-template-columns: 34px 42px 34px;
    }

    .cw-qty__button {
        width: 34px;
    }

    .cw-qty .quantity,
    .cw-qty input.qty {
        width: 42px !important;
    }
}
