/* ==========================================================================
   Medali Front — واجهة الدار
   كل القواعد تحت .mdl حتى لا تتأثر بأنماط أفادا ولا تؤثر فيها.
   ========================================================================== */

.mdl,
.mdl-drawer,
.mdl-veil {
	--mdl-brand: #123B4A;
	--mdl-gold: #B8862F;
	--mdl-brick: #8E3B2B;
	--mdl-ink: #171310;
	--mdl-paper: #F7F2E8;
	--mdl-paper-2: color-mix(in srgb, var(--mdl-paper) 88%, #8a6f45);
	--mdl-muted: #6E6358;
	--mdl-line: #DED3C0;
	--mdl-cream: #F6EEDD;
	--mdl-ui: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--mdl-serif: Amiri, "Noto Naskh Arabic", serif;
	--mdl-kufi: "Reem Kufi", Amiri, serif;
	--mdl-max: 1280px;
	--mdl-vw: 100vw;
	--mdl-ease: cubic-bezier(.22, .8, .24, 1);
}

.mdl {
	direction: rtl;
	font-family: var(--mdl-ui);
	color: var(--mdl-ink);
	line-height: 1.6;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.mdl *,
.mdl *::before,
.mdl *::after { box-sizing: border-box; }

/* تصفير أنماط القالب داخل أقسامنا */
body .mdl :is(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote) { margin: 0; padding: 0; }
body .mdl :is(ul, ol) { list-style: none; }
body .mdl a { color: inherit; text-decoration: none; box-shadow: none; }
body .mdl img { display: block; max-width: 100%; height: auto; border: 0; }
body .mdl button { font: inherit; cursor: pointer; letter-spacing: 0; text-transform: none; }
body .mdl :is(h1, h2, h3, h4) { letter-spacing: 0; text-transform: none; }
.mdl :focus-visible { outline: 3px solid var(--mdl-gold); outline-offset: 3px; }

.mdl .mdl-wrap { max-width: var(--mdl-max); margin-inline: auto; padding-inline: clamp(16px, 3vw, 36px); }
.mdl .mdl-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* الأقسام تملأ عرض الشاشة، ومحتواها داخل عرض الموقع */
.mdl-zone,
.mdl-topbar,
.mdl-mast,
.mdl-hero,
.mdl-assure,
.mdl-foot {
	width: var(--mdl-vw);
	max-width: var(--mdl-vw);
	margin-inline: calc(50% - var(--mdl-vw) / 2);
	position: relative;
}
.mdl-zone { padding-block: clamp(40px, 5vw, 72px); background: var(--mdl-paper); }
.mdl-zone--white { background: #fff; }
.mdl-zone--dark { background: var(--mdl-brand); color: #F3E9D6; --mdl-muted: #C3B7A2; --mdl-line: rgba(243, 233, 214, .18); }

.mdl-note {
	margin: 12px 0;
	padding: 12px 16px;
	border: 1px dashed var(--mdl-gold, #B8862F);
	background: #FFF8E6;
	color: #6B5426;
	font: 14px/1.7 system-ui, sans-serif;
	direction: rtl;
	border-radius: 4px;
}
.mdl-note--inline { display: block; margin-top: 10px; }

/* ---------- أزرار ---------- */
.mdl .mdl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 2px;
	border: 1px solid transparent;
	font-family: var(--mdl-ui);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	transition: background .2s, color .2s, border-color .2s;
}
.mdl .mdl-btn--buy { background: var(--mdl-gold); color: #1A1207; }
.mdl .mdl-btn--buy:hover { background: color-mix(in srgb, var(--mdl-gold) 82%, #fff); color: #1A1207; }
.mdl .mdl-btn--ghost { border-color: rgba(246, 238, 221, .45); color: var(--mdl-cream); }
.mdl .mdl-btn--ghost:hover { background: rgba(246, 238, 221, .12); color: #fff; }
.mdl .mdl-btn--brand { background: var(--mdl-brand); color: #F3E9D6; }
.mdl .mdl-btn--brand:hover { background: color-mix(in srgb, var(--mdl-brand) 80%, #000); color: #fff; }
.mdl .mdl-btn.is-busy,
.mdl .mdl-add.is-busy { opacity: .6; pointer-events: none; }
.mdl .mdl-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.mdl .mdl-iconbtn {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--mdl-line);
	background: #fff;
	color: var(--mdl-ink);
	padding: 0;
}
.mdl .mdl-iconbtn:hover { border-color: var(--mdl-gold); }
.mdl .mdl-count {
	position: absolute;
	top: -5px;
	inset-inline-start: -5px;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	border-radius: 999px;
	background: var(--mdl-brick);
	color: #fff;
	font-size: .7rem;
	font-weight: 600;
	display: grid;
	place-items: center;
}
.mdl .mdl-count.is-bump { animation: mdl-bump .45s var(--mdl-ease); }
@keyframes mdl-bump { 40% { transform: scale(1.35); } }

/* ==========================================================================
   الشريط العلوي والترويسة
   ========================================================================== */

.mdl-topbar { background: var(--mdl-brand); color: #F3E9D6; font-size: .82rem; }
.mdl-topbar .mdl-wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; padding-block: 7px; }
.mdl-topbar ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mdl-topbar li { display: flex; align-items: center; gap: 18px; }
.mdl-topbar li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--mdl-gold); margin-inline-start: -11px; margin-inline-end: -11px; }

.mdl-mast { z-index: 60; background: color-mix(in srgb, var(--mdl-paper) 94%, transparent); border-bottom: 1px solid var(--mdl-line); }
.mdl-mast.is-sticky { position: sticky; top: 0; backdrop-filter: blur(10px); }
.admin-bar .mdl-mast.is-sticky { top: 32px; }
.mdl-mast__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 12px; }
.mdl .mdl-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.mdl .mdl-logo__img { max-height: 52px; width: auto; }
.mdl .mdl-logo__mark { width: 46px; height: 46px; border-radius: 50%; background: var(--mdl-brand); color: #F3E9D6; display: grid; place-items: center; font-family: var(--mdl-serif); font-weight: 700; font-size: 1.6rem; line-height: 1; padding-bottom: 4px; }
.mdl .mdl-logo__name { font-family: var(--mdl-kufi); font-size: 1.35rem; line-height: 1.15; color: var(--mdl-ink); }
.mdl .mdl-logo__name small { display: block; font-family: var(--mdl-ui); font-size: .68rem; color: var(--mdl-muted); }
.mdl-mast__nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); mask-image: linear-gradient(to left, #000 88%, transparent); }
.mdl-mast__nav::-webkit-scrollbar { display: none; }
.mdl-mast__nav ul { display: flex; gap: 2px; }
.mdl .mdl-mast__nav a { position: relative; display: block; padding: 8px 11px; font-size: .92rem; font-weight: 500; color: var(--mdl-ink); white-space: nowrap; }
.mdl .mdl-mast__nav a::after { content: ""; position: absolute; inset-inline: 11px; bottom: 3px; height: 2px; background: var(--mdl-gold); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--mdl-ease); }
.mdl .mdl-mast__nav a:hover::after,
.mdl .mdl-mast__nav a[aria-current="page"]::after,
.mdl .mdl-mast__nav .current-menu-item > a::after { transform: scaleX(1); }
.mdl-mast__tools { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.mdl .mdl-mast__burger { display: none; }

/* البحث */
.mdl .mdl-search { position: relative; min-width: 240px; }
.mdl .mdl-search form { min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--mdl-line); border-radius: 999px; padding: 0 14px; margin: 0; }
.mdl .mdl-search .mdl-ic { color: var(--mdl-muted); width: 18px; height: 18px; }
.mdl .mdl-search input[type="search"] { flex: 1; width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: none; box-shadow: none; padding: 0; margin: 0; font: inherit; font-size: .88rem; color: var(--mdl-ink); }
.mdl .mdl-search__panel {
	position: absolute;
	z-index: 80;
	top: calc(100% + 8px);
	inset-inline: 0;
	min-width: 320px;
	max-height: 70vh;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--mdl-line);
	border-radius: 4px 4px 18px 4px;
	box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .5);
}
.mdl .mdl-sug { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--mdl-line); }
.mdl .mdl-sug:hover,
.mdl .mdl-sug.is-active { background: var(--mdl-paper); }
.mdl .mdl-sug .mdl-cover { width: 40px; border-radius: 1px 3px 3px 1px; box-shadow: none; }
.mdl .mdl-sug strong { display: block; font-weight: 500; font-size: .9rem; line-height: 1.45; }
.mdl .mdl-sug small { font-size: .74rem; color: var(--mdl-muted); }
.mdl .mdl-sug em { font-style: normal; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.mdl .mdl-sug--cat { grid-template-columns: 40px 1fr; }
.mdl .mdl-sug--cat i { width: 40px; height: 40px; border-radius: 50%; background: var(--mdl-paper); display: grid; place-items: center; font-style: normal; font-family: var(--mdl-kufi); color: var(--mdl-gold); }
.mdl .mdl-sug__all { display: block; padding: 10px 12px; font-size: .85rem; font-weight: 600; color: var(--mdl-brand); }
.mdl .mdl-sug__none { padding: 14px; font-size: .88rem; color: var(--mdl-muted); }

/* ==========================================================================
   الغلاف والبطاقة
   ========================================================================== */

.mdl .mdl-cover {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 2px 6px 6px 2px;
	background: linear-gradient(140deg, var(--c1, #123B4A), var(--c2, #0A2029));
	box-shadow: 0 18px 34px -22px rgba(23, 19, 16, .7);
	transition: transform .45s var(--mdl-ease), box-shadow .45s var(--mdl-ease);
}
.mdl .mdl-cover::before {
	content: "";
	position: absolute;
	z-index: 2;
	inset-block: 0;
	inset-inline-end: 0;
	width: 12px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .34), rgba(255, 255, 255, .12));
	pointer-events: none;
}
.mdl .mdl-cover::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	background: radial-gradient(90% 60% at 20% 0%, rgba(255, 255, 255, .14), transparent 60%);
	pointer-events: none;
}
.mdl .mdl-cover__img { width: 100%; height: 100%; object-fit: cover; }
.mdl .mdl-cover--type { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px 12px 18px; color: #fff; }
.mdl .mdl-cover--type b { font-family: var(--mdl-serif); font-weight: 700; font-size: .98rem; line-height: 1.5; }
.mdl .mdl-cover--type i { font-style: normal; font-size: .74rem; opacity: .85; }
.mdl .mdl-cover--type em { font-style: normal; font-family: var(--mdl-kufi); font-size: .68rem; opacity: .8; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 7px; }

.mdl .mdl-book { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mdl .mdl-book__cover { position: relative; display: block; }
.mdl .mdl-book:hover .mdl-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 44px -26px rgba(23, 19, 16, .65); }
.mdl .mdl-book.is-out .mdl-cover { filter: grayscale(.6); opacity: .8; }
.mdl .mdl-book__tag { position: absolute; z-index: 3; top: 10px; inset-inline-start: 10px; background: var(--mdl-brick); color: #fff; font-size: .7rem; font-weight: 500; line-height: 1.6; padding: 2px 10px; border-radius: 999px; }
.mdl .mdl-book__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mdl .mdl-book__cat { font-size: .75rem; font-weight: 600; color: var(--mdl-gold); }
.mdl .mdl-book__title { font-family: var(--mdl-serif); font-weight: 700; font-size: 1.05rem; line-height: 1.55; color: inherit; }
.mdl .mdl-book__title a:hover { color: var(--mdl-gold); }
.mdl .mdl-book__who { font-size: .8rem; color: var(--mdl-muted); }
.mdl .mdl-book__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mdl .mdl-price { font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.mdl .mdl-price small { font-size: .72rem; font-weight: 400; color: var(--mdl-muted); }
.mdl .mdl-price del { font-size: .78rem; font-weight: 400; color: var(--mdl-muted); margin-inline-start: 4px; }
.mdl .mdl-add {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 4px 16px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--mdl-ink);
	background: none;
	transition: background .2s, color .2s, border-color .2s;
}
.mdl .mdl-add:hover { background: var(--mdl-ink); border-color: var(--mdl-ink); color: var(--mdl-paper); }
.mdl .mdl-add.is-done { background: var(--mdl-gold); border-color: var(--mdl-gold); color: #1A1207; }
.mdl .mdl-add.is-out { opacity: .5; cursor: default; }
.mdl-zone--dark .mdl-add { color: #F3E9D6; }
.mdl-zone--dark .mdl-add:hover { background: #F3E9D6; border-color: #F3E9D6; color: var(--mdl-brand); }
.mdl-zone--dark .mdl-book__title { color: var(--mdl-cream); }

/* صف أفقي */
.mdl .mdl-book--row { flex-direction: row; align-items: center; gap: 16px; }
.mdl .mdl-book--row .mdl-book__cover { flex: 0 0 76px; }
.mdl .mdl-book--row .mdl-book__tag { display: none; }
.mdl .mdl-book--row .mdl-book__foot { margin-top: 4px; justify-content: flex-start; gap: 16px; }
.mdl .mdl-book__rank { font-family: var(--mdl-kufi); font-size: 1.6rem; line-height: 1; color: var(--mdl-gold); }

/* ==========================================================================
   رأس القسم والتخطيطات
   ========================================================================== */

.mdl .mdl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 26px; }
.mdl .mdl-head__t { font-family: var(--mdl-kufi); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: inherit; }
.mdl .mdl-head__s { margin-top: 4px; color: var(--mdl-muted); font-size: .95rem; }
.mdl .mdl-head__more { font-weight: 600; font-size: .9rem; border-bottom: 2px solid var(--mdl-gold); padding-bottom: 3px; }

.mdl .mdl-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(170px, 206px);
	justify-content: start;
	gap: 24px;
	overflow-x: auto;
	padding-bottom: 14px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scroll-behavior: smooth;
}
.mdl .mdl-rail > * { scroll-snap-align: start; }
.mdl .mdl-rail__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.mdl .mdl-rail__nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--mdl-line); background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; }
.mdl .mdl-rail__nav button:hover { border-color: var(--mdl-gold); }
.mdl .mdl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; }
.mdl .mdl-grid--now { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.mdl .mdl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; counter-reset: none; }
.mdl .mdl-list > li { padding-block: 12px; border-bottom: 1px solid var(--mdl-line); }

/* ==========================================================================
   الهيرو: رفّ الدار
   ========================================================================== */

.mdl-hero {
	isolation: isolate;
	overflow: hidden;
	color: var(--mdl-cream);
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdl-brand) 62%, #000) 0%, var(--mdl-brand) 42%, color-mix(in srgb, var(--mdl-brand) 55%, #000) 100%);
}
.mdl-hero__shelf {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: .55;
	transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -8px), 0) scale(1.06);
	transition: transform .6s var(--mdl-ease);
}
.mdl .mdl-shelf { position: absolute; inset-inline: -6%; display: flex; gap: 5px; align-items: flex-end; height: 210px; }
.mdl .mdl-shelf--a { top: -40px; }
.mdl .mdl-shelf--b { bottom: -96px; }
.mdl .mdl-shelf::after { content: ""; position: absolute; inset-inline: 0; bottom: -14px; height: 14px; background: linear-gradient(180deg, #2A1B10, #14100A); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.mdl .mdl-spine {
	position: relative;
	flex: none;
	width: var(--w, 26px);
	height: var(--h, 180px);
	border-radius: 2px 2px 1px 1px;
	background: linear-gradient(90deg, var(--c1), var(--c2));
	box-shadow: inset -3px 0 6px rgba(0, 0, 0, .45), inset 2px 0 0 rgba(255, 255, 255, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.mdl .mdl-spine b { writing-mode: vertical-rl; font-family: var(--mdl-serif); font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .75); white-space: nowrap; max-height: calc(100% - 26px); overflow: hidden; }
.mdl .mdl-spine::after { content: ""; position: absolute; inset-inline: 3px; top: 12px; height: 1px; background: color-mix(in srgb, var(--mdl-gold) 60%, transparent); }
.mdl-hero__veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 85% at 72% 45%, rgba(10, 30, 38, .15) 0%, rgba(9, 26, 33, .86) 62%, rgba(8, 22, 28, .96) 100%); }

.mdl .mdl-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(44px, 6vw, 84px); }
.mdl .mdl-hero__kicker { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; color: #E9C97E; border: 1px solid rgba(233, 201, 126, .38); padding: 5px 15px; border-radius: 999px; }
.mdl .mdl-hero__kicker i { width: 6px; height: 6px; background: #E9C97E; transform: rotate(45deg); }
.mdl .mdl-hero__title { font-family: var(--mdl-serif); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.32; margin: 16px 0 10px; overflow: hidden; color: #fff; }
.mdl .mdl-hero__title a { color: #fff; }
.mdl .mdl-hero__title span { display: block; }
.mdl .mdl-hero__by { color: #CFC3AC; font-size: .98rem; margin-bottom: 16px; }
.mdl .mdl-hero__pitch { max-width: 50ch; color: #EADFCA; font-family: var(--mdl-serif); font-size: 1.16rem; line-height: 1.95; margin-bottom: 20px; padding-inline-start: 18px; border-inline-start: 2px solid rgba(233, 201, 126, .5); }
.mdl .mdl-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: #B9AC96; margin-bottom: 22px; }
.mdl .mdl-hero__meta:empty { display: none; }
.mdl .mdl-hero__meta span { display: flex; align-items: center; gap: 7px; }
.mdl .mdl-hero__meta span::before { content: ""; width: 5px; height: 5px; background: #E9C97E; border-radius: 50%; }
.mdl .mdl-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mdl .mdl-hero__price .mdl-price { font-size: 1.55rem; color: #fff; }
.mdl .mdl-hero__price .mdl-price small,
.mdl .mdl-hero__price .mdl-price del { color: #C9BCA5; }

/* حركة دخول النص عند كل تبديل */
.mdl-hero.is-in .mdl-hero__title span { animation: mdl-rise .8s var(--mdl-ease) both; }
.mdl-hero.is-in .mdl-hero__by { animation: mdl-fade .7s ease .2s both; }
.mdl-hero.is-in .mdl-hero__pitch { animation: mdl-fade .7s ease .3s both; }
.mdl-hero.is-in .mdl-hero__meta { animation: mdl-fade .7s ease .4s both; }
.mdl-hero.is-in .mdl-hero__cta { animation: mdl-fade .7s ease .5s both; }
@keyframes mdl-rise { from { transform: translateY(110%); } }
@keyframes mdl-fade { from { opacity: 0; transform: translateY(12px); } }

.mdl .mdl-hero__side { display: flex; flex-direction: column; gap: 26px; }
.mdl .mdl-hero__stage { position: relative; perspective: 1800px; min-height: 440px; display: grid; place-items: center; padding-bottom: 20px; }
.mdl .mdl-hero__pick { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.mdl .mdl-hero__pick > span { font-size: .78rem; color: #A99C86; padding-bottom: 6px; }
.mdl .mdl-hero__rail { display: flex; gap: 8px; align-items: flex-end; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.mdl .mdl-hero__rail button { position: relative; width: 22px; height: 58px; padding: 0; border: 0; border-radius: 2px; background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: .55; transition: opacity .3s, height .3s var(--mdl-ease); }
.mdl .mdl-hero__rail button:hover { opacity: .85; height: 66px; }
.mdl .mdl-hero__rail button[aria-selected="true"] { opacity: 1; height: 74px; box-shadow: 0 0 0 1px rgba(233, 201, 126, .7); }
.mdl .mdl-hero__rail button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 3px; bottom: 5px; height: 2px; background: #E9C97E; transform-origin: right; animation: mdl-tick var(--dur, 9s) linear forwards; }
.mdl-hero.is-paused .mdl-hero__rail button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes mdl-tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- الكتاب ثلاثي الأبعاد ---------- */
.mdl .mdl-3d {
	position: relative;
	width: min(var(--w3d, 280px), 62vw);
	aspect-ratio: 2 / 3;
	transform-style: preserve-3d;
	transform: rotateY(calc(-17deg + var(--px, 0) * 7deg)) rotateX(calc(4deg + var(--py, 0) * -4deg));
	transition: transform .6s var(--mdl-ease), opacity .45s;
}
.mdl .mdl-3d.is-swapping { transform: translateX(18%) rotateY(-60deg) scale(.82); opacity: .15; }
.mdl .mdl-3d.is-open { transform: translateX(-16%) scale(.96) rotateY(calc(-10deg + var(--px, 0) * 4deg)) rotateX(2deg); }
.mdl .mdl-3d__page {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #FBF5E7, #EFE5D0);
	border-radius: 3px 8px 8px 3px;
	padding: 26px 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
}
.mdl .mdl-3d__page p { font-family: var(--mdl-serif); font-size: .98rem; line-height: 2; color: #3A3128; }
.mdl .mdl-3d__q { display: block; font-family: var(--mdl-serif); font-size: 2rem; line-height: 1; color: var(--mdl-gold); margin-bottom: 2px; }
.mdl .mdl-3d__from { font-size: .74rem; color: #8A7C68; }
.mdl .mdl-3d__cover { position: absolute; inset: 0; transform-origin: right center; transform-style: preserve-3d; transition: transform 1s var(--mdl-ease); }
.mdl .mdl-3d.is-open .mdl-3d__cover { transform: rotateY(-158deg); }
.mdl .mdl-3d__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 3px 8px 8px 3px;
	background: linear-gradient(140deg, var(--c1), var(--c2));
	color: #fff;
	box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.mdl .mdl-3d__face::before { content: ""; position: absolute; z-index: 2; inset-block: 0; inset-inline-end: 0; width: 18px; background: linear-gradient(90deg, rgba(0, 0, 0, .4), rgba(255, 255, 255, .14)); pointer-events: none; }
.mdl .mdl-3d__face::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, transparent 35%); pointer-events: none; }
.mdl .mdl-3d__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mdl .mdl-3d__type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px 20px 30px; }
.mdl .mdl-3d__type::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 2px; }
.mdl .mdl-3d.has-img .mdl-3d__type { display: none; }
.mdl .mdl-3d__type b { font-family: var(--mdl-serif); font-weight: 700; font-size: 1.3rem; line-height: 1.5; }
.mdl .mdl-3d__type i { font-style: normal; font-size: .82rem; opacity: .85; }
.mdl .mdl-3d__type em { font-style: normal; font-family: var(--mdl-kufi); font-size: .74rem; opacity: .85; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 9px; }
.mdl .mdl-3d__face--back { transform: rotateY(180deg); background: linear-gradient(140deg, #2A2119, #1A1410); display: grid; place-items: center; }
.mdl .mdl-3d__face--back span { font-family: var(--mdl-kufi); font-size: .9rem; color: #C7B78E; opacity: .8; }
.mdl .mdl-3d__edge { position: absolute; inset-block: 6px; inset-inline-start: -9px; width: 10px; border-radius: 2px; background: repeating-linear-gradient(180deg, #F3E9D3 0 2px, #DCCFB4 2px 4px); transform: translateZ(-1px); }
.mdl .mdl-3d__btn {
	position: absolute;
	bottom: -6px;
	inset-inline: 0;
	margin-inline: auto;
	width: max-content;
	padding: 8px 20px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--mdl-gold) 70%, transparent);
	background: rgba(10, 26, 33, .78);
	color: #E9C97E;
	font-size: .84rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
}
.mdl .mdl-3d__btn:hover,
.mdl .mdl-3d__btn[aria-pressed="true"] { background: var(--mdl-gold); color: #1A1207; border-color: var(--mdl-gold); }

/* عنصر الغلاف المنفرد */
.mdl-el--cover .mdl-hero__stage { min-height: calc(var(--w3d, 260px) * 1.62); }
.mdl-el--dark { background: var(--mdl-brand); border-radius: 4px; }

/* ==========================================================================
   شريط الطمأنة
   ========================================================================== */

.mdl-assure { background: var(--mdl-paper-2); border-block: 1px solid var(--mdl-line); }
.mdl-assure .mdl-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; padding-block: 16px; }
.mdl-assure .mdl-wrap > div { display: flex; align-items: center; gap: 12px; }
.mdl-assure .mdl-ic { width: 24px; height: 24px; color: var(--mdl-brand); }
.mdl-assure b { display: block; font-weight: 600; font-size: .9rem; }
.mdl-assure span { display: block; color: var(--mdl-muted); font-size: .8rem; }

/* ==========================================================================
   قراءات اللحظة
   ========================================================================== */

.mdl .mdl-now { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.mdl .mdl-now__aside { position: sticky; top: 100px; background: var(--mdl-brand); color: #F3E9D6; padding: 26px; border-radius: 3px 3px 26px 3px; }
.mdl-zone--dark .mdl-now__aside { background: color-mix(in srgb, var(--mdl-brand) 70%, #000); }
.mdl .mdl-now__aside h2 { font-family: var(--mdl-kufi); font-size: 1.55rem; margin: 8px 0; color: #fff; }
.mdl .mdl-now__aside > p { color: #C3B7A2; font-size: .92rem; }
.mdl .mdl-now__live { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: #E9C97E; }
.mdl .mdl-now__live i { width: 8px; height: 8px; border-radius: 50%; background: #E9C97E; animation: mdl-pulse 2s infinite; }
@keyframes mdl-pulse { 50% { opacity: .25; } }
.mdl .mdl-now__head { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(243, 233, 214, .25); font-family: var(--mdl-serif); font-size: 1.08rem; line-height: 1.8; color: #fff; }
.mdl .mdl-now__head a { color: #fff; border-bottom: 1px solid rgba(233, 201, 126, .5); }
.mdl .mdl-now__head small { display: block; font-family: var(--mdl-ui); font-size: .74rem; color: #A99C86; margin-top: 4px; }
.mdl .mdl-now__why { margin-top: 12px; font-size: .86rem; line-height: 1.85; color: #D6CBB6; }
.mdl .mdl-now__why b { color: #E9C97E; font-weight: 600; }
.mdl .mdl-now__time { margin-top: 12px; font-size: .75rem; color: #A99C86; }

/* ==========================================================================
   الأصناف
   ========================================================================== */

.mdl .mdl-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.mdl .mdl-cat { position: relative; overflow: hidden; display: block; padding: 22px 20px 26px; border: 1px solid var(--mdl-line); background: #fff; border-radius: 2px 2px 20px 2px; transition: transform .25s var(--mdl-ease), border-color .25s; }
.mdl-zone--white .mdl-cat { background: var(--mdl-paper); }
.mdl-zone--dark .mdl-cat { background: rgba(255, 255, 255, .04); }
.mdl .mdl-cat:hover { transform: translateY(-4px); border-color: var(--mdl-gold); }
.mdl .mdl-cat b,
.mdl .mdl-cat span { position: relative; z-index: 1; display: block; }
.mdl .mdl-cat b { font-family: var(--mdl-kufi); font-size: 1.12rem; line-height: 1.4; margin-bottom: 4px; }
.mdl .mdl-cat span { font-size: .82rem; color: var(--mdl-muted); }
.mdl .mdl-cat i { position: absolute; inset-inline-start: 14px; bottom: -.42em; font-family: var(--mdl-serif); font-size: 4.6rem; font-weight: 700; line-height: 1; font-style: normal; color: var(--mdl-paper-2); opacity: .7; }
.mdl-zone--dark .mdl-cat i { color: rgba(255, 255, 255, .06); }

/* ==========================================================================
   سند وانشر معنا
   ========================================================================== */

.mdl .mdl-sanad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.mdl .mdl-sanad__lead { margin: 12px 0 0; color: var(--mdl-muted); font-family: var(--mdl-serif); font-size: 1.12rem; line-height: 1.95; max-width: 52ch; }
.mdl .mdl-sanad ul { margin: 18px 0 26px; display: grid; gap: 9px; font-size: .92rem; }
.mdl .mdl-sanad li { display: flex; gap: 10px; align-items: flex-start; }
.mdl .mdl-sanad li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; background: var(--mdl-gold); transform: rotate(45deg); flex: none; }
.mdl .mdl-sanad__screen { background: color-mix(in srgb, var(--mdl-brand) 75%, #000); border: 1px solid rgba(243, 233, 214, .2); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.mdl .mdl-sanad__row { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; background: rgba(243, 233, 214, .06); padding: 10px; border-radius: 8px; color: #F3E9D6; font-size: .86rem; }
.mdl .mdl-sanad__row .mdl-cover { box-shadow: none; border-radius: 1px 3px 3px 1px; }
.mdl .mdl-sanad__row small { display: block; color: #A99C86; font-size: .74rem; }

.mdl .mdl-pub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mdl .mdl-pub__card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--mdl-line); border-radius: 2px 2px 22px 2px; }
.mdl-zone--white .mdl-pub__card { background: var(--mdl-paper); }
.mdl-zone--dark .mdl-pub__card { background: rgba(255, 255, 255, .04); }
.mdl .mdl-pub__card h3 { font-family: var(--mdl-kufi); font-size: 1.25rem; line-height: 1.4; }
.mdl .mdl-pub__card p { color: var(--mdl-muted); font-size: .92rem; line-height: 1.85; }
.mdl .mdl-pub__card .mdl-btn { align-self: flex-start; margin-top: 8px; }

/* ==========================================================================
   التذييل
   ========================================================================== */

.mdl-foot { background: var(--mdl-ink); color: #D8CDBB; padding-block: 48px 24px; }
.mdl .mdl-foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.mdl .mdl-foot h4 { font-family: var(--mdl-kufi); color: #F3E9D6; font-size: 1.05rem; margin-bottom: 12px; }
.mdl .mdl-foot p { font-size: .88rem; line-height: 1.9; }
.mdl .mdl-foot ul { display: grid; gap: 9px; font-size: .88rem; }
.mdl .mdl-foot a:hover { color: var(--mdl-gold); }
.mdl .mdl-foot__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.mdl .mdl-foot__contact .mdl-ic { width: 18px; height: 18px; margin-top: 3px; color: var(--mdl-gold); }
.mdl .mdl-foot__contact small { grid-column: 2; font-size: .78rem; color: #9C9182; }
.mdl .mdl-foot__social { display: flex; gap: 8px; margin-top: 14px; }
.mdl .mdl-foot__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(216, 205, 187, .3); display: grid; place-items: center; }
.mdl .mdl-foot__social a:hover { border-color: var(--mdl-gold); }
.mdl .mdl-foot__social .mdl-ic { width: 17px; height: 17px; }
.mdl .mdl-foot__fine { border-top: 1px solid rgba(216, 205, 187, .2); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: #9C9182; }
.mdl .mdl-foot__pay { display: flex; flex-wrap: wrap; gap: 8px; }
.mdl .mdl-foot__pay span { border: 1px solid rgba(216, 205, 187, .3); border-radius: 4px; padding: 2px 10px; }

/* ==========================================================================
   العناصر المنفردة
   ========================================================================== */

.mdl-el { margin-block: 1.2em; }
.mdl-el--book { max-width: 240px; }
.mdl-el--book:has(.mdl-book--row) { max-width: 520px; }
.mdl-el--buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mdl-el--buy .mdl-price { font-size: 1.4rem; }
.mdl-el--cart { display: inline-block; margin: 0; }
.mdl-el--search { max-width: 520px; }

/* ==========================================================================
   السلة الجانبية
   ========================================================================== */

.mdl-veil { position: fixed; inset: 0; z-index: 99990; background: rgba(23, 19, 16, .45); opacity: 0; transition: opacity .3s; }
.mdl-veil.is-open { opacity: 1; }
.mdl-drawer {
	position: fixed;
	z-index: 99991;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(400px, 92vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5);
	transform: translateX(-104%);
	visibility: hidden;
	transition: transform .35s var(--mdl-ease), visibility 0s linear .35s;
}
.mdl-drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.admin-bar .mdl-drawer { top: 32px; }
.mdl .mdl-drawer__head { padding: 16px 18px; border-bottom: 1px solid var(--mdl-line); display: flex; justify-content: space-between; align-items: center; }
.mdl .mdl-drawer__head h3 { font-family: var(--mdl-kufi); font-size: 1.2rem; }
.mdl .mdl-drawer__note { font-size: .84rem; color: var(--mdl-brand); padding: 0 18px; }
.mdl .mdl-drawer__note:not(:empty) { padding-block: 10px; background: color-mix(in srgb, var(--mdl-gold) 12%, #fff); }
.mdl .mdl-drawer__free { padding: 12px 18px; border-bottom: 1px solid var(--mdl-line); font-size: .82rem; }
.mdl .mdl-drawer__free i { display: block; height: 6px; border-radius: 999px; background: var(--mdl-paper-2); overflow: hidden; margin-bottom: 8px; }
.mdl .mdl-drawer__free b { display: block; height: 100%; width: 0; background: var(--mdl-gold); border-radius: 999px; transition: width .5s var(--mdl-ease); }
.mdl .mdl-drawer__list { flex: 1; overflow: auto; padding: 14px 18px; display: grid; gap: 14px; align-content: start; }
.mdl .mdl-drawer__empty { color: var(--mdl-muted); font-size: .9rem; }
.mdl .mdl-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.mdl .mdl-line .mdl-cover { box-shadow: none; border-radius: 1px 3px 3px 1px; }
.mdl .mdl-line__t { font-family: var(--mdl-serif); font-weight: 700; font-size: .95rem; line-height: 1.5; }
.mdl .mdl-line__qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--mdl-line); border-radius: 999px; }
.mdl .mdl-line__qty button { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--mdl-ink); }
.mdl .mdl-line__qty .mdl-ic { width: 14px; height: 14px; }
.mdl .mdl-line__qty span { min-width: 22px; text-align: center; font-size: .85rem; }
.mdl .mdl-line__p { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.mdl .mdl-drawer__foot { border-top: 1px solid var(--mdl-line); padding: 16px 18px 18px; display: grid; gap: 9px; }
.mdl .mdl-drawer__row { display: flex; justify-content: space-between; font-size: .9rem; }
.mdl .mdl-drawer__row--total { font-size: 1rem; padding-top: 6px; border-top: 1px dashed var(--mdl-line); }
.mdl .mdl-drawer__row--total b { font-size: 1.1rem; }
.mdl .mdl-drawer__foot .mdl-btn { width: 100%; margin-top: 6px; }
.mdl .mdl-drawer__cart { text-align: center; font-size: .84rem; color: var(--mdl-muted); text-decoration: underline; }

/* ==========================================================================
   الشاشات الأصغر
   ========================================================================== */

@media (max-width: 1024px) {
	.mdl .mdl-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.mdl .mdl-hero__side { order: -1; }
	.mdl .mdl-hero__stage { min-height: 380px; }
	.mdl .mdl-now { grid-template-columns: minmax(0, 1fr); }
	.mdl .mdl-now__aside { position: static; }
	.mdl .mdl-sanad { grid-template-columns: minmax(0, 1fr); }
	.mdl .mdl-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mdl .mdl-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar .mdl-mast.is-sticky { top: 46px; }
	.admin-bar .mdl-drawer { top: 46px; }
}

@media (max-width: 760px) {
	.mdl .mdl-mast__bar { gap: 10px; }
	.mdl .mdl-logo { margin-inline-end: auto; }
	.mdl .mdl-mast__burger { display: grid; order: 1; }
	.mdl .mdl-mast__nav { display: none; order: 4; flex-basis: 100%; overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.mdl .mdl-mast__nav.is-open { display: block; }
	.mdl .mdl-mast__nav ul { flex-direction: column; }
	.mdl .mdl-mast__nav a { padding: 12px 4px; border-bottom: 1px solid var(--mdl-line); }
	.mdl .mdl-mast__nav a::after { display: none; }
	.mdl .mdl-mast__tools { order: 3; flex: 1 1 100%; gap: 10px; }
	.mdl .mdl-search { flex: 1; min-width: 0; }
	.mdl .mdl-search__panel { min-width: 0; }
	.mdl-topbar ul { display: none; }
	.mdl .mdl-hero__grid { padding-block: 24px 36px; }
	.mdl .mdl-hero__stage { min-height: 340px; }
	.mdl .mdl-3d { width: min(var(--w3d, 280px), 56vw); }
	.mdl .mdl-rail { grid-auto-columns: 44vw; gap: 14px; }
	.mdl .mdl-grid,
	.mdl .mdl-grid--now { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.mdl .mdl-book__foot { flex-wrap: wrap; }
	.mdl .mdl-pub { grid-template-columns: minmax(0, 1fr); }
	.mdl .mdl-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mdl .mdl-cat { padding: 16px 14px 20px; }
	.mdl .mdl-cat b { font-size: 1rem; }
	.mdl .mdl-foot__cols { grid-template-columns: minmax(0, 1fr); }
	.mdl .mdl-rail__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mdl *,
	.mdl-drawer,
	.mdl-veil { animation: none !important; transition: none !important; }
	.mdl-hero__shelf { transform: none !important; }
}

/* ==========================================================================
   طبقة إتمام الطلب: الدفع عند الاستلام
   نافذة وسط الشاشة على الحاسوب، ورقة تصعد من الأسفل على الهاتف.
   ========================================================================== */

.mdl-veil--sheet { z-index: 99992; }
.mdl-sheet {
	position: fixed;
	z-index: 99993;
	inset-inline: 0;
	top: 50%;
	margin-inline: auto;
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	background: var(--mdl-paper);
	border-radius: 4px 4px 28px 4px;
	box-shadow: 0 40px 90px -30px rgba(10, 20, 26, .6);
	transform: translateY(-46%) scale(.97);
	opacity: 0;
	visibility: hidden;
	transition: transform .35s var(--mdl-ease), opacity .25s, visibility 0s linear .35s;
}
.mdl-sheet.is-open { transform: translateY(-50%); opacity: 1; visibility: visible; transition-delay: 0s; }
.mdl .mdl-sheet__grip { display: none; }
.mdl .mdl-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--mdl-line); }
.mdl .mdl-sheet__head h3 { font-family: var(--mdl-serif); font-weight: 700; font-size: 1.6rem; line-height: 1.3; }
.mdl .mdl-sheet__head p { margin-top: 4px; font-size: .84rem; color: var(--mdl-muted); max-width: 34ch; }
.mdl .mdl-sheet__body { overflow: auto; padding: 16px 24px 22px; overscroll-behavior: contain; }

.mdl .mdl-sheet__sum { background: #fff; border: 1px solid var(--mdl-line); border-radius: 2px 2px 14px 2px; margin-bottom: 18px; }
.mdl .mdl-sheet__sum summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; font-size: .88rem; }
.mdl .mdl-sheet__sum summary::-webkit-details-marker { display: none; }
.mdl .mdl-sheet__sum summary::after { content: "▾"; font-size: .8rem; color: var(--mdl-muted); transition: transform .2s; }
.mdl .mdl-sheet__sum[open] summary::after { transform: rotate(180deg); }
.mdl .mdl-sheet__sum summary b { margin-inline-start: auto; }
.mdl .mdl-sheet__lines { display: grid; gap: 10px; padding: 4px 14px 14px; max-height: 190px; overflow: auto; }
.mdl .mdl-sheet__line { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; font-size: .84rem; }
.mdl .mdl-sheet__line .mdl-cover { box-shadow: none; border-radius: 1px 3px 3px 1px; }
.mdl .mdl-sheet__line span { font-family: var(--mdl-serif); font-weight: 700; line-height: 1.45; }
.mdl .mdl-sheet__line small { display: block; font-family: var(--mdl-ui); font-weight: 400; color: var(--mdl-muted); }

.mdl .mdl-sheet__form { display: grid; gap: 12px; }
.mdl .mdl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mdl .mdl-field { display: grid; gap: 5px; }
.mdl .mdl-field label { font-size: .84rem; font-weight: 600; }
.mdl .mdl-field input {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--mdl-line);
	border-radius: 2px;
	background: #fff;
	box-shadow: none;
	font: 500 1rem var(--mdl-ui);
	color: var(--mdl-ink);
	transition: border-color .2s, box-shadow .2s;
}
.mdl .mdl-field input::placeholder { color: #A89D8E; font-weight: 400; }
.mdl .mdl-field input:focus { outline: 0; border-color: var(--mdl-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mdl-brand) 16%, transparent); }
.mdl .mdl-field input[aria-invalid="true"] { border-color: var(--mdl-brick); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mdl-brick) 14%, transparent); }
.mdl .mdl-field__err { min-height: 0; font-size: .78rem; color: var(--mdl-brick); }
.mdl .mdl-field__err:empty { display: none; }
.mdl .mdl-field__phone { display: flex; direction: ltr; }
.mdl .mdl-field__phone i { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--mdl-line); border-inline-end: 0; border-radius: 2px 0 0 2px; background: var(--mdl-paper-2); font-style: normal; font-size: .9rem; color: var(--mdl-muted); }
.mdl .mdl-field__phone input { border-radius: 0 2px 2px 0; letter-spacing: .06em; font-variant-numeric: tabular-nums; text-align: left; }
.mdl .mdl-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.mdl .mdl-sheet__totals { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--mdl-line); display: grid; gap: 6px; font-size: .9rem; }
.mdl .mdl-sheet__totals div { display: flex; justify-content: space-between; }
.mdl .mdl-sheet__totals .is-total { padding-top: 4px; font-size: 1rem; }
.mdl .mdl-sheet__totals .is-total b { font-size: 1.2rem; }
.mdl .mdl-sheet__err { font-size: .86rem; color: var(--mdl-brick); }
.mdl .mdl-sheet__err:empty { display: none; }
.mdl .mdl-sheet__go { width: 100%; min-height: 54px; font-size: 1.02rem; }
.mdl .mdl-sheet__go span { font-weight: 700; }
.mdl .mdl-sheet__go span:not(:empty)::before { content: "·"; margin-inline: 8px; opacity: .6; }
.mdl .mdl-sheet__cod { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; color: var(--mdl-muted); text-align: center; }
.mdl .mdl-sheet__cod .mdl-ic { width: 18px; height: 18px; color: var(--mdl-gold); }

.mdl .mdl-sheet__done { padding: 34px 28px 30px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.mdl .mdl-sheet__done[hidden] { display: none; }
.mdl .mdl-sheet__check { width: 64px; height: 64px; border-radius: 50%; background: var(--mdl-brand); display: grid; place-items: center; }
.mdl .mdl-sheet__check svg { width: 30px; height: 30px; fill: none; stroke: #E9C97E; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.mdl-sheet.is-done .mdl-sheet__check svg { animation: mdl-draw .6s .15s var(--mdl-ease) forwards; }
@keyframes mdl-draw { to { stroke-dashoffset: 0; } }
.mdl .mdl-sheet__done h3 { font-family: var(--mdl-serif); font-size: 1.7rem; outline: 0; }
.mdl .mdl-sheet__done p { max-width: 36ch; font-size: .95rem; line-height: 1.9; color: var(--mdl-ink); }
.mdl .mdl-sheet__done .mdl-btn { margin-top: 8px; min-width: 200px; }
.mdl-sheet.is-done .mdl-sheet__body { display: none; }
.mdl-sheet.is-done .mdl-sheet__head p,
.mdl-sheet.is-done .mdl-sheet__head h3 { visibility: hidden; }
.mdl-sheet.is-done .mdl-sheet__head { border-bottom-color: transparent; }

@media (max-width: 600px) {
	.mdl-sheet {
		top: auto;
		bottom: 0;
		width: 100%;
		max-height: 94vh;
		border-radius: 20px 20px 0 0;
		transform: translateY(100%);
		opacity: 1;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.mdl-sheet.is-open { transform: none; }
	.mdl .mdl-sheet__grip { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--mdl-line); margin: 10px auto 0; }
	.mdl .mdl-sheet__head { padding: 12px 18px 12px; }
	.mdl .mdl-sheet__head h3 { font-size: 1.4rem; }
	.mdl .mdl-sheet__body { padding: 14px 18px 18px; }
	.mdl .mdl-field-row { gap: 10px; }
}
