:root {
    --ttq-navy: #111f49;
    --ttq-navy-2: #1f2d61;
    --ttq-violet: #7768d8;
    --ttq-cyan: #28b8e3;
    --ttq-ink: #12203f;
    --ttq-muted: #66708a;
    --ttq-line: #dfe4f0;
    --ttq-soft: #f5f7fc;
    --ttq-success: #16865a;
    --ttq-error: #b4233a;
}

html.tthead-quote-open { overflow: hidden; }

.single-product form.cart > .clickBuyButton { display: none !important; }
.single-product form.cart > .tthead-product-actions { display: grid; grid-template-columns: max-content repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; width: 100%; }
.single-product form.cart > .tthead-product-actions > .quantity { align-self: stretch; margin: 0 !important; }
.single-product form.cart > .tthead-product-actions > .single_add_to_cart_button,
.single-product form.cart > .tthead-product-actions > .tthead-smart-quote-trigger { display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box !important; width: 100% !important; min-width: 0 !important; min-height: 44px !important; height: 44px !important; margin: 0 !important; padding: 0 10px !important; border: 0 !important; border-radius: 9px !important; background: #786fd3 !important; color: #fff !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.25 !important; white-space: nowrap; text-align: center; text-transform: uppercase; box-shadow: none !important; transition: background-color .15s ease; }
.single-product form.cart .tthead-smart-quote-trigger:hover { background: #6c62c7 !important; transform: none; box-shadow: none !important; }
.tthead-smart-quote-trigger__icon { display: none !important; }
.single-product form.cart > .datarus-docs-inline-button { display: flex !important; align-items: center; justify-content: center; box-sizing: border-box !important; width: 100% !important; min-height: 44px !important; margin: 8px 0 0 !important; border-radius: 9px !important; background: #786fd3 !important; color: #fff !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.3 !important; text-align: center; white-space: normal; }
.single-product form.cart > .datarus-docs-external-note { display: block; width: 100%; margin: 6px 0 0; }

.tthead-quote[hidden] { display: none !important; }
.tthead-quote { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity .18s ease; font-family: inherit; }
.tthead-quote.is-open { opacity: 1; }
.tthead-quote__backdrop { position: absolute; inset: 0; background: rgba(7, 15, 38, .72); backdrop-filter: blur(4px); }
.tthead-quote__dialog { position: relative; width: min(940px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(7, 15, 38, .34); transform: translateY(14px) scale(.985); transition: transform .18s ease; color: var(--ttq-ink); }
.tthead-quote.is-open .tthead-quote__dialog { transform: none; }
.tthead-quote__close { position: absolute; z-index: 2; top: 18px; right: 18px; display: grid !important; place-items: center !important; width: 42px; height: 42px; min-width: 42px; min-height: 42px; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 0 !important; line-height: 1 !important; text-align: center !important; text-indent: 0 !important; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.tthead-quote__close > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tthead-quote__close::before, .tthead-quote__close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transform-origin: center; }
.tthead-quote__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.tthead-quote__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tthead-quote__close:hover { background: rgba(255,255,255,.24); transform: rotate(4deg); }
.tthead-quote__close:focus-visible, .tthead-quote button:focus-visible, .tthead-quote input:focus-visible, .tthead-quote textarea:focus-visible, .tthead-upload:focus-within { outline: 3px solid rgba(40,184,227,.35); outline-offset: 2px; }

.tthead-quote__header { padding: 28px 76px 27px 34px; color: #fff; background: radial-gradient(circle at 85% -20%, rgba(40,184,227,.46), transparent 38%), linear-gradient(125deg, var(--ttq-navy), var(--ttq-navy-2)); border-radius: 24px 24px 0 0; }
.tthead-quote__eyebrow { display: block; margin-bottom: 7px; color: #bfc9ff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tthead-quote__header h2 { margin: 0 0 7px; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; font-weight: 800; }
.tthead-quote__header p { margin: 0; max-width: 700px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.5; }
.tthead-quote__body { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(430px, 1.4fr); gap: 28px; padding: 30px 34px 34px; }

.tthead-quote__product { align-self: start; padding: 18px; border: 1px solid var(--ttq-line); border-radius: 18px; background: linear-gradient(180deg, #fff, var(--ttq-soft)); }
.tthead-quote__product-image-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1.5 / 1; margin-bottom: 16px; overflow: hidden; border-radius: 13px; background: #fff; }
.tthead-quote__product-image { position: absolute !important; inset: 0 !important; display: block !important; box-sizing: border-box !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; object-fit: contain !important; object-position: center center !important; }
.tthead-quote__product-label { color: var(--ttq-violet); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tthead-quote__product-name { margin: 6px 0 8px; color: var(--ttq-ink); font-size: 18px; line-height: 1.35; }
.tthead-quote__product-sku, .tthead-quote__product-stock { margin: 3px 0; color: var(--ttq-muted); font-size: 13px; }
.tthead-quote__product-price { margin: 13px 0 0; color: var(--ttq-navy); font-size: 24px; font-weight: 800; }
.tthead-quote__benefits { display: grid; gap: 9px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ttq-line); list-style: none; }
.tthead-quote__benefits li { position: relative; padding-left: 24px; color: #35405a; font-size: 13px; line-height: 1.4; }
.tthead-quote__benefits li::before { content: '✓'; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(119,104,216,.13); color: var(--ttq-violet); font-size: 11px; font-weight: 900; }

.tthead-quote__form { min-width: 0; }
.tthead-quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tthead-quote__field { display: grid; gap: 7px; margin: 0; color: var(--ttq-ink); font-size: 13px; font-weight: 700; }
.tthead-quote__field-label { display: inline-flex; align-items: center; gap: 7px; }
.tthead-quote__field-icon { width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 7px; background: rgba(119,104,216,.11); stroke: var(--ttq-violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.tthead-quote__field em { color: var(--ttq-error); font-style: normal; }
.tthead-quote__field input, .tthead-quote__field textarea { width: 100%; box-sizing: border-box; margin: 0; border: 1px solid var(--ttq-line); border-radius: 11px; background: #fff; color: var(--ttq-ink); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.4; box-shadow: none; transition: border .15s ease, box-shadow .15s ease; }
.tthead-quote__field input { height: 47px; padding: 0 13px; }
.tthead-quote__field textarea { min-height: 82px; padding: 11px 13px; resize: vertical; }
.tthead-quote__field input:focus, .tthead-quote__field textarea:focus { border-color: var(--ttq-violet); box-shadow: 0 0 0 3px rgba(119,104,216,.11); outline: none; }
.tthead-quote__field input::placeholder, .tthead-quote__field textarea::placeholder { color: #9aa2b5; }
.tthead-quote__field--wide { margin-top: 14px; }
.tthead-quote__field--company { grid-column: 1 / -1; }
.tthead-quote__inn-status { display: block; min-height: 16px; margin-top: -2px; color: var(--ttq-muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.tthead-quote__inn-status.is-loading { color: #66708a; }
.tthead-quote__inn-status.is-success { color: var(--ttq-success); font-weight: 700; }
.tthead-quote__inn-status.is-error { color: var(--ttq-error); }

.tthead-quote__uploads { display: grid; gap: 10px; margin-top: 15px; }
.tthead-upload { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 67px; padding: 10px 12px; border: 1.5px dashed #bdc6dc; border-radius: 13px; background: var(--ttq-soft); cursor: pointer; transition: border .15s ease, background .15s ease, transform .15s ease; }
.tthead-upload:hover, .tthead-upload.has-files { border-color: var(--ttq-violet); background: #f1efff; transform: translateY(-1px); }
.tthead-upload input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; }
.tthead-upload__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--ttq-violet); font-size: 22px; box-shadow: 0 4px 14px rgba(17,31,73,.08); }
.tthead-upload__copy { min-width: 0; }
.tthead-upload__copy strong, .tthead-upload__copy small { display: block; }
.tthead-upload__copy strong { color: var(--ttq-ink); font-size: 14px; line-height: 1.3; }
.tthead-upload__copy small { margin-top: 3px; color: var(--ttq-muted); font-size: 11px; font-weight: 400; }
.tthead-upload__state { max-width: 108px; overflow: hidden; color: var(--ttq-violet); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tthead-upload-preview[hidden] { display: none !important; }
.tthead-upload-preview { display: grid; gap: 8px; margin-top: -2px; }
.tthead-upload-preview--photos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tthead-upload-preview__item { position: relative; min-width: 0; border: 1px solid #d9deeb; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(17,31,73,.06); }
.tthead-upload-preview__item--photo { display: grid; grid-template-rows: 66px auto auto; gap: 3px; padding: 6px; }
.tthead-upload-preview__visual { display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: #f2f3f8; color: var(--ttq-violet); font-size: 11px; font-weight: 800; }
.tthead-upload-preview__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tthead-upload-preview__visual.is-file-icon { border: 1px dashed #c8cee0; }
.tthead-upload-preview__name { overflow: hidden; color: var(--ttq-ink); font-size: 10px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.tthead-upload-preview__size { color: var(--ttq-muted); font-size: 9px; line-height: 1.2; }
.tthead-upload-preview__remove { position: absolute; top: 2px; right: 2px; display: grid !important; place-items: center !important; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(13,27,69,.82) !important; color: #fff !important; font: 700 17px/1 Arial, sans-serif !important; box-shadow: 0 2px 7px rgba(13,27,69,.2) !important; cursor: pointer; }
.tthead-upload-preview__remove:hover { background: var(--ttq-error) !important; }
.tthead-upload-preview__item--document { display: grid; grid-template-columns: 42px minmax(0,1fr) 26px; align-items: center; gap: 11px; min-height: 58px; padding: 8px 10px; }
.tthead-upload-preview__document-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: rgba(119,104,216,.12); color: var(--ttq-violet); font-size: 10px; font-weight: 900; }
.tthead-upload-preview__document-copy { min-width: 0; }
.tthead-upload-preview__document-copy strong, .tthead-upload-preview__document-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tthead-upload-preview__document-copy strong { color: var(--ttq-ink); font-size: 12px; }
.tthead-upload-preview__document-copy small { margin-top: 3px; color: var(--ttq-success); font-size: 10px; }
.tthead-upload-preview__item--document .tthead-upload-preview__remove { position: static; }

.tthead-quote__consent { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; color: var(--ttq-muted); font-size: 11px; line-height: 1.45; cursor: pointer; }
.tthead-quote__consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 0; accent-color: var(--ttq-violet); }
.tthead-quote__consent a { color: var(--ttq-violet); text-decoration: underline; }
.tthead-quote__actions { display: grid; grid-template-columns: minmax(220px, auto) 1fr; align-items: center; gap: 14px; margin-top: 17px; }
.tthead-quote__submit { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 13px; background: linear-gradient(115deg, var(--ttq-violet), #6454ca); color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; box-shadow: 0 10px 24px rgba(100,84,202,.24); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.tthead-quote__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(100,84,202,.3); }
.tthead-quote__submit:disabled { opacity: .65; cursor: wait; transform: none; }
.tthead-quote__submit-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.17); font-size: 18px; }
.tthead-quote__status { margin: 0; color: var(--ttq-muted); font-size: 12px; line-height: 1.4; }
.tthead-quote__status.is-error { color: var(--ttq-error); }
.tthead-quote__status.is-success { color: var(--ttq-success); font-weight: 700; }
.tthead-quote__honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.tthead-quote-hint { display: flex; align-items: flex-start; gap: 10px; max-width: 680px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(119,104,216,.2); border-radius: 12px; background: rgba(119,104,216,.06); color: #3b4660; }
.tthead-quote-hint__icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--ttq-violet); font-size: 20px; box-shadow: 0 3px 10px rgba(17,31,73,.08); }
.tthead-quote-hint p { margin: 0; font-size: 12px; line-height: 1.45; }

@media (max-width: 1100px) {
    .single-product form.cart > .tthead-product-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .single-product form.cart > .tthead-product-actions > .quantity { grid-column: 1 / -1; justify-self: start; }
    .single-product form.cart > .tthead-product-actions > .single_add_to_cart_button,
    .single-product form.cart > .tthead-product-actions > .tthead-smart-quote-trigger { padding-inline: 7px !important; font-size: 11px !important; }
}

@media (max-width: 760px) {
    .tthead-quote { place-items: end center; padding: 0; }
    .tthead-quote__dialog { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
    .tthead-quote__header { padding: 23px 60px 20px 20px; border-radius: 22px 22px 0 0; }
    .tthead-quote__header h2 { font-size: 24px; }
    .tthead-quote__header p { font-size: 13px; }
    .tthead-quote__body { display: block; padding: 20px; }
    .tthead-quote__product { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 13px; margin-bottom: 20px; padding: 12px; }
    .tthead-quote__product-image-wrap { aspect-ratio: 1; margin: 0; }
    .tthead-quote__product-name { font-size: 15px; }
    .tthead-quote__product-price { margin-top: 6px; font-size: 20px; }
    .tthead-quote__benefits { display: none; }
    .tthead-quote__grid { grid-template-columns: 1fr; gap: 11px; }
    .tthead-quote__field--wide { margin-top: 11px; }
    .tthead-upload { grid-template-columns: 38px minmax(0,1fr); }
    .tthead-upload__state { grid-column: 2; max-width: 100%; margin-top: -5px; }
    .tthead-upload-preview--photos { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .tthead-quote__actions { grid-template-columns: 1fr; }
    .tthead-quote__submit { width: 100%; }
}

@media (max-width: 390px) {
    .tthead-quote__body { padding: 17px 15px 22px; }
    .tthead-quote__header { padding-left: 15px; }
    .tthead-quote__product { grid-template-columns: 110px 1fr; }
    .tthead-upload-preview--photos { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .tthead-quote, .tthead-quote__dialog, .tthead-quote__close, .tthead-quote__submit, .tthead-upload { transition: none !important; }
}
