/* Scoped proposal for the canvas-product HTML module. */
.cqm {
  --cqm-ink: #252525;
  --cqm-muted: #666;
  --cqm-line: #dedede;
  color: var(--cqm-ink);
  font-family: var(--storefront-font, 'Roboto', sans-serif);
  font-size: 15px;
  line-height: 1.65;
}
.cqm *, .cqm *::before, .cqm *::after { box-sizing: border-box; }
.cqm h2, .cqm h3, .cqm p, .cqm dl, .cqm figure { margin: 0; }
.cqm h2, .cqm h3 { color: inherit; padding: 0; border: 0; background: none; box-shadow: none; text-transform: none; }
.cqm h2 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; }
.cqm h3 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.15px; }
.cqm h3::after, .cqm h3::before { content: none; }
.cqm .cqm-kicker { color: var(--cqm-muted); font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.cqm .cqm-head { margin-bottom: 28px; }
.cqm-head > p:last-child { color: var(--cqm-muted); margin-top: 10px; max-width: 780px; }
.cqm .cqm-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 38px; }
.cqm .cqm-video { display: block; width: 100%; height: auto; aspect-ratio: 274 / 125; background: #171717; border-radius: 10px; overflow: hidden; object-fit: contain; }
.cqm .cqm-media { position: relative; border-radius: 10px; overflow: hidden; }
.cqm .cqm-play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 16px; border: 0; border-radius: inherit; background: #0002; color: #fff; cursor: pointer; font: 500 14px/1.4 var(--storefront-font, 'Roboto', sans-serif); text-shadow: 0 1px 6px #000b; touch-action: manipulation; }
.cqm .cqm-play[hidden] { display: none; }
.cqm .cqm-play-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #222; box-shadow: 0 3px 14px #0002; }
.cqm .cqm-play-icon svg { width: 25px; height: 25px; margin-left: -2px; fill: currentColor; }
.cqm .cqm-play:hover .cqm-play-icon { background: #eee; }
.cqm .cqm-play:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.cqm .cqm-play:disabled { cursor: wait; }
.cqm figcaption { margin-top: 9px; color: var(--cqm-muted); font-size: 12px; line-height: 1.5; }
.cqm .cqm-film figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cqm .cqm-video-label { color: var(--cqm-ink); white-space: nowrap; font-size: 10px; letter-spacing: 1px; font-weight: 600; }
.cqm .cqm-copy > p { margin-top: 12px; }
.cqm .cqm-facts { margin-top: 22px; border-top: 1px solid var(--cqm-line); }
.cqm-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--cqm-line); }
.cqm .cqm-facts dt { color: var(--cqm-muted); font-size: 13px; font-weight: 400; }
.cqm .cqm-facts dd { margin: 0; color: var(--cqm-ink); font-size: 14px; font-weight: 600; text-align: right; }
.cqm .cqm-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; gap: 38px; margin-top: 36px; padding: 24px; border: 1px solid var(--cqm-line); border-radius: 12px; background: #fff; }
.cqm .cqm-detail-copy > p { margin-top: 12px; }
.cqm .cqm-detail-image { display: block; width: 100%; height: auto; border-radius: 7px; }
.cqm .cqm-help { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--cqm-line); }
.cqm .cqm-help h3 { max-width: 250px; }
.cqm .cqm-help details { border-bottom: 1px solid var(--cqm-line); }
.cqm .cqm-help summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 12px 0; list-style: none; cursor: pointer; font-size: 15px; line-height: 1.45; font-weight: 600; }
.cqm .cqm-help summary::-webkit-details-marker { display: none; }
.cqm .cqm-help summary::after { content: '+'; flex: 0 0 18px; color: var(--cqm-muted); text-align: center; font-size: 22px; font-weight: 400; line-height: 1; }
.cqm .cqm-help details[open] summary::after { content: '−'; }
.cqm .cqm-answer { padding: 0 28px 17px 0; color: #555; font-size: 14px; line-height: 1.65; }
.cqm .cqm-answer a { display: inline-block; margin-top: 8px; color: var(--cqm-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cqm :is(summary, a, video):focus-visible { outline: 2px solid #222; outline-offset: 4px; border-radius: 3px; }
@media (max-width: 800px) {
  .cqm .cqm-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cqm .cqm-detail { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
  .cqm .cqm-help { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .cqm .cqm-help h3 { max-width: none; }
}
@media (max-width: 480px) {
  .cqm h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.25px; }
  .cqm h3 { font-size: 20px; }
  .cqm .cqm-head { margin-bottom: 22px; }
  .cqm .cqm-head > p:last-child { font-size: 14px; }
  .cqm .cqm-detail { margin-top: 28px; padding: 18px; }
  .cqm .cqm-help { margin-top: 28px; padding-top: 24px; }
}

/* Integration with the existing storefront typography and button rules. */
.cqm { margin: 40px 0; }
.cqm h2, .cqm h3 { display: block; font-family: inherit; }
#content .cqm h2 { margin: 0; }
.cqm .cqm-facts dt, .cqm .cqm-facts dd { line-height: inherit; }
.cqm .cqm-play:active { transform: none; }

/* Still-photo variants in other existing PDP HTML modules; canvas video stays unchanged. */
.cqm[data-product-quality] :is(.cqm-main,.cqm-detail)>figure { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cqm[data-product-quality] .cqm-product-photo { display: block; width: auto; max-width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: 10px; }
.cqm[data-product-quality] .cqm-product-detail-photo { width: auto; max-width: 100%; max-height: 300px; object-fit: contain; }
.cqm[data-product-quality] figcaption { text-align: center; }
.cqm[data-product-quality] .cqm-size-guides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 18px; }
.cqm[data-product-quality] .cqm-size-table { width: 100%; font-size: 13px; line-height: 1.5; border-collapse: collapse; color: var(--cqm-ink); }
.cqm[data-product-quality] .cqm-size-table caption { padding: 0 0 8px; color: var(--cqm-ink); font-size: 14px; font-weight: 600; text-align: left; }
.cqm[data-product-quality] .cqm-size-table :is(th,td) { padding: 8px 5px; border-bottom: 1px solid var(--cqm-line); text-align: right; }
.cqm[data-product-quality] .cqm-size-table th:first-child { text-align: left; }
.cqm[data-product-quality] .cqm-size-guides a { font-size: 13px; }
@media(max-width:1000px){.cqm[data-product-quality] .cqm-size-guides{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.cqm[data-product-quality] .cqm-product-photo{max-height:330px}.cqm[data-product-quality] .cqm-product-detail-photo{max-height:260px}.cqm[data-product-quality] .cqm-size-table{font-size:12px}}
