/* CARDASH Task 42 (0.4.5.78) — /coming-soon/ + /pre-order-guide/ pages and the pre-order request modal.
   Loaded ONLY on those two pages (functions.php). Estedad (SIL OFL 1.1, ../fonts/OFL-Estedad.txt, v8.5 github.com/aminabedi68/Estedad)
   is used only here; the rest of the site stays Vazirmatn. Reuses existing CARDASH tokens + Coming Soon cards. */

/* ---- Coming Soon listing cards ---- */
.cd-cs-page .cd-card--soon{display:flex;flex-direction:column;height:100%;border-radius:12px}
.cd-cs-page .cd-card__media{aspect-ratio:1/1;background:#0d0d0d}
.cd-cs-page .cd-card__img{display:block;width:100%;height:100%}
.cd-cs-page .cd-card__img img{
	box-sizing:border-box;
	width:100%;
	height:100%;
	aspect-ratio:auto;
	padding:2px;
	object-fit:contain;
	object-position:center;
	background:#0d0d0d;
}
.cd-cs-page .cd-coming-soon__link{display:flex;flex-direction:column;flex:1;color:inherit;min-width:0;height:auto;text-decoration:none}
.cd-cs-page .cd-coming-soon__link:hover{color:inherit}
.cd-cs-page .cd-card__body{
	display:flex;
	flex-direction:column;
	flex-wrap:nowrap;
	align-items:stretch;
	justify-content:flex-start;
	padding:8px 10px 10px;
	gap:2px;
	text-align:center;
}
.cd-cs-page .cd-card__meta{margin:0;color:var(--muted);direction:ltr;font-size:12px;line-height:1.25;text-align:center}
.cd-cs-page .cd-card__title{
	min-height:0;
	margin:0;
	font-size:14px;
	font-weight:800;
	line-height:1.3;
	max-height:calc(1.3em * 2);
	color:#fff;
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	line-clamp:2;
	overflow:hidden;
	text-align:center;
	direction:ltr;
}
.cd-cs-page .cd-coming-soon__link:hover .cd-card__title{color:var(--orange)}
.cd-cs-page .cd-badge--soon{position:absolute;top:8px;right:8px;left:auto;z-index:2}
.cd-cs-page .cd-card__price-line{margin:0}
.cd-cs-page .cd-card--soon > .cd-card__actions{
	margin-top:0;
	padding:6px 10px 12px;
	justify-content:center;
	width:100%;
	box-sizing:border-box;
}
.cd-cs-page .cd-cs-buy-form{width:100%;margin:0}
.cd-cs-page .cd-cs-preorder-btn,.cd-cs-page .cd-cs-buy-btn{
	width:100%;
	min-height:44px;
	padding:8px 10px;
	font-size:13.5px;
	font-weight:700;
	line-height:1.3;
	text-align:center;
	box-sizing:border-box;
}
@media (max-width:640px){
	.cd-cs-page .cd-cs-preorder-btn,.cd-cs-page .cd-cs-buy-btn{font-size:12.5px;padding:8px 8px}
}

.cd-cs-page .cd-cs-grid{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:18px;
}
.cd-cs-page .cd-cs-grid>.cd-grid__item{
	flex:0 1 calc((100% - 36px) / 3);
	max-width:calc((100% - 36px) / 3);
	min-width:0;
	box-sizing:border-box;
}
@media (min-width:1024px){
	.cd-cs-page .cd-cs-grid{justify-content:flex-start}
}
.cd-cs-page .cd-toolbar{
	display:flex;
	justify-content:center;
	margin:0 auto 16px;
}
.cd-cs-page .cd-count-text{display:block}

@media (max-width:640px){
	.cd-cs-page .cd-cs-grid{gap:10px}
	.cd-cs-page .cd-cs-grid>.cd-grid__item{
		flex:0 1 calc((100% - 10px) / 2);
		max-width:calc((100% - 10px) / 2);
	}
	.cd-cs-page .cd-count-text{display:none}
}

.cd-cs-note{
	margin-top:32px;
	margin-bottom:8px;
	text-align:center;
	padding:16px 18px;
}
.cd-cs-note p{margin:0;color:#ddd}
.cd-cs-note a{font-weight:700}


/* ---- Estedad (SIL OFL 1.1): official v8.5 from github.com/aminabedi68/Estedad
   Closest freely licensed match to the heavy rounded display face in the v2 refs
   (Peyda / Yekan Bakh / Dana are commercial). Live theme uses Vazirmatn. ---- */
@font-face{
	font-family:Estedad;
	src:url("../fonts/Estedad-Variable.woff2") format("woff2-variations"),
	    url("../fonts/Estedad-Variable.woff2") format("woff2");
	font-weight:100 900;
	font-style:normal;
	font-display:swap;
}

/* ========== Hero v2 (owner banner: carbon, streaks, live type, cropped car) ========== */
.cd-cs-hero,
.cd-poguide,
.cd-preorder-modal,
a.cd-cs-hero__btn{
	--cs-orange:#fc6100;
	--cs-orange-hi:#ff9a14;
	--cs-orange-lo:#e45300;
	--cs-btn-top:#ff9c1c;
	--cs-btn-bot:#f05600;
	font-family:Estedad,Vazirmatn,Tahoma,sans-serif;
}
.cd-cs-hero{
	position:relative;
	overflow:hidden;
	background:#080808 url("../coming-soon/carbon.svg") repeat;
	background-size:60px 60px;
	border-bottom:1px solid #1a1a1a;
	color:#fff;
}
.cd-cs-hero::before{
	/* orange diagonal streaks */
	content:"";
	position:absolute;
	inset:-20% -10%;
	pointer-events:none;
	z-index:0;
	background:
		linear-gradient(118deg,transparent 36%,rgba(255,120,0,.55) 38%,rgba(255,80,0,.08) 42%,transparent 48%),
		linear-gradient(118deg,transparent 58%,rgba(255,110,0,.28) 61%,transparent 66%),
		linear-gradient(118deg,transparent 8%,rgba(255,90,0,.35) 12%,transparent 18%),
		radial-gradient(ellipse 50% 60% at 28% 48%,rgba(255,90,0,.28),transparent 70%);
}
.cd-cs-hero::after{
	content:"";
	position:absolute;
	left:-8%;
	right:-8%;
	bottom:-8%;
	height:34%;
	pointer-events:none;
	z-index:0;
	background:
		linear-gradient(118deg,transparent 20%,rgba(255,110,0,.7) 32%,rgba(255,80,0,.1) 36%,transparent 48%),
		linear-gradient(to top,rgba(0,0,0,.55),transparent 70%);
	clip-path:polygon(0 70%,100% 20%,100% 100%,0 100%);
	opacity:.85;
}
.cd-cs-hero__inner{
	position:relative;
	z-index:1;
	max-width:1400px;
	margin:0 auto;
	padding:8px 32px 20px 0;
	display:grid;
	grid-template-columns:minmax(0,1.2fr) minmax(300px,0.95fr);
	align-items:center;
	gap:0 8px;
}
.cd-cs-hero__art{min-width:0;position:relative;z-index:1;margin-left:-8px}
.cd-cs-hero__art img,
.cd-cs-hero__art picture,
.cd-cs-hero__art source{display:block;width:100%;height:auto}
.cd-cs-hero__art img{
	max-height:620px;
	object-fit:contain;
	object-position:left center;
	background:transparent;
}
.cd-cs-hero__copy{
	text-align:right;
	min-width:0;
	padding:8px 4px 8px 0;
}
.cd-cs-hero__kicker{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:14px;
	margin:0 0 16px;
	color:#fff;
	font-size:13px;
	font-weight:700;
	letter-spacing:.16em;
	text-transform:uppercase;
	line-height:1.2;
	font-style:italic;
}
.cd-cs-hero__kicker em{
	color:var(--cs-orange);
	font-style:italic;
	font-weight:800;
}
.cd-cs-hero__rule{
	display:block;
	flex:0 0 58px;
	height:1.5px;
	background:linear-gradient(90deg,transparent,var(--cs-orange) 30%,var(--cs-orange) 70%,transparent);
	opacity:.95;
}
.cd-cs-hero__title{
	margin:0 0 16px;
	display:flex;
	flex-direction:column;
	align-items:flex-end;
	gap:0;
	line-height:1.12;
	font-weight:900;
}
.cd-cs-hero__line{display:block;white-space:nowrap}
.cd-cs-hero__line--white{
	color:#fff;
	font-size:clamp(34px,4.4vw,64px);
	letter-spacing:-.02em;
}
.cd-cs-hero__line--orange{
	color:var(--cs-orange-hi);
	font-size:clamp(34px,4.4vw,64px);
	letter-spacing:-.02em;
	text-shadow:0 0 18px rgba(255,120,0,1),0 0 48px rgba(255,80,0,.7),0 0 80px rgba(255,70,0,.35),0 2px 0 rgba(0,0,0,.35);
}
.cd-cs-hero__line--desk{display:block}
.cd-cs-hero__line--mob{display:none}
.cd-cs-hero__lead{
	margin:0 0 22px;
	color:#dcdcdc;
	font-size:15px;
	font-weight:400;
	line-height:2;
}
.cd-cs-hero__lead--desk{
	display:block;
	max-width:34em;
	margin-right:0;
	margin-left:auto;
	border-right:3px solid var(--cs-orange);
	padding-right:14px;
	text-align:right;
}
.cd-cs-hero__lead--mob{display:none}
.cd-cs-hero__sentence{display:block}
.cd-cs-hero__phrase{white-space:nowrap}
.cd-cs-hero__brand{unicode-bidi:isolate;white-space:nowrap;font-weight:700;direction:ltr}
.cd-cs-hero__tail{
	display:inline-block;
	white-space:nowrap;
	direction:rtl;
	unicode-bidi:isolate;
}
.cd-cs-hero__actions{
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	align-items:center;
	justify-content:flex-start;
	gap:12px;
	width:auto;
}
.cd-cs-hero__btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	width:auto;
	min-height:52px;
	padding:10px 22px;
	border-radius:999px;
	font-weight:800;
	font-size:16px;
	line-height:1.2;
	text-decoration:none;
	box-sizing:border-box;
	transition:filter .15s,background .15s,border-color .15s,color .15s;
	font-family:inherit;
}
.cd-cs-hero__btn span{direction:rtl;unicode-bidi:isolate}
.cd-cs-hero__btn svg{flex:none}
.cd-cs-hero__box{display:none}
/* Desktop: primary chevron on the visual right; outline book at RTL start (visual right). */
a.cd-cs-hero__btn--primary,
.cd-cs-hero__btn--primary{direction:ltr}
a.cd-cs-hero__btn--outline,
.cd-cs-hero__btn--outline{direction:rtl}
a.cd-cs-hero__btn--primary,
.cd-cs-hero__btn--primary{
	background-color:var(--cs-btn-bot);
	background-image:linear-gradient(180deg,var(--cs-btn-top) 0%,var(--cs-btn-bot) 100%);
	color:#111;
	border:0;
	box-shadow:0 6px 22px rgba(252,97,0,.45),0 0 18px rgba(255,120,0,.25);
}
a.cd-cs-hero__btn--primary:hover,
.cd-cs-hero__btn--primary:hover{filter:brightness(1.06);color:#111}
a.cd-cs-hero__btn--outline,
.cd-cs-hero__btn--outline{
	background:#0b0b0b;
	color:#fff;
	border:2px solid #f3f3f3;
}
a.cd-cs-hero__btn--outline:hover{border-color:var(--cs-orange);color:#fff;background:rgba(252,97,0,.08)}

.cd-cs-crumbwrap{
	position:relative;
	z-index:1;
	max-width:1360px;
	margin:0 auto;
	padding:8px 32px 18px;
}
.cd-cs-crumbwrap .cd-breadcrumb{justify-content:center}
.cd-cs-hero__home{display:none;flex:none}

#products{scroll-margin-top:96px}

@media (max-width:767px){
	.cd-cs-hero::before{
		background:
			linear-gradient(118deg,transparent 18%,rgba(255,120,0,.5) 24%,transparent 32%),
			linear-gradient(118deg,transparent 62%,rgba(255,110,0,.4) 68%,transparent 76%),
			radial-gradient(ellipse 80% 50% at 50% 22%,rgba(255,90,0,.35),transparent 70%);
	}
	.cd-cs-hero::after{
		height:28%;
		opacity:.9;
		clip-path:polygon(0 55%,100% 15%,100% 100%,0 100%);
	}
	.cd-cs-hero__inner{
		grid-template-columns:1fr;
		padding:0 0 8px;
		gap:0;
	}
	.cd-cs-hero__art img{max-height:none}
	.cd-cs-hero__copy{padding:4px 16px 4px;text-align:center}
	.cd-cs-hero__kicker{justify-content:center;font-size:11.5px;margin:10px 0 14px;letter-spacing:.14em;color:#f0f0f0}
	.cd-cs-hero__kicker em{color:#f0f0f0;font-weight:700} /* mobile ref: kicker is light, not orange COMING */
	.cd-cs-hero__rule{flex-basis:48px}
	.cd-cs-hero__title{align-items:center;line-height:1.08;margin-bottom:14px}
	.cd-cs-hero__line--white,
	.cd-cs-hero__line--orange{font-size:clamp(32px,9.1vw,40px);white-space:nowrap;letter-spacing:-.03em}
	a.cd-cs-hero__btn--outline,
	.cd-cs-hero__btn--outline{direction:ltr} /* mobile ref: book/cube on visual left, chevron on right */
	.cd-cs-hero__line--desk{display:none}
	.cd-cs-hero__line--mob{display:block}
	.cd-cs-hero__lead--desk{display:none}
	.cd-cs-hero__lead--mob{
		display:block;
		text-align:center;
		border:0;
		padding:0;
		max-width:28em;
		margin:0 auto 20px;
		font-size:15px;
	}
	.cd-cs-hero__actions{
		flex-direction:column;
		align-items:stretch;
		max-width:none;
		padding:0 18px 6px;
		gap:12px;
	}
	.cd-cs-hero__btn{width:100%;min-height:56px;font-size:17px;padding:12px 18px}
	.cd-cs-hero__box{display:block}
	.cd-cs-crumbwrap{padding:10px 16px 16px}
	.cd-cs-hero__home{display:inline-block;margin-inline-end:4px;vertical-align:middle}
}

/* ========== Pre-order guide page v2 ========== */
.cd-poguide{
	position:relative;
	overflow:hidden;
	padding-block:16px 64px;
	background:#080808 url("../coming-soon/carbon.svg") repeat;
	background-size:60px 60px;
	font-family:Estedad,Vazirmatn,Tahoma,sans-serif;
}
.cd-poguide::before{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
	background:
		linear-gradient(118deg,transparent 8%,rgba(255,110,0,.4) 14%,transparent 22%),
		linear-gradient(118deg,transparent 70%,rgba(255,100,0,.45) 78%,transparent 86%),
		radial-gradient(ellipse 50% 30% at 80% 0%,rgba(255,90,0,.2),transparent 70%);
}
.cd-poguide__flag{
	position:absolute;
	top:0;
	right:-6px;
	left:auto;
	width:118px;
	height:auto;
	pointer-events:none;
	z-index:0;
	opacity:.95;
}
.cd-poguide__card{
	position:relative;
	z-index:1;
	max-width:720px;
	margin:0 auto;
	background:transparent;
	border:0;
	border-radius:0;
	padding:28px 16px 20px;
	box-shadow:none;
	overflow:visible;
}
.cd-poguide__title{
	display:flex;
	align-items:center;
	justify-content:center;
	flex-wrap:nowrap;
	gap:10px;
	margin:4px 0 22px;
	padding-inline:8px;
	font-size:clamp(18px,3.2vw,28px);
	font-weight:900;
	text-align:center;
	color:#fff;
	line-height:1.45;
	direction:rtl;
	position:relative;
	z-index:1;
}
.cd-poguide__title-text{min-width:0;white-space:nowrap}
.cd-poguide__title-icon{
	flex:none;
	width:32px;
	height:32px;
	border-radius:50%;
	background:transparent;
	color:#fc6100;
	border:2.5px solid #fc6100;
	display:grid;
	place-items:center;
}
.cd-poguide__callout{
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	align-items:center;
	gap:10px 14px;
	border:2px solid #fc6100;
	border-radius:18px;
	padding:16px 16px 16px 10px;
	background:#120f0c;
	margin-bottom:18px;
	box-shadow:0 0 22px rgba(252,97,0,.22);
	direction:rtl;
}
.cd-poguide__callout-text{
	display:flex;
	align-items:flex-start;
	gap:10px;
	min-width:0;
}
.cd-poguide__check{
	flex:none;
	width:28px;
	height:28px;
	border-radius:50%;
	background:#fc6100;
	color:#fff;
	display:grid;
	place-items:center;
	margin-top:2px;
}
.cd-poguide__callout p{margin:0;font-size:15px;font-weight:700;line-height:1.9;color:#fff;text-align:right}
.cd-poguide__hl{color:#fc6100;font-style:normal;font-weight:900;white-space:nowrap}
.cd-poguide__boxes{
	width:148px;
	height:auto;
	display:block;
}
.cd-poguide__intro{
	margin:0 0 26px;
	color:#e8e8e8;
	font-size:15px;
	font-weight:400;
	line-height:2;
	text-align:center;
	padding:0 6px;
}
.cd-poguide__h2{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:14px;
	margin:0 0 16px;
	font-size:22px;
	font-weight:900;
	color:#fff;
	text-align:center;
}
.cd-poguide__h2::before,
.cd-poguide__h2::after{
	content:"";
	width:46px;
	height:8px;
	background:linear-gradient(180deg,#ff9a14,#e45300);
	transform:skewX(-22deg);
	border-radius:2px;
	box-shadow:0 0 10px rgba(252,97,0,.55);
	flex:none;
}
.cd-poguide__steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cd-poguide__step{
	display:grid;
	grid-template-columns:auto auto minmax(0,1fr);
	align-items:center;
	gap:12px 12px;
	background:linear-gradient(180deg,#1a1a1a,#121212);
	border:1px solid #2a2a2a;
	border-radius:16px;
	padding:14px 14px;
	box-shadow:0 6px 18px rgba(0,0,0,.35);
	direction:rtl;
}
.cd-poguide__num{
	width:48px;
	height:52px;
	background:linear-gradient(160deg,#ff9a14 0%,#f05600 100%);
	color:#fff;
	font-weight:900;
	font-size:22px;
	display:grid;
	place-items:center;
	flex:none;
	transform:skewX(-18deg);
	border-radius:8px;
	box-shadow:0 4px 14px rgba(252,97,0,.4);
}
.cd-poguide__num>span{transform:skewX(18deg);display:block;line-height:1}
.cd-poguide__ico{
	width:52px;
	height:52px;
	border-radius:12px;
	background:#161616;
	border:1px solid #3a3a3a;
	color:#fff;
	display:grid;
	place-items:center;
	flex:none;
}
.cd-poguide__step h3{margin:0 0 2px;font-size:17px;font-weight:800;color:#fff;text-align:right}
.cd-poguide__step p{margin:0;font-size:13.5px;color:#cfcfcf;line-height:1.85;text-align:right}
.cd-poguide__warn{
	display:flex;
	align-items:flex-start;
	gap:10px;
	margin:20px 0 22px;
	padding:14px 16px;
	border:2px solid #fc6100;
	border-radius:16px;
	background:#160e0a;
	color:#f3f3f3;
	font-size:14.5px;
	line-height:1.95;
	box-shadow:0 0 16px rgba(252,97,0,.18);
	direction:rtl;
}
.cd-poguide__warn strong{color:#fc6100;font-weight:900}
.cd-poguide__warn-icon{
	flex:none;
	width:28px;
	height:28px;
	color:#fc6100;
	margin-top:2px;
}
.cd-poguide__back{max-width:none;margin:0;display:flex}
.cd-poguide__back .cd-cs-hero__btn{width:100%;min-height:56px}
.cd-poguide__back .cd-cs-hero__box{display:block}
.cd-poguide .cd-cs-crumbwrap,
.cd-page-poguide .cd-cs-crumbwrap{position:relative;z-index:1}
.cd-poguide .cd-breadcrumb{justify-content:center;margin:0}

@media (max-width:640px){
	.cd-poguide{padding-block:8px 48px}
	.cd-poguide__card{padding:22px 14px 18px}
	.cd-poguide__callout{grid-template-columns:minmax(0,1fr) 118px;padding:12px 12px 12px 8px;gap:8px 10px}
	.cd-poguide__boxes{width:118px;margin:0}
	.cd-poguide__callout-text{width:100%}
	.cd-poguide__callout p{font-size:13.5px}
	.cd-poguide__step{grid-template-columns:auto auto minmax(0,1fr);gap:8px 10px;padding:12px}
	.cd-poguide__ico{width:46px;height:46px}
	.cd-poguide__num{width:42px;height:48px;font-size:20px}
	.cd-poguide__title{font-size:17.5px;justify-content:center;align-items:center;padding-inline:4px}
	.cd-poguide__title-text{text-align:center;white-space:nowrap}
	.cd-poguide__flag{width:108px;top:0;right:0}
}

.cd-page-poguide .cd-main.cd-poguide{padding-inline:0;max-width:none}

/* ========== Pre-order request modal (mockup only, no POST) ========== */
body.cd-preorder-open{overflow:hidden}
.cd-preorder-modal{
	display:none;
	position:fixed;
	inset:0;
	z-index:200;
	align-items:center;
	justify-content:center;
	padding:24px 16px;
	box-sizing:border-box;
}
.cd-preorder-modal.is-open{display:flex}
.cd-preorder-modal__backdrop{
	position:absolute;
	inset:0;
	background:rgba(0,0,0,.72);
	border:0;
	padding:0;
	cursor:pointer;
}
.cd-preorder-modal__dialog{
	position:relative;
	z-index:1;
	width:min(520px,100%);
	max-height:min(92vh,820px);
	overflow:auto;
	background:#14161a;
	border:1px solid #2a2a2a;
	border-radius:20px;
	box-shadow:0 24px 60px rgba(0,0,0,.55);
	padding:18px 20px 22px;
	color:#f2f2f2;
	direction:rtl;
	box-sizing:border-box;
}
.cd-preorder-modal__head{
	display:flex;
	align-items:center;
	justify-content:center;
	position:relative;
	min-height:44px;
	margin:0 0 16px;
}
.cd-preorder-modal__title{
	margin:0;
	font-size:20px;
	font-weight:900;
	text-align:center;
	color:#fff;
	line-height:1.4;
	padding:0 44px;
}
.cd-preorder-modal__close{
	position:absolute;
	top:0;
	left:0;
	width:44px;
	height:44px;
	display:grid;
	place-items:center;
	background:transparent;
	border:0;
	color:#ddd;
	cursor:pointer;
	border-radius:8px;
	padding:0;
}
.cd-preorder-modal__close:hover{color:#fff;background:#1e1e1e}
.cd-preorder-modal__product{
	display:flex;
	align-items:center;
	gap:12px;
	background:#1c1e22;
	border-radius:12px;
	padding:10px 12px;
	margin:0 0 16px;
}
.cd-preorder-modal__thumb{
	width:72px;
	height:72px;
	object-fit:contain;
	background:#0d0d0d;
	border-radius:8px;
	flex:none;
}
.cd-preorder-modal__pname{
	margin:0;
	font-size:14px;
	font-weight:800;
	line-height:1.4;
	color:#fff;
	direction:ltr;
	text-align:left;
}
.cd-preorder-modal__brand{margin:0 0 2px;color:#9c9c9c;font-size:12px;direction:ltr;text-align:left}
.cd-preorder-modal__form{display:flex;flex-direction:column;gap:0}
.cd-preorder-modal .form-row{margin:0 0 12px}
.cd-preorder-modal .form-row label{display:block;margin-bottom:4px;color:#ddd;font-weight:600;font-size:13px}
.cd-preorder-modal .form-row .optional{color:#888;font-size:12px;font-weight:600}
.cd-preorder-modal .form-row-split{
	display:grid;
	grid-template-columns:minmax(0,1fr) 96px;
	gap:10px;
}
.cd-preorder-modal input[type=number]{direction:ltr;text-align:center}
.cd-preorder-modal input[type=tel],
.cd-preorder-modal input[name="po_telegram"]{direction:ltr;text-align:right}
.cd-preorder-modal textarea{min-height:88px;resize:vertical}
.cd-preorder-modal__warn{
	display:flex;
	align-items:flex-start;
	gap:8px;
	margin:4px 0 14px;
	padding:10px 12px;
	border:1px solid #fc6100;
	border-radius:12px;
	background:#2a1c12;
	color:#f3f3f3;
	font-size:13px;
	line-height:1.85;
}
.cd-preorder-modal__warn strong{color:#fc6100;font-weight:900}
.cd-preorder-modal__warn-icon{flex:none;color:#fc6100;margin-top:2px}
.cd-preorder-modal__guide{
	display:block;
	text-align:center;
	margin:0 0 14px;
	font-size:13px;
	font-weight:700;
	color:var(--orange,#f36b21);
}
.cd-preorder-modal__guide:hover{color:var(--orange2,#ff7f32)}
.cd-preorder-modal__submit{width:100%}
.cd-preorder-modal__success{
	text-align:center;
	padding:18px 8px 8px;
}
.cd-preorder-modal__success-icon{
	width:56px;
	height:56px;
	margin:0 auto 14px;
	border-radius:50%;
	background:#fc6100;
	color:#111;
	display:grid;
	place-items:center;
}
.cd-preorder-modal__success p{
	margin:0;
	font-size:16px;
	font-weight:800;
	line-height:2;
	color:#fff;
}
@media (max-width:640px){
	.cd-preorder-modal{padding:8px 8px;align-items:flex-end}
	.cd-preorder-modal__dialog{width:100%;max-height:calc(100vh - 16px);border-radius:18px 18px 12px 12px;padding:10px 12px 14px}
	.cd-preorder-modal__head{margin:0 0 10px;min-height:40px}
	.cd-preorder-modal__title{font-size:17px}
	.cd-preorder-modal__product{margin:0 0 10px;padding:8px 10px}
	.cd-preorder-modal__thumb{width:56px;height:56px}
	.cd-preorder-modal .form-row{margin:0 0 8px}
	.cd-preorder-modal .form-row-split{grid-template-columns:minmax(0,1fr) 84px}
	.cd-preorder-modal textarea{min-height:64px}
	.cd-preorder-modal__warn{margin:0 0 10px;padding:8px 10px;font-size:12px}
	.cd-preorder-modal__guide{margin:0 0 10px}
}

/* Task 42 build: inline validation message inside the modal (not in the static mockup). */
.cd-preorder-modal__error{margin:0 0 10px;padding:8px 12px;border:1px solid #d9534f;border-radius:10px;background:#2a1414;color:#ffb3b0;font-size:13px;font-weight:700;line-height:1.8}
.cd-preorder-modal__error[hidden]{display:none}
.cd-preorder-modal [aria-invalid="true"]{border-color:#d9534f!important}
.cd-preorder-modal__submit[aria-busy="true"]{opacity:.7;cursor:progress}
