/* 5thAXIS — Cart page (skins woocommerce/cart/cart.php + cart-totals.php) */

/* ── Defensive resets ────────────────────────────────────────────────────
   This markup renders inside whatever wrapper the page builder puts around
   the WooCommerce cart, so it inherits element-level styling from three
   directions at once: Hello Elementor's base stylesheet, the Elementor
   global kit (which paints every <button> with the site's button colours,
   padding and radius) and WooCommerce's own woocommerce.css. Left alone,
   the action buttons come out as solid theme-coloured blocks and the <dl>
   / <ul> blocks pick up default margins, padding and bullets.

   Wrapped in :where() on purpose — it contributes zero specificity, so
   these are plain element selectors (0,0,1) that every component class
   below (0,1,0) still beats. Written as normal descendant selectors they
   would score (0,1,1) and silently override the very rules they precede. */

:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	color: inherit;
	text-align: inherit;
	text-transform: none;
	letter-spacing: normal;
}

:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) a {
	box-shadow: none;
}

:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) ul,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) li {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) dl,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) dt,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) dd,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) p,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) h1,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) h2,
:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) h3 {
	margin: 0;
	padding: 0;
}

:where( .axis5th-cart, .axis5th-cart-head, .axis5th-wishlist ) input {
	box-shadow: none;
}

/* WooCommerce floats and half-widths its own cart blocks; inside these grid
   layouts that computes against the narrower track and squeezes the column.
   The wrapper classes here are WooCommerce's/Elementor's, not the theme's,
   so this is the one place that has to name them directly. */
.woocommerce .axis5th-cart,
.woocommerce-page .axis5th-cart {
	float: none;
	width: 100%;
}

.axis5th-cart,
.axis5th-cart-head,
.axis5th-wishlist {
	--axis5th-cart-accent:      #DD2828;
	--axis5th-cart-ink:         #18181B;
	--axis5th-cart-muted:       #6C6C6C;
	--axis5th-cart-border:      #E5E5E5;
	--axis5th-cart-hairline:    #EFEFEF;
	--axis5th-cart-surface:     #FFFFFF;
	--axis5th-cart-surface-alt: #F4F4F5;
	--axis5th-cart-radius:      2px;

	/* The site's two Elementor global fonts, same pair every other widget in
	   this theme uses: "primary" is the condensed display face the design
	   sets headings, titles and eyebrows in; "57475c0" is the body face used
	   for everything else (it's what the breadcrumb runs on). Named here so
	   the rules below read as heading/body rather than as opaque IDs, and so
	   a rebrand only has to change these two lines. */
	--axis5th-cart-font-body:    var( --e-global-typography-57475c0-font-family ), sans-serif;

}

.woocommerce-cart .site-main{
	padding-bottom: 60px;
}

/* Display face — the pieces the design sets in the condensed font. */
.axis5th-cart-title,
.axis5th-summary__title,
.axis5th-cart-card__title,
.axis5th-wl-card__title {
	font-family: var( --axis5th-cart-font-heading );
}
.axis5th-wishlist__eyebrow,
.axis5th-cart-card__eyebrow,
.axis5th-wl-card__eyebrow{
	font-family:  var(--axis5th-cart-font-body);
}

/* ── Heading row ────────────────────────────────────────────────────── */

.axis5th-cart-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 70px 0 60px;
}

.axis5th-cart-title {
	margin: 0;
	font-size: clamp( 34px, 5vw, 60px );
	line-height: 1.05;
	font-weight: 800;
	text-transform: uppercase;
	color: var( --axis5th-cart-ink );
}

.axis5th-cart-title span {
	color: var( --axis5th-cart-accent );
	display: block;
}

.axis5th-cart-head__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	/* Nudges the buttons off the heading's baseline so they sit level with
	   the second line of the title the way the design has them. */
	padding-bottom: 6px;
}
.axis5th-cart-head__actions p{
	margin-bottom: 0;
}

/* Status line under the heading — empty (and so invisible) until a message
   is written into it, which keeps the layout from jumping when one appears. */
.axis5th-cart-msg {
	margin: 12px 0 0;
	font-size: 15px;
	color: var( --axis5th-cart-muted );
}

.axis5th-cart-msg:empty {
	display: none;
}

.axis5th-cart-msg.is-error {
	color: var( --axis5th-cart-accent );
}

/* ── Buttons ──────────────────────────────────────────────────────────
   The !important flags through this section are not defensive padding —
   each one marks a property confirmed to be losing on the live page. The
   site's button styling reached these through selectors that outrank a
   single class (attribute selectors like input[type="button"] score the
   same as a class, and `.woocommerce button` outranks one outright), and
   some of it is itself !important. Left alone the action buttons rendered
   with the theme's own border colour, uppercased and bolded, instead of
   the quiet sentence-case buttons in the design.

   Scoped to properties the design actually specifies — layout, colour and
   type — so anything not named here is still free to inherit. The same
   approach the My Account skin in this theme already takes for the same
   reason. */

.axis5th-cart-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 0;
	margin: 0;
	padding: 11px 18px !important;
	border-radius: 0 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}

.axis5th-cart-btn--outline {
	background: var( --axis5th-cart-surface ) !important;
	border: 1px solid var( --axis5th-cart-accent ) !important;
	color: var( --axis5th-cart-accent ) !important;
}

.axis5th-cart-btn--outline:hover {
	background: var( --axis5th-cart-accent ) !important;
	color: #fff !important;
}

.axis5th-cart-btn--muted {
	background: var( --axis5th-cart-surface ) !important;
	border: 1px solid var( --axis5th-cart-border ) !important;
	color: var( --axis5th-cart-ink ) !important;
}



/* The icon is a shade lighter than the label in the design, on the quiet
   buttons only — the outline button's icon stays the accent colour it
   inherits. */
.axis5th-cart-btn--muted .axis5th-icon {
	color: var( --axis5th-cart-muted );
}

.axis5th-cart-btn--muted:hover {
	background: var( --axis5th-cart-accent ) !important;
	border-color: var( --axis5th-cart-accent ) !important;
	color: #fff !important;
}
.axis5th-cart-btn--muted:hover .axis5th-icon{
	color: #fff !important;
}
.axis5th-cart-link {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 11px 6px !important;
	background: none !important;
	border: 0 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	color: var( --axis5th-cart-muted ) !important;
	cursor: pointer;
}

.axis5th-cart-link:hover {
	color: var( --axis5th-cart-accent ) !important;
}

/* Specificity escalation for the type only.
   The button labels were still rendering uppercase and condensed after the
   flags above, which narrows the cause down: when two declarations are both
   !important, the tie is broken by specificity — so whatever the site sets
   these with is both flagged and scoring higher than a single class. Doubling
   the class takes these to (0,2,0) without touching the markup or wrapping
   anything, which clears any single-class or element+class rule.

   Deliberately limited to the typography that was losing. Colour, border and
   spacing are already holding from the rules above, and repeating them here
   would just be two places to keep in sync. */
.axis5th-cart-btn.axis5th-cart-btn,
.axis5th-cart-link.axis5th-cart-link {
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
}
.axis5th-cart-btn.axis5th-cart-btn br{
	display: none;
}

/* The label sits in its own <span>, so anything targeting a descendant would
   re-apply on the way down and undo the parent. */
.axis5th-cart-btn.axis5th-cart-btn span,
.axis5th-cart-link.axis5th-cart-link span {
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit !important;
}

.axis5th-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

/* Anything mid-request is dimmed and inert so a second click can't fire a
   duplicate AJAX call against the same row. */
.is-busy,
.axis5th-cart-btn[disabled],
.axis5th-cart-link[disabled] {
	opacity: 0.55;
	pointer-events: none;
}

/* ── Layout: items + summary ────────────────────────────────────────── */

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

.axis5th-cart__items {
	min-width: 0;
}
.axis5th-cart__items .b2bking_add_cart_to_purchase_list_button {
	background-color: transparent !important;
	border: 1px solid var(--axis5th-cart-accent) !important;
	color: var(--axis5th-cart-ink) !important;
}
.axis5th-cart__items .b2bking_add_cart_to_purchase_list_button br{
	display: none;
}

/* Elementor and WooCommerce both apply their own widths/floats to the cart
   form; inside this grid those compute against the narrower track and squeeze
   the column, so they're neutralised here. */
.axis5th-cart .woocommerce-cart-form {
	width: 100%;
	float: none;
	margin: 0;
}

.axis5th-cart__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* No-JS fallback only — the design updates quantities as they change. */
.axis5th-cart__form-fallback {
	display: none;
}

/* ── Cart item card ─────────────────────────────────────────────────── */

.axis5th-cart-card {
	display: grid;
	grid-template-columns: 200px minmax( 0, 1fr );
	gap: 24px;
	padding: 20px;
	background: var( --axis5th-cart-surface );
	border: 1px solid var( --axis5th-cart-border );
	border-radius: var( --axis5th-cart-radius );
}

.axis5th-cart-card__media img,
.axis5th-wl-card__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var( --axis5th-cart-radius );
}

.axis5th-cart-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.axis5th-cart-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var( --axis5th-cart-hairline );
}

.axis5th-cart-card__ident {
	min-width: 0;
}

/* Sizes are flagged because the headings here are real <h1>/<h2>/<h3>
   elements and pick up the site's global heading scale otherwise — the card
   titles came through noticeably larger than the design's 22px. */
.axis5th-cart-card__eyebrow,
.axis5th-wl-card__eyebrow {
	margin: 0 0 6px;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	text-transform: uppercase;
	color: var( --axis5th-cart-accent );
}

.axis5th-cart-card__title,
.axis5th-wl-card__title {
	margin: 0;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	text-transform: uppercase;
	color: var( --axis5th-cart-ink );
}

/* Underlines come from the site's global link styling, which reaches these
   with more weight than a single class — hence the flags. */
.axis5th-cart-card__title a,
.axis5th-wl-card__title a,
.axis5th-cart-card__media a,
.axis5th-wl-card__media a {
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

.axis5th-cart-card__title a:hover,
.axis5th-wl-card__title a:hover {
	color: var( --axis5th-cart-accent ) !important;
	text-decoration: none !important;
}

.axis5th-cart-card__sku,
.axis5th-wl-card__sku {
	margin: 8px 0 0;
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var( --axis5th-cart-muted );
}

.axis5th-cart-card__meta {
	margin: 8px 0 0;
	font-size: 13px;
	color: var( --axis5th-cart-muted );
}

.axis5th-cart-card__meta p {
	margin: 0;
}

.axis5th-cart-card__backorder {
	margin: 8px 0 0;
	font-size: 13px;
	color: var( --axis5th-cart-accent );
}

/* The design sets prices in the body face, not the condensed one the titles
   use — so this names the family rather than letting it inherit. */
.axis5th-cart-card__price,
.axis5th-wl-card__price {
	margin: 0;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	white-space: nowrap;
	color: var( --axis5th-cart-ink ) !important;
}

/* WooCommerce wraps prices in <span class="woocommerce-Price-amount">, which
   the site styles in its own face, colour and size — the card sets the price
   type, not WooCommerce's default. */
.axis5th-cart-card__price .woocommerce-Price-amount,
.axis5th-wl-card__price .woocommerce-Price-amount,
.axis5th-cart-card__price .woocommerce-Price-currencySymbol,
.axis5th-wl-card__price .woocommerce-Price-currencySymbol {
	font: inherit !important;
	letter-spacing: inherit !important;
	color: inherit !important;
}

.axis5th-cart-card__price del,
.axis5th-wl-card__price del {
	font-weight: 400;
	font-size: 15px;
	color: var( --axis5th-cart-muted );
}

.axis5th-cart-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 18px;
}
.axis5th-cart-card__actions p{
	margin-bottom: 0;
}
/* The last two buttons sit hard right in the design, away from the stepper. */
.axis5th-cart-card__actions [data-axis5th-cart-save] {
	margin-left: auto;
}

/* Kept in the DOM for the no-JS path and for plugins that filter it, but
   never shown — the designed Remove button does this job. WooCommerce styles
   its own `a.remove` as a red ✕ through `.woocommerce a.remove`, which
   outranks a lone class, so it was rendering next to the buttons. */
.axis5th-cart-card__remove-fallback,
.woocommerce a.remove.axis5th-cart-card__remove-fallback {
	display: none !important;
}

/* ── Quantity stepper ───────────────────────────────────────────────── */

.axis5th-qty {
	display: inline-flex;
	align-items: center;
}

.axis5th-qty__btn {
	width: 38px !important;
	height: 38px !important;
	min-height: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 !important;
	background: var( --axis5th-cart-surface ) !important;
	border: 1px solid var( --axis5th-cart-accent ) !important;
	border-radius: var( --axis5th-cart-radius ) !important;
	box-shadow: none !important;
	color: var( --axis5th-cart-accent ) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.axis5th-qty__btn:hover {
	background: var( --axis5th-cart-accent ) !important;
	color: #fff !important;
}

.axis5th-qty__btn[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* The design's stepper is a bare number between the two buttons, but the
   site styles every text input as a full-width bordered field — and it wins,
   because `input[type="number"]` scores the same as a class and the theme's
   own form rules go further. Without these the number rendered as a ~200px
   boxed field that pushed Remove onto a second line. */
.axis5th-qty__input {
	width: 48px !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 38px !important;
	min-height: 0 !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: center !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 38px !important;
	color: var( --axis5th-cart-ink ) !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

/* The −/+ buttons replace the native spinners. */
.axis5th-qty__input::-webkit-outer-spin-button,
.axis5th-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.axis5th-qty__input:focus {
	outline: 0;
	outline-offset: 2px;
}

.axis5th-qty--static {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-weight: 600;
	color: var( --axis5th-cart-ink );
}

/* ── Order summary ──────────────────────────────────────────────────── */

.axis5th-cart__summary {
	position: sticky;
	top: 24px;
}

.axis5th-summary {
	padding: 28px;
	background: var( --axis5th-cart-surface );
	border: 1px solid var( --axis5th-cart-border );
	border-radius: var( --axis5th-cart-radius );
}

.axis5th-summary__title {
	margin: 0 0 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var( --axis5th-cart-hairline );
	font-size: 20px;
	font-weight: 500;
	text-transform: uppercase;
	color: var( --axis5th-cart-ink );
}

.axis5th-summary__lines {
	margin: 0 0 20px;
}

.axis5th-summary__line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	font-size: 15px;
}

.axis5th-summary__line dt {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color: #18181B;
	width: 42%;
}

.axis5th-summary__line dd {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	text-align: right;
	color: var(--e-global-color-accent);
}

.axis5th-summary__pending {
	font-weight: 500;
	color: #A1A1AA;
}

/* WooCommerce renders shipping options as its own <ul>; strip the list
   chrome so chosen rates read like the other summary lines. */
.axis5th-summary__line .woocommerce-shipping-methods,
.axis5th-summary__line ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.axis5th-summary__line--coupon dd {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var( --axis5th-cart-accent );
}

/* wc_cart_totals_coupon_html() appends its own "[Remove]" link; the styled
   × button beside it does the same job over AJAX, so the built-in one is
   hidden rather than shown twice. */
.axis5th-summary .woocommerce-remove-coupon {
	display: none;
}

.axis5th-summary__coupon-remove {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	margin: 0;
	padding: 0 2px !important;
	min-height: 0 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	color: var( --axis5th-cart-muted ) !important;
	cursor: pointer;
}

.axis5th-summary__coupon-remove:hover {
	color: var( --axis5th-cart-accent ) !important;
}

.axis5th-summary__line--total {
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid #18181B;
}

.axis5th-summary__line--total dt {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.axis5th-summary__line--total dd {
	font-size: 24px;
	font-weight: 700;
	color: var( --axis5th-cart-accent );
}

/* ── Quick add / promo ──────────────────────────────────────────────── */

.axis5th-summary__quickadd {
	margin-bottom: 18px;
	padding: 14px;
	border: 1px dashed #C9C9CE;
	border-radius: var( --axis5th-cart-radius );
}

.axis5th-summary__quickadd-label {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	color: var( --axis5th-cart-muted );
	font-family:  var(--axis5th-cart-font-body);
}

.axis5th-summary__quickadd-row {
	display: flex;
	gap: 8px;
}

.axis5th-summary__quickadd-input {
	flex: 1 1 auto;
	min-width: 0 !important;
	width: auto !important;
	height: 42px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 12px !important;
	background: var( --axis5th-cart-surface ) !important;
	border: 1px solid var( --axis5th-cart-border ) !important;
	border-radius: var( --axis5th-cart-radius ) !important;
	box-shadow: none !important;
	font-size: 14px !important;
	font-weight: 400;
	color: var( --axis5th-cart-ink ) !important;
}

.axis5th-summary__quickadd-input:focus {
	outline: none;
	border-color: var( --axis5th-cart-accent ) !important;
}

.axis5th-summary__quickadd-btn {
	flex: 0 0 auto;
	height: 42px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 20px !important;
	background: var( --axis5th-cart-surface ) !important;
	border: 1px solid var( --axis5th-cart-accent ) !important;
	border-radius: var( --axis5th-cart-radius ) !important;
	box-shadow: none !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #18181B !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.axis5th-summary__quickadd-btn:hover {
	background: var( --axis5th-cart-accent ) !important;
	color: #fff !important;
}
.axis5th-summary__quickadd-btn br{
	display: none;
}
.axis5th-summary__quickadd-msg {
	margin: 9px 0 0;
	font-size: 13px;
	color: #157347;
}

.axis5th-summary__quickadd-msg:empty {
	display: none;
}

.axis5th-summary__quickadd-msg.is-error {
	color: var( --axis5th-cart-accent );
}

/* ── Summary CTAs ───────────────────────────────────────────────────── */

.axis5th-summary__checkout {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 15px 20px !important;
	border-radius: var( --axis5th-cart-radius ) !important;
	box-shadow: none !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.axis5th-summary__checkout {
	background: var( --axis5th-cart-accent ) !important;
	border: 1px solid var( --axis5th-cart-accent ) !important;
	color: #fff !important;
}

.axis5th-summary__checkout:hover {
	background: #B81F1F !important;
	border-color: #B81F1F !important;
	color: #fff !important;
}

/* ── Plugin-rendered buttons (Request a Quote) ────────────────────────────
   YITH Request-a-Quote renders its cart button into
   woocommerce_proceed_to_checkout, and it is the real one — it converts the
   cart into a quote. Rather than duplicate it with a theme button, the
   plugin's own output is restyled here into the design's secondary button.

   Selectors match any link, button or submit inside the wrapper instead of
   naming YITH's classes: those are the plugin's to change, and anything else
   hooked here (Express Checkout and friends) should get the same treatment
   anyway rather than arriving in the plugin's default colours. */

.axis5th-summary__hooked {
	display: block;
}

.axis5th-summary__hooked a,
.axis5th-summary__hooked button,
.axis5th-summary__hooked .button,
.axis5th-summary__hooked input[type="submit"] {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	width: 100% !important;
	margin: 10px 0 0 !important;
	/* Right padding leaves room for the icon, which is painted as a
	   background rather than markup — the button's contents come from the
	   plugin, so there's nowhere to put an <svg>. */
	padding: 15px 48px 15px 20px !important;
	background-color: var( --axis5th-cart-surface ) !important;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.33366 1.33203V3.9987C9.33366 4.35232 9.47414 4.69146 9.72418 4.94151C9.97423 5.19156 10.3134 5.33203 10.667 5.33203H13.3337M6.66699 5.9987H5.33366M10.667 8.66536H5.33366M10.667 11.332H5.33366M10.0003 1.33203H4.00033C3.6467 1.33203 3.30756 1.47251 3.05752 1.72256C2.80747 1.9726 2.66699 2.31174 2.66699 2.66536V13.332C2.66699 13.6857 2.80747 14.0248 3.05752 14.2748C3.30756 14.5249 3.6467 14.6654 4.00033 14.6654H12.0003C12.3539 14.6654 12.6931 14.5249 12.9431 14.2748C13.1932 14.0248 13.3337 13.6857 13.3337 13.332V4.66536L10.0003 1.33203Z' stroke='%2318181B' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E" ) !important;
	background-repeat: no-repeat !important;
	background-position: right 20px center !important;
	border: 1px solid var( --axis5th-cart-ink ) !important;
	border-radius: var( --axis5th-cart-radius ) !important;
	box-shadow: none !important;
	color: var( --axis5th-cart-ink ) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-align: left !important;
	transition: background-color 0.18s ease, color 0.18s ease;
}

/* Hover inverts to the dark fill. The icon is a background image, so it can't
   follow currentColor — a white copy is swapped in to keep it visible. */
.axis5th-summary__hooked a:hover,
.axis5th-summary__hooked button:hover,
.axis5th-summary__hooked .button:hover,
.axis5th-summary__hooked input[type="submit"]:hover {
	background-color: var( --axis5th-cart-ink ) !important;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.33366 1.33203V3.9987C9.33366 4.35232 9.47414 4.69146 9.72418 4.94151C9.97423 5.19156 10.3134 5.33203 10.667 5.33203H13.3337M6.66699 5.9987H5.33366M10.667 8.66536H5.33366M10.667 11.332H5.33366M10.0003 1.33203H4.00033C3.6467 1.33203 3.30756 1.47251 3.05752 1.72256C2.80747 1.9726 2.66699 2.31174 2.66699 2.66536V13.332C2.66699 13.6857 2.80747 14.0248 3.05752 14.2748C3.30756 14.5249 3.6467 14.6654 4.00033 14.6654H12.0003C12.3539 14.6654 12.6931 14.5249 12.9431 14.2748C13.1932 14.0248 13.3337 13.6857 13.3337 13.332V4.66536L10.0003 1.33203Z' stroke='%23FFFFFF' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E" ) !important;
	color: #fff !important;
}

/* Same escalation the card buttons need — these are the page's biggest
   buttons, so the site's uppercase/condensed button type is most obvious on
   them. */
.axis5th-summary__checkout.axis5th-summary__checkout,
.axis5th-summary__quickadd-btn.axis5th-summary__quickadd-btn {
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
}

.axis5th-summary__checkout.axis5th-summary__checkout span {
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit !important;
}

/* ── Trust list ─────────────────────────────────────────────────────── */

.axis5th-summary__trust {
	margin: 24px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var( --axis5th-cart-hairline );
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.axis5th-summary__trust li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

/* These three come from assets/svg with their hardcoded red swapped for
   currentColor, so `color` here is what actually paints them — and the width/
   height override the 24×24 the files were exported at (CSS beats an SVG's
   presentation attributes). */
.axis5th-summary__trust .axis5th-icon {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var( --axis5th-cart-accent );
}

.axis5th-summary__trust strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var( --axis5th-cart-ink );
}

.axis5th-summary__trust span {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.45;
	color: var( --axis5th-cart-muted );
}

/* ── Wishlist section ───────────────────────────────────────────────── */

.axis5th-wishlist {
	/* Matches the items column, so the wishlist heading lines up with the
	   cart cards above it rather than running under the summary. */
	max-width: calc( 100% - 452px );
	margin: 72px 0 0;
	scroll-margin-top: 24px;
}

.axis5th-wishlist__eyebrow {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	color: #4B5563;
}

/* "Add these back / To Cart." is the one heading on this page the design sets
   in the body face and in sentence case — every other title here is condensed
   and uppercased. The site's global <h2> styling does both to it, so the class
   is doubled to outrank it (see the note in the buttons section). */
.axis5th-wishlist__title.axis5th-wishlist__title {
	margin: 0 0 28px;
	font-family: var( --axis5th-cart-font-body ) !important;
	font-size: clamp( 28px, 3.6vw, 44px ) !important;
	line-height: 1.1 !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	color: var( --axis5th-cart-ink );
}

.axis5th-wishlist__title span {
	display: block;
	color: var( --axis5th-cart-accent );
	text-transform: none !important;
}

.axis5th-wishlist__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.axis5th-wishlist__more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

/* ── Wishlist card ──────────────────────────────────────────────────── */

.axis5th-wl-card {
	display: flex;
	gap: 24px;
	padding: 20px;
	background: var( --axis5th-cart-surface );
	border: 1px solid var( --axis5th-cart-border );
	border-radius: var( --axis5th-cart-radius );
}
.axis5th-wl-card .axis5th-wl-card__media{
	width: 166px;
}
.axis5th-wl-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.axis5th-wl-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.axis5th-wl-card__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Sits inside the eyebrow but reads as a plain badge in the design, so it
   opts back out of the condensed display face the eyebrow uses. */
.axis5th-wl-card__stock {
	font-family: var( --axis5th-cart-font-body );
	padding: 3px 9px;
	background: var( --axis5th-cart-surface );
	border: 1px solid var( --axis5th-cart-border );
	border-radius: var( --axis5th-cart-radius );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var( --axis5th-cart-muted );
}

/* Specs strip — a fixed 3 columns, matching the design. auto-fit was the
   original approach so a product with fewer attributes wouldn't leave dead
   space, but it collapsed to 2 columns at this card width and pushed the
   third spec onto its own row. Three tracks is what the design shows, and a
   short row simply leaves the last track empty. */
.axis5th-wl-card__specs {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 14px 24px;
	margin: 18px 0 0;
	padding: 16px 0;
	border-top: 1px solid #E5E7EB;
	border-bottom: 1px solid #E5E7EB;
}

/* Attribute names and values are stored in normal case ("Jaw Width",
   "Aluminum (A)") and the design shows them that way — the uppercasing and
   condensed face come from the site's global <dt>/<dd> styling, so both are
   overridden here. */
.axis5th-wl-card__specs dt {
	margin: 0 0 4px;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #6C6C6C !important;
}

.axis5th-wl-card__specs dd {
	margin: 0;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #18181B !important;
}

@media ( max-width: 600px ) {
	.axis5th-wl-card__specs {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

.axis5th-wl-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 18px;
}
.axis5th-wl-card__actions > p{
	margin-bottom: 0;
}
.axis5th-wl-card__actions [data-axis5th-wl-remove] {
	margin-left: auto;
}

/* Out-of-stock cards have no stepper, so the remove link would otherwise
   jump to the far left of an emptier row. */
.axis5th-wl-card.is-out-of-stock .axis5th-wl-card__actions {
	justify-content: flex-end;
}

.axis5th-wl-card.is-out-of-stock .axis5th-wl-card__actions [data-axis5th-wl-remove] {
	margin-left: 0;
}

/* ── Empty cart ─────────────────────────────────────────────────────── */

.axis5th-cart-head--empty {
	margin-bottom: 24px;
}



/* ── Responsive ─────────────────────────────────────────────────────── */

@media ( max-width: 1200px ) {
	.axis5th-cart {
		grid-template-columns: minmax( 0, 1fr ) 360px;
	}

	.axis5th-wishlist {
		max-width: calc( 100% - 392px );
	}
}

@media ( max-width: 1024px ) {
	.axis5th-cart {
		grid-template-columns: minmax( 0, 1fr );
	}

	.axis5th-cart__summary {
		position: static;
	}

	.axis5th-wishlist {
		max-width: none;
	}
}

@media ( max-width: 767px ) {
	.axis5th-cart-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.axis5th-cart-card,
	.axis5th-wl-card {
		grid-template-columns: minmax( 0, 1fr );
		gap: 16px;
	}
	.axis5th-wl-card{
		flex-direction: column;
	}
	.axis5th-cart-card__media,
	.axis5th-wl-card__media {
		max-width: 220px;
	}

	.axis5th-cart-card__head,
	.axis5th-wl-card__head {
		flex-direction: column;
		gap: 10px;
	}

	/* Stacked cards give every action the full width, so the auto-margins
	   that push buttons right on desktop have nothing to do here. */
	.axis5th-cart-card__actions,
	.axis5th-wl-card__actions {
		gap: 8px;
	}
	.axis5th-wl-card__actions{
		flex-wrap: wrap;
	}

	.axis5th-cart-card__actions [data-axis5th-cart-save],
	.axis5th-wl-card__actions [data-axis5th-wl-remove] {
		margin-left: 0;
	}

	.axis5th-wl-card.is-out-of-stock .axis5th-wl-card__actions {
		justify-content: flex-start;
	}

	.axis5th-summary {
		padding: 20px;
	}
}
