/*
 * "Not on the shelf" — the product request block.
 *
 * Same two-column split as the shelf's own band so the two read as one family: copy on the left,
 * the thing to do on the right. Colours come from the Elementor globals the rest of the shop uses;
 * the literals are only a fallback for a missing kit.
 */
.jt-request{
	display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:56px;align-items:center;
	padding:44px;border-radius:22px;background:var(--jt-gray,#f4f4f4)
}
/* `align-items:center` above, not `start`: the copy is about half the height of the form beside
   it, so top-aligned the panel's whole lower-left quarter is empty. Centred, the two columns
   read as one block.

   Stacked, those columns become one full-container-width column, and each half then needs its
   own measure — otherwise the body runs to about 170 characters a line and four short fields
   are spread across the same span. The copy takes the design's own 820px section-head ceiling;
   the form takes the width two fields actually need. One column cannot be centred against
   anything, so alignment returns to the start of each row. */
.jt-request--stack{grid-template-columns:1fr;gap:34px;align-items:start}
.jt-request--stack .jt-request__copy{max-width:820px}
.jt-request--stack .jt-request__form{max-width:880px}

.jt-request__eyebrow{
	margin:0 0 14px;font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
	color:var(--jt-red,#b80024)
}
.jt-request__title{
	margin:0 0 16px;font-size:34px;font-weight:700;line-height:1.14;letter-spacing:-.01em;
	color:var(--jt-ink,#1e1e1e)
}
.jt-request__title em{font-style:italic;font-weight:800;color:var(--jt-red,#b80024)}
.jt-request__body{margin:0 0 22px;color:var(--jt-body,#4c4c4c);font-size:16.3px;line-height:1.6}
.jt-request__points{margin:0 0 20px;padding:0;list-style:none;display:grid;gap:10px}
.jt-request__points li{
	position:relative;padding-left:28px;color:var(--jt-ink,#1e1e1e);font-size:15px;line-height:1.5
}
.jt-request__points li::before{
	content:"";position:absolute;left:0;top:.42em;width:14px;height:8px;
	border-left:2px solid var(--jt-red,#b80024);border-bottom:2px solid var(--jt-red,#b80024);
	transform:rotate(-45deg)
}
.jt-request__phone{margin:0;color:var(--jt-muted,#6b6b6b);font-size:14.4px}

/* ---- the form ---- */
.jt-request__form{
	display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
	padding:28px;border-radius:20px;background:var(--jt-white,#fff);
	box-shadow:0 8px 24px rgba(0,0,0,.08)
}
.jt-request__field{display:flex;flex-direction:column;gap:7px;min-width:0}
.jt-request__field--wide{grid-column:1/-1}
.jt-request__field label{
	font-size:13.2px;font-weight:600;color:var(--jt-ink,#1e1e1e);letter-spacing:.01em
}
.jt-request__req{color:var(--jt-red,#b80024);margin-left:2px}

/* `input.` as well as the class: hello-elementor styles every field by element, and a bare class
   ties with it on specificity while loading first — which left these at the theme's grey box. */
.jt-request__form input.jt-request-ignore,
.jt-request__field input[type=text],
.jt-request__field input[type=email],
.jt-request__field input[type=tel],
.jt-request__field textarea{
	width:100%;box-sizing:border-box;margin:0;font:inherit;font-size:16px;color:var(--jt-ink,#1e1e1e);
	background:#f1f1f1;border:1px solid transparent;border-radius:999px;padding:13px 20px;
	transition:border-color .15s ease,background .15s ease
}
.jt-request__field textarea{border-radius:18px;resize:vertical;min-height:84px;line-height:1.5}
.jt-request__field input:focus,
.jt-request__field textarea:focus{
	outline:none;background:var(--jt-white,#fff);border-color:var(--jt-red,#b80024)
}
.jt-request__field input::placeholder,
.jt-request__field textarea::placeholder{color:var(--jt-muted,#6b6b6b);opacity:1}
.jt-request__field.is-invalid input,
.jt-request__field.is-invalid textarea{border-color:var(--jt-red,#b80024);background:#fff}

/* The `hidden` attribute is honoured by the UA stylesheet as `[hidden]{display:none}`, and any
   author rule outranks the UA origin — so `display:grid` on the form, and `display:block` on the
   two message panels, quietly beat it. The result was a thank-you printed underneath the form it
   was supposed to replace. Author rules of our own put that back. */
.jt-request__form[hidden],
.jt-request__done[hidden],
.jt-request__error[hidden]{display:none}

/* Off-screen rather than display:none — a field a bot cannot see but can still read. */
.jt-request__trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.jt-request__foot{
	grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:4px
}
.jt-request__submit{
	display:inline-flex;align-items:center;gap:14px;font:600 16px/1 inherit;white-space:nowrap;
	padding:8px 8px 8px 26px;border:0;border-radius:999px;cursor:pointer;
	background:var(--jt-red,#b80024);color:#fff;transition:background .15s ease
}
.jt-request__submit:hover{background:#8f001c}
.jt-request__submit[disabled]{opacity:.6;cursor:default}
.jt-request__submit-icon{
	display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
	border-radius:50%;background:#fff;color:var(--jt-red,#b80024)
}
.jt-request__small{
	margin:0;flex:1 1 200px;min-width:0;color:var(--jt-muted,#6b6b6b);font-size:13px;line-height:1.5
}
.jt-request__error{
	grid-column:1/-1;margin:0;padding:12px 18px;border-radius:14px;
	background:#fdecef;color:#8f001c;font-size:14.4px;line-height:1.5
}

.jt-request__done{
	padding:28px;border-radius:20px;background:var(--jt-white,#fff);
	box-shadow:0 8px 24px rgba(0,0,0,.08);align-self:start
}
.jt-request__done h3{
	margin:0 0 10px;font-size:22px;font-weight:700;color:var(--jt-ink,#1e1e1e)
}
.jt-request__done-body{margin:0;color:var(--jt-body,#4c4c4c);font-size:15.5px;line-height:1.6}

@media (max-width:1024px){
	.jt-request{grid-template-columns:1fr;gap:32px;padding:34px}
	.jt-request__title{font-size:28px}
}
@media (max-width:600px){
	.jt-request{padding:26px 20px}
	.jt-request__form{grid-template-columns:1fr;padding:22px}
	.jt-request__submit{width:100%;justify-content:space-between;min-height:48px}
}

/* ---- the line that stands where a price would ---- */
/* Both price slots are flex rows built to sit an amount beside its unit ("$46.85  / case"), so a
   note added to one became a third item on that row rather than a line under it — the card read
   "Pricing on / quote   Add it to your quote…" across two ragged columns. Where the slot now
   holds a sentence and its follow-on, it is a block. Two classes, so it wins over the one-class
   flex rule whichever stylesheet the page happens to print last. */
.jt-card__price.jt-card__price--ask,
.jt-panel__price.jt-panel__price--ask{display:block}
.jt-price__ask-note,.jt-card__ask-note,.jt-panel__ask-note{
	display:block;margin-top:4px;font-size:13px;font-weight:400;line-height:1.45;
	color:var(--jt-muted,#6b6b6b);letter-spacing:0;text-transform:none
}
.jt-panel__ask-note{font-size:14px;margin-top:6px}
/* The WooCommerce price slot, used by the sticky product bar and anywhere Woo prints a price. */
.jt-price--on-request{display:inline-block}
.jt-price__ask-note{margin-top:2px}

/* ---- the form on its own, inside a band that already carries the pitch ---- */
.jt-request--bare{display:block;padding:0;background:none;border-radius:0}
.jt-request--bare .jt-request__form{grid-template-columns:repeat(2,minmax(0,1fr))}
.jt-notshelf .jt-request--bare{min-width:0}
/* The band's own grid sets a 420px right column, which is narrower than two usable fields.
   The form is the column now, so it asks for the same width it gets everywhere else, and the
   copy sits at the top of its column rather than floating in the middle of the taller one. */
.jt-notshelf--form{grid-template-columns:minmax(0,1fr) minmax(0,560px);align-items:center}
@media (max-width:1024px){ .jt-notshelf--form{grid-template-columns:1fr} }
@media (max-width:600px){
	.jt-request--bare .jt-request__form{grid-template-columns:1fr}
}

/* The appended block's own breathing room — see Product_Request::after_widget(). */
.jt-request-slot{margin-top:56px}
@media (max-width:1024px){ .jt-request-slot{margin-top:40px} }

/* ---- the trigger ---- */
.jt-request-open{
	display:inline-flex;align-items:center;gap:14px;font-weight:600;font-size:16px;line-height:1;
	white-space:nowrap;padding:8px 8px 8px 26px;border-radius:999px;text-decoration:none;
	background:var(--jt-red,#b80024);color:#fff;transition:background .15s ease,color .15s ease
}
.jt-request-open:hover,.jt-request-open:focus-visible{background:#8f001c;color:#fff}
.jt-request-open__icon{
	display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
	border-radius:50%;background:#fff;color:var(--jt-red,#b80024);flex:0 0 auto
}
.jt-request-open--ghost{
	background:var(--jt-white,#fff);color:var(--jt-red,#b80024);
	border:1.5px solid var(--jt-red,#b80024);padding:6.5px 6.5px 6.5px 24.5px
}
.jt-request-open--ghost:hover,.jt-request-open--ghost:focus-visible{
	background:var(--jt-red,#b80024);color:#fff
}
.jt-request-open--ghost .jt-request-open__icon{background:var(--jt-red,#b80024);color:#fff}
.jt-request-open--ghost:hover .jt-request-open__icon{background:#fff;color:var(--jt-red,#b80024)}
.jt-noresults__actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px}

/* ---- the dialog ---- */
/* A native <dialog>: showModal() supplies the focus trap, the inert page behind, Escape and the
   backdrop, so none of those are re-implemented in the script. */
.jt-request-dialog{
	width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);
	padding:36px;border:0;border-radius:22px;background:var(--jt-white,#fff);color:var(--jt-ink,#1e1e1e);
	box-shadow:0 18px 45px rgba(0,0,0,.18);overflow:auto;overscroll-behavior:contain
}
.jt-request-dialog::backdrop{background:rgba(20,15,10,.62)}

/* The dialog appeared instantly, which read as a jump rather than a panel opening.
   A native <dialog> moves between display:none and display:block, so the entrance
   needs @starting-style for the "from" state and transition-behavior:allow-discrete
   so display itself is part of the transition and the close can play out instead of
   being cut off. Browsers without either simply get the old instant open. */
.jt-request-dialog{
	opacity:0;transform:translateY(8px) scale(.97);
	transition:opacity .2s ease,transform .22s cubic-bezier(.2,.65,.25,1),overlay .22s allow-discrete,display .22s allow-discrete
}
.jt-request-dialog[open]{opacity:1;transform:none}
@starting-style{.jt-request-dialog[open]{opacity:0;transform:translateY(8px) scale(.97)}}
.jt-request-dialog::backdrop{opacity:0;transition:opacity .22s ease,overlay .22s allow-discrete,display .22s allow-discrete}
.jt-request-dialog[open]::backdrop{opacity:1}
@starting-style{.jt-request-dialog[open]::backdrop{opacity:0}}
@media (prefers-reduced-motion:reduce){
	.jt-request-dialog,.jt-request-dialog[open],.jt-request-dialog::backdrop,.jt-request-dialog[open]::backdrop{
		transition:none;opacity:1;transform:none
	}
	.jt-request-dialog::backdrop{opacity:1}
}
.jt-request-dialog__dismiss{margin:0;float:right}
.jt-request-dialog__close{
	display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;
	margin:-8px -8px 0 0;padding:0;border:0;border-radius:50%;cursor:pointer;
	background:var(--jt-gray,#f4f4f4);color:var(--jt-ink,#1e1e1e);transition:background .15s ease
}
.jt-request-dialog__close:hover{background:var(--jt-gold,#fbb040)}
.jt-request-dialog__eyebrow{
	margin:0 0 12px;font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
	color:var(--jt-red,#b80024)
}
.jt-request-dialog__title{
	margin:0 0 12px;font-size:28px;font-weight:700;line-height:1.16;letter-spacing:-.01em;
	color:var(--jt-ink,#1e1e1e)
}
.jt-request-dialog__body{margin:0 0 22px;color:var(--jt-body,#4c4c4c);font-size:15.5px;line-height:1.55}
/* Inside the dialog the card's own shadow and padding would be a second panel inside a panel. */
.jt-request-dialog .jt-request__form{padding:0;background:none;box-shadow:none}
.jt-request-dialog .jt-request__field input[type=text],
.jt-request-dialog .jt-request__field input[type=email],
.jt-request-dialog .jt-request__field input[type=tel],
.jt-request-dialog .jt-request__field textarea{background:#f1f1f1}
.jt-request-dialog .jt-request__done{padding:0;box-shadow:none}

@media (max-width:600px){
	.jt-request-dialog{padding:24px 20px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
	.jt-request-dialog__title{font-size:23px}
}

/* In the shelf toolbar the trigger sits in a row of 36px controls, so it comes down a size. */
.jt-toolbar .jt-request-open{font-size:14.4px;padding:5px 5px 5px 20px}
.jt-toolbar .jt-request-open--ghost{padding:3.5px 3.5px 3.5px 18.5px}
.jt-toolbar .jt-request-open__icon{width:32px;height:32px}
@media (max-width:782px){
	.jt-toolbar .jt-request-open{order:3}
}

/* Once the request is in, the dialog's instruction contradicts the panel underneath it. */
.jt-request-dialog.is-sent .jt-request-dialog__title,
.jt-request-dialog.is-sent .jt-request-dialog__body{display:none}
