/**
 * CWS-Suite cart page — Jasmin Maziva.
 *
 * Companion to cart-page.php. Everything is scoped under
 * .cws-woocommerce-cart-form[class], the page root the plugin emits — which is
 * also what buys the specificity to beat both the Elementor kit and the
 * plugin's own skin, without a single !important.
 *
 * The [class] is a specificity bump, not a filter: it matches the same element
 * and adds (0,1,0). It is there because Elementor enqueues a widget's
 * stylesheet when the widget renders, which puts the plugin's CSS AFTER a
 * theme stylesheet in the document — so every rule of ours that merely tied on
 * specificity would lose the cascade. With the bump, load order stops
 * mattering. The Elementor kit's own (0,1,1) button rules lose to it too.
 *
 * A large part of this file restyles markup the PLUGIN emits, not markup
 * cart-page.php emits: the totals block, the shipping radios, the address
 * calculator, the promo input and the checkout button all come from
 * cws_cart_part(). That is deliberate — hand-rolling them would drop
 * input[name^="shipping_method"], #promocode and .cart-summary-actions, and with
 * them the totals refresh, the coupon flow and the mobile sticky bar.
 *
 * Radius is 0 throughout — the squared brand look is the point of the design,
 * not an oversight. Same as loop-card.css and filters-panel.css.
 *
 * Manrope is what the design uses. Loading a web font is the theme's call, so
 * nothing here sets font-family and the page inherits the theme's.
 */

/*
 * Repainting the plugin's own variables re-skins its shipping radios, cards and
 * field chrome in one move — far less brittle than chasing each of its rules
 * with a more specific one. See the header for what the [class] is doing.
 */
.cws-woocommerce-cart-form[class] {
	--cws-accent:     #7cb342;
	--cws-accent-ink: #ffffff;
	--cws-line:       #e2e9ec;
	--cws-line-2:     #e2e9ec;
	--cws-surface:    #ffffff;
	--cws-surface-2:  #f7fafb;
	--cws-field:      #f7fafb;
	--cws-ink-1:      #16333f;
	--cws-ink-2:      #5c727b;
	--cws-ink-3:      #9bacb4;
	--cws-ink-4:      #b6c3c9;
	--cws-radius:     0;
	--cws-radius-sm:  0;
}

.cws-woocommerce-cart-form[class] {
	--jm-ink:        #16333f;
	--jm-body:       #5c727b;
	--jm-ink-3:      #7c8d95;
	--jm-muted:      #9bacb4;
	--jm-muted-2:    #b6c3c9;
	--jm-muted-3:    #8a9aa1;

	--jm-accent:     #0b7da9;
	--jm-accent-d:   #096a90;

	--jm-green:      #7cb342;
	--jm-green-h:    #6aa236;
	--jm-green-lbl:  #6f9e34;

	--jm-line:       #e2e9ec;
	--jm-line-2:     #eef2f4;

	--jm-surface:    #ffffff;
	--jm-panel:      #f7fafb;
	--jm-media-bg:   #f6f8f9;
	--jm-tint:       #f2f8fb;
	--jm-danger:     #fdeceb;

	max-width: 1180px;
	margin-inline: auto;
	color: var(--jm-ink);
}

.cws-woocommerce-cart-form[class] *,
.cws-woocommerce-cart-form[class] *::before,
.cws-woocommerce-cart-form[class] *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------- icons ------- */

/*
 * cart-page.php wraps every icon in span.jm-ico and the box lives on that span,
 * never on the <svg>. The theme sets `svg { width: 100%; height: 100% }` site
 * wide, and the plugin repeats it for the stepper and remove icons, so an svg
 * sizing itself here would be overruled either way — this way the two rules
 * agree instead of fighting, and the svg simply fills the box it is given.
 *
 * stroke-width is set on the svg rather than the span: the svg carries its own
 * stroke-width presentation attribute, which beats anything inherited.
 */
.cws-woocommerce-cart-form[class] .jm-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.cws-woocommerce-cart-form[class] .jm-ico svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* ------------------------------------------------------------------ grid ---- */

.cws-woocommerce-cart-form[class] .jm-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 24px;
	align-items: start;
}

/* ------------------------------------------------------- items column ------- */

/* Flat cards — border only, same as the checkout. */
.cws-woocommerce-cart-form[class] .jm-cart__main {
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	min-width: 0;
}

.cws-woocommerce-cart-form[class] .jm-cart__main-head {
	padding: 22px 26px 18px;
	border-bottom: 1px solid var(--jm-line-2);
}

/*
 * No item count here on purpose. The client refreshes `cart` and `sidebar`
 * only; anything painted in the `all` pass is never re-rendered, so a count in
 * this heading would still read "3 artikla" after a row is removed.
 */
.cws-woocommerce-cart-form[class] .jm-cart__main-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.3px;
	color: var(--jm-ink);
}

/*
 * The plugin's own wrappers carry no design of their own here — the card is
 * .jm-cart__main, one level up, so the head and the foot share it with the
 * rows. Its 8px-radius white panel is fully taken back.
 */
.cws-woocommerce-cart-form[class] .cart-contents-wrap,
.cws-woocommerce-cart-form[class] .cart-contents-content {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	flex: none;
}

/*
 * Empty cart. A CSS rule rather than a PHP branch on $cws_cart['is_empty']:
 * is_empty is only read in the `all` pass, which is painted once, so removing
 * the last row would leave an empty card and no message until a reload.
 * cws_cart_part('items') emits .cart-contents-content with no whitespace when
 * there are no rows, and the client sets it with .html(''), so :empty is exact
 * in both cases.
 */
.cws-woocommerce-cart-form[class] .cart-contents-content:empty::after {
	content: "Košarica je prazna\ADodajte proizvode iz webshopa.";
	display: block;
	padding: 60px 26px;
	text-align: center;
	white-space: pre-line;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 2;
	color: var(--jm-ink-3);
}

/*
 * The design pairs "Nastavi kupnju" with a free-shipping-threshold note on the
 * right. This shop has no threshold, so the note is not rendered and the link
 * has the row to itself.
 */
.cws-woocommerce-cart-form[class] .jm-cart__main-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 18px 26px;
}

.cws-woocommerce-cart-form[class] .jm-cart__continue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jm-accent);
	text-decoration: none;
}

.cws-woocommerce-cart-form[class] .jm-cart__continue:hover {
	color: var(--jm-accent-d);
}

.cws-woocommerce-cart-form[class] .jm-cart__continue .jm-ico {
	width: 16px;
	height: 16px;
}

.cws-woocommerce-cart-form[class] .jm-cart__continue .jm-ico svg {
	stroke-width: 2.4;
}

/* ------------------------------------------------------------- one row ------ */

/*
 * The plugin's wrapper carries .flex. The row's own grid is what lays it out,
 * so the wrapper is reset to a plain block.
 */
.cws-woocommerce-cart-form[class] .cws-single-cart-item-wrap {
	display: block;
	padding: 0;
	margin: 0;
}

/*
 * .cws-single-cart-item-content is a plugin class kept for the Style tab's
 * "item separator" control. It arrives with a top border, a top margin and a
 * flex gap from the built-in card; all three are taken back here so the grid
 * below is the only thing laying the row out.
 */
.cws-woocommerce-cart-form[class] .jm-cart__row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 132px 170px 36px;
	gap: 20px;
	align-items: center;
	margin: 0;
	padding: 20px 26px;
	border-top: 0;
	border-bottom: 1px solid var(--jm-line-2);
	width: auto;
}

.cws-woocommerce-cart-form[class] .jm-cart__media {
	width: 96px;
	height: 96px;
	border: 1px solid var(--jm-line);
	background: var(--jm-media-bg);
	overflow: hidden;
}

.cws-woocommerce-cart-form[class] .jm-cart__media a {
	display: block;
	height: 100%;
}

.cws-woocommerce-cart-form[class] .jm-cart__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	margin: 0;
	border-radius: 0;
}

.cws-woocommerce-cart-form[class] .jm-cart__brand {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--jm-green-lbl);
	margin-bottom: 5px;
}

.cws-woocommerce-cart-form[class] .cws-cart-product-name.jm-cart__name {
	font-size: 16px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -.2px;
	color: var(--jm-ink);
	text-wrap: pretty;
}

.cws-woocommerce-cart-form[class] .cws-cart-product-name.jm-cart__name a {
	color: inherit;
	text-decoration: none;
}

.cws-woocommerce-cart-form[class] .cws-cart-product-name.jm-cart__name a:hover {
	color: var(--jm-accent);
}

.cws-woocommerce-cart-form[class] .jm-cart__sku,
.cws-woocommerce-cart-form[class] .jm-cart__meta {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--jm-muted);
	margin-top: 6px;
}

.cws-woocommerce-cart-form[class] .jm-cart__meta p {
	margin: 0;
}

/* --- quantity ---------------------------------------------------------- */

.cws-woocommerce-cart-form[class] .jm-cart__qty {
	justify-self: start;
}

.cws-woocommerce-cart-form[class] .cws-quantity-input.jm-cart__stepper {
	display: flex;
	align-items: center;
	height: 44px;
	background: none;
	border: 1.5px solid var(--jm-line);
}

.cws-woocommerce-cart-form[class] .jm-cart__stepper .jm-cart__step {
	width: 40px;
	height: 100%;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--jm-accent);
	transition: background .15s;
}

.cws-woocommerce-cart-form[class] .jm-cart__stepper .jm-cart__step:hover {
	background: var(--jm-tint);
}

/*
 * The plugin paints the +/- white on a primary-coloured hover
 * (.cws-decrease-quantity:hover path, (0,2,1)). This design tints the cell
 * instead and keeps the icon blue, so the stroke is taken back at (0,3,1).
 */
.cws-woocommerce-cart-form[class] .jm-cart__stepper .jm-cart__step .jm-ico {
	width: 15px;
	height: 15px;
}

.cws-woocommerce-cart-form[class] .jm-cart__stepper .jm-cart__step .jm-ico svg {
	stroke-width: 2.6;
}

.cws-woocommerce-cart-form[class] .jm-cart__stepper .jm-cart__step:hover path {
	stroke: currentColor;
}

.cws-woocommerce-cart-form[class] .jm-cart__stepper .cws-quantity {
	min-width: 32px;
	padding: 0 2px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--jm-ink);
}

/* --- pricing ----------------------------------------------------------- */

.cws-woocommerce-cart-form[class] .jm-cart__pricing {
	text-align: right;
}

.cws-woocommerce-cart-form[class] .cws-cart-item-price.jm-cart__line-total {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.4px;
	color: var(--jm-ink);
}

.cws-woocommerce-cart-form[class] .cws-cart-item-price.jm-cart__line-total del {
	font-size: 14px;
	font-weight: 700;
	color: var(--jm-muted-2);
	margin-right: 6px;
}

.cws-woocommerce-cart-form[class] .jm-cart__each {
	font-size: 12px;
	font-weight: 600;
	color: var(--jm-muted);
	margin-top: 4px;
	white-space: nowrap;
}

/* --- remove ------------------------------------------------------------ */

.cws-woocommerce-cart-form[class] .jm-cart__remove-wrap {
	justify-self: end;
}

.cws-woocommerce-cart-form[class] .cws-cart-item-remove.jm-cart__remove {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--jm-muted-2);
	transition: background .15s, color .15s;
}

.cws-woocommerce-cart-form[class] .cws-cart-item-remove.jm-cart__remove:hover {
	background: var(--jm-danger);
	color: #d0574f;
}

.cws-woocommerce-cart-form[class] .cws-cart-item-remove.jm-cart__remove .jm-ico {
	width: 17px;
	height: 17px;
}

.cws-woocommerce-cart-form[class] .cws-cart-item-remove.jm-cart__remove .jm-ico svg {
	stroke-width: 2;
}

/*
 * cart-page.php never emits the built-in corner × — only the in-row trash. This
 * rule matters when a row throws and falls back to the built-in markup, where
 * the × is a red circle pinned over the thumbnail; .cws-cart-item-remove is
 * still there in that row, so nothing is lost by hiding it.
 */
.cws-woocommerce-cart-form[class] .cws-remove-from-fullcart {
	display: none;
}

/* ---------------------------------------------------------- summary --------- */

.cws-woocommerce-cart-form[class] .cart-totals-wrap {
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	position: sticky;
	top: 24px;
	min-width: 0;
}

/*
 * The plugin gives .cart-totals-content its own white padded panel and its own
 * sticky. The card is .cart-totals-wrap here, one level up, so this element is
 * flattened to a plain block — a nested sticky inside a sticky would fight.
 */
.cws-woocommerce-cart-form[class] .cart-totals-content.jm-sum {
	display: block;
	gap: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	position: static;
	top: auto;
}

.cws-woocommerce-cart-form[class] .cart-totals-heading.jm-sum__head {
	padding: 22px 24px 18px;
	border-bottom: 1px solid var(--jm-line-2);
}

.cws-woocommerce-cart-form[class] .cart-totals-heading.jm-sum__head h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.3px;
	text-align: left;
	color: var(--jm-ink);
}

.cws-woocommerce-cart-form[class] .jm-sum__body {
	padding: 0 0 24px;
}

/* --- the totals block (plugin markup) ---------------------------------- */

.cws-woocommerce-cart-form[class] .cws_cart_summary {
	display: flex;
	flex-direction: column;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	gap: 0;
}

/* Every plain label/value pair: subtotal, discounts, fees, tax rows. */
.cws-woocommerce-cart-form[class] .cws_cart_summary > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--jm-line-2);
}

.cws-woocommerce-cart-form[class] .cws_cart_summary > div ~ div {
	padding-top: 16px;
}

.cws-woocommerce-cart-form[class] .cws_cart_summary .cart-summary-item-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--jm-ink-3);
}

.cws-woocommerce-cart-form[class] .cws_cart_summary .cart-summary-item-value {
	font-size: 16px;
	font-weight: 600;
	color: var(--jm-ink);
	text-align: right;
}

.cws-woocommerce-cart-form[class] .cws_cart_summary .cart-discount .cart-summary-item-value {
	color: var(--jm-green-lbl);
}

/* --- delivery + address (plugin markup) -------------------------------- */

/*
 * The plugin stacks .cws-shipping-package as a column (flex-direction: column
 * at (0,2,0)), which is what this design wants: the package name becomes the
 * "Vrsta dostave" micro-label and the rates, the destination line and
 * WooCommerce's address calculator sit under it.
 */
.cws-woocommerce-cart-form[class] .cws_cart_summary > .cws-shipping-package {
	display: block;
	padding: 18px 24px 16px;
}

.cws-woocommerce-cart-form[class] .cws-shipping-package > .cart-summary-item-title {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--jm-muted);
	margin-bottom: 10px;
}

.cws-woocommerce-cart-form[class] .cws-shipping-methods-wrap {
	display: block;
	text-align: left;
}

.cws-woocommerce-cart-form[class] .cws-ship-list {
	list-style: none;
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
}

/*
 * The rate rows come from the plugin, and so does their mechanism: it hides the
 * native radio (.cws-ship-head .input-radio { opacity: 0 }) and paints
 * .cws-ship-radio in its place, marking the row .selected from JS on change.
 * That contract is left alone — only the sizes and the border weight are the
 * design's. The colours arrive through the --cws-* repaint at the top.
 */
.cws-woocommerce-cart-form[class] .cws-ship {
	border-width: 1.5px;
	margin: 0;
	padding: 0;
}

.cws-woocommerce-cart-form[class] .cws-ship-label {
	display: block;
	margin: 0;
	padding: 12px 14px;
	cursor: pointer;
}

.cws-woocommerce-cart-form[class] .cws-ship-head {
	display: flex;
	align-items: center;
	gap: 11px;
}

.cws-woocommerce-cart-form[class] .cws-ship-left {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: 1;
	min-width: 0;
}

.cws-woocommerce-cart-form[class] .cws-ship-radio {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border-width: 2px;
	border-color: #cbd8dd;
}

.cws-woocommerce-cart-form[class] .cws-ship.selected .cws-ship-radio::after {
	width: 8px;
	height: 8px;
}

.cws-woocommerce-cart-form[class] .cws-ship-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jm-ink);
}

.cws-woocommerce-cart-form[class] .cws-ship-right {
	margin-left: auto;
	text-align: right;
	white-space: nowrap;
}

.cws-woocommerce-cart-form[class] .cws-ship-price {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--jm-green-lbl);
}

/*
 * WooCommerce's own tax hint on shipping rates and totals ("(excl. VAT)" and
 * friends). The design says the tax story once, in .jm-sum__vat under the
 * grand total, so every built-in restatement of it is hidden — same reasoning
 * as .includes_tax above.
 *
 * Scoped to the cart root rather than global: .tax_label is WooCommerce's class
 * and also appears on product pages, in the order-received page and in emails.
 */
.cws-woocommerce-cart-form[class] .tax_label {
	display: none;
}

.cws-woocommerce-cart-form[class] .cws-shipping-destination,
.cws-woocommerce-cart-form[class] .cws-shipping-notice {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	font-weight: 700;
	color: var(--jm-ink);
	text-wrap: pretty;
}

.cws-woocommerce-cart-form[class] .cws-shipping-notice {
	font-weight: 600;
	color: var(--jm-ink-3);
}

.cws-woocommerce-cart-form[class] .cws-shipping-destination strong {
	font-weight: 700;
}

/* --- the address calculator (WooCommerce markup) ----------------------- */

.cws-woocommerce-cart-form[class] .cws-shipping-calculator-wrap {
	margin-top: 8px;
}

.cws-woocommerce-cart-form[class] .shipping-calculator-button {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jm-accent);
	text-decoration: none;
}

.cws-woocommerce-cart-form[class] .shipping-calculator-button:hover {
	color: var(--jm-accent-d);
}

.cws-woocommerce-cart-form[class] .shipping-calculator-form {
	display: grid;
	gap: 14px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--jm-line-2);
}

.cws-woocommerce-cart-form[class] .shipping-calculator-form .form-row {
	margin: 0;
	padding: 0;
}

/*
 * text-align is explicit because this form sits inside
 * .cart-summary-item-value, whose right alignment the labels would otherwise
 * inherit.
 */
.cws-woocommerce-cart-form[class] .shipping-calculator-form label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--jm-body);
	margin-bottom: 6px;
	text-align: left;
}

/* --- fields shared by the calculator and the promo box ----------------- */

.cws-woocommerce-cart-form[class] input[type="text"],
.cws-woocommerce-cart-form[class] input[type="email"],
.cws-woocommerce-cart-form[class] input[type="tel"],
.cws-woocommerce-cart-form[class] input[type="number"],
.cws-woocommerce-cart-form[class] select,
.cws-woocommerce-cart-form[class] .select2-container .select2-selection--single {
	width: 100%;
	height: 44px;
	border: 1.5px solid var(--jm-line);
	border-radius: 0;
	background: var(--jm-surface);
	padding: 0 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--jm-ink);
	outline: none;
	box-shadow: none;
}

.cws-woocommerce-cart-form[class] input[type="text"]:focus,
.cws-woocommerce-cart-form[class] select:focus,
.cws-woocommerce-cart-form[class] .select2-container--open .select2-selection--single {
	border-color: var(--jm-accent);
}

.cws-woocommerce-cart-form[class] .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}

.cws-woocommerce-cart-form[class] .shipping-calculator-form .button {
	justify-self: start;
	height: 42px;
	padding: 0 22px;
	border: 1.5px solid var(--jm-accent);
	border-radius: 0;
	background: var(--jm-surface);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jm-accent);
	cursor: pointer;
	transition: background .15s;
}

.cws-woocommerce-cart-form[class] .shipping-calculator-form .button:hover {
	background: var(--jm-tint);
	color: var(--jm-accent);
}

/* --- the grand total --------------------------------------------------- */

/*
 * The order total and the VAT note are two elements — .order-total is the last
 * child of the plugin's .cws_cart_summary, the note is the next sibling of that
 * block — but the design draws them as one panel. They are joined by dropping
 * the note's top border and pulling it up over the total's bottom one; a later
 * sibling paints its background over an earlier sibling's border, so the seam
 * disappears. The total alone still reads as a complete panel when the store
 * shows tax separately and the note is not rendered.
 */
.cws-woocommerce-cart-form[class] .cws_cart_summary > .order-total {
	margin: 20px 24px 0;
	padding: 18px 20px 14px;
	background: var(--jm-panel);
	border: 1px solid var(--jm-line);
	align-items: baseline;
}

.cws-woocommerce-cart-form[class] .cws_cart_summary > .order-total .cart-summary-item-title {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--jm-body);
}

.cws-woocommerce-cart-form[class] .cws_cart_summary > .order-total .cart-summary-item-value {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -.8px;
	color: var(--jm-ink);
}

/*
 * WooCommerce appends its own "(includes X PDV)" to the order total from
 * wc_cart_totals_order_total_html(), inside the value span. .jm-sum__vat below
 * is the design's version of exactly that line, so the built-in one is hidden
 * rather than styled — two of them is the only thing that could go wrong here.
 *
 * The two always appear together: WooCommerce emits this only when prices are
 * displayed tax-inclusive, which is the same condition
 * (totals.tax_mode === 'none') that cart-page.php renders .jm-sum__vat on.
 * Drop the custom note and this rule has to go with it.
 */
.cws-woocommerce-cart-form[class] .includes_tax {
	display: none;
}

.cws-woocommerce-cart-form[class] .jm-sum__vat {
	margin: -1px 24px 0;
	padding: 0 20px 14px;
	background: var(--jm-panel);
	border: 1px solid var(--jm-line);
	border-top: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--jm-muted);
	text-align: right;
}

/* --- promo code -------------------------------------------------------- */

.cws-woocommerce-cart-form[class] .cws-suite-promocode-input-wrap {
	margin-top: 0;
	padding: 18px 24px 0;
}

.cws-woocommerce-cart-form[class] .cws-suite-promocode-input-wrap > label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--jm-muted);
	margin-bottom: 8px;
}

.cws-woocommerce-cart-form[class] .cws-suite-promocode-input {
	display: flex;
	align-items: stretch;
}

.cws-woocommerce-cart-form[class] .cws-suite-promocode-input #promocode {
	flex: 1;
	min-width: 0;
	height: 46px;
	border-right: 0;
}

/*
 * (0,2,0) — beats .elementor-kit-N .elementor-button (0,1,1) cleanly.
 */
.cws-woocommerce-cart-form[class] .cws-cart-coupon-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	height: 46px;
	padding: 0 20px;
	border: 1.5px solid var(--jm-ink);
	border-radius: 0;
	background: var(--jm-ink);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.cws-woocommerce-cart-form[class] .cws-cart-coupon-action:hover {
	background: var(--jm-accent);
	border-color: var(--jm-accent);
	color: #fff;
}

/* Coupon notices are injected into the wrapper. */
.cws-woocommerce-cart-form[class] .cws-suite-promocode-input-wrap .woocommerce-error,
.cws-woocommerce-cart-form[class] .cws-suite-promocode-input-wrap .woocommerce-message,
.cws-woocommerce-cart-form[class] .cws-suite-promocode-input-wrap .woocommerce-info {
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1px solid var(--jm-line);
	background: var(--jm-panel);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--jm-ink);
	list-style: none;
}

/* --- checkout CTA ------------------------------------------------------ */

.cws-woocommerce-cart-form[class] .cart-summary-actions {
	margin-top: 0;
	padding: 20px 24px 0;
}

.cws-woocommerce-cart-form[class] .cart-summary-actions .cws-cart-checkout-action,
.cws-cart-mobile-sticky-actions .cws-cart-checkout-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--jm-green, #7cb342);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .2px;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background .16s;
}

.cws-woocommerce-cart-form[class] .cart-summary-actions .cws-cart-checkout-action:hover,
.cws-cart-mobile-sticky-actions .cws-cart-checkout-action:hover {
	background: var(--jm-green-h, #6aa236);
	color: #fff;
}

.cws-woocommerce-cart-form[class] .cart-summary-actions .cws-cart-checkout-action::after,
.cws-cart-mobile-sticky-actions .cws-cart-checkout-action::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The plugin adds `loading` on click so a double tap cannot double-submit. */
.cws-woocommerce-cart-form[class] .cws-cart-checkout-action.loading,
.cws-cart-mobile-sticky-actions .cws-cart-checkout-action.loading {
	opacity: .65;
	pointer-events: none;
}

.cws-woocommerce-cart-form[class] .jm-sum__trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 24px 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--jm-muted);
}

.cws-woocommerce-cart-form[class] .jm-sum__trust .jm-ico {
	width: 14px;
	height: 14px;
}

/* ------------------------------------------------------------- notices ------ */

.cws-woocommerce-cart-form[class] .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 20px;
}

.cws-woocommerce-cart-form[class] .woocommerce-notices-wrapper .woocommerce-error,
.cws-woocommerce-cart-form[class] .woocommerce-notices-wrapper .woocommerce-message,
.cws-woocommerce-cart-form[class] .woocommerce-notices-wrapper .woocommerce-info {
	margin: 0 0 10px;
	padding: 14px 18px;
	border: 1px solid var(--jm-line);
	border-left: 3px solid var(--jm-accent);
	border-radius: 0;
	background: var(--jm-surface);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--jm-ink);
	list-style: none;
}

/* --------------------------------------------------------- mobile bar ------- */

/*
 * Flat, like everything else. `none` rather than simply dropping the
 * declaration: the plugin puts its own shadow on this bar, so leaving the
 * property unset would let that one through.
 */
.cws-cart-mobile-sticky-actions {
	border-top: 1px solid var(--jm-line, #e2e9ec);
	box-shadow: none;
}

/* -------------------------------------------------------- responsive -------- */

@media (max-width: 1100px) {
	.cws-woocommerce-cart-form[class] .jm-cart {
		grid-template-columns: minmax(0, 1fr);
	}

	.cws-woocommerce-cart-form[class] .cart-totals-wrap {
		position: static;
	}
}

@media (max-width: 782px) {
	.cws-woocommerce-cart-form[class] .jm-cart {
		gap: 10px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__main,
	.cws-woocommerce-cart-form[class] .cart-totals-wrap {
		border-left: 0;
		border-right: 0;
		box-shadow: none;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__main-head,
	.cws-woocommerce-cart-form[class] .jm-cart__main-foot {
		padding-inline: 18px;
	}

	/*
	 * Rows collapse to media + body, with the stepper and the line total
	 * sharing the second line.
	 *
	 * Those two get a column each rather than both sitting in one cell: grid
	 * items placed in the same area overlap by definition, so a long price —
	 * a four-figure subtotal, or one carrying a tax suffix — printed straight
	 * over the quantity control. `auto` lets the price take what it needs and
	 * leaves the rest to the stepper.
	 */
	.cws-woocommerce-cart-form[class] .jm-cart__row {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"media body body"
			"media qty  price";
		gap: 6px 14px;
		align-items: start;
		padding: 16px 18px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__media {
		grid-area: media;
		width: 72px;
		height: 72px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__body {
		grid-area: body;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 30px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__brand,
	.cws-woocommerce-cart-form[class] .cws-cart-product-name.jm-cart__name,
	.cws-woocommerce-cart-form[class] .jm-cart__sku,
	.cws-woocommerce-cart-form[class] .jm-cart__meta {
		grid-column: 1;
	}

	.cws-woocommerce-cart-form[class] .cws-cart-product-name.jm-cart__name {
		font-size: 14px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__sku {
		font-size: 11.5px;
	}

	/*
	 * The row's remove control moves into the body's second column, level with
	 * the brand line — the design's mobile card. The plugin hides
	 * .cws-cart-item-remove-wrap outright below 768px, on the assumption that
	 * the corner × takes over; this design has no corner ×, so the wrapper is
	 * put back. It still carries the in-flight hide the remove handler relies on.
	 */
	.cws-woocommerce-cart-form[class] .jm-cart__remove-wrap {
		display: block;
		grid-area: body;
		justify-self: end;
		align-self: start;
	}

	.cws-woocommerce-cart-form[class] .cws-cart-item-remove.jm-cart__remove {
		width: 30px;
		height: 30px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__qty {
		grid-area: qty;
		align-self: center;
		margin-top: 4px;
	}

	.cws-woocommerce-cart-form[class] .cws-quantity-input.jm-cart__stepper {
		height: 40px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__stepper .jm-cart__step {
		width: 36px;
	}

	.cws-woocommerce-cart-form[class] .jm-cart__pricing {
		grid-area: price;
		justify-self: end;
		align-self: center;
		margin-top: 4px;
	}

	.cws-woocommerce-cart-form[class] .cws-cart-item-price.jm-cart__line-total {
		font-size: 16px;
		letter-spacing: -.3px;
	}

	/* One price on a phone row; the per-unit line is desktop detail. */
	.cws-woocommerce-cart-form[class] .jm-cart__each {
		display: none;
	}

	.cws-woocommerce-cart-form[class] .cws_cart_summary > div,
	.cws-woocommerce-cart-form[class] .cws_cart_summary > .cws-shipping-package,
	.cws-woocommerce-cart-form[class] .cws-suite-promocode-input-wrap,
	.cws-woocommerce-cart-form[class] .cart-summary-actions {
		padding-inline: 18px;
	}

	.cws-woocommerce-cart-form[class] .cws_cart_summary > .order-total,
	.cws-woocommerce-cart-form[class] .jm-sum__vat {
		margin-inline: 18px;
	}

	/* 28px is a desktop-column figure; it crowds the label on a phone. */
	.cws-woocommerce-cart-form[class] .cws_cart_summary > .order-total .cart-summary-item-value {
		font-size: 21px;
	}

	.cws-woocommerce-cart-form[class] .jm-sum__trust {
		margin-inline: 18px;
	}

	.cws-woocommerce-cart-form[class] .cart-totals-heading.jm-sum__head {
		padding-inline: 18px;
	}

	/*
	 * The design's phone layout shows only the fixed bottom CTA, with none in
	 * the summary card. That is left alone deliberately: the plugin's sticky
	 * bar is driven by an IntersectionObserver on this very element, so hiding
	 * it would make the bar's visibility depend on how a display:none target is
	 * reported. The in-card CTA stays, and the bar appears the moment it
	 * scrolls out of view — which is the behaviour the design is after, reached
	 * the way the plugin already supports.
	 *
	 * Room for the bar so it never covers the last row.
	 */
	.cws-woocommerce-cart-form[class] .jm-sum__body {
		padding-bottom: 20px;
	}

	.cws-woocommerce-cart-form[class] {
		padding-bottom: 96px;
	}
}
