/* ==========================================================================
   Y Needs checkout (includes/checkout-page.php). Reference: orangefit.com checkout (Shopify style),
   in the Y Needs colours. Only the look: fields and options are WooCommerce's / checkout-fields.php.
   Selectors start with "html body.yns-co-page" where Divi / WooCommerce ship equally specific rules.
   Motion: transform / opacity only.
   ========================================================================== */

body.yns-co-page {
	--co-primary: var(--yn-primary, #0258A2);
	--co-ink: var(--yn-heading, #1E293B);
	--co-text: var(--yn-text, #334155);
	--co-muted: var(--yn-muted, #69727D);
	--co-bg: color-mix(in srgb, var(--co-primary) 3%, #FFFFFC);
	--co-side: color-mix(in srgb, var(--co-primary) 6%, #FFFFFC);
	--co-field: #FFFFFC;
	--co-line: color-mix(in srgb, var(--co-ink) 14%, transparent);
	--co-soft: color-mix(in srgb, var(--co-primary) 7%, #FFFFFC);
	--co-ring: color-mix(in srgb, var(--co-primary) 18%, transparent);
	--co-error: #C62828;
	--co-ease: cubic-bezier(.22, 1.2, .36, 1);
	--co-bar-h: clamp(3.5rem, 5vw, 4rem);
	background: var(--co-bg) !important;
}

/* Only the brand bar on top; no site header, Divi header or footer (as in the reference). */
html body.yns-co-page #main-header,
html body.yns-co-page #top-header,
html body.yns-co-page #main-footer,
html body.yns-co-page .ofh-spacer { display: none !important; }
html body.yns-co-page #page-container { padding-top: 0 !important; margin-top: 0 !important; background: transparent !important; }
html body.yns-co-page #main-content.yns-co-page__main { background: transparent !important; }

.yns-co-bar {
	position: relative;
	display: grid;
	place-items: center;
	height: var(--co-bar-h);
	padding: 0 1rem;
	overflow: hidden;
	background:
		radial-gradient(120% 220% at 88% -40%, color-mix(in srgb, var(--yn-primary-hover, #046BD2) 85%, transparent) 0%, transparent 55%),
		radial-gradient(90% 180% at 6% 140%, color-mix(in srgb, #000 22%, transparent) 0%, transparent 60%),
		var(--co-primary);
	box-shadow: 0 1px 0 color-mix(in srgb, #000 8%, transparent);
}
.yns-co-bar__home { display: inline-flex; align-items: center; border-radius: .5rem; transition: opacity .2s, transform .2s var(--co-ease); }
.yns-co-bar__home:hover { opacity: .85; }
.yns-co-bar__home:focus-visible { outline: 2px solid #FFFFFC; outline-offset: 4px; }
.yns-co-bar__home:active { transform: none; }
html body.yns-co-page .yns-co-bar__logo { display: block; width: auto; height: calc(var(--co-bar-h) * .62); max-width: 12rem; object-fit: contain; }
.yns-co-bar__name { color: #FFFFFC; font-size: 1.4rem; font-weight: 800; }

html body.yns-co-page .yns-co-page__content { margin: 0; padding: 0; }
html body.yns-co-page .yns-co-page__content > .woocommerce { max-width: none; margin: 0; padding: 0; }

/* ---------- Two columns ---------- */
html body.yns-co-page form.yns-co { margin: 0; padding: 0; }
html body.yns-co-page .yns-co__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: calc(100vh - var(--co-bar-h));
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	float: none;
	width: auto;
}
.yns-co__main {
	justify-self: end;               /* hugs the centre line (RTL: left side of the right column) */
	width: 100%;
	max-width: calc(33rem + 6rem);
	padding: 2.5rem 3rem 4rem;
	color: var(--co-text);
}
.yns-co__summary {
	border-inline-start: 1px solid var(--co-line);
	background: var(--co-side);
}
.yns-co__summary-inner {
	position: sticky;
	top: 0;
	width: 100%;
	max-width: calc(28rem + 6rem);
	padding: 2.5rem 3rem 3rem;
}
.yns-co__toggle { display: none; }

/* Notices (validation errors) above the columns */
html body.yns-co-page form.yns-co > .woocommerce-NoticeGroup,
html body.yns-co-page .yns-co-page__content .woocommerce-notices-wrapper:not(:empty) {
	max-width: 66rem;
	margin: 1.25rem auto 0;
	padding: 0 1.25rem;
}
html body.yns-co-page .woocommerce-error,
html body.yns-co-page .woocommerce-message,
html body.yns-co-page .woocommerce-info { border-radius: .6rem; }

/* ---------- Section headings ---------- */
html body.yns-co-page .yns-co__h,
html body.yns-co-page .yns-co .yns-checkout-offers-title {
	margin: 2rem 0 .85rem;
	padding: 0;
	color: var(--co-ink);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.35;
}
html body.yns-co-page .yns-co__details .col-1 .yns-co__h:first-child,
html body.yns-co-page .woocommerce-billing-fields__field-wrapper > .yns-co__h:first-child { margin-top: 0; }
/* WooCommerce's own "تفاصيل الفاتورة" heading: replaced by «التواصل» / «التوصيل». */
html body.yns-co-page .yns-co .woocommerce-billing-fields > h3 { display: none; }

/* ---------- Fields ---------- */
html body.yns-co-page .yns-co .col2-set,
html body.yns-co-page .yns-co .col2-set .col-1,
html body.yns-co-page .yns-co .col2-set .col-2 { float: none; width: 100%; max-width: none; margin: 0; padding: 0; }
html body.yns-co-page .yns-co .col2-set::before,
html body.yns-co-page .yns-co .col2-set::after { display: none; }

html body.yns-co-page .yns-co .woocommerce-billing-fields__field-wrapper,
html body.yns-co-page .yns-co .woocommerce-shipping-fields__field-wrapper,
html body.yns-co-page .yns-co .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: .7rem;
}
html body.yns-co-page .yns-co .woocommerce-billing-fields__field-wrapper > *,
html body.yns-co-page .yns-co .woocommerce-shipping-fields__field-wrapper > *,
html body.yns-co-page .yns-co .woocommerce-additional-fields__field-wrapper > * { grid-column: 1 / -1; }
html body.yns-co-page .yns-co .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: auto; }
html body.yns-co-page .yns-co .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: auto; }

html body.yns-co-page .yns-co .form-row {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
html body.yns-co-page .yns-co .form-row .woocommerce-input-wrapper { display: block; }

html body.yns-co-page .yns-co .form-row input.input-text,
html body.yns-co-page .yns-co .form-row textarea,
html body.yns-co-page .yns-co .form-row select,
html body.yns-co-page .yns-co .form-row .select2-container .select2-selection,
html body.yns-co-page .yns-co #billing_country_field .woocommerce-input-wrapper strong {
	display: block;
	width: 100%;
	height: 3.3rem;
	margin: 0;
	padding: 1.35rem .9rem .35rem;
	border: 1px solid var(--co-line);
	border-radius: .55rem;
	background: var(--co-field);
	color: var(--co-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
html body.yns-co-page .yns-co .form-row textarea { height: 6.5rem; padding-top: 1.6rem; resize: vertical; }
html body.yns-co-page .yns-co .form-row input.input-text:hover,
html body.yns-co-page .yns-co .form-row textarea:hover { border-color: color-mix(in srgb, var(--co-ink) 28%, transparent); }
html body.yns-co-page .yns-co .form-row input.input-text:focus,
html body.yns-co-page .yns-co .form-row textarea:focus,
html body.yns-co-page .yns-co .form-row select:focus,
html body.yns-co-page .yns-co .select2-container--focus .select2-selection,
html body.yns-co-page .yns-co .select2-container--open .select2-selection {
	border-color: var(--co-primary);
	box-shadow: 0 0 0 3px var(--co-ring);
	outline: none;
}
/* Placeholders only while typing (the label sits where they'd be). */
html body.yns-co-page .yns-co .form-row input.input-text::placeholder,
html body.yns-co-page .yns-co .form-row textarea::placeholder { color: transparent; }
html body.yns-co-page .yns-co .form-row input.input-text:focus::placeholder,
html body.yns-co-page .yns-co .form-row textarea:focus::placeholder { color: var(--co-muted); }

/* Floating label: inside the field at rest, small on top when focused or filled. */
html body.yns-co-page .yns-co .form-row > label:not(.checkbox) {
	position: absolute;
	top: 0;
	inset-inline: .9rem;
	z-index: 1;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--co-muted);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transform: translateY(.95rem);
	transform-origin: top right;
	transition: transform .22s var(--co-ease), color .2s;
}
[dir="ltr"] body.yns-co-page .yns-co .form-row > label:not(.checkbox) { transform-origin: top left; }
html body.yns-co-page .yns-co .form-row.is-filled > label:not(.checkbox),
html body.yns-co-page .yns-co .form-row:focus-within > label:not(.checkbox),
html body.yns-co-page .yns-co .form-row:has(select) > label:not(.checkbox),
html body.yns-co-page .yns-co #billing_country_field > label {
	transform: translateY(.42rem) scale(.78);
}
html body.yns-co-page .yns-co .form-row:focus-within > label:not(.checkbox) { color: var(--co-primary); }
html body.yns-co-page .yns-co .form-row label .optional { color: inherit; opacity: .85; }
html body.yns-co-page .yns-co .form-row label abbr.required { color: var(--co-error); text-decoration: none; border: 0; }

/* Country: one country only → shown as a fixed field. */
html body.yns-co-page .yns-co #billing_country_field .woocommerce-input-wrapper strong,
html body.yns-co-page .yns-co #shipping_country_field .woocommerce-input-wrapper strong { background: color-mix(in srgb, var(--co-ink) 3%, var(--co-field)); }

/* select2 (shipping «المنطقة») */
html body.yns-co-page .yns-co .select2-container { width: 100% !important; }
html body.yns-co-page .yns-co .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--co-ink); line-height: 1.5; }
html body.yns-co-page .yns-co .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; height: 1.5rem; transform: translateY(-50%); inset-inline-end: .6rem; inset-inline-start: auto; }

/* Errors */
html body.yns-co-page .yns-co .form-row.woocommerce-invalid input.input-text,
html body.yns-co-page .yns-co .form-row.woocommerce-invalid textarea,
html body.yns-co-page .yns-co .form-row.woocommerce-invalid .select2-selection { border-color: var(--co-error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-error) 14%, transparent); }
html body.yns-co-page .yns-co .form-row.woocommerce-invalid > label:not(.checkbox) { color: var(--co-error); }
html body.yns-co-page .yns-co .checkout-inline-error-message { margin: .3rem .2rem 0; color: var(--co-error); font-size: .85rem; }

/* Checkboxes / radios in the brand colour */
html body.yns-co-page .yns-co input[type="checkbox"],
html body.yns-co-page .yns-co input[type="radio"] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--co-primary); cursor: pointer; }

/* «هل تودّ الشحن لعنوان مختلف؟» */
html body.yns-co-page .yns-co #ship-to-different-address {
	margin: 1.1rem 0 .75rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}
html body.yns-co-page .yns-co #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	color: var(--co-ink);
	cursor: pointer;
}
html body.yns-co-page .yns-co .shipping_address { padding-bottom: .5rem; }
html body.yns-co-page .yns-co .woocommerce-additional-fields { margin-top: .7rem; }
html body.yns-co-page .yns-co .woocommerce-additional-fields > h3 { display: none; }

/* Offers block («الحقّ العرض قبل مايخلص») */
html body.yns-co-page .yns-co .yns-checkout-offers { margin: 0; }
html body.yns-co-page .yns-co .yns-checkout-product-head { margin-bottom: .35rem; color: var(--co-ink); }

/* ---------- Payment ---------- */
html body.yns-co-page .yns-co #payment {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
}
html body.yns-co-page .yns-co #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--co-line);
	border-radius: .6rem;
	background: var(--co-field);
	list-style: none;
}
html body.yns-co-page .yns-co #payment ul.payment_methods::before,
html body.yns-co-page .yns-co #payment ul.payment_methods::after { display: none; }
html body.yns-co-page .yns-co #payment ul.payment_methods li {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--co-line);
	line-height: 1.5;
	text-align: start;
}
html body.yns-co-page .yns-co #payment ul.payment_methods li:first-child { border-top: 0; }
html body.yns-co-page .yns-co #payment ul.payment_methods li > input.input-radio { position: absolute; margin: 1.15rem 1rem 0; }
html body.yns-co-page .yns-co #payment ul.payment_methods li > label {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0;
	padding: 1rem 1rem 1rem 1rem;
	padding-inline-start: 2.7rem;
	color: var(--co-ink);
	font-size: .98rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s;
}
html body.yns-co-page .yns-co #payment ul.payment_methods li:has(input:checked) > label,
html body.yns-co-page .yns-co #payment ul.payment_methods li:only-child > label { background: var(--co-soft); }
html body.yns-co-page .yns-co #payment ul.payment_methods li:only-child > input.input-radio { accent-color: var(--co-primary); }
html body.yns-co-page .yns-co #payment div.payment_box {
	margin: 0;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--co-line);
	border-radius: 0;
	background: color-mix(in srgb, var(--co-ink) 4%, var(--co-field));
	color: var(--co-text);
	font-size: .92rem;
	text-align: center;
}
html body.yns-co-page .yns-co #payment div.payment_box::before { display: none; }
html body.yns-co-page .yns-co #payment div.payment_box p { margin: 0; padding: 0; }
html body.yns-co-page .yns-co #payment .place-order { margin: 1.5rem 0 0; padding: 0; }
html body.yns-co-page .yns-co #payment #place_order {
	float: none;
	width: 100%;
	min-height: 3.5rem;
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
}

/* ---------- Order summary ---------- */
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	background: none;
	color: var(--co-text);
	font-size: .95rem;
}
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table th,
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table td {
	padding: .35rem 0;
	border: 0;
	background: none;
	color: inherit;
	font-weight: 400;
	line-height: 1.5;
	text-align: start;
	vertical-align: middle;
}
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table td:last-child { text-align: end; white-space: nowrap; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tbody tr.cart_item td { padding: .65rem 0; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table td.product-name {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .2rem .9rem;
	padding-inline-end: 1rem;
	color: var(--co-ink);
	font-weight: 600;
}
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table td.product-name img.yns-review-thumb {
	flex: none;
	width: 4rem;
	height: 4rem;
	margin: 0;
	object-fit: cover;
	border: 1px solid var(--co-line);
	border-radius: .65rem;
	background: var(--co-field);
}
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table .yns-review-name { flex: 1 1 0; min-width: 0; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table dl.variation { flex-basis: 100%; margin: 0; padding-inline-start: 4.9rem; color: var(--co-muted); font-size: .85rem; font-weight: 400; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table dl.variation dt,
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table dl.variation dd,
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table dl.variation p { display: inline; margin: 0; padding: 0; }
.yns-co__badge {
	position: absolute;
	top: .15rem;
	inset-inline-start: 3.15rem;
	z-index: 1;
	display: grid;
	place-items: center;
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 .35rem;
	border-radius: 100px;
	background: var(--co-ink);
	color: #FFFFFC;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 0 0 2px var(--co-side);
}
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table td.product-total { color: var(--co-ink); font-weight: 600; }

html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tfoot tr:first-child > * { padding-top: 1.4rem; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tfoot th { color: var(--co-text); }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tfoot td { color: var(--co-ink); }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table #shipping_method { margin: 0; padding: 0; list-style: none; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table #shipping_method li { margin: 0; padding: 0; text-align: end; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table #shipping_method li label { display: inline; margin: 0; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tr.order-total > * { padding-top: 1rem; color: var(--co-ink); }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tr.order-total th { font-size: 1.2rem; font-weight: 700; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tr.order-total td,
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tr.order-total td strong { font-size: 1.35rem; font-weight: 800; }

/* ---------- Load-in motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.yns-co__main > *,
	.yns-co__summary-inner { animation: yns-co-in .55s var(--co-ease) both; }
	.yns-co__main > :nth-child(2) { animation-delay: .06s; }
	.yns-co__main > :nth-child(3) { animation-delay: .12s; }
	.yns-co__main > :nth-child(4) { animation-delay: .18s; }
	.yns-co__summary-inner { animation-delay: .1s; }
}
@keyframes yns-co-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Tablet & phone: one column, summary as a collapsible bar on top ---------- */
@media (max-width: 999px) {
	html body.yns-co-page .yns-co__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.yns-co__main { justify-self: center; max-width: 36rem; padding: 1.5rem 1.25rem 3rem; }
	.yns-co__summary { order: -1; display: none; border-inline-start: 0; border-bottom: 1px solid var(--co-line); }
	.yns-co__summary.is-open { display: block; animation: yns-co-in .35s var(--co-ease) both; }
	.yns-co__summary-inner { position: static; max-width: 36rem; margin: 0 auto; padding: .5rem 1.25rem 1.5rem; animation: none; }
	.yns-co__toggle {
		order: -2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		width: 100%;
		padding: 1rem max(1.25rem, calc((100% - 36rem) / 2 + 1.25rem));
		border: 0;
		border-bottom: 1px solid var(--co-line);
		background: var(--co-side);
		color: var(--co-primary);
		font: inherit;
		font-size: .95rem;
		font-weight: 600;
		cursor: pointer;
		transition: background-color .2s;
	}
	.yns-co__toggle:hover { background: color-mix(in srgb, var(--co-primary) 9%, #FFFFFC); }
	.yns-co__toggle:focus-visible { outline: 2px solid var(--co-primary); outline-offset: -4px; }
	.yns-co__toggle:active .yns-co__toggle-label { transform: translateY(1px); }
	.yns-co__toggle-label { display: inline-flex; align-items: center; gap: .45rem; transition: transform .15s; }
	.yns-co__toggle svg { width: 1.2rem; height: 1.2rem; }
	.yns-co__toggle-chev { transition: transform .3s var(--co-ease); }
	.yns-co__toggle[aria-expanded="true"] .yns-co__toggle-chev { transform: rotate(180deg); }
	.yns-co__toggle-total { color: var(--co-ink); font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
}
@media (max-width: 480px) {
	html body.yns-co-page .yns-co .woocommerce-shipping-fields__field-wrapper > .form-row-first,
	html body.yns-co-page .yns-co .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
}

/* Offer cards: room for the badge on the card's top edge so it never covers the offer name. */
html body.yns-co-page .yns-co .yns-checkout-product { gap: .9rem; }
html body.yns-co-page .yns-co .yns-offer:has(.yns-offer-badge) { padding-top: 1.35rem; }

/* Validation / info notices: readable on the light page (Divi paints them in the accent colour). */
html body.yns-co-page .woocommerce-NoticeGroup .woocommerce-error,
html body.yns-co-page .woocommerce-notices-wrapper .woocommerce-error {
	margin: 0;
	padding: 1rem 1.25rem;
	padding-inline-start: 1.25rem;
	border: 1px solid color-mix(in srgb, var(--co-error) 30%, transparent);
	border-inline-start: 4px solid var(--co-error);
	border-radius: .6rem;
	background: color-mix(in srgb, var(--co-error) 7%, #FFFFFC) !important;
	color: var(--co-error) !important;
	font-size: .95rem;
	list-style: none;
}
html body.yns-co-page .woocommerce-error::before { display: none; }
html body.yns-co-page .woocommerce-error li { margin: 0; padding: .1rem 0; color: inherit; }
html body.yns-co-page .woocommerce-error li a { color: inherit; text-decoration: underline; }
html body.yns-co-page .woocommerce-notices-wrapper .woocommerce-message,
html body.yns-co-page .woocommerce-notices-wrapper .woocommerce-info {
	border: 1px solid var(--co-line);
	border-inline-start: 4px solid var(--co-primary);
	background: var(--co-field) !important;
	color: var(--co-ink) !important;
}

/* Product rows as flex rows: the name takes the space next to the photo, the price stays at the end. */
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tbody,
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tbody tr.cart_item { display: block; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tbody tr.cart_item { display: flex; align-items: center; gap: .75rem; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name { flex: 1 1 auto; min-width: 0; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total { flex: none; }
html body.yns-co-page .yns-co .woocommerce-checkout-review-order-table tfoot { display: table; width: 100%; }

/* Egypt only: the country row is sent but not shown. */
html body .yns-co .yns-hidden-row { display: none !important; }

/* Governorate list: the field look comes from the select rule above; add the arrow. */
html body.yns-co-page .yns-co .form-row select.yns-select {
	padding-inline-end: 2.4rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231E293B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left .9rem center;
	background-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* «عندك كود خصم؟» */
.yns-co__coupon { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--co-line); }
.yns-co__coupon summary { display: inline-flex; align-items: center; gap: .4rem; color: var(--co-primary); font-weight: 700; cursor: pointer; list-style: none; }
.yns-co__coupon summary::-webkit-details-marker { display: none; }
.yns-co__coupon summary::after { content: "+"; font-weight: 800; transition: transform .25s var(--co-ease); }
.yns-co__coupon[open] summary::after { transform: rotate(45deg); }
.yns-co__coupon summary:hover { text-decoration: underline; }
.yns-co__coupon summary:focus-visible { outline: 2px solid var(--co-primary); outline-offset: 3px; border-radius: .25rem; }
.yns-co__coupon-row { display: flex; gap: .5rem; margin-top: .75rem; }
html body .yns-co__coupon-row input.input-text { flex: 1; min-width: 0; min-height: 2.9rem; padding: .5rem .9rem; border: 1px solid var(--co-line); border-radius: .75rem; background: var(--co-field); font: inherit; text-transform: uppercase; }
html body .yns-co__coupon-row input.input-text:focus-visible { outline: none; border-color: var(--co-primary); box-shadow: 0 0 0 3px var(--co-ring); }
.yns-co__coupon-apply { flex: none; min-height: 2.9rem; padding: .5rem 1.25rem; border: 0; border-radius: 999px; background: var(--co-primary); color: #FFFFFC; font: inherit; font-weight: 800; cursor: pointer; transition: opacity .2s; }
.yns-co__coupon-apply:hover { opacity: .9; }
.yns-co__coupon-apply:focus-visible { outline: 3px solid var(--co-ring); outline-offset: 2px; }
.yns-co__coupon-apply:active { opacity: .8; }
.yns-co__coupon-apply:disabled { opacity: .55; cursor: progress; }
.yns-co__coupon-msg { margin: .5rem 0 0; font-size: .9rem; color: #1b5e20; }
.yns-co__coupon-msg:empty { display: none; }
.yns-co__coupon-msg.is-error { color: var(--co-error); }
