/* Cart page, option 11 "Total first" - woocommerce/cart/cart.php, inc/oil-cart.php.
   Tokens as in oil-listing.css. The totals (woocommerce/cart/cart-totals.php) are
   a plain list; customizer.css's older "CART PAGE" card styles are neutralised. */

.gy-ct {
    --navy: #001630;
    --yellow: #FBBD00;
    --yellow-h: #FFC811;
    --text: #23303F;
    --muted: #6B7280;
    --line: #E7E9EE;
    --line-2: #D9DEE6;
    --soft: #F3F5F8;
    --red: #E0463A;
    --green: #0E9F6E;
    --orange: #E8912D;
    max-width: 980px;
    margin: 0 auto;
    color: var(--text);
}
.gy-ct *, .gy-ct *::before, .gy-ct *::after { box-sizing: border-box; }
.gy-ct svg { flex: 0 0 auto; }

/* ---------------------------------------------------------------- hero */
.gy-ct__hero { padding: 6px 0 32px; border-bottom: 1px solid var(--line); text-align: center; }
.gy-ct__title { margin: 0 0 8px; color: var(--navy); font: 800 clamp(26px, 4.2vw, 40px)/1.15 'Roboto', sans-serif; letter-spacing: 0; text-transform: none; }
.gy-ct__title b { font-weight: 800; white-space: nowrap; box-shadow: inset 0 -.32em 0 var(--yellow); }
.gy-ct__title b .woocommerce-Price-amount { font-weight: inherit; }
.gy-ct__sub { margin: 0 0 22px; color: var(--muted); font: 400 15px/1.5 'Open Sans', sans-serif; }
.gy-ct__go,
.woocommerce-cart .gy-ct .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--yellow) !important;
    color: var(--navy) !important;
    font: 800 16px/1.2 'Roboto', sans-serif !important;
    letter-spacing: .02em;
    text-decoration: none !important;
    transition: background-color .15s, transform .1s;
}
.gy-ct__go { width: 100%; max-width: 330px; margin: 0 auto; }
.gy-ct__go:hover,
.woocommerce-cart .gy-ct .wc-proceed-to-checkout a.checkout-button:hover { background: var(--yellow-h) !important; color: var(--navy) !important; }
.gy-ct__go:active { transform: translateY(1px); }
.gy-ct__go:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------------------------------------------------------------- lines */
.gy-ct__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.gy-ct__ph { width: 120px; height: 120px; border-radius: 18px; overflow: hidden; background: #0a43a6; }
.gy-ct__ph a { display: block; height: 100%; }
.woocommerce-cart .gy-ct__ph img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; border-radius: 0 !important; object-fit: cover; }
.gy-ct__name { margin: 0; font: 800 20px/1.2 'Roboto', sans-serif; letter-spacing: 0; text-transform: uppercase; }
.gy-ct__name a { color: var(--navy) !important; text-decoration: none; }
.gy-ct__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gy-ct__spec { margin: 4px 0 0; color: var(--muted); font: 400 13.5px/1.45 'Open Sans', sans-serif; }
.gy-ct__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.gy-ct__pack { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--navy); font: 700 12.5px/1 'Roboto', sans-serif; }
/* availability = the listing's 3-segment gauge */
.gy-ct__av { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 'Roboto', sans-serif; white-space: nowrap; }
.gy-ct__av::before { content: ""; width: 14px; height: 6px; margin-right: 32px; border-radius: 3px; background: currentColor; box-shadow: 16px 0 0 var(--g2, currentColor), 32px 0 0 var(--g3, currentColor); }
.gy-ct__av--available { color: var(--green); }
.gy-ct__av--limited { color: var(--orange); --g2: #dfe4ec; --g3: #dfe4ec; }
.gy-ct__av--on_request { color: var(--muted); --g2: #dfe4ec; --g3: #dfe4ec; }
.gy-ct__av--on_request::before { background: #dfe4ec; }
/* full-box note (inc/oil-case.php): soft yellow strip, "+N" fills the box; green check when full */
.gy-ct__case { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 7px 8px 7px 12px; border-radius: 10px; background: #FFF6D6; color: var(--navy); font: 600 13px/1.35 'Open Sans', sans-serif; }
.gy-ct__case.is-ok { padding-right: 12px; background: #E7F6EF; color: #0A7A54; }
.gy-ct__case-add { flex: 0 0 auto; min-width: 44px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy); font: 700 13px/1 'Roboto', sans-serif; cursor: pointer; transition: box-shadow .15s; }
.gy-ct__case-add:hover { box-shadow: 0 4px 12px rgba(0, 22, 48, .14); }
.gy-ct__case-add:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.gy-ct__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gy-ct__sum { color: var(--navy); font: 800 20px/1 'Roboto', sans-serif; white-space: nowrap; }
.gy-ct__sum .amount { font-weight: inherit; }
.gy-ct__unit { margin-top: -4px; color: var(--muted); font: 400 12.5px/1.3 'Open Sans', sans-serif; white-space: nowrap; }

/* quantity: the theme's template (woocommerce/global/quantity-input.php) with
   .decrease / .increase divs that the parent scripts.js drives */
.woocommerce-cart .gy-ct div.quantity {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--line-2) !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden;
}
.woocommerce-cart .gy-ct div.quantity input.qty {
    order: 2;
    width: 34px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--navy) !important;
    font: 700 15px/1 'Roboto', sans-serif !important;
    text-align: center;
    -moz-appearance: textfield;
}
@media (max-width: 991px) {
    .woocommerce-cart .gy-ct div.quantity input.qty { font-size: 16px !important; } /* no zoom-on-focus on iPhone */
}
.woocommerce-cart .gy-ct div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart .gy-ct div.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart .gy-ct div.quantity .increase,
.woocommerce-cart .gy-ct div.quantity .decrease {
    position: static !important;
    display: grid !important;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: none !important;
    color: var(--navy);
    line-height: 1 !important;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s;
}
.woocommerce-cart .gy-ct div.quantity .decrease { order: 1; }
.woocommerce-cart .gy-ct div.quantity .increase { order: 3; }
.woocommerce-cart .gy-ct div.quantity .increase:hover,
.woocommerce-cart .gy-ct div.quantity .decrease:hover { background: var(--soft) !important; }
.woocommerce-cart .gy-ct div.quantity .increase i,
.woocommerce-cart .gy-ct div.quantity .decrease i { display: none !important; }
.woocommerce-cart .gy-ct div.quantity .decrease::before { content: "\2212"; font: 700 18px/1 'Roboto', sans-serif; }
.woocommerce-cart .gy-ct div.quantity .increase::before { content: "+"; font: 700 18px/1 'Roboto', sans-serif; }

/* remove: WooCommerce paints a.remove as a red circle with !important colours */
.woocommerce .gy-ct a.remove.gy-ct__rm {
    display: inline;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none !important;
    color: var(--muted) !important;
    font: 600 13px/1.3 'Open Sans', sans-serif;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.woocommerce .gy-ct a.remove.gy-ct__rm:hover,
.woocommerce .gy-ct a.remove.gy-ct__rm:focus-visible { background: none !important; color: var(--red) !important; }

.gy-ct__actions { display: flex; justify-content: flex-end; padding: 14px 0 0; }
.gy-ct__actions:not(:has(.coupon)) { padding: 0; }
/* the quantities update on their own (oil-cart.js presses this button); hidden from the first paint,
   not by a class the script adds later (it flashed on a hard refresh). Without JS: <noscript> in cart.php */
.gy-ct .gy-ct__upd { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gy-ct__upd { min-height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--navy); font: 700 14px/1 'Roboto', sans-serif; }

/* ---------------------------------------------------------------- bottom */
.gy-ct__bottom { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-top: 28px; }
.gy-ct__trust { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font: 400 13.5px/1.45 'Open Sans', sans-serif; }
.gy-ct__trust li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; }
.gy-ct__trust li::before { display: none; }
.gy-ct__trust svg { margin-top: 1px; color: var(--navy); }
.gy-ct .cart-collaterals { width: 100%; }
/* totals: plain list as on the options page (customizer.css paints .cart_totals > div as a grey card) */
.woocommerce-cart .gy-ct .cart_totals { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; background: none !important; border: 0 !important; }
.woocommerce-cart .gy-ct .cart_totals > div { padding: 0 !important; border: 0 !important; background: none !important; }
.gy-ct__dl { margin: 0; }
.gy-ct__dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; }
.gy-ct__dl dt { color: var(--muted); font: 400 15px/1.5 'Open Sans', sans-serif; }
.gy-ct__dl dd { margin: 0; color: var(--navy); font: 700 15px/1.5 'Roboto', sans-serif; text-align: right; }
.gy-ct__dl dd .amount { font-weight: inherit; color: inherit; }
.gy-ct__dl .order-total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.gy-ct__dl .order-total dt { color: var(--navy); font: 800 18px/1.3 'Roboto', sans-serif; }
.gy-ct__dl .order-total dd { font: 900 28px/1.1 'Roboto', sans-serif; }
/* > .wc-proceed-to-checkout: the ".cart_totals > div { padding: 0 !important }" rule above would zero it */
.woocommerce-cart .gy-ct .cart_totals > .wc-proceed-to-checkout { padding: 12px 0 0 !important; }
.woocommerce-cart .gy-ct .wc-proceed-to-checkout a.checkout-button { width: 100%; max-width: none; margin: 0; }
.gy-ct .gy-overweight-notice { margin: 12px 0 0; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 767px) {
    .gy-ct__hero { padding-bottom: 24px; }
    .gy-ct__row { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
    .gy-ct__ph { width: 76px; height: 76px; border-radius: 14px; }
    .gy-ct__name { font-size: 16px; }
    .gy-ct__spec { font-size: 12.5px; }
    .gy-ct__buy { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "qty unit sum" "qty rm rm"; align-items: center; gap: 4px 12px; }
    .gy-ct__qty { grid-area: qty; }
    .gy-ct__sum { grid-area: sum; justify-self: end; }
    .gy-ct__unit { grid-area: unit; margin: 0; }
    .gy-ct__buy .product-remove { grid-area: rm; justify-self: end; }
    .gy-ct__bottom { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; }
    .gy-ct__trust { order: 2; }
}

/* ================================================================ empty cart
   Variant 09 of _redesign/empty-cart (woocommerce/cart/cart-empty.php): heading, the
   question and six task tiles to the categories; the last order for a signed-in customer.
   The old "EMPTY CART PAGE" rules in customizer.css target .gy-empty-cart, not used now. */
.gy-ec {
    --navy: #001630;
    --yellow: #FBBD00;
    --yellow-h: #FFC811;
    --yellow-soft: #FFF6D6;
    --text: #23303F;
    --muted: #6B7280;
    --line: #E7E9EE;
    --line-2: #D9DEE6;
    --soft: #F3F5F8;
    display: grid;
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
    color: var(--text);
}
.gy-ec *, .gy-ec *::before, .gy-ec *::after { box-sizing: border-box; }
.woocommerce .gy-ec .gy-ec__title, .gy-ec .gy-ec__title { margin: 0; padding: 0; color: var(--navy); font: 800 34px/1.12 'Roboto', sans-serif; text-transform: none; letter-spacing: 0; }
.gy-ec .gy-ec__title::after, .gy-ec .gy-ec__h::after { display: none; }
.gy-ec__lead { margin: 6px 0 0; color: var(--muted); font: 400 16px/1.5 'Open Sans', sans-serif; }

.gy-ec__tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gy-ec__tasks li { margin: 0; }
.gy-ec__task { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; height: 100%; padding: 18px; border: 1.5px solid var(--line-2); border-radius: 18px; background: #fff; color: var(--navy); text-decoration: none !important; transition: border-color .15s, background-color .15s; }
.gy-ec__task:hover, .gy-ec__task:focus-visible { border-color: var(--navy); background: var(--yellow-soft); }
.gy-ec__task:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gy-ec__ic { display: grid; place-items: center; grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow-soft); color: var(--navy); }
.gy-ec__ic svg { width: 26px; height: 26px; }
.gy-ec__task b { color: var(--navy); font: 800 15.5px/1.25 'Roboto', sans-serif; }
.gy-ec__task small { color: var(--muted); font: 400 12.5px/1.35 'Open Sans', sans-serif; }

.gy-ec__all { margin: 0; }
.gy-ec__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy) !important; font: 800 15px/1 'Roboto', sans-serif; text-decoration: none !important; white-space: nowrap; transition: background-color .15s; }
.gy-ec__btn:hover { background: var(--yellow-h); }
.gy-ec__btn--ghost { border: 1.5px solid var(--navy); background: #fff; }
.gy-ec__btn--ghost:hover { background: var(--yellow-soft); }
.gy-ec__btn svg { width: 18px; height: 18px; }

/* signed-in: the last order */
.gy-ec__last { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; }
.gy-ec__last-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.woocommerce .gy-ec .gy-ec__h, .gy-ec .gy-ec__h { margin: 0; padding: 0; color: var(--navy); font: 800 18px/1.25 'Roboto', sans-serif; text-transform: none; letter-spacing: 0; }
.gy-ec__meta { margin: 2px 0 0; color: var(--muted); font: 400 13px/1.4 'Open Sans', sans-serif; }
.gy-ec__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gy-ec__items li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; }
.gy-ec__ph { position: relative; width: 52px; height: 52px; border-radius: 12px; background: #0a43a6; }
.gy-ec__ph img { display: block; width: 52px !important; height: 52px !important; margin: 0 !important; border-radius: 12px; object-fit: cover; }
.gy-ec__ph i { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 11px/1 'Roboto', sans-serif; font-style: normal; }
.gy-ec__items b { display: block; color: var(--navy); font: 700 13.5px/1.25 'Roboto', sans-serif; }
.gy-ec__items small { color: var(--muted); font-size: 12px; }

/* "... removed. Undo?" right after the last item went: a clear bar with an Undo button */
.woocommerce-cart .woocommerce-message:has(.restore-item) { max-width: 980px; margin: 0 auto 20px !important; padding: 12px 14px 12px 18px !important; border: 0 !important; background: #001630 !important; color: #fff !important; }
.woocommerce-cart .woocommerce-message:has(.restore-item)::before { display: none !important; }
.woocommerce-cart .woocommerce-message .restore-item { display: inline-flex; align-items: center; min-height: 36px; margin-left: auto; padding: 0 16px; border-radius: 999px; background: #FBBD00; color: #001630 !important; font: 800 14px/1 'Roboto', sans-serif; text-decoration: none !important; }
.woocommerce-cart .woocommerce-message .restore-item:hover { background: #FFC811; }

@media (max-width: 991px) {
    .gy-ec__tasks { grid-template-columns: 1fr 1fr; }
    .gy-ec__items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .gy-ec .gy-ec__title { font-size: 26px; }
    .gy-ec__tasks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .gy-ec__task { padding: 14px; }
    .gy-ec__ic { width: 42px; height: 42px; }
    .gy-ec__items { grid-template-columns: minmax(0, 1fr); }
    .gy-ec__btn { width: 100%; }
    .woocommerce-cart .woocommerce-message:has(.restore-item) { display: flex !important; }
}

/* Cart only: space around the content (site-content is padded 40px / 0 on shop pages, customizer.css). Phones keep their 20px. */
@media (min-width: 767px) {
    body.woocommerce-cart.gy-no-page-banner .site-content { padding-top: 50px; padding-bottom: 70px; }
}
