/*
 * TlatDesign Core – business components.
 * Uses the theme's design tokens when present (--td-*), with fallbacks so the
 * components still look right under any theme or inside Elementor.
 */
:root {
	--tdc-ink: var(--td-ink, #171717);
	--tdc-ink-2: var(--td-ink-2, #5c5852);
	--tdc-bg: var(--td-bg, #f8f7f4);
	--tdc-surface: var(--td-surface, #fff);
	--tdc-surface-2: var(--td-surface-2, #f1efea);
	--tdc-line: var(--td-line, #e7e5e1);
	--tdc-accent: var(--td-accent, #b8784d);
	--tdc-accent-ink: var(--td-accent-ink, #8c5530);
	--tdc-danger: #b42318;
	--tdc-success: #1f7a4a;
	--tdc-radius: var(--td-radius, 20px);
	--tdc-radius-sm: var(--td-radius-sm, 12px);
}

/* Buttons (fallback – the theme defines the full set) */
:where(.td-btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
:where(.td-btn--primary) { background: var(--tdc-ink); color: #fff; }
:where(.td-btn--primary:hover) { background: #000; color: #fff; }
:where(.td-btn--secondary) { background: transparent; color: var(--tdc-ink); border-color: var(--tdc-ink); }
:where(.td-btn--secondary:hover) { background: var(--tdc-ink); color: #fff; }
:where(.td-btn--lg) { min-height: 56px; padding: 0 32px; font-size: 1.05em; }

.td-admin-hint { font-size: 14px; color: var(--tdc-accent-ink); background: #fcf5ee; border: 1px dashed var(--tdc-accent); border-radius: var(--tdc-radius-sm); padding: 10px 14px; }

/* ---------- Forms ---------- */
.td-form__grid { display: grid; gap: 18px 20px; }
@media (min-width: 720px) { .td-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-form-field--full { grid-column: 1 / -1; } }
.td-form-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--tdc-ink); }
.td-form-field input[type="text"], .td-form-field input[type="email"], .td-form-field input[type="tel"], .td-form-field input[type="url"], .td-form-field select, .td-form-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--tdc-ink); background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius-sm); padding: 13px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s; box-shadow: none;
}
.td-form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23171717' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 42px; }
[dir="ltr"] .td-form-field select { background-position: right 14px center; padding-left: 14px; padding-right: 42px; }
.td-form-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.td-form-field input:hover, .td-form-field select:hover, .td-form-field textarea:hover { border-color: #cfccc6; }
.td-form-field input:focus, .td-form-field select:focus, .td-form-field textarea:focus { outline: none; border-color: var(--tdc-ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, .08); }
.td-form-field [aria-invalid="true"] { border-color: var(--tdc-danger) !important; }
.td-form-field input[dir="ltr"] { text-align: left; }
.td-form-field input[dir="ltr"]::placeholder { text-align: left; }
.td-req { color: var(--tdc-accent-ink); margin-inline-start: 2px; }
.td-optional { font-weight: 400; color: var(--tdc-ink-2); font-size: .9em; margin-inline-start: 4px; }
.td-help { font-size: 14px; color: var(--tdc-ink-2); margin: 6px 0 0; }
.td-error { font-size: 14px; color: var(--tdc-danger); margin: 6px 0 0; font-weight: 500; }
.td-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.td-file input[type="file"] { width: 100%; font: inherit; font-size: 15px; padding: 14px; border: 1px dashed #cfccc6; border-radius: var(--tdc-radius-sm); background: var(--tdc-surface-2); cursor: pointer; }
.td-file input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-inline-end: 12px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--tdc-ink); background: var(--tdc-surface); color: var(--tdc-ink); cursor: pointer; }
.td-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.td-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tdc-ink); flex-shrink: 0; }
.td-check a { color: var(--tdc-accent-ink); }
.td-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.td-form__footer .td-help { margin: 0; }
.td-quote__errors { border: 1px solid #f3c7c2; background: #fdf3f2; border-radius: var(--tdc-radius-sm); padding: 16px 18px; margin-bottom: 24px; color: #7a271a; }
.td-quote__errors ul { margin: 8px 0 0; padding-inline-start: 20px; }
.td-quote__errors a { color: inherit; }
.td-quote__success { text-align: center; padding: 48px 24px; border: 1px solid var(--tdc-line); background: var(--tdc-surface); border-radius: var(--tdc-radius); }
.td-quote__success:focus { outline: none; }
.td-quote__success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e9f5ee; color: var(--tdc-success); margin-bottom: 16px; }
.td-quote__success h3 { font-size: 26px; margin: 0 0 8px; }
.td-quote__success p { color: var(--tdc-ink-2); max-width: 46ch; margin: 0 auto 24px; }

/* ---------- Product options ---------- */
.td-options { display: grid; gap: 20px; margin: 8px 0 24px; padding: 22px; background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius); width: 100%; }
.td-options__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.td-options__legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.td-options__current { font-weight: 400; color: var(--tdc-ink-2); }
.td-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.td-choice { position: relative; cursor: pointer; }
.td-choice input { position: absolute; opacity: 0; inset: 0; }
.td-choice__body { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius-sm); transition: border-color .2s, box-shadow .2s; height: 100%; }
.td-choice__label { font-weight: 500; }
.td-choice__price { font-size: 13px; color: var(--tdc-ink-2); }
.td-choice input:checked + .td-choice__body { border-color: var(--tdc-ink); box-shadow: inset 0 0 0 1px var(--tdc-ink); }
.td-choice input:focus-visible + .td-choice__body { outline: 2px solid var(--tdc-accent); outline-offset: 2px; }
.td-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.td-swatch { position: relative; cursor: pointer; }
.td-swatch input { position: absolute; opacity: 0; inset: 0; }
.td-swatch__dot { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.td-swatch input:checked + .td-swatch__dot { outline-color: var(--tdc-ink); }
.td-swatch input:focus-visible + .td-swatch__dot { outline-color: var(--tdc-accent); }
.td-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius-sm); cursor: pointer; transition: border-color .2s; }
.td-toggle:has(input:checked) { border-color: var(--tdc-ink); box-shadow: inset 0 0 0 1px var(--tdc-ink); }
.td-toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tdc-ink); flex-shrink: 0; }
.td-toggle__body { display: flex; flex: 1; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.td-toggle__label { font-weight: 500; }
.td-toggle__price { color: var(--tdc-ink-2); font-size: 14px; white-space: nowrap; }
.td-options__summary { border-top: 1px solid var(--tdc-line); padding-top: 16px; display: grid; gap: 6px; }
.td-options__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--tdc-ink-2); }
.td-options__row strong { color: var(--tdc-ink); font-weight: 600; }
.td-options__row--total strong { font-size: 22px; font-weight: 700; }
.td-mockup-notice { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--tdc-ink-2); background: var(--tdc-surface-2); border-radius: var(--tdc-radius-sm); padding: 10px 14px; margin: 0 0 20px; }
.td-mockup-notice .td-icon { margin-top: 3px; color: var(--tdc-accent-ink); }
.td-price-from { font-size: .72em; font-weight: 400; color: var(--tdc-ink-2); margin-inline-end: 4px; }

/* ---------- Packages ---------- */
.td-packages { display: grid; gap: 20px; }
@media (min-width: 900px) { .td-packages { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.td-package { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius); }
.td-package.is-highlight { background: var(--td-dark, #202020); color: #f5f3ef; border-color: var(--td-dark, #202020); }
.td-package.is-highlight .td-package__excerpt, .td-package.is-highlight .td-package__note { color: #c9c4bc; }
.td-package.is-highlight .td-package__features li { border-color: rgba(255,255,255,.1); }
.td-package.is-highlight .td-icon { color: var(--tdc-accent); }
.td-package.is-highlight .td-btn--primary { background: #fff; color: var(--tdc-ink); }
.td-package.is-highlight .td-btn--primary:hover { background: var(--tdc-accent); color: #fff; }
.td-package__badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--tdc-accent); color: #fff; }
.td-package__title { font-size: 24px; margin: 0; }
.td-package__excerpt { color: var(--tdc-ink-2); margin: 0; }
.td-package__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.td-package__note { font-size: 14px; color: var(--tdc-ink-2); }
.td-package__amount { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.td-package__features { list-style: none; margin: 0 0 8px; padding: 0; display: grid; }
.td-package__features li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--tdc-line); }
.td-package__features .td-icon { color: var(--tdc-accent-ink); margin-top: 3px; }
.td-package__cta { margin-top: auto; width: 100%; }
.td-maintenance { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 20px 24px; border-radius: var(--tdc-radius); background: var(--tdc-surface-2); color: var(--tdc-ink-2); }
.td-maintenance p { margin: 0; }
.td-maintenance .td-icon { color: var(--tdc-accent-ink); flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ ---------- */
.td-faq { border-top: 1px solid var(--tdc-line); }
.td-faq__item { border-bottom: 1px solid var(--tdc-line); }
.td-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
.td-faq__q::-webkit-details-marker { display: none; }
.td-faq__q:focus-visible { outline: 2px solid var(--tdc-accent); outline-offset: 4px; border-radius: 6px; }
.td-faq__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--tdc-line); flex-shrink: 0; transition: transform .25s, background .2s; }
.td-faq__item[open] .td-faq__icon { transform: rotate(45deg); background: var(--tdc-ink); color: #fff; border-color: var(--tdc-ink); }
.td-faq__a { color: var(--tdc-ink-2); padding: 0 0 22px; max-width: 70ch; }
.td-faq__a p { margin: 0 0 .8em; }
.td-faq__a p:last-child { margin: 0; }

/* ---------- Projects ---------- */
.td-projects { display: grid; gap: 20px; }
@media (min-width: 640px) { .td-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .td-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.td-project { display: block; text-decoration: none; color: inherit; }
.td-project__media { aspect-ratio: 4 / 3; border-radius: var(--tdc-radius); overflow: hidden; background: var(--tdc-surface-2); }
.td-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.td-project:hover .td-project__media img { transform: scale(1.03); }
.td-project__body { padding: 14px 4px 0; }
.td-project__title { font-size: 19px; margin: 0; }
.td-project__meta { color: var(--tdc-ink-2); font-size: 15px; margin: 4px 0 0; }
.td-projects-empty { padding: 32px; border-radius: var(--tdc-radius); border: 1px dashed #d6d2cb; color: var(--tdc-ink-2); max-width: 760px; }
.td-projects-empty p { margin: 0; }
.td-projects-empty .td-admin-hint { margin-top: 14px; }

/* ---------- Industries ---------- */
.td-industries { display: grid; gap: 16px; }
@media (min-width: 640px) { .td-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .td-industries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.td-industry { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--tdc-radius); background: var(--tdc-surface); border: 1px solid var(--tdc-line); text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
.td-industry:hover { border-color: var(--tdc-ink); transform: translateY(-2px); }
.td-industry__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tdc-surface-2); color: var(--tdc-accent-ink); margin-bottom: 6px; }
.td-industry__title { font-size: 20px; margin: 0; }
.td-industry__text { color: var(--tdc-ink-2); margin: 0; flex: 1; }
.td-industry__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; margin-top: 6px; }
[dir="ltr"] .td-industry__more .td-icon { transform: scaleX(-1); }

/* ---------- Phone demo ---------- */
.td-phone { margin: 0 auto; width: min(100%, 340px); container-type: inline-size; }
/* The frame's own radius must come from .td-phone (cq units on an element resolve against its ancestor container, not itself). */
/* All frame parts are sized from the frame width (container units), so small and large phones look the same. */
.td-phone__frame { position: relative; container-type: inline-size; aspect-ratio: 9 / 19.2; border-radius: 15cqw; background: #141414; box-shadow: 0 0 0 1px #2c2c2c, inset 0 0 0 1px #3a3a3a, 0 40px 80px -30px rgba(0,0,0,.45), 0 20px 40px -20px rgba(0,0,0,.3); }
.td-phone__viewport { position: absolute; inset: 3.6cqw; border-radius: 11.5cqw; overflow: hidden; background: #f6f5f2; isolation: isolate; }
.td-phone__screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; transform-origin: 0 0; background: #f6f5f2; }
.td-phone__notch { position: absolute; top: 6cqw; left: 50%; transform: translateX(-50%); width: 29cqw; height: 8.4cqw; border-radius: 999px; background: #050505; z-index: 2; pointer-events: none; }
.td-phone__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 16px; font-size: 14px; color: var(--tdc-ink-2); text-align: center; }
.td-phone__caption a { color: var(--tdc-accent-ink); font-weight: 600; }

/* ---------- Contact links ---------- */
.td-contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.td-contact-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.td-contact-links a:hover span { text-decoration: underline; }

/* Product specs + link fields */
.td-specs { margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.td-specs__row { margin: 0; padding: 10px 12px; border-radius: var(--tdc-radius-sm); background: var(--tdc-surface-2); }
.td-specs dt { font-size: 13px; color: var(--tdc-ink-2); }
.td-specs dd { margin: 2px 0 0; font-weight: 600; }
.td-links { display: grid; gap: 14px; }
.td-links > .td-help { margin: -4px 0 0; }
.td-link-field .td-help { margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Product page upsell dialog (assets/js/upsell.js)                     */
/* ------------------------------------------------------------------ */
html.td-up-open { overflow: hidden; }
.td-up { --up-ink: var(--td-ink, #0f0f14); --up-cream: var(--td-bg, #fff6ea); --up-violet: var(--td-violet, #5b3cf5); --up-lime: var(--td-lime, #c6f432); --up-orange: var(--td-orange, #ff5b1f);
	position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; font-family: inherit; color: var(--up-ink); direction: rtl; }
.td-up[hidden] { display: none; }
.td-up__backdrop { position: absolute; inset: 0; background: rgba(15, 15, 20, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.td-up__panel { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
	background: var(--up-cream); border: 2px solid var(--up-ink); border-radius: 30px; box-shadow: 8px 8px 0 var(--up-ink); padding: 34px 34px 28px;
	opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.td-up.is-open .td-up__backdrop { opacity: 1; }
.td-up.is-open .td-up__panel { opacity: 1; transform: none; }
.td-up__close { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--up-ink); background: #fff; color: var(--up-ink); cursor: pointer; transition: transform .15s; }
.td-up__close:hover { transform: rotate(90deg); }
.td-up__eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--up-ink); color: var(--up-lime); font-size: 13px; font-weight: 700; }
.td-up__title { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.td-up__lead { margin: 0 0 22px; max-width: 54ch; font-size: 16px; line-height: 1.55; color: var(--td-ink-2, #4a4740); }
.td-up__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.td-up__opt { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 16px; border: 2px solid var(--up-ink); border-radius: 22px; background: #fff; cursor: pointer;
	transition: transform .15s, box-shadow .15s, border-color .15s, background-color .15s; }
.td-up__opt:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--up-ink); }
.td-up__opt:has(.td-up__input:checked) { border-color: var(--up-violet); background: #f3f0ff; box-shadow: 4px 4px 0 var(--up-violet); }
.td-up__opt:has(.td-up__input:focus-visible) { outline: 3px solid var(--up-violet); outline-offset: 3px; }
.td-up__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.td-up__shot { display: block; width: 96px; aspect-ratio: 560 / 1039; padding: 4px; border-radius: 18px; background: var(--up-ink); box-shadow: 0 10px 20px -10px rgba(15, 15, 20, .5); }
.td-up__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; }
.td-up__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; padding-inline-end: 30px; }
.td-up__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--up-lime); font-size: 12px; font-weight: 700; }
.td-up__name { font-size: 19px; font-weight: 800; line-height: 1.2; }
.td-up__price { font-size: 14px; font-weight: 800; color: var(--up-violet); }
.td-up__text { font-size: 14px; line-height: 1.5; color: var(--td-ink-2, #4a4740); }
.td-up__demo { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--up-violet); text-decoration: underline; text-underline-offset: 3px; }
.td-up__check { position: absolute; top: 14px; inset-inline-end: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--up-ink); background: #fff; color: transparent; transition: background-color .15s, color .15s; }
.td-up__opt:has(.td-up__input:checked) .td-up__check { background: var(--up-lime); color: var(--up-ink); }
.td-up__pick { display: none; }
.td-up__note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--td-line-2, #dcc8ad); font-size: 14px; line-height: 1.5; color: var(--td-ink-2, #4a4740); }
.td-up__note svg { flex-shrink: 0; margin-top: 1px; color: var(--up-violet); }
.td-up__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.td-up__go { min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--up-ink); background: var(--up-orange); color: var(--up-ink); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 var(--up-ink); transition: transform .15s, box-shadow .15s; }
.td-up__go:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--up-ink); }
.td-up__skip { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--up-ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.td-up__go:focus-visible, .td-up__skip:focus-visible, .td-up__close:focus-visible, .td-up__demo:focus-visible { outline: 3px solid var(--up-violet); outline-offset: 3px; }

/* Phones: a bottom sheet with compact option rows */
@media (max-width: 640px) {
	.td-up { padding: 0; place-items: end stretch; }
	.td-up__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; border-width: 2px 0 0; box-shadow: none; padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(40px); }
	.td-up__panel::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--td-line-2, #dcc8ad); }
	.td-up__close { top: 14px; inset-inline-end: 12px; width: 40px; height: 40px; }
	.td-up__title { font-size: 25px; padding-inline-end: 48px; }
	.td-up__lead { font-size: 15px; margin-bottom: 16px; }
	.td-up__opts { grid-template-columns: 1fr; gap: 12px; }
	.td-up__opt { grid-template-columns: 70px 1fr; gap: 12px; padding: 12px; border-radius: 18px; }
	.td-up__shot { width: 70px; border-radius: 14px; padding: 3px; }
	.td-up__shot img { border-radius: 11px; }
	.td-up__name { font-size: 17px; }
	.td-up__text { font-size: 13.5px; }
	.td-up__actions { flex-direction: column; align-items: stretch; gap: 6px; }
	.td-up__go { width: 100%; font-size: 16px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.td-up__panel, .td-up__backdrop, .td-up__opt, .td-up__close { transition: none; }
}

/* ------------------------------------------------------------------ */
/* Product page: digital system offer inside the order form              */
/* ------------------------------------------------------------------ */
.td-dig { --dg-ink: var(--td-ink, #0f0f14); --dg-violet: var(--td-violet, #5b3cf5); --dg-lime: var(--td-lime, #c6f432);
	flex: 1 1 100%; width: 100%; min-width: 0; margin: 0 0 18px; padding: 22px; border: 2px solid var(--dg-ink); border-radius: 28px;
	background: radial-gradient(120% 90% at 100% 0%, #efeaff 0%, #fff 55%); color: var(--dg-ink); }
.td-dig__head { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0 0 6px; float: none; width: 100%; }
.td-dig__eyebrow { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--dg-violet); color: #fff; font-size: 13px; font-weight: 700; }
.td-dig__title { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.td-dig__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--td-ink-2, #4a4740); }
.td-dig__opts { display: grid; gap: 12px; }
.td-dig__opt { position: relative; display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border: 2px solid var(--dg-ink); border-radius: 20px; background: #fff; cursor: pointer;
	transition: transform .15s, box-shadow .15s, border-color .15s, background-color .15s; }
.td-dig__opt:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--dg-ink); }
.td-dig__opt:has(.td-dig__input:checked) { border-color: var(--dg-violet); background: #f3f0ff; box-shadow: 4px 4px 0 var(--dg-violet); }
.td-dig__opt:has(.td-dig__input:focus-visible) { outline: 3px solid var(--dg-violet); outline-offset: 3px; }
.td-dig__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.td-dig__shot { display: block; width: 78px; aspect-ratio: 560 / 1039; padding: 3px; border-radius: 15px; background: var(--dg-ink); box-shadow: 0 8px 16px -8px rgba(15, 15, 20, .5); }
.td-dig__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12px; }
.td-dig__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.td-dig__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--dg-lime); font-size: 12px; font-weight: 700; }
.td-dig__name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.td-dig__price { align-self: flex-start; font-size: 14px; font-weight: 800; color: var(--dg-violet); }
.td-dig__list { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--td-ink-2, #4a4740); }
.td-dig__list span { position: relative; padding-inline-start: 16px; }
.td-dig__list span::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--dg-violet); }
.td-dig__demo { align-self: flex-start; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--dg-violet); text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
.td-dig__check { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--dg-ink); background: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background-color .15s; }
.td-dig__check svg { display: none; }
.td-dig__opt:has(.td-dig__input:checked) .td-dig__check { background: var(--dg-lime); }
.td-dig__opt:has(.td-dig__input:checked) .td-dig__check svg { display: block; }
.td-dig__added { display: none; }
.td-dig__opt:has(.td-dig__input:checked) .td-dig__add { display: none; }
.td-dig__opt:has(.td-dig__input:checked) .td-dig__added { display: inline; }
.td-dig__note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--td-ink-2, #4a4740); }
.td-dig__note svg { flex-shrink: 0; margin-top: 1px; color: var(--dg-violet); }
@media (max-width: 480px) {
	.td-dig { padding: 18px 14px; border-radius: 22px; }
	.td-dig__title { font-size: 21px; }
	.td-dig__opt { grid-template-columns: 62px 1fr; gap: 12px; padding: 12px; align-items: start; }
	.td-dig__shot { width: 62px; border-radius: 12px; }
	.td-dig__check { grid-column: 1 / -1; justify-content: center; }
}
.td-dig-teaser { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 16px; border-radius: 18px; border: 2px solid var(--td-ink, #0f0f14); background: #efeaff; color: var(--td-ink, #0f0f14); text-decoration: none; transition: translate .15s, box-shadow .15s; }
/* 'translate' (not 'transform'): the page's entrance animation drives transform on this element. */
.td-dig-teaser:hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--td-ink, #0f0f14); }
.td-dig-teaser:focus-visible { outline: 3px solid var(--td-violet, #5b3cf5); outline-offset: 3px; }
.td-dig-teaser__icon { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--td-violet, #5b3cf5); color: #fff; }
.td-dig-teaser__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--td-ink-2, #4a4740); }
.td-dig-teaser__text strong { font-size: 16px; color: var(--td-ink, #0f0f14); }
.td-dig-teaser__arrow { margin-inline-start: auto; font-size: 20px; font-weight: 800; }

/* Stand colours (templates/color-picker.php, assets/js/colors.js) ------------------------------ */
.td-colors { --cl-ink: var(--td-ink, #0f0f14); --cl-violet: var(--td-violet, #5b3cf5); --cl-line: var(--td-line, #e7e5e1);
	position: relative; flex: 1 1 100%; width: 100%; min-width: 0; margin: 0 0 18px; padding: 14px 16px; border: 2px solid var(--cl-ink); border-radius: 24px; background: #fff; color: var(--cl-ink); }
.td-colors__bar { display: flex; align-items: center; gap: 14px; }
.td-colors__dots { display: flex; flex-shrink: 0; padding-inline-start: 6px; }
.td-colors__dot { width: 30px; height: 30px; margin-inline-start: -8px; border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px var(--cl-ink); transition: background-color .35s; }
.td-colors__intro { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.td-colors__title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.td-colors__state { font-size: 14px; color: var(--td-ink-2, #4a4740); }
.td-colors.is-changed .td-colors__state { color: var(--cl-violet); font-weight: 700; }
.td-colors__toggle { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--cl-ink); border-radius: 999px; background: var(--cl-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: translate .15s, box-shadow .15s, background-color .15s; }
.td-colors__toggle:hover { translate: -2px -2px; box-shadow: 3px 3px 0 var(--cl-violet); }
.td-colors__toggle:focus-visible { outline: 3px solid var(--cl-violet); outline-offset: 3px; }
.td-colors.is-open .td-colors__toggle { background: #fff; color: var(--cl-ink); }
.td-colors__panel { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--cl-line); }
.td-colors__lead { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--td-ink-2, #4a4740); }
.td-colors__slot { margin: 0 0 8px; padding: 6px 14px; min-width: 0; border: 1.5px solid var(--cl-line); border-radius: 18px; background: var(--td-bg, #faf8f4); transition: border-color .2s, background-color .2s; }
.td-colors__slot.is-changed { border-color: var(--cl-violet); background: #f6f3ff; }
.td-colors__slot.is-active { padding-bottom: 14px; border-color: var(--cl-ink); background: #fff; }
.td-colors__part { display: block; width: 100%; padding: 0; margin: 0; float: inline-start; }
.td-colors__part + * { clear: both; }
.td-colors__head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 700; text-align: start; cursor: pointer; }
.td-colors__head:focus-visible { outline: 3px solid var(--cl-violet); outline-offset: 4px; border-radius: 10px; }
.td-colors__chip { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(15, 15, 20, .25); transition: background-color .35s; }
.td-colors__picked { margin-inline-start: auto; font-size: 13.5px; font-weight: 600; color: var(--td-ink-2, #4a4740); text-align: end; }
.td-colors__slot.is-changed .td-colors__picked { color: var(--cl-violet); }
.td-colors__chev { flex-shrink: 0; transition: rotate .2s; }
.td-colors__slot.is-active .td-colors__chev { rotate: 180deg; }
.td-colors__slot:not(.is-active) .td-colors__body { display: none; }
.td-colors__body { padding-top: 10px; }
.td-colors__swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.td-colors__sep { width: 1.5px; height: 26px; margin: 0 4px; border-radius: 1px; background: var(--cl-line); }
.td-colors__sep:first-child, .td-sw--orig + .td-colors__sep { display: none; }
.td-sw { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.td-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.td-sw__dot { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c, #fff); box-shadow: inset 0 0 0 1.5px rgba(15, 15, 20, .22); transition: transform .15s, box-shadow .15s; }
.td-sw:hover .td-sw__dot { transform: scale(1.08); }
.td-sw input:checked + .td-sw__dot { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--cl-ink); }
.td-sw input:focus-visible + .td-sw__dot { outline: 3px solid var(--cl-violet); outline-offset: 5px; }
/* Special order: a dashed ring, so it reads differently from in-stock filaments without words. */
.td-sw--special .td-sw__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px dashed rgba(15, 15, 20, .55); }
.td-sw--special input:checked + .td-sw__dot::after { display: none; }
.td-sw--orig .td-sw__dot { color: #fff; }
.td-sw--orig .td-sw__dot svg { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .7)); }
.td-sw--orig.is-light .td-sw__dot { color: var(--cl-ink); }
.td-sw--orig.is-light .td-sw__dot svg { filter: none; }
.td-sw--custom { padding-inline-end: 12px; border-radius: 999px; border: 1.5px dashed rgba(15, 15, 20, .45); background: #fff; }
.td-sw--custom .td-sw__dot { width: 30px; height: 30px; margin: 1px; background: conic-gradient(from 90deg, #ff5b5b, #ffd54a, #6fdc6f, #4ac6ff, #7b6bff, #ff5bd2, #ff5b5b); color: #fff; }
.td-sw--custom .td-sw__dot svg { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.td-sw__more { font-size: 14px; font-weight: 700; }
.td-sw--custom:has(input:checked) { border-style: solid; border-color: var(--cl-ink); }
.td-colors__req { margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--cl-line); }
.td-colors__req-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.td-colors__req-row { display: flex; gap: 8px; align-items: stretch; }
.td-colors__req-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.td-colors__pick { position: relative; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 12px 0 8px; border: 1.5px solid var(--cl-line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.td-colors__pick input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.td-colors__pick input::-webkit-color-swatch-wrapper { padding: 0; }
.td-colors__pick input::-webkit-color-swatch { border: 1px solid rgba(15, 15, 20, .25); border-radius: 8px; }
.td-colors__req .td-help { margin: 8px 0 0; }
.td-colors__warn { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; border: 1.5px solid #f2c48a; font-size: 14px; line-height: 1.5; color: #6b3d00; }
.td-colors__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 0; }
.td-colors__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--td-ink-2, #4a4740); }
.td-colors__legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.td-colors__key { width: 14px; height: 14px; border-radius: 50%; background: var(--td-ink-2, #4a4740); }
.td-colors__key--special { background: none; border: 1.5px dashed var(--td-ink-2, #4a4740); }
.td-colors__key--custom { display: grid; place-items: center; background: conic-gradient(#ff5b5b, #ffd54a, #6fdc6f, #4ac6ff, #7b6bff, #ff5bd2, #ff5b5b); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.td-colors__reset { padding: 6px 2px; border: 0; background: none; color: var(--cl-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.td-colors__reset:focus-visible { outline: 3px solid var(--cl-violet); outline-offset: 2px; border-radius: 4px; }
.td-colors:not(.is-changed) .td-colors__reset { visibility: hidden; }
.td-colors__note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--td-ink-2, #4a4740); }
.td-colors__note svg { flex-shrink: 0; margin-top: 1px; }
.td-colors__status { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #efeaff; font-size: 14px; line-height: 1.5; font-weight: 600; }
.td-colors__see[hidden] { display: none; }
.td-colors__see { position: fixed; white-space: nowrap; z-index: 60; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--cl-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 12px 30px -8px rgba(15, 15, 20, .55); cursor: pointer;
	translate: -50% 20px; opacity: 0; transition: translate .25s, opacity .25s; }
.td-colors__see.is-in { translate: -50% 0; opacity: 1; }
.td-colors__see:focus-visible { outline: 3px solid var(--cl-violet); outline-offset: 3px; }
@media (max-width: 599px) {
	.td-colors { padding: 12px; border-radius: 20px; }
	.td-colors__bar { flex-wrap: wrap; gap: 10px 12px; }
	.td-colors__toggle { width: 100%; justify-content: center; margin-inline-start: 0; min-height: 44px; font-size: 15px; }
	.td-colors__slot { padding: 4px 10px; }
	.td-colors__slot.is-active { padding-bottom: 12px; }
	.td-colors__head { flex-wrap: wrap; row-gap: 0; padding: 4px 0; }
	.td-colors__part-name { flex: 1 1 auto; }
	.td-colors__picked { order: 5; flex-basis: 100%; margin: 0; padding-inline-start: 36px; text-align: start; font-size: 13px; }
	.td-sw__dot { width: 36px; height: 36px; }
	.td-colors__swatches { gap: 9px; }
	.td-colors__req-row { flex-wrap: wrap; }
	.td-colors__req-row input[type="text"] { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.td-colors__see, .td-sw__dot, .td-colors__dot, .td-colors__chip, .td-colors__toggle { transition: none; }
}

/* Paid digital service in the cart / checkout / thank-you: what happens next */
.td-svc-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--td-violet, #5b3cf5); background: #f3f0ff; font-size: 15px; line-height: 1.55; color: #16161c; }
.td-svc-note__icon { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--td-violet, #5b3cf5); color: #fff; }
.td-svc-note strong { font-weight: 800; }

/* "Edit" on customised cart lines, and the note on the product page while editing */
.td-edit-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--td-violet, #5b3cf5); text-decoration: underline; text-underline-offset: 3px; }
.widget_shopping_cart .td-edit-link { display: flex; width: max-content; }
.td-edit-link:hover { color: var(--td-orange, #ff5b1f); }
.td-edit-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--td-violet, #5b3cf5); background: #f3f0ff; font-size: 14.5px; line-height: 1.5; color: #16161c; }
.td-edit-note svg { flex-shrink: 0; margin-top: 2px; color: var(--td-violet, #5b3cf5); }

/* Colour choices from the shop palette: special order, and "בקשת צבע מיוחד" */
.td-swatch--special .td-swatch__dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px #fff, 0 0 0 4px transparent; background-image: none; }
.td-swatch--special::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed rgba(22, 22, 28, .55); pointer-events: none; }
.td-swatch--custom { display: inline-flex; align-items: center; gap: 8px; padding-inline-end: 4px; }
.td-swatch__dot--custom { display: grid !important; place-items: center; background: conic-gradient(#ff5b1f, #f2c230, #2f7d4a, #2a63c2, #6a3fa0, #e59aae, #ff5b1f) !important; color: #fff; font-weight: 800; font-size: 22px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.td-swatch__more { font-size: 14px; font-weight: 700; white-space: nowrap; }
.td-color-req { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f6f3ff; border: 2px solid var(--td-violet, #5b3cf5); }
.td-color-req > label { display: block; font-weight: 700; margin-bottom: 6px; }
.td-color-req__row { display: flex; gap: 10px; align-items: center; }
.td-color-req__row input[type="text"] { flex: 1; min-width: 0; min-height: 46px; }
.td-color-req__pick input[type="color"] { width: 52px; height: 46px; padding: 3px; border-radius: 12px; border: 2px solid rgba(22,22,28,.2); background: #fff; cursor: pointer; }
.td-color-req__hint { margin: 8px 0 0; font-size: 13.5px; opacity: .8; }
.td-color-special { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #8a4b00; }

/* Four colours up front, the rest behind "עוד צבעים" (the chosen colour always stays visible) */
.td-swatches { align-items: center; }
.td-swatches:not(.is-open) .td-swatch--extra:not(:has(input:checked)) { display: none; }
.td-swatches__more { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(22, 22, 28, .25); background: #fff; color: #16161c; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.td-swatches__more:hover, .td-swatches__more[aria-expanded="true"] { border-color: #16161c; }
