/* PRECISO V6 — Adaptív eszköz-, tájolás- és felbontás-optimalizálás */
.preciso-mob-topbar,
.preciso-mob-scroll-hint {
    display: none;
}

/* ==========================================================================
   1. MOBIL ÉS ÁLLÓ TABLET (< 1024px vagy data-device="mobile")
   ========================================================================== */
html[data-device="mobile"],
html[data-device="tablet"][data-orientation="portrait"] {
    overflow-x: hidden;
    max-width: 100vw;
}
html[data-device="mobile"] body,
html[data-device="tablet"][data-orientation="portrait"] body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobil & keskeny tablet fejléc + összecsukható menüsáv */
html[data-device="mobile"] header > div:first-child,
html[data-res="xs"] header > div:first-child,
html[data-res="sm"] header > div:first-child,
html[data-res="md"] header > div:first-child,
html[data-res="lg"] header > div:first-child {
    padding: 10px 12px !important;
    gap: 8px !important;
}
html[data-device="mobile"] header > div:first-child img[src*="preciso_logo"],
html[data-res="xs"] header > div:first-child img[src*="preciso_logo"],
html[data-res="sm"] header > div:first-child img[src*="preciso_logo"],
html[data-res="md"] header > div:first-child img[src*="preciso_logo"] {
    height: 44px !important;
    width: auto !important;
}
html[data-device="mobile"] header > div:first-child .italic {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
}
html[data-device="mobile"] header > div:first-child .italic br {
    display: none;
}
html[data-device="mobile"] header > div:first-child .italic span:first-child::after {
    content: " ";
}

/* Egysoros mobil menüsáv */
html[data-device="mobile"] .preciso-nav-inner,
html[data-res="xs"] .preciso-nav-inner,
html[data-res="sm"] .preciso-nav-inner,
html[data-res="md"] .preciso-nav-inner,
html[data-res="lg"] .preciso-nav-inner {
    padding: 6px 10px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
}
html[data-device="mobile"] .preciso-mob-topbar,
html[data-res="xs"] .preciso-mob-topbar,
html[data-res="sm"] .preciso-mob-topbar,
html[data-res="md"] .preciso-mob-topbar,
html[data-res="lg"] .preciso-mob-topbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}
.preciso-mob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ffffff;
    color: #1363ab;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 41, 74, 0.06);
}
.preciso-mob-btn-primary {
    background: #1363ab;
    color: #ffffff;
    border-color: #1363ab;
}
.preciso-mob-call {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

html[data-device="mobile"] .preciso-nav-links,
html[data-device="mobile"] .preciso-nav-inner #headerContactBlock,
html[data-res="xs"] .preciso-nav-links,
html[data-res="xs"] .preciso-nav-inner #headerContactBlock,
html[data-res="sm"] .preciso-nav-links,
html[data-res="sm"] .preciso-nav-inner #headerContactBlock,
html[data-res="md"] .preciso-nav-links,
html[data-res="md"] .preciso-nav-inner #headerContactBlock,
html[data-res="lg"] .preciso-nav-links,
html[data-res="lg"] .preciso-nav-inner #headerContactBlock {
    display: none !important;
}

.preciso-nav-inner.preciso-mob-open .preciso-nav-links {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #cbd5e1 !important;
    gap: 6px !important;
}
.preciso-nav-inner.preciso-mob-open .preciso-nav-links > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.preciso-nav-inner.preciso-mob-open .preciso-nav-links a,
.preciso-nav-inner.preciso-mob-open .preciso-nav-links button {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    margin: 0 !important;
}
.preciso-nav-inner.preciso-mob-open #storeBtn {
    display: none !important;
}
.preciso-nav-inner.preciso-mob-open #headerContactBlock {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 8px 2px 2px 2px !important;
    border-top: 1px solid #cbd5e1 !important;
    font-size: 11.5px !important;
}

/* ==========================================================================
   2. MOBIL FEKVŐ TÁJOLÁS (LANDSCAPE) — EXTRA KOMPAKT MAGASSÁG
   ========================================================================== */
html[data-device="mobile"][data-orientation="landscape"] header > div:first-child {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 12px !important;
    padding: 6px 12px !important;
}
html[data-device="mobile"][data-orientation="landscape"] header > div:first-child > * {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
html[data-device="mobile"][data-orientation="landscape"] header > div:first-child img[src*="preciso_logo"] {
    height: 34px !important;
}
html[data-device="mobile"][data-orientation="landscape"] header > div:first-child .italic {
    font-size: 12px !important;
}
html[data-device="mobile"][data-orientation="landscape"] #heroSection > div {
    padding: 10px 12px !important;
    gap: 8px !important;
}
html[data-device="mobile"][data-orientation="landscape"] #heroSection h1 {
    font-size: 16px !important;
}
html[data-device="mobile"][data-orientation="landscape"] .preciso-nav-inner.preciso-mob-open .preciso-nav-links > div {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* ==========================================================================
   3. ÉRINTŐKÉPERNYŐS INPUTOK & MODALOK (MOBIL + TABLET)
   ========================================================================== */
html[data-device="mobile"] input:not([type="checkbox"]):not([type="radio"]),
html[data-device="mobile"] select,
html[data-device="mobile"] textarea {
    font-size: 16px !important; /* Megakadályozza az iOS/Android kéretlen ránagyítást */
}

html[data-device="mobile"] #megaMenu,
html[data-device="tablet"][data-orientation="portrait"] #megaMenu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 72vh !important;
    overflow-y: auto !important;
}

html[data-device="mobile"] #heroSection > div {
    padding: 16px 12px !important;
    gap: 12px !important;
}
html[data-device="mobile"] #heroSection h1 {
    font-size: 19px !important;
    line-height: 1.25 !important;
}
html[data-device="mobile"] #heroSection p {
    font-size: 12px !important;
    margin-top: 6px !important;
}
html[data-device="mobile"] #heroSection .min-w-\[260px\] {
    min-width: 0 !important;
}
html[data-device="mobile"] #heroSection .rounded-lg.p-5 {
    padding: 14px !important;
}

html[data-device="mobile"] #partnerAccountMenu {
    right: 0 !important;
    max-width: calc(100vw - 24px) !important;
}

html[data-touch="true"] #authModal > div,
html[data-touch="true"] #productDetailModal > div,
html[data-touch="true"] #equivModal > div,
html[data-touch="true"] #partnerProfileModal > div,
html[data-touch="true"] #partnerOrdersModal > div {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* Táblázat görgetési segédlet mobilon és álló tableten */
html[data-touch="true"] #productTableContainer {
    -webkit-overflow-scrolling: touch;
}
html[data-device="mobile"] .preciso-mob-scroll-hint,
html[data-device="tablet"][data-orientation="portrait"] .preciso-mob-scroll-hint {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #1363ab;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 5px 10px;
    margin-bottom: 8px;
    text-align: center;
}

html[data-device="mobile"] #landingContent {
    padding: 14px 12px !important;
}
html[data-device="mobile"] footer > div:first-child {
    padding: 20px 14px !important;
    gap: 18px !important;
}
