/*
 * Technical product layout (WooCommerce single product).
 * Loaded only on products with "Use technical product layout" switched on (functions/technical-product/).
 * .efi-tp = description tab content, .efi-tp-product = body class on those product pages.
 */
.efi-tp{color:var(--ef-muted,#94a3b8);line-height:1.7}
/* Long unbroken identifiers (e.g. DroneCAN message names) wrap inside the text column instead of widening the page on phones. */
.efi-tp p,.efi-tp li{overflow-wrap:anywhere}
.efi-tp h2{margin:clamp(2rem,4.5vw,3rem) 0 .75rem;font-size:var(--lg-fs,1.75rem);line-height:1.2;scroll-margin-top:6.5rem}
.efi-tp h3{margin:1.75rem 0 .5rem;color:var(--ef-heading,#e8eef5);font-size:1.2rem;line-height:1.3}
.efi-tp p{margin:0 0 1rem;max-width:78ch}
.efi-tp a{color:var(--accent,#00bcd4)}
.efi-tp [id]{scroll-margin-top:6.5rem}
.efi-tp-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.5rem;padding:0;list-style:none}
.efi-tp-nav li{margin:0}
.efi-tp-nav a{display:block;padding:.45em 1em;border:1px solid var(--ef-border,rgba(255,255,255,.1));border-radius:999px;color:var(--ef-muted,#94a3b8);font-size:.82rem;font-weight:600;letter-spacing:.02em;text-decoration:none;text-transform:uppercase;transition:var(--transition,all .3s ease-in-out)}
.efi-tp-nav a:hover,.efi-tp-nav a:focus-visible{border-color:var(--accent,#00bcd4);color:var(--accent,#00bcd4)}
.efi-tp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 .5rem;padding:0;list-style:none}
.efi-tp-stats li{margin:0;padding:1.1rem 1.25rem;border:1px solid var(--ef-border,rgba(255,255,255,.1));border-radius:var(--ef-radius,14px);background:var(--ef-surface,rgba(255,255,255,.035))}
.efi-tp-stats strong{display:block;color:var(--accent,#00bcd4);font-size:1.6rem;line-height:1.2}
.efi-tp-stats span{font-size:.85rem}
.efi-tp .efi-tp-features{columns:2;column-gap:2.5rem;margin:0;padding-left:1.25rem}
.efi-tp .efi-tp-features li{break-inside:avoid;margin:0 0 .65rem}
.efi-tp-tablewrap{overflow-x:auto;margin:0 0 1.25rem;border:1px solid var(--ef-border,rgba(255,255,255,.1));border-radius:var(--ef-radius,14px)}
.efi-tp-table{width:100%;min-width:32rem;margin:0;border:0;border-collapse:collapse;font-size:.95rem}
.efi-tp-table th,.efi-tp-table td{padding:.6em 1em;border:0;border-bottom:1px solid var(--ef-border,rgba(255,255,255,.1));background:transparent;text-align:left;vertical-align:top}
.efi-tp-table thead th{background:var(--ef-surface-hover,rgba(255,255,255,.06));color:var(--ef-heading,#e8eef5);font-size:.78rem;letter-spacing:.05em;text-transform:uppercase}
.efi-tp-table tbody th{color:var(--ef-heading,#e8eef5);font-weight:600}
.efi-tp-table tr.group th{background:var(--ef-surface,rgba(255,255,255,.035));color:var(--accent,#00bcd4);font-size:.78rem;letter-spacing:.05em;text-transform:uppercase}
.efi-tp-table tbody tr:last-child td,.efi-tp-table tbody tr:last-child th{border-bottom:0}
.efi-tp-table td.num,.efi-tp-table th.num{white-space:nowrap}
.efi-tp-table--wide{min-width:36rem}
.efi-tp .efi-tp-note p{margin:0}
.efi-tp .efi-tp-note p+p{margin-top:.6rem}
.efi-tp .efi-tp-note{margin:0 0 1.25rem;padding:.8rem 1rem;border-left:3px solid var(--accent,#00bcd4);background:var(--ef-surface,rgba(255,255,255,.035));font-size:.92rem}
.efi-tp-details{margin:0 0 .75rem;border:1px solid var(--ef-border,rgba(255,255,255,.1));border-radius:var(--ef-radius-sm,6px);background:var(--ef-surface,rgba(255,255,255,.035))}
.efi-tp-details>summary{padding:.85rem 1.1rem;color:var(--ef-heading,#e8eef5);font-weight:600;cursor:pointer}
.efi-tp-details>summary:focus-visible{outline:2px solid var(--accent,#00bcd4);outline-offset:2px}
.efi-tp-details[open]>summary{border-bottom:1px solid var(--ef-border,rgba(255,255,255,.1))}
.efi-tp-details>div{padding:1rem 1.1rem .25rem}
.efi-tp-details img{display:block;max-width:100%;height:auto;margin:0 0 1rem;border-radius:var(--ef-radius-sm,6px);background:#fff}
.efi-tp-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;padding:1.1rem 1.25rem;border:1px solid var(--ef-border,rgba(255,255,255,.1));border-radius:var(--ef-radius,14px);background:var(--ef-surface,rgba(255,255,255,.035))}
.efi-tp-card p{margin:0}
.efi-tp-card strong{color:var(--ef-heading,#e8eef5)}
.efi-tp-card .button{flex:0 0 auto}
.efi-tp-links{margin:0 0 1rem;padding-left:1.25rem}
/* Inquiry: one form per inquiry type, switched by a tab control */
.efi-tp-switch{display:none;gap:.5rem;margin:0 0 1.25rem;padding:.3rem;border:1px solid var(--ef-border,rgba(255,255,255,.1));border-radius:999px;background:var(--ef-surface,rgba(255,255,255,.035));max-width:34rem}
.efi-tp-js .efi-tp-switch{display:flex}
.efi-tp-switch button{flex:1 1 0;padding:.7em 1em;border:0;border-radius:999px;background:transparent;color:var(--ef-muted,#94a3b8);font:inherit;font-size:.88rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;cursor:pointer;transition:var(--transition,all .3s ease-in-out)}
.efi-tp-switch button[aria-selected=true]{background:var(--accent,#00bcd4);color:var(--main,#09101b)}
.efi-tp-switch button:focus-visible{outline:2px solid var(--accent,#00bcd4);outline-offset:2px}
.efi-tp-panel[hidden]{display:none}
.efi-tp .efi-tp-form-product{margin:0;color:var(--ef-muted,#94a3b8)}
.efi-tp .efi-tp-form-product strong{color:var(--ef-heading,#e8eef5)}
.efi-tp .nf-form-cont{max-width:48rem;margin:0}
.efi-tp .nf-form-cont .nf-field-container{margin-bottom:1.1rem}
.efi-tp .nf-form-cont .hidden-container{margin:0}
.efi-tp .nf-form-cont .field-wrap{display:flex;flex-direction:column}
.efi-tp .nf-form-cont .nf-field-label{order:1}
.efi-tp .nf-form-cont .nf-field-element{order:2}
.efi-tp .nf-form-cont .nf-field-description{order:3;margin-top:.35rem}
.efi-tp .nf-form-cont label{color:var(--ef-heading,#e8eef5)}
.efi-tp .nf-form-cont .nf-field-description{color:var(--ef-muted,#94a3b8);font-size:.85rem;line-height:1.5}
.efi-tp .nf-form-cont .nf-error-msg,.efi-tp .nf-form-cont .nf-form-errors,.efi-tp .nf-form-cont .nf-error-wrap{color:#f08a74;font-size:.9rem;line-height:1.45}
.efi-tp .nf-form-cont .nf-error .ninja-forms-field{border-color:#f08a74}
.efi-tp .nf-form-cont input[type=button],.efi-tp .nf-form-cont input[type=submit]{display:inline-block;padding:.95em 1.9em;border:1px solid transparent;border-radius:var(--ef-radius-sm,6px);background:var(--accent,#00bcd4);color:var(--main,#09101b);font-size:.9rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase;cursor:pointer}
.efi-tp .nf-form-cont input[type=button]:hover,.efi-tp .nf-form-cont input[type=submit]:hover{background:transparent;border-color:var(--accent,#00bcd4);color:var(--accent,#00bcd4)}
.efi-tp .nf-form-cont .nf-row{align-items:flex-start}
/* Product page (summary column, tabs, gallery) */
.efi-tp-product .efi-tp-meta{margin:0 0 1.1rem;color:var(--ef-muted,#94a3b8);font-size:.9rem}
.efi-tp-product div.product .summary > .stock{margin:-.6rem 0 1.25rem;font-size:.95rem;font-weight:600;line-height:1.4}
.efi-tp-product div.product .summary > .stock.in-stock{color:var(--alternate2,#03a594)}
.efi-tp-product div.product .summary > .stock.out-of-stock{color:#e0715a}
.efi-tp-product .efi-tp-cta{display:flex;flex-wrap:wrap;gap:.75rem;margin:0 0 1rem}
.efi-tp-product .efi-tp-cta-note{margin:-.15rem 0 1.25rem;color:var(--ef-muted,#94a3b8);font-size:.9rem;line-height:1.55}
.efi-tp-product .efi-tp-cta .button{flex:1 1 15rem;padding-block:1.05em}
.efi-tp-product .ef-wc .efi-tp-cta .efi-tp-btn--ghost{background:transparent;border-color:var(--accent,#00bcd4);color:var(--accent,#00bcd4)}
.efi-tp-product .ef-wc .efi-tp-cta .efi-tp-btn--ghost:hover{background:var(--accent,#00bcd4);color:var(--main,#09101b)}
/* Tabs: tighter gap above the description */
.efi-tp-product #content.ef-wc div.product{row-gap:1.25rem}
.efi-tp-product #content.ef-wc div.product .woocommerce-tabs{margin-top:.5rem;padding-top:clamp(1.25rem,2.5vw,1.75rem)}
.efi-tp-product #content.ef-wc div.product .woocommerce-tabs ul.tabs{margin-bottom:1.25rem}
/* Gallery: keep the whole photo or drawing visible instead of cropping it square */
.efi-tp-product #content.ef-wc div.product .woocommerce-product-gallery__image img,
.efi-tp-product #content.ef-wc div.product .flex-control-thumbs img{object-fit:contain;background:#fff}
.efi-tp-product #content.ef-wc div.product .woocommerce-product-gallery__image:first-child img,
.efi-tp-product #content.ef-wc div.product .flex-control-thumbs li:first-child img{background:var(--efi-tp-main-image-bg,#fff)}
.efi-tp-product #content.ef-wc div.product .flex-control-thumbs img{border-color:var(--ef-border,rgba(255,255,255,.1))}
.efi-tp-product #content.ef-wc div.product .flex-control-thumbs img.flex-active{border-color:var(--accent,#00bcd4)}
@media (max-width:640px){
.efi-tp .nf-form-cont .nf-field-container.one-half{float:none;clear:both;width:100%;margin-left:0;margin-right:0}
}
@media (max-width:760px){
.efi-tp-table{min-width:0;font-size:.8rem}
.efi-tp-table th,.efi-tp-table td{padding:.5em .5em;overflow-wrap:break-word}
.efi-tp-table thead th{font-size:.68rem;letter-spacing:.02em}
.efi-tp-table td.num,.efi-tp-table thead th{white-space:nowrap}
.efi-tp-table--wide{min-width:36rem}
.efi-tp-stats strong{font-size:1.3rem}
.efi-tp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.efi-tp .efi-tp-features{columns:1}
.efi-tp-switch{max-width:none}
.efi-tp-switch button{padding:.7em .5em;font-size:.78rem}
.efi-tp-product .efi-tp-cta .button{flex-basis:100%}
}
.efi-tp .efi-tp-figure{margin:0 0 1rem}
.efi-tp .efi-tp-figure img{display:block;max-width:100%;height:auto;margin:0 0 .4rem;border-radius:var(--ef-radius-sm,6px);background:#fff}
.efi-tp .efi-tp-figure figcaption{color:var(--ef-muted,#94a3b8);font-size:.85rem;line-height:1.45}
.efi-tp .efi-tp-table-title{margin:0 0 .45rem;color:var(--ef-heading,#e8eef5);font-size:.92rem;font-weight:600}
