/* Preserve the original product image and its full proportions in the cart. */
.woocommerce-cart .woocommerce-cart-form .product-thumbnail a {
    display: grid;
    place-items: center;
    width: clamp(72px, 7vw, 102px);
    height: 68px;
    padding: 4px;
    background: #eef1f3;
    border-radius: 10px;
}
.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    max-height: 60px;
    margin: 0;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.climatech-cart-installation {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    padding: 12px;
    text-align: start;
    color: #121212;
    background: #eef7fb;
    border: 1px solid #9dc3d1;
    border-radius: 8px;
}
.climatech-cart-installation input { accent-color: #006583; margin: 0; }
.climatech-cart-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    margin: 0;
}
.climatech-cart-installation small { color: #43525b; padding-inline-start: 22px; }
.climatech-cart-acceptance { border-top: 1px solid #c9dee7; margin-top: 5px; padding-top: 8px; }
.climatech-cart-acceptance[hidden] { display: none; }
.climatech-cart-acceptance label { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.climatech-cart-installation a.climatech-cart-terms-link {
    color: #005d80 !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.climatech-cart-installation a.climatech-cart-terms-link:hover { color: #003e56 !important; }
#climatech-terms-required {
    padding: 10px 12px;
    color: #862332;
    background: #fcf0f1;
    border: 1px solid #f0c8ce;
    border-radius: 7px;
    font-weight: 600;
}
#climatech-terms-required[hidden],
.woocommerce-cart [data-climatech-installation-terms][hidden],
.woocommerce-cart ul.woocommerce-error[hidden] { display: none !important; }
.woocommerce-cart .cart_totals :is(.woocommerce-shipping-destination, .woocommerce-shipping-calculator, .shipping-calculator-button),
.woocommerce-cart .cart_totals:has(.climatech-all-deliveries-installed) tr.shipping {
    display: none !important;
}
#climatech-cart-terms {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    z-index: 100100;
    box-sizing: border-box;
    width: min(calc(100vw - 32px), 600px);
    max-width: none;
    height: fit-content;
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    color: #11232d;
    text-align: start;
    direction: ltr;
    background: #fff;
    border: 1px solid #d6e6ed;
    border-radius: 16px;
    box-shadow: 0 24px 72px rgb(11 32 44 / 28%);
}
#climatech-cart-terms[open] { display: block; }
#climatech-cart-terms:not([open]) { display: none; }
#climatech-cart-terms::backdrop { background: rgb(10 25 33 / 62%); }
#climatech-cart-terms .climatech-terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: #eef7fb;
    border-bottom: 1px solid #d6e6ed;
}
#climatech-cart-terms h2 { margin: 0; font-size: clamp(20px, 3vw, 26px); }
#climatech-cart-terms .climatech-terms-content { padding: 20px 24px 4px; font-size: 15px; line-height: 1.65; }
#climatech-cart-terms .climatech-terms-content p { margin: 0 0 14px; }
#climatech-cart-terms .climatech-terms-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 4px 24px 22px; }
#climatech-cart-terms .climatech-cart-terms-accept,
#climatech-cart-terms .climatech-cart-terms-icon {
    background: #006583;
    color: #fff;
    border: 0;
    border-radius: 7px;
}
#climatech-cart-terms .climatech-terms-footer .climatech-cart-terms-close {
    background: #eef3f6;
    color: #1b3644;
    border-radius: 7px;
}
#climatech-cart-terms .climatech-terms-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 23px;
    line-height: 1;
}
@media (max-width: 640px) {
    .climatech-cart-option { grid-template-columns: auto minmax(0, 1fr); }
    .climatech-cart-option b { grid-column: 2; }
}
