.drg-cart {
    box-sizing: border-box;
    width: min(1320px, 100% - 48px);
    margin-inline: auto;
    padding: 26px 0 60px;
    color: #173f61;
    font: 15px/1.5 Inter, Arial, sans-serif;
}
.drg-cart *, .drg-cart *::before, .drg-cart *::after { box-sizing: border-box; }
.drg-cart-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; }
.drg-cart-crumbs a { color: #385e78; }
.drg-cart h1, .drg-cart .cart_totals h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #10345c;
}
.drg-cart h1 { margin: 14px 0 24px; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.woocommerce-cart main.drg-cart > .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px 28px;
    align-items: start;
    width: 100%;
    max-width: none;
    margin-inline: 0;
}
.drg-cart .woocommerce > :not(.woocommerce-cart-form, .cart-collaterals) { grid-column: 1 / -1; }
.drg-cart .woocommerce::before, .drg-cart .woocommerce::after,
.drg-cart .cart-collaterals::before, .drg-cart .cart-collaterals::after { display: none; }
.drg-cart .woocommerce > .cart-collaterals { width: 100%; min-width: 0; float: none; }
.drg-cart .woocommerce-cart-form, .drg-cart .cart_totals {
    border: 1px solid #dfe8ee;
    border-radius: 22px;
    background: #fff;
}
.drg-cart .woocommerce-cart-form { min-width: 0; width: 100%; padding: 8px 16px 0; }
.drg-cart .woocommerce .cart-collaterals .cart_totals { width: 100%; float: none; padding: 20px; background: #f4f9fd; }
.drg-cart .cart_totals h2 { margin: 0 0 12px; font-size: 28px; }
.drg-cart .woocommerce table.shop_table { margin: 0; border: 0; border-collapse: collapse; width: 100%; }
.drg-cart .woocommerce table.shop_table :is(th,td) { padding: 12px 8px; border: 0; border-bottom: 1px solid #e3edf3; vertical-align: middle; }
.drg-cart .woocommerce-cart-form th { color: #49657d; font-size: 13px; font-weight: 600; }
.drg-cart .woocommerce-cart-form :is(.product-price,.product-subtotal) { text-align: end; }
.drg-cart .woocommerce-cart-form .product-quantity { text-align: center; }
.drg-cart .woocommerce table.shop_table .product-thumbnail { width: 140px; }
.drg-cart .woocommerce table.shop_table .product-thumbnail img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #f4f9fd;
    border-radius: 14px;
}
.drg-cart .woocommerce table.shop_table .drg-cart-service td { background: #f5fafd; padding-block: 8px; }
.drg-cart .woocommerce table.shop_table .product-thumbnail .dr-drainage-logo--cart { width: 64px; height: 64px; margin-inline: auto; background: #fff; }
.drg-cart .product-thumbnail img.attachment-woocommerce_thumbnail[src*="woocommerce-placeholder"] { display: none; }
.drg-cart .product-name { color: #173f61; font-weight: 600; overflow-wrap: anywhere; }
.drg-cart .product-name a { color: #173f61; }
.drg-cart .variation dd p { margin: 0; }
.drg-cart .woocommerce-Price-amount { color: #173f61; font-weight: 500; font-variant-numeric: tabular-nums; }
.drg-cart .order-total .woocommerce-Price-amount { font-size: 20px; font-weight: 600; }
.drg-cart .woocommerce-Price-amount, .drg-checkout .woocommerce-Price-amount { white-space: nowrap; }
.drg-cart .quantity .qty { width: 64px; min-height: 44px; text-align: center; border: 1px solid #c9deeb; border-radius: 10px; }
.drg-cart .woocommerce a.remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dfe8ee; border-radius: 50%; color: #305a76 !important; text-decoration: none; }
.drg-cart .woocommerce a.remove:hover { background: #eef7fd; color: #075c9e !important; }
.drg-cart .woocommerce table.shop_table td.actions { border-bottom: 0; }
.drg-cart .woocommerce :is(button.button,a.button), .drg-checkout .woocommerce :is(button.button,a.button) {
    display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 14px;
    background: #075c9e; color: #fff; border: 0; border-radius: 12px; font: 700 14px/1.3 Inter, Arial, sans-serif; text-decoration: none;
}
.drg-cart .woocommerce :is(button.button,a.button):hover, .drg-checkout .woocommerce :is(button.button,a.button):hover { background: #044d86; color: #fff; }
.drg-cart .woocommerce button.button:disabled { opacity: .55; }
.drg-cart .woocommerce button.button[name="update_cart"] {
    transition: background-color 180ms ease;
    cursor: pointer;
}
.drg-cart .woocommerce button.button[name="update_cart"]:disabled {
    background-color: #075c9e;
}
.drg-cart .woocommerce button.button[name="update_cart"]:enabled:hover { background-color: #034878; }
.drg-cart .woocommerce button.button[name="update_cart"]:enabled:focus-visible {
    outline: 2px solid #075c9e;
    outline-offset: 3px;
}
.drg-cart .woocommerce button.button[name="update_cart"]:enabled:active { background-color: #023759; }
@media (prefers-reduced-motion: reduce) {
    .drg-cart .woocommerce button.button[name="update_cart"] { transition: none; }
}
.drg-cart-summary-lines { margin: 0; }
.drg-cart-summary-lines > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    padding-block: 7px;
}
.drg-cart-summary-lines :is(dt,dd) { margin: 0; }
.drg-cart-summary-lines dd { text-align: end; }
.drg-cart-summary-lines small { display: block; font-size: 12px; font-weight: 400; color: #49657d; }
.drg-cart-summary-lines .drg-cart-shipping { grid-template-columns: auto minmax(0, 1fr); }
.drg-cart-summary-lines .drg-delivery-estimate { max-width: 26ch; justify-self: end; font-size: 13px; color: #49657d; }
.drg-cart-summary-lines .order-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid #d7e5ef; font-weight: 600; }
.drg-cart-delivery { margin-top: 12px; padding: 12px; border: 1px solid #cfe3f2; border-radius: 12px; background: #eaf5fc; }
.drg-cart-delivery h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 15px/1.4 Inter, Arial, sans-serif; color: #173f61; }
.drg-cart-delivery svg { width: 20px; height: 20px; color: #075c9e; }
.drg-cart-delivery p { margin: 7px 0; font-size: 14px; }
.drg-cart-delivery a { color: #075c9e; font-size: 14px; }
.drg-cart .drg-cart-summary .wc-proceed-to-checkout { display: grid; gap: 8px; padding: 23px 0 0; }
.drg-cart .drg-cart-summary .wc-proceed-to-checkout::before,
.drg-cart .drg-cart-summary .wc-proceed-to-checkout::after { display: none; }
.drg-cart .woocommerce .wc-proceed-to-checkout a.button { width: 100%; min-height: 46px; margin: 0; gap: 8px; font-size: 15px; padding: 10px 14px; }
.drg-cart .woocommerce .wc-proceed-to-checkout a.drg-cart-continue { border: 1px solid #c9deeb; background: #fff; color: #075c9e; }
.drg-cart .woocommerce .wc-proceed-to-checkout a.drg-cart-continue:hover { background: #eef7fd; }
.drg-cart .woocommerce-message, .drg-cart .woocommerce-info, .drg-cart .wc-block-components-notice-banner.is-success {
    margin: 0 0 8px; padding: 12px 16px; background: #eef7fd; color: #173f61; border: 1px solid #dbe8f1; border-radius: 12px;
}
.drg-cart .woocommerce-message::before, .drg-cart .woocommerce-info::before,
.drg-cart .drg-cart-added + .wc-forward { display: none; }
.drg-cart .cart-row__label, .drg-cart .variation { margin: 5px 0 0; font-size: 13px; color: #49657d; }
.drg-cart .product-name .drg-retrofit-remove { display: block; width: fit-content; margin-top: 6px; color: #49657d; font-size: 13px; font-weight: 500; text-underline-offset: 2px; }
@media (max-width: 1199px) {
    .woocommerce-cart main.drg-cart > .woocommerce { grid-template-columns: minmax(0, 1fr); }
    .drg-cart .cart-collaterals { max-width: 420px; width: 100%; justify-self: end; }
}
@media (max-width: 768px) {
    .drg-cart { width: calc(100% - 30px); }
    .drg-cart .woocommerce table.shop_table_responsive thead { display: none; }
    .drg-cart .woocommerce table.shop_table_responsive tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 10px 0; }
    .drg-cart .woocommerce table.shop_table_responsive tr td { display: block; padding: 4px; text-align: left !important; border: 0; min-width: 0; }
    .drg-cart .woocommerce table.shop_table_responsive tr td::before { float: none; display: block; color: #49657d; font-size: 12px; }
    .drg-cart .woocommerce table.shop_table_responsive tr td:not([data-title])::before { content: none; }
    .drg-cart .woocommerce table.shop_table_responsive tr td { background: transparent; }
    .drg-cart .woocommerce table.shop_table_responsive tr td.actions { grid-column: 1 / -1; }
    .drg-cart .cart-collaterals { max-width: none; }
    .drg-cart .woocommerce table.shop_table_responsive tr.cart_item {
        grid-template-columns: minmax(60px, .9fr) minmax(0, 1fr) minmax(0, 1fr) 30px;
        grid-template-areas: "photo name name remove" "price qty subtotal subtotal";
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #e3edf3;
    }
    .drg-cart .woocommerce table.shop_table_responsive tr.drg-cart-service { background: #f5fafd; }
    .drg-cart .woocommerce table.shop_table_responsive .cart_item td { background: transparent; padding: 4px 0; }
    .drg-cart .woocommerce table.shop_table_responsive .cart_item .product-thumbnail { display: block; grid-area: photo; width: 100%; }
    .drg-cart .woocommerce table.shop_table_responsive .product-thumbnail img { width: min(100%, 84px); height: auto; aspect-ratio: 1; }
    .drg-cart .woocommerce table.shop_table_responsive .product-thumbnail .dr-drainage-logo--cart { width: min(100%, 56px); height: auto; margin: 0; }
    .drg-cart .cart_item .product-name { grid-area: name; }
    .drg-cart .cart_item .product-name::before { content: none; }
    .drg-cart .cart_item .product-remove { grid-area: remove; align-self: start; }
    .drg-cart .cart_item .product-price { grid-area: price; }
    .drg-cart .cart_item .product-quantity { grid-area: qty; }
    .drg-cart .cart_item .product-subtotal { grid-area: subtotal; }
}
