/* Delta ROV website. Brand: orange and navy from the logo. */
:root { --orange: #e5792a; --navy: #1b4a72; --ink: #1d232b; --muted: #5d6874; --line: #e3e7ec; --soft: #f4f6f9; --wrap: 1120px; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.msg { background: #fdeee2; border-radius: 8px; padding: 10px 14px; }

.testbar { background: var(--navy); color: #fff; font-size: 13.5px; padding: 6px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.tbclock { display: inline-flex; align-items: center; gap: 6px; opacity: .95; } .tbclock svg { flex: none; }
.tbopen { color: #86efac; font-weight: 700; } .tbclosed { color: #fcd34d; font-weight: 600; }
.testbar a { color: #fff; }
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { height: 34px; width: auto; display: block; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--orange); }
.navbtn { display: none; font-size: 26px; cursor: pointer; padding: 4px 8px; }
@media (max-width: 820px) {
  .navbtn { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; gap: 0; padding: 6px 16px 12px; }
  nav a { padding: 10px 0; border-bottom: 1px solid var(--soft); }
  #navt:checked ~ nav { display: flex; }
  .bar { position: relative; }
}

.btn { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 22px;
       border-radius: 8px; }
.btn.alt { background: transparent; color: #fff; border: 2px solid #fff; }
.btn.navy { background: var(--navy); }

.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 4.5vw, 56px) 0;
  background: linear-gradient(90deg, rgba(3, 22, 46, .62) 0%, rgba(3, 22, 46, .3) 45%, rgba(3, 22, 46, 0) 75%),
    linear-gradient(180deg, rgba(3, 22, 46, 0) 70%, rgba(3, 22, 46, .35) 100%),
    var(--hero, url('/ocean-top.jpg')) center 4% / cover no-repeat, #0d4f86; }
.hero .wrap { position: relative; z-index: 1; }
/* a dark contour around the banner's text, buttons and product (as on the datasheets) */
/* the datasheets' dark panel behind the banner's text and buttons */
.herotext { background: rgba(3, 22, 45, .62); border-radius: 14px; padding: clamp(18px, 3vw, 32px) clamp(18px, 3.4vw, 38px); }
.hero h1, .hero p { text-shadow: 0 1px 3px rgba(0, 12, 28, .5); }
.hero h1 { margin-top: 0; }
.hero:not(.withside) .herotext { flex: 0 1 auto; max-width: 780px; }
.hero .rays { position: absolute; inset: -20% -10% 0 30%; pointer-events: none; opacity: .55; mix-blend-mode: screen;
  background: repeating-linear-gradient(100deg, rgba(190, 240, 255, 0) 0 46px, rgba(190, 240, 255, .16) 60px, rgba(190, 240, 255, 0) 92px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  transform-origin: top center; animation: rays 14s ease-in-out infinite alternate; }
@keyframes rays { from { transform: skewX(-6deg) translateX(-30px); opacity: .4; } to { transform: skewX(6deg) translateX(30px); opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .hero .rays { animation: none; } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #e8711c, #f4a259 45%, #1e88e5); }
.herowrap { display: flex; align-items: center; gap: 32px; } .herotext { flex: 1; min-width: 0; }
.heroside { flex: 0 0 42%; display: flex; justify-content: center; }
.heroside img { max-width: 100%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 15, 35, .55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .heroside img { animation: none; } }
@media (max-width: 860px) { .herowrap { flex-direction: column; align-items: flex-start; } .heroside { flex: none; width: 100%; } .heroside img { max-height: 240px; } }
@media (max-width: 640px) { .hero { background: linear-gradient(rgba(3, 22, 46, .5), rgba(3, 22, 46, .5)), var(--hero, url('/ocean-top.jpg')) center 4% / cover no-repeat, #0d4f86; } .hero .rays { inset: -10% -20% 0 0; } }
.hero h1 { color: #fff; max-width: 720px; }
.hero p { font-size: 18px; max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.band { padding: 56px 0; }
.band.soft { background: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cardbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.cardbox p { color: var(--muted); }
.field { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.field figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.field figure > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.field figcaption { padding: 14px 16px 18px; font-size: 15px; flex: 1; }
.field figcaption b { display: block; color: var(--navy); }
.field figcaption img { height: 34px; width: auto; margin-top: 10px; }
.logos { display: flex; flex-wrap: wrap; gap: 26px 34px; align-items: center; justify-content: center; }
.logos img { max-height: 54px; width: auto; max-width: 170px; object-fit: contain; }
.logos.clients img { max-height: 64px; filter: grayscale(1); opacity: .8; }
.logos.clients img:hover { filter: none; opacity: 1; }
@media (max-width: 900px) { .field { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .split, .field { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 18px; }
.contact h3 { margin: 0 0 6px; font-size: 17px; }
.contact p { margin: 0; }
.prose p, .prose li { color: #2b333d; }

footer { position: relative; background: linear-gradient(180deg, rgba(5, 20, 38, .9) 0%, rgba(5, 20, 38, .62) 45%, rgba(5, 20, 38, .8) 100%),
  url('/ocean-bottom.jpg') center bottom / cover no-repeat, #0a1828; color: #b9c6d4; padding: 56px 0 0; font-size: 14.5px; line-height: 1.6; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #e8711c, #f4a259 45%, #1e88e5); }
footer a { color: #fff; text-decoration: none; transition: color .15s; } footer a:hover { color: #f4a259; }
footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 14px; }
footer .fcols { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
footer .flogo { height: 36px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
footer .fbrand p { margin: 16px 0 18px; max-width: 340px; }
footer .fsoc { display: flex; flex-wrap: wrap; gap: 8px; }
footer .fsoc a { padding: 6px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; font-size: 13px; background: rgba(255,255,255,.04); }
footer .fsoc a:hover { border-color: #e8711c; background: rgba(232,113,28,.14); color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; } footer .flinks li { margin: 0 0 8px; }
footer .flinks a { color: #d4dde7; } footer .flinks a:hover { color: #f4a259; }
footer .fcontact li { display: flex; gap: 10px; margin: 0 0 12px; align-items: flex-start; }
footer .fcontact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: #e8711c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer .fbottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0 22px; font-size: 13px; color: #8aa0b5; }
footer .legal { display: flex; flex-wrap: wrap; gap: 4px 18px; } footer .legal a { color: #a9b8c8; } footer .legal a:hover { color: #fff; }
@media (max-width: 860px) { footer .fcols { grid-template-columns: 1fr 1fr; } footer .fbrand { grid-column: 1 / -1; } }
@media (max-width: 560px) { footer .fcols { grid-template-columns: 1fr; gap: 28px; } footer .fbottom { flex-direction: column; align-items: flex-start; } }

.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: #0f2236; color: #fff;
             border-radius: 12px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; z-index: 50;
             box-shadow: 0 8px 30px rgba(0, 0, 0, .25); font-size: 14px; }
.cookiebar[hidden] { display: none; }
.cookiebar p { margin: 0; flex: 1; min-width: 220px; }
.cookiebar a { color: #fff; }
.cookiebar button { font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 8px 16px; cursor: pointer;
                    background: var(--orange); color: #fff; margin-left: 6px; }
.cookiebar button.alt { background: transparent; border: 1px solid #fff; }

.sechead { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 22px; }
.sechead h2 { margin: 0; }
.sechead p { margin: 0; flex: 1; min-width: 240px; color: var(--muted); }
.carousel { position: relative; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.track::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; position: relative; display: flex; flex-direction: column; text-decoration: none;
         color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pcard:hover { border-color: var(--orange); }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 10px; }
.pname { padding: 12px 16px 2px; font-weight: 600; }
.pprice { padding: 0 16px 16px; color: var(--navy); font-weight: 700; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; z-index: 1; }
.cbtn { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--orange); color: #fff;
        font-size: 26px; line-height: 38px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.cbtn.prev { left: -14px; } .cbtn.next { right: -14px; }
.cbtn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .pcard { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 560px) { .pcard { flex-basis: 82%; } .cbtn.prev { left: -6px; } .cbtn.next { right: -6px; } }

/* shop */
.shop { padding-top: 36px; padding-bottom: 56px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.cats a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font-size: 14px; font-weight: 600; }
.cats a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cathead { margin: 30px 0 14px; } .cathead a { text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid .pcard { flex: none; }
.pprice.soon { color: var(--orange); }
.noimg { display: block; aspect-ratio: 4 / 3; background: var(--soft); }
.noimg.big { aspect-ratio: 1; }

/* product page */
.product { padding-top: 24px; padding-bottom: 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; } .crumbs a { color: var(--muted); }
.pgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.gallery .gmain img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.zoomov { position: fixed; inset: 0; z-index: 100; background: rgba(10, 15, 25, .92); display: flex; align-items: center; justify-content: center; }
.zoomov img { width: 96vw; height: 90vh; object-fit: contain; }      /* as big as the screen allows */
.zoomov button { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.zoomov button:hover { background: rgba(255,255,255,.3); } .zoomov .zx { top: 14px; right: 14px; } .zoomov .zp { left: 14px; top: 50%; transform: translateY(-50%); }
.zoomov .zn { right: 14px; top: 50%; transform: translateY(-50%); } .zoomov .zc { position: absolute; bottom: 14px; color: #ddd; font-size: 14px; }
.gthumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gthumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.gthumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo h1 { margin-top: 8px; }
.ribbon.static { position: static; display: inline-block; }
.buy { display: grid; gap: 12px; margin-top: 10px; }
.opt { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.optrow { display: flex; gap: 8px; align-items: center; }
.optrow select { flex: 1; min-width: 0; }
.optpic { flex: none; width: 52px; height: 52px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: zoom-in; }
.optpic[hidden] { display: none; }
.optpic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.opt select, .opt input, .qtyrow input { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qtyrow label { display: inline-grid; gap: 4px; font-size: 14px; font-weight: 600; } .qtyrow input { width: 90px; }
.pricebig { font-size: 26px; font-weight: 800; color: var(--navy); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn.alt2 { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.buymsg { font-size: 14px; }
.ptext { margin-top: 34px; max-width: 860px; }
.psec { border-top: 1px solid var(--line); padding: 12px 0; } .psec summary { font-weight: 700; cursor: pointer; color: var(--navy); }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; gap: 20px; } }

/* cart, checkout, forms */
table.cart { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
table.cart th, table.cart td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cart .num { text-align: right; white-space: nowrap; } table.cart .qty { width: 64px; padding: 6px; }
.link { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.total { font-size: 17px; }
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 18px 0; }
.checkout .wide { grid-column: 1 / -1; }
.fld { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.fld input, .fld textarea, .fld select { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fld.check { display: flex; align-items: center; gap: 8px; }
.radio { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.meetbox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; } .meetbox[hidden] { display: none; } .meetbox p { grid-column: 1 / -1; margin: 0; }
.bank { background: var(--soft); border-radius: 8px; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 14px; }
.msg.ok { background: #e7f6ec; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; }
@media (max-width: 640px) { .checkout, .meetbox { grid-template-columns: 1fr; } }

.loginlink { font-weight: 600; color: var(--muted) !important; }
fieldset.fld { border: 0; padding: 0; margin: 0; } fieldset.fld legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.addrgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; } .addrgrid .wide { grid-column: 1 / -1; }
#newaddr { grid-column: 1 / -1; } #newaddr[hidden] { display: none; }
.abpick { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font-weight: 400; }
@media (max-width: 640px) { .addrgrid { grid-template-columns: 1fr; } }
.checkout h2 { margin: 18px 0 0; font-size: 22px; }
.checkout small { font-weight: 400; }
#addrfields[hidden] { display: none; }
/* product Specs (from the product's specs: also the user manual's Specs section) */
.psec table.specs { border-collapse: collapse; width: 100%; margin: 4px 0 12px; } .psec table.specs th, .psec table.specs td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.psec table.specs th { width: 40%; font-weight: 600; color: var(--navy); } .psec h4 { margin: 12px 0 4px; }
/* product sections fold open / closed with + / − (Description, Specs, Contents, …) */
.psec summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; }
.psec summary::-webkit-details-marker { display: none; }
.psec summary::after { content: "+"; font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--navy); }
.psec[open] summary::after { content: "−"; }
.psec > div { padding-top: 8px; }
.psec ul.contents { margin: 4px 0 12px; padding-left: 22px; } .psec ul.contents li { margin: 3px 0; }

.psku { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }

/* header right: who is signed in (like the client portal) and the cart button */
.acct { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.loginlink { text-decoration: none; white-space: nowrap; }
.who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; font-size: 14px; color: var(--muted); text-align: right; }
.who b { color: var(--ink); } .who > a { text-decoration: none; }
.cartbtn { position: relative; color: var(--ink); display: flex; padding: 4px; } .cartbtn:hover { color: var(--orange); }
.cartn { position: absolute; top: -4px; right: -8px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
         border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cartn[hidden] { display: none; }
@media (max-width: 820px) { .who { font-size: 12px; max-width: 160px; } .acct { gap: 12px; } }
/* side cart */
.cdim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.cdraw { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 61; display: flex; flex-direction: column;
         transform: translateX(100%); transition: transform .25s; box-shadow: -4px 0 24px rgba(0, 0, 0, .15); }
.cdopen .cdim { opacity: 1; pointer-events: auto; } .cdopen .cdraw { transform: none; }
.cdhead { display: flex; align-items: center; gap: 6px; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 18px; }
.cdx { margin-left: auto; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
.cdbody { flex: 1; overflow-y: auto; padding: 4px 20px; } .cdbody h3 { font-size: 16px; margin: 18px 0 0; }
.cdline { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cdpic { flex: 0 0 72px; height: 72px; background: var(--soft); border-radius: 6px; overflow: hidden; } .cdpic img { width: 100%; height: 100%; object-fit: cover; }
.cdtxt { flex: 1; min-width: 0; font-size: 14px; } .cdtxt > a { text-decoration: none; color: var(--ink); }
.cdrow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cdqty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.cdqty button { background: none; border: 0; width: 30px; height: 30px; font-size: 18px; cursor: pointer; color: var(--ink); } .cdqty span { min-width: 22px; text-align: center; }
.cdrm { align-self: flex-start; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.cdfoot { border-top: 1px solid var(--line); padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.cdfoot p { margin: 0; } .cdfoot .btn { text-align: center; } .cdtot { display: flex; justify-content: space-between; font-size: 17px; } .small { font-size: 13px; }
/* RFQ: notice before asking for a meeting */
.mdlg { border: 0; border-radius: 12px; padding: 24px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.mdlg::backdrop { background: rgba(0, 0, 0, .4); } .mdlg h2 { font-size: 22px; } .mdlg p { margin: 0 0 12px; }
.catbanner { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin: 4px 0 18px; }
/* product page › Downloads: a tile per document (first page / picture), Open and Download over it */
.dltiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 4px 0 8px; }
.dltile { position: relative; }
.dlface { position: relative; text-decoration: none; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--soft); border: 1px solid var(--line);
          border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: box-shadow .15s, transform .15s; }
.dlface:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transform: translateY(-1px); }
.dlface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.dlext { font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 6px; padding: 8px 12px; }
.dlbtns { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.dlbtns a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 30, 45, .72);
            color: #fff; text-decoration: none; transition: background .15s; }
.dlbtns a:hover { background: var(--orange); }
.dlname { font-weight: 600; font-size: 14px; margin-top: 8px; line-height: 1.3; color: var(--ink); }
.dlmeta { font-size: 12px; color: var(--muted); }

/* RFQ meeting picker */
.meetbox { display: block !important; } .meetbox[hidden] { display: none !important; }
.mp-how { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.mp-pill input { position: absolute; opacity: 0; pointer-events: none; }
.mp-pill span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
                font-weight: 600; font-size: 15px; transition: all .15s; background: #fff; }
.mp-pill input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(27, 74, 114, .25); }
.mp { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: linear-gradient(180deg, #fff, #f7f9fc); box-shadow: 0 6px 24px rgba(15, 34, 54, .06); }
.mp-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mp-head b { font-size: 17px; color: var(--navy); }
.mp-tz { font-size: 13px; color: var(--muted); } .mp-tz select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; max-width: 260px; background: #fff; }
.mp-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.mp-day { flex: none; width: 62px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 0; cursor: pointer; display: grid; gap: 1px;
          text-align: center; font: inherit; transition: all .15s; }
.mp-day small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .mp-day b { font-size: 20px; color: var(--ink); }
.mp-day:hover { border-color: var(--orange); }
.mp-day.off { opacity: .55; }
.mp-day.on { background: var(--orange); border-color: var(--orange); box-shadow: 0 4px 14px rgba(229, 121, 42, .35); } .mp-day.on b, .mp-day.on small { color: #fff; }
.mp-legend { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; } .lg.in { background: #dcfce7; border: 1px solid #22c55e; } .lg.out { background: #fff7ed; border: 1px solid #fdba74; }
.mp-all { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; }
.mp-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 2px; }
.mp-slot { border-radius: 10px; padding: 8px 4px; cursor: pointer; font: inherit; display: grid; gap: 1px; text-align: center; transition: transform .1s, box-shadow .15s; }
.mp-slot b { font-size: 15px; } .mp-slot small { font-size: 11px; color: var(--muted); }
.mp-slot.in { background: #f0fdf4; border: 1.5px solid #86efac; } .mp-slot.out { background: #fffaf3; border: 1.5px solid #fed7aa; }
.mp-slot:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.mp-slot:disabled { opacity: .35; cursor: not-allowed; }
.mp-slot.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(27, 74, 114, .35); } .mp-slot.on small { color: #cfe0ef; }
.mp-sum { margin-top: 16px; }
.mp-card.wait b { color: #b8c2cc; } .mp-card.drov.wait b { color: #6f8aa3; } .mp-card.wait span { font-weight: 600; color: var(--ink); } .mp-card.drov.wait span { color: #fff; }
@keyframes mpin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mp-cards { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mp-card { border-radius: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); display: grid; gap: 2px; }
.mp-card small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mp-card b { font-size: 30px; line-height: 1.1; color: var(--navy); } .mp-card span { font-weight: 600; } .mp-card em { font-style: normal; color: var(--muted); font-size: 14px; }
.mp-card.drov { background: linear-gradient(135deg, var(--navy), #0f2236); border: 0; color: #fff; } .mp-card.drov b { color: #fff; } .mp-card.drov small, .mp-card.drov em { color: #cfe0ef; }
.mp-arrow { font-size: 22px; color: var(--orange); }
.mp-diff { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.mp-ok { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 14px; }
.mp-warn { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 14px; border-left: 4px solid var(--orange); }
@media (max-width: 560px) { .mp-cards { grid-template-columns: 1fr auto 1fr; gap: 6px; } .mp-card { padding: 10px; } .mp-card b { font-size: 22px; }
  .mp-card span, .mp-card em { font-size: 12.5px; } .mp-arrow { font-size: 16px; } .mp-sum .mp-warn, .mp-sum .mp-ok, .mp-sum .mp-diff { font-size: 12.5px; } }
.checkout > * { min-width: 0; } .mp, .mp-days { max-width: 100%; }
.mp-tz { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tzbox { position: relative; }
.tzbox input { font: inherit; font-size: 14px; color: var(--ink); width: 250px; max-width: 62vw; padding: 7px 30px 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6874' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3 3'/%3E%3C/svg%3E") no-repeat right 9px center; }
.tzbox input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 74, 114, .12); }
.tzlist { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; max-width: 86vw; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(15, 34, 54, .18); z-index: 20; padding: 6px; }
.tzlist[hidden] { display: none; }
.tzlist button { display: grid; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.tzlist button small { color: var(--muted); font-size: 12px; }
.tzlist button:hover, .tzlist button.on { background: #f1f5f9; }
.tzlist p { margin: 8px 10px; color: var(--muted); font-size: 14px; }
.mp-key { margin-left: auto; } .mp-key b { color: var(--ink); } .mp-key small { font-size: 12px; }

/* day tiles: same colours as the times (green = has office-hour times, orange = none, navy = selected; dot = the chosen meeting day) */
.mp-day.in { background: #f0fdf4; border-color: #86efac; } .mp-day.out { background: #fffaf3; border-color: #fed7aa; }
.mp-day.off { opacity: 1; }
.mp-day:hover { border-color: var(--navy); }
.mp-day.on { background: var(--navy); border-color: var(--navy); box-shadow: 0 6px 16px rgba(27, 74, 114, .35); } .mp-day.on b, .mp-day.on small { color: #fff; }
.mp-day { position: relative; }
.mp-day.has::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.budget { display: flex; max-width: 320px; } .budget select { flex: none; width: 88px; border-radius: 8px 0 0 8px; border-right: 0; font-weight: 600; }
.budget input { flex: 1; min-width: 0; border-radius: 0 8px 8px 0; }
/* header right, signed in (as in the client portal): Chat button, then picture + first name opening a menu */
#who { display: flex; align-items: center; gap: 10px; }
#who .topchat { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--navy); box-shadow: 0 1px 3px rgba(16,24,40,.08); transition: transform .15s, box-shadow .15s; }
#who .topchat:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,24,40,.14); }
#who .nbadge { position: absolute; top: -5px; right: -6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 12px; line-height: 18px; text-align: center; font-weight: 700; }
.usermenu { position: relative; }
.userchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(16,24,40,.08); transition: transform .15s, box-shadow .15s; }
.userchip:hover, .userchip.open { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,24,40,.14); }
.userchip .uchev { color: var(--muted); transition: transform .2s; } .userchip.open .uchev { transform: rotate(180deg); }
.uav { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: linear-gradient(135deg, #0b5cad, #e8711c); color: #fff; font-size: 12px; font-weight: 800; }
img.uav { display: block; } .uav.lg { width: 44px; height: 44px; font-size: 15px; }
.udrop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16,24,40,.18); padding: 6px; text-align: left; }
.udrop[hidden] { display: none; }
.uhead { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; line-height: 1.3; }
.uhead b { font-size: 15px; color: var(--ink); } .uhead .sub { font-size: 12px; color: var(--muted); }
.udrop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.udrop a svg { color: var(--muted); } .udrop a:hover { background: var(--soft); } .udrop a:hover svg { color: var(--orange); }
.udrop .ulogout { color: #dc2626; } .udrop .ulogout svg { color: #dc2626; } .udrop .ulogout:hover { background: rgba(220,38,38,.08); }
.usep { height: 1px; background: var(--line); margin: 4px 6px; }
@media (max-width: 820px) { .userchip .uname, .userchip .uchev { display: none; } .userchip { padding: 3px; } #who { gap: 7px; } }
.optmulti { border: 0; padding: 0; margin: 0; } .optmulti legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.optchk { display: flex; gap: 8px; align-items: center; font-weight: 400; padding: 3px 0; cursor: pointer; } .optchk input { width: auto; margin: 0; }
.ppask { border: 1px solid #fed7aa; background: #fff7ed; border-radius: 12px; padding: 12px 14px; margin: 10px 0; } .ppask p { margin: 4px 0 0; color: #7c2d12; }

/* RFQ › add products from the shop */
.rfqadd { margin: 10px 0 18px; } .rfqadd input[type=search] { display: block; width: 100%; margin: 6px 0; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rfqp .qty { font: inherit; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.rfqp { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rfqp img, .rfqp .noimg { width: 56px; height: 42px; object-fit: contain; border-radius: 6px; background: #fff; flex: none; }
.rfqp span { flex: 1; min-width: 0; } .rfqp small { display: block; } .rfqp .qty { width: 70px; }

.rfqbox { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 6px; } .rfqbox .rfqadd label { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; }

/* home page: the client portal showcase */
.portalband { background: linear-gradient(180deg, #f3f8fc 0%, #e6f0f8 100%); overflow: hidden; }
.psplit { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.pkicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e8711c; margin-bottom: 6px; }
.ptext h2 { margin-top: 0; } .ptext p { font-size: 17px; }
.pchecks { list-style: none; padding: 0; margin: 18px 0 24px; }
.pchecks li { position: relative; padding-left: 32px; margin: 10px 0; }
.pchecks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #e8711c; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ptext .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pshots { position: relative; padding-bottom: 40px; }
.pframe { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(10, 40, 80, .35), 0 0 0 1px rgba(10, 40, 80, .08); }
.pframe img { display: block; width: 100%; height: auto; }
.pbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f6; border-bottom: 1px solid #dde4ec; }
.pbar i { width: 10px; height: 10px; border-radius: 50%; background: #f26b5b; } .pbar i:nth-child(2) { background: #f5bd4f; } .pbar i:nth-child(3) { background: #5fc454; }
.pbar span { margin-left: 10px; font-size: 12px; color: #6b7c8f; background: #fff; border-radius: 6px; padding: 2px 10px; }
.pframe.small { position: absolute; width: 48%; left: -6%; bottom: 0; transform: rotate(-3deg); }
@media (max-width: 860px) { .psplit { grid-template-columns: 1fr; gap: 28px; } .pframe.small { display: none; } .pshots { padding-bottom: 0; } }
