/* ==========================================================================
   Unicorn Elementor Blocks — WooCommerce Cart Page
   Standalone stylesheet; all selectors scoped under .ueb-cart-page.
   ========================================================================== */

.ueb-cart-page {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px clamp(16px, 4vw, 32px) 80px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	background: transparent;
	box-sizing: border-box;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	color: #1b1c19;
}

.ueb-cart-page *,
.ueb-cart-page *::before,
.ueb-cart-page *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */
.ueb-cart-page__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
}

.ueb-cart-page__head-icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
	color: #3a124d;
}

.ueb-cart-page__head-icon svg {
	width: 100%;
	height: 100%;
}

.ueb-cart-page__head-title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 24px;
	color: #3a124d;
}

/* --------------------------------------------------------------------------
   Layout grid
   -------------------------------------------------------------------------- */
.ueb-cart-page__form {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0;
}

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

.ueb-cart-page__items,
.ueb-cart-page__summary,
.ueb-cart-page__coupon {
	display: contents;
}

/* Mobile reorder: Items → Apply Coupon → Order Summary.
   The items + summary normally live inside `.ueb-cart-page__grid` while the
   coupon is a sibling of the grid (both children of the form's flex column).
   To order across that boundary, dissolve the grid (`display: contents`) so the
   item/summary cards become direct flex children of the form, then turn all
   three wrappers into real flex items (cancelling their own `display: contents`)
   so the `order` property applies. This block is placed AFTER the base
   `display: contents` rule above so it wins the cascade at equal specificity. */
@media (max-width: 1024px) {
	.ueb-cart-page__grid {
		grid-template-columns: minmax(0, 1fr);
		display: contents;
	}
	.ueb-cart-page__items,
	.ueb-cart-page__summary,
	.ueb-cart-page__coupon {
		display: block;
	}
	.ueb-cart-page__items {
		order: 1;
	}
	.ueb-cart-page__coupon {
		order: 2;
	}
	.ueb-cart-page__summary {
		order: 3;
	}
}

/* The cards inside the grid wrappers — using `display: contents` on the
   wrappers above so the cards become direct grid items. */

/* --------------------------------------------------------------------------
   Card shell (shared by items / summary / coupon / empty)
   -------------------------------------------------------------------------- */
.ueb-cart-card {
	background: #ffffff;
	border-radius: 32px;
	padding: 32px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ueb-cart-card__title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 24px;
	color: #1b1c19;
}

.ueb-cart-card__title--icon {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.ueb-cart-card__title-icon {
	width: 24px;
	height: 24px;
	color: #1b1c19;
}

.ueb-cart-card__divider {
	border: 0;
	border-top: 1px solid rgba(196, 198, 204, 0.4);
	margin: 0;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Items list (left card)
   -------------------------------------------------------------------------- */
.ueb-cart-row-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ueb-cart-row {
	display: grid;
	grid-template-columns: 32px 78px minmax(0, 1fr) auto auto;
	gap: 24px;
	align-items: center;
}

@media (max-width: 600px) {
	.ueb-cart-row {
		grid-template-columns: 32px 64px minmax(0, 1fr);
		row-gap: 12px;
	}
	.ueb-cart-row__qty,
	.ueb-cart-row__price {
		grid-column: 2 / -1;
	}
}

.ueb-cart-row.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

/* Remove (X) */
.ueb-cart-row__remove {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #f9fafb;
	border: 0;
	border-radius: 9999px;
	color: #1b1c19;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ueb-cart-row__remove:hover,
.ueb-cart-row__remove:focus-visible {
	background: #ececec;
	color: #3a124d;
	outline: none;
}

.ueb-cart-row__remove svg {
	width: 15px;
	height: 15px;
}

/* Thumb */
.ueb-cart-row__thumb-wrap {
	width: 78px;
	height: 78px;
	background: #f0eee9;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ueb-cart-row__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Info column */
.ueb-cart-row__info {
	min-width: 0;
}

.ueb-cart-row__name {
	margin: 0;
	font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	color: #1b1c19;
}

.ueb-cart-page .ueb-cart-row__name a {
	color: inherit;
	text-decoration: none !important;
}

.ueb-cart-page .ueb-cart-row__name a:hover {
	color: #3a124d;
	text-decoration: none !important;
}

.ueb-cart-row__meta {
	margin-top: 2px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 16px;
	color: #44474c;
}

.ueb-cart-row__meta p,
.ueb-cart-row__meta dl,
.ueb-cart-row__meta dt,
.ueb-cart-row__meta dd {
	display: inline;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
}

/* Qty pill */
.ueb-cart-row__qty {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 5px 9px;
	background: #ffffff;
	border: 1px solid rgba(196, 198, 204, 0.3);
	border-radius: 9999px;
}

.ueb-cart-row__qty-btn {
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 9999px;
	color: #1b1c19;
	font: 700 16px/1 Inter, sans-serif;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.ueb-cart-row__qty-btn:hover:not(:disabled),
.ueb-cart-row__qty-btn:focus-visible:not(:disabled) {
	background: #f4f4ff;
	color: #3a124d;
	outline: none;
}

.ueb-cart-row__qty-value {
	min-width: 16px;
	text-align: center;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	color: #1b1c19;
	font-variant-numeric: tabular-nums;
}

/* Price */
.ueb-cart-row__price {
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: #1b1c19;
	white-space: nowrap;
}

.ueb-cart-row__price .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

/* --------------------------------------------------------------------------
   Summary card (right)
   -------------------------------------------------------------------------- */
.ueb-cart-card--summary {
	gap: 35px;
}

.ueb-cart-summary__lines {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ueb-cart-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
}

.ueb-cart-summary__line dt {
	margin: 0;
	color: #44474c;
	font-weight: 400;
}

.ueb-cart-summary__line dd {
	margin: 0;
	color: #1b1c19;
	font-weight: 500;
	white-space: nowrap;
}

.ueb-cart-summary__line dd .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.ueb-cart-summary__line--discount dt,
.ueb-cart-summary__line--discount dd {
	color: #ba1a1a;
}

.ueb-cart-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding-top: 17px;
	border-top: 1px solid rgba(196, 198, 204, 0.4);
}

.ueb-cart-summary__total-label {
	font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 28px;
	color: #1b1c19;
}

.ueb-cart-summary__total-value {
	font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 30px;
	line-height: 36px;
	letter-spacing: -1.5px;
	color: #3a124d;
}

.ueb-cart-summary__total-value .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.ueb-cart-summary__free-ship {
	margin: 0;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	color: #000000;
}

.ueb-cart-summary__free-ship .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

/* Scoped under .ueb-cart-page + uses the `a` tag so the theme's blanket
   `a { text-decoration: underline }` does not paint underlines back on. */
.ueb-cart-page a.ueb-cart-summary__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 20px;
	background: #3a124d;
	color: #ffffff;
	border-radius: 32px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.ueb-cart-page a.ueb-cart-summary__cta:hover,
.ueb-cart-page a.ueb-cart-summary__cta:focus-visible {
	background: #2a0d39;
	color: #ffffff;
	text-decoration: none !important;
	outline: none;
}

.ueb-cart-summary__cta-arrow {
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   Coupon card
   -------------------------------------------------------------------------- */
.ueb-cart-card--coupon {
	max-width: 676px;
	gap: 16px;
}

.ueb-cart-coupon__row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

/* Width / height / radius follow the Figma spec (325 × 44, 32px radius =
   full pill at this height). Width is allowed to shrink so the row stays
   usable in tight columns.
   Selector is scoped under .ueb-cart-page and includes the `input` tag so
   the rule wins against Hello Elementor / theme defaults that target raw
   `input[type=text]` selectors (same family of fight as
   [[theme-button-hover-override]]). The layout-critical properties also
   carry !important so any future theme rule with higher specificity still
   can't reshape the field. */
.ueb-cart-page input.ueb-cart-coupon__input {
	flex: 0 1 325px;
	min-width: 200px;
	height: 44px !important;
	padding: 0 16px !important;
	background: #ffffff !important;
	border: 1px solid #e6e7eb !important;
	border-radius: 32px !important;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #1b1c19;
	box-sizing: border-box !important;
}

.ueb-cart-page input.ueb-cart-coupon__input::placeholder {
	color: #6b7280;
	opacity: 1;
}

.ueb-cart-page input.ueb-cart-coupon__input:focus {
	outline: none;
	border-color: #3a124d;
	box-shadow: 0 0 0 3px rgba(58, 18, 77, 0.12);
}

.ueb-cart-coupon__apply,
.ueb-cart-coupon__update {
	height: 44px;
	padding: 0 24px;
	border-radius: 32px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	border: 1px solid #000000;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ueb-cart-coupon__apply {
	background: #000000;
	color: #ffffff;
}

.ueb-cart-coupon__apply:hover,
.ueb-cart-coupon__apply:focus-visible {
	background: #2a0d39;
	color: #ffffff;
	border-color: #2a0d39;
	outline: none;
}

.ueb-cart-coupon__update {
	background: #ffffff;
	color: #000000;
}

.ueb-cart-coupon__update:hover,
.ueb-cart-coupon__update:focus-visible {
	background: #f4f4ff;
	color: #3a124d;
	border-color: #3a124d;
	outline: none;
}

.ueb-cart-coupon__apply.is-busy,
.ueb-cart-coupon__update.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

.ueb-cart-coupon__applied {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ueb-cart-coupon__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px 6px 14px;
	background: #f4f4ff;
	border-radius: 9999px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: #3a124d;
}

.ueb-cart-coupon__remove {
	width: 22px;
	height: 22px;
	border: 0;
	background: transparent;
	color: #3a124d;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ueb-cart-coupon__remove:hover,
.ueb-cart-coupon__remove:focus-visible {
	color: #1b1c19;
	outline: none;
}

.ueb-cart-coupon__remove svg {
	width: 12px;
	height: 12px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.ueb-cart-card--empty {
	gap: 40px;
	padding: 33px;
	max-width: 454px;
}

.ueb-cart-empty__title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 24px;
	color: #1b1c19;
}

.ueb-cart-page a.ueb-cart-empty__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: #3a124d;
	text-decoration: none !important;
	align-self: flex-start;
	transition: opacity 0.15s ease;
}

.ueb-cart-page a.ueb-cart-empty__link:hover,
.ueb-cart-page a.ueb-cart-empty__link:focus-visible {
	color: #3a124d;
	opacity: 0.75;
	text-decoration: none !important;
	outline: none;
}

.ueb-cart-empty__arrow {
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   WooCommerce notices on the cart page
   -------------------------------------------------------------------------- */
.ueb-cart-page .woocommerce-message,
.ueb-cart-page .woocommerce-info,
.ueb-cart-page .woocommerce-error {
	margin: 0;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	list-style: none;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
}

.ueb-cart-page .woocommerce-message {
	background: #efeaf3;
	color: #3a124d;
	border-color: rgba(58, 18, 77, 0.2);
}

.ueb-cart-page .woocommerce-error {
	background: #fdecec;
	color: #ba1a1a;
	border-color: rgba(186, 26, 26, 0.2);
}

.ueb-cart-page .woocommerce-info {
	background: #f4f6fb;
	color: #1b1c19;
	border-color: rgba(196, 198, 204, 0.4);
}

/* Screen-reader-only label */
.ueb-cart-page .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
