/* Product feature: scoped independently of the shop's utility CSS. */
.d3-product-link{width:100%;margin:20px 0 0}
.d3-open,.d3-open *{box-sizing:border-box}
.d3-open{display:flex;align-items:center;gap:22px;min-height:164px;padding:16px 24px 16px 12px;border:2px solid #c3dffc;border-radius:18px;background:linear-gradient(115deg,#eff6ff,#fff 72%);color:#14386c;text-decoration:none;box-shadow:0 8px 28px #071c5030;font-family:system-ui,-apple-system,sans-serif;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.d3-open:hover{transform:translateY(-2px);border-color:#6dc7ff;box-shadow:0 12px 34px #071c5040}
.d3-open:focus-visible,.d3-close:focus-visible,.d3-controls button:focus-visible{outline:3px solid #fbbf24;outline-offset:4px}
.d3-feature-image{display:block;flex:0 0 144px;width:144px;height:144px;object-fit:contain;border-radius:14px}
.d3-feature-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.d3-feature-label{font-size:10px;font-weight:800;line-height:1.4;letter-spacing:1.6px;color:#37669d}
.d3-feature-copy strong{font-size:clamp(21px,2vw,27px);line-height:1.15;letter-spacing:-.5px;color:#173d76}
.d3-feature-description{font-size:13px;line-height:1.45;color:#4b6484}
.d3-feature-action{display:inline-flex;align-items:center;gap:12px;margin-top:3px;padding:9px 14px;border-radius:9px;background:#205be9;color:#fff;font-size:13px;font-weight:750;line-height:1.25}
.d3-feature-action>span{font-size:18px;line-height:1}
/* Native HTML dialog stays inside this page. Its frame has explicit dimensions. */
.d3-dialog{box-sizing:border-box;padding:0;border:1px solid #dbe6f1;border-radius:20px;width:calc(100vw - 48px);max-width:1680px;height:calc(100vh - 48px);height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);margin:auto;background:#f4f7fb;overflow:hidden;box-shadow:0 24px 100px #00163288;color:#17304a}
.d3-dialog[open]{display:flex;flex-direction:column}
.d3-dialog::backdrop{background:#081a37c7;backdrop-filter:blur(5px)}
.d3-dialog-bar{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 58px;padding:8px 16px 8px 24px;background:#fff;border-bottom:1px solid #dce6f1;font:600 15px/1.3 system-ui,sans-serif}
.d3-close{display:block;min-height:40px;min-width:96px;padding:9px 17px;border:1px solid #ccd9e9;border-radius:10px;background:#edf3fb;color:#173b6c;font:700 14px/1.3 system-ui,sans-serif;cursor:pointer}
.d3-close:hover{background:#dceaff}
.d3-dialog iframe{display:block;flex:1 1 0;min-height:0;width:100%;height:calc(100% - 58px);border:0;background:#f4f7fb}
/* Viewer: the model gets all remaining height, the package scrolls separately. */
.d3-page{margin:0;background:#f4f7fb;color:#17304a;font-family:system-ui,-apple-system,sans-serif}
.d3-page *{box-sizing:border-box}
.d3-main{max-width:1800px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:20px;display:flex;flex-direction:column}
.d3-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:0 0 auto}
.d3-heading .eyebrow{margin:0 0 6px;font-size:10px;line-height:1.3;letter-spacing:1.5px;color:#45688c}
.d3-heading h1{font-size:clamp(19px,1.8vw,28px);line-height:1.2;margin:0;font-weight:750;letter-spacing:-.5px;max-width:1100px}
.d3-badge{background:#e5effb;color:#1b5aa5;border-radius:30px;padding:8px 12px;font-size:11px;white-space:nowrap}
.d3-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;margin-top:16px;flex:1;min-height:0}
.d3-stage{position:relative;min-width:0;background:radial-gradient(ellipse at 50% 38%,#fff 0,#e7eef8 100%);border:1px solid #d4e0ef;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-height:440px}
#d3-canvas{flex:1;min-height:330px;height:calc(100vh - 230px);height:calc(100dvh - 230px);touch-action:none;outline-offset:-4px}
#d3-canvas canvas{display:block;width:100%;height:100%;outline:none}
#d3-loading{position:absolute;left:15%;top:40%;width:70%;text-align:center;background:#ffffffec;padding:15px;border-radius:10px;color:#526778;font-size:14px}
#d3-loading[hidden]{display:none}
.d3-controls{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;padding:10px 10px 2px}
.d3-controls button{font:600 12px/1.25 system-ui,sans-serif;min-height:38px;padding:9px 12px;border:1px solid #cfdbeb;border-radius:8px;background:#fff;color:#234e82;cursor:pointer}
.d3-controls button:hover{background:#e5effd}
.d3-controls button[aria-pressed=true]{background:#205be9;color:white}
.d3-hint{font-size:11px;line-height:1.4;text-align:center;color:#526a88;margin:9px 8px 14px}
.d3-package{padding:20px;border:1px solid #dce5ef;border-radius:16px;background:#fff;align-self:start}
.d3-package .eyebrow{font-size:10px;letter-spacing:1.2px;margin-top:0;color:#45688c}
.d3-package h2{font-size:25px;line-height:1.12;letter-spacing:-.6px;margin:10px 0 16px;color:#17304a}
.d3-package>p{font-size:13px;line-height:1.5}
.d3-formats{display:flex;gap:7px}
.d3-formats span{padding:5px 10px;background:#eef4fc;color:#23578a;border-radius:7px;font:700 11px/1.5 system-ui;letter-spacing:.7px}
.d3-quality{border-left:3px solid #4a86c7;background:#f1f6fc;padding:11px 12px;margin:16px 0;font-size:12px;line-height:1.5}
.d3-quality p{margin:4px 0}
.d3-quality.estimated{border-color:#c5953d;background:#fbf7ed}
.d3-buy,.d3-claim{width:100%}
.d3-fine{font-size:11px;line-height:1.5;color:#64768a;margin:10px 0 18px}
.d3-claim{font-size:13px}
.d3-package .field{margin-top:16px}
@media(min-width:901px){.d3-page-embed .d3-main{height:100vh;height:100dvh;min-height:0}.d3-page-embed .d3-stage{min-height:0}.d3-page-embed #d3-canvas{height:0;min-height:160px}.d3-page-embed .d3-package{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}.d3-page-embed{overflow:hidden}}
@media(max-width:1100px) and (min-width:901px){.d3-layout{grid-template-columns:minmax(0,1fr) 280px}.d3-package{padding:16px}.d3-main{padding:16px}}
@media(max-width:900px){.d3-dialog{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.d3-dialog-bar{flex-basis:56px;padding:8px 12px 8px 16px}.d3-dialog iframe{height:calc(100% - 56px)}.d3-layout{grid-template-columns:1fr;gap:16px;margin-top:14px}.d3-main{padding:16px;min-height:100dvh}.d3-heading h1{font-size:20px}.d3-badge{display:none}.d3-stage{min-height:0}#d3-canvas{height:56vh;height:56dvh;min-height:300px;flex:0 0 auto}.d3-package h2 br{display:none}.d3-package{padding:20px}.d3-open{gap:14px;padding:12px}.d3-feature-image{flex-basis:110px;width:110px;height:110px}.d3-feature-copy strong{font-size:21px}.d3-feature-label{font-size:9px;letter-spacing:1px}.d3-feature-description{font-size:12px}.d3-feature-action{padding:9px 12px}}
@media(max-width:430px){.d3-open{min-height:154px;gap:10px}.d3-feature-image{flex-basis:90px;width:90px;height:90px}.d3-feature-copy strong{font-size:20px}.d3-feature-description{font-size:12px}.d3-feature-label{font-size:8px}.d3-main{padding:12px}.d3-controls{gap:5px}.d3-controls button{min-height:40px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.d3-open{transition:none}.d3-open:hover{transform:none}.d3-dialog::backdrop{backdrop-filter:none}}
