/* DeltaSpares V130 - phone polish for the public site: comfortable tap targets, a tidy floating-button speed dial, app-like touch feel. Loaded last (theme_head), only changes phone-sized screens and touch devices. */
@media (hover: none) and (pointer: coarse) {
    a, button, input, select, textarea, label, summary, [role=button] { touch-action: manipulation; }
    * { -webkit-tap-highlight-color: rgba(240, 165, 0, .16); }
    button:not(:disabled), .btn, a.mp-rfq-cta, .mp-bottombar a, .ds-fab-hub, .ds-live-float, .ds-wa-float, .ds-ai-float { transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
    button:not(:disabled):active, .btn:active, a.mp-rfq-cta:active, .mp-bottombar a:active { transform: scale(.96); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 760px) {
    html { -webkit-text-size-adjust: 100%; }
    body { overscroll-behavior-x: none; }
    /* header: every icon is a proper 40 px target without growing the bar */
    .mp-header-actions { gap: 2px; align-items: center; }
    .mp-header-actions a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; border-radius: 10px; }
    a#mpRfqBtn.mp-rfq-cta, .mp-rfq-cta { min-height: 36px; display: inline-flex; align-items: center; }
    .mp-navlinks a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .mp-logo { display: inline-flex; align-items: center; min-height: 40px; }
    .bm-icon.bm-mono { font-size: 11px; }
    /* forms: 16 px text stops phones zooming in; 44 px high fields */
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select, textarea { font-size: 16px; }
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select { min-height: 44px; }
    /* links that were only 15 px high */
    .mp-breadcrumb a, .pc-breadcrumb a { display: inline-block; padding: 9px 2px; }
    .mp-footer a { display: inline-block; padding: 9px 0; }
    .ds-tap { display: inline-flex; align-items: center; min-height: 40px; }
    /* the bottom bar: frosted, safe-area aware, clearer active tab */
    .mp-bottombar { padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 -4px 18px rgba(10, 37, 64, .10); }
    .mp-bottombar a { min-height: 52px; justify-content: center; position: relative; }
    .mp-bottombar a.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: #f0a500; }
    html[data-theme="dark"] .mp-bottombar { background: rgba(12, 20, 32, .94); box-shadow: 0 -4px 18px rgba(0, 0, 0, .4); }

    /* ---------- the floating buttons become ONE speed dial (Live Chat / WhatsApp / AI assistant) ---------- */
    .ds-fab-hub { display: flex; position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; align-items: center; justify-content: center; z-index: 945; cursor: pointer; color: #fff; background: linear-gradient(135deg, #0a2540, #1a4a7c); box-shadow: 0 10px 26px rgba(10, 37, 64, .42), 0 0 0 3px rgba(240, 165, 0, .85); }
    .ds-fab-hub svg { width: 26px; height: 26px; position: absolute; transition: transform .2s ease, opacity .2s ease; }
    .ds-fab-hub .x { opacity: 0; transform: rotate(-90deg) scale(.5); }
    html.ds-fab-open .ds-fab-hub .c { opacity: 0; transform: rotate(90deg) scale(.5); } html.ds-fab-open .ds-fab-hub .x { opacity: 1; transform: none; }
    .ds-fab-hub .dot { position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px; border-radius: 7px; background: #e11d48; border: 2px solid #fff; display: none; }
    .ds-fab-hub.has-badge .dot { display: block; }
    html.ds-fab-grouped .ds-live-float, html.ds-fab-grouped .ds-wa-float, html.ds-fab-grouped .ds-ai-float {
        right: 17px !important; width: 48px !important; height: 48px !important; bottom: calc(78px + env(safe-area-inset-bottom, 0px) + 6px + 58px * var(--fab-i, 1)) !important;
        opacity: 0; pointer-events: none; transform: translateY(18px) scale(.6); transition: transform .22s cubic-bezier(.2, .9, .3, 1.2), opacity .18s ease; transition-delay: calc(var(--fab-i, 1) * 0s); }
    html.ds-fab-grouped.ds-fab-open .ds-live-float, html.ds-fab-grouped.ds-fab-open .ds-wa-float, html.ds-fab-grouped.ds-fab-open .ds-ai-float { opacity: 1; pointer-events: auto; transform: none; transition-delay: calc(var(--fab-i, 1) * .04s); }
    html.ds-fab-grouped .ds-live-float img, html.ds-fab-grouped .ds-wa-float img, html.ds-fab-grouped .ds-ai-float img { width: 30px; height: 30px; }
    .ds-fab-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: rgba(10, 37, 64, .94); color: #fff; font: 700 12px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; padding: 8px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
    html.ds-live-open .ds-fab-hub, html.ds-ai-open .ds-fab-hub, html.ds-wa-open .ds-fab-hub { opacity: 0; pointer-events: none; }
}
@media (min-width: 761px) { .ds-fab-hub { display: none; } .ds-fab-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .ds-fab-hub svg, html.ds-fab-grouped .ds-live-float, html.ds-fab-grouped .ds-wa-float, html.ds-fab-grouped .ds-ai-float { transition: none; } }

@media (max-width: 760px) {
    html body .bm-icon.bm-mono { font-size: 11px !important; }
    .mp-featured-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding-left: 14px; padding-right: 14px; }
    .mp-pcard-btn, a.mp-pcard-btn.quote { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .pc-card-action, .pc-card-action.pc-quote { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
    .pc-sub-link, .pc-sidebar a { display: flex; align-items: center; min-height: 40px; }
    .pc-mobile-close { min-width: 40px; min-height: 40px; }
    .pc-mobile-filter { min-height: 40px; }
    .pd-tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pd-tabs::-webkit-scrollbar { display: none; }
    .pd-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
    .sx-send-btn { min-height: 46px; }
    .sx-info-value a { display: inline-block; padding: 7px 0; }
}
@media (max-width: 760px) {
    /* product cards and listings: nothing below 10.5 px */
    .pc-product-brand { font-size: 11px; } .pc-product-sku { font-size: 10.5px; } .pc-product-specs div { font-size: 10.5px; line-height: 1.35; }
    .pc-price, .pc-price.pc-price-rfq { font-size: 12px; } .price-contact { font-size: 10.5px; } .pc-stock { font-size: 10.5px; } .pc-rating em { font-size: 10.5px; }
    .pc-card-action, .pc-card-action.pc-quote { font-size: 11px; letter-spacing: 0; } .pc-sub-count { font-size: 10.5px; }
    .sx-card-category { font-size: 10.5px; } .sx-card-subject, .sx-card-meta { font-size: 11px; }
    .sx-topic .desc, .sx-trust-item span { font-size: 10.5px; } .sx-topic .title, .sx-trust-item b { font-size: 11.5px; }
}
