/* Scoped to patterned shop cards and their comparison dialog. */
[data-bbpc-card] { position: relative; }
[data-bbpc-card] > .bbpc-chip {
  position: absolute; z-index: 3; top: 7px; left: 7px; display: block;
  box-sizing: border-box; width: clamp(83px, 39%, 110px); max-width: 46%; margin: 0;
  padding: 3px; border: 1px solid #8b7376; border-radius: 4px; background: #fffdf8; color: #382b3d;
  text-align: center; text-decoration: none; cursor: zoom-in; box-shadow: 0 1px 5px #35263540;
}
.bbpc-chip:hover, .bbpc-chip:focus-visible { outline: 2px solid #833311; }
.bbpc-chip:focus-visible, .bbpc-dialog :focus-visible { outline: 3px solid #833311; outline-offset: 2px; }
.bbpc-chip-detail { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 1.30; border-radius: 2px; background: #eee9e3; }
.bbpc-chip .bbpc-chip-photo { position: absolute; display: block; max-width: none !important; max-height: none !important; margin: 0; border: 0; border-radius: 0; object-fit: fill; }
.bbpc-chip .bbpc-chip-text { display: block; margin: 0; padding: 4px 0 2px; color: #382b3d; white-space: nowrap; letter-spacing: 0; text-transform: none; font: 600 clamp(9px,.78vw,11px)/1.1 'Work Sans',Arial,sans-serif; }
.bbpc-dialog {
  box-sizing: border-box; width: min(790px, calc(100vw - 24px)); max-width: none;
  max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; margin: auto;
  padding: clamp(16px, 3vw, 28px); border: 1px solid #bdaaaf; border-radius: 10px;
  background: #fffdf8; color: #382b3d; box-shadow: 0 18px 80px rgba(34,23,35,.25);
  font: 400 15px/1.45 'Work Sans', Arial, sans-serif; text-align: left;
}
.bbpc-dialog:not([open]) { display: none; }
.bbpc-dialog::backdrop { background: rgba(36,26,35,.66); }
.bbpc-dialog *, .bbpc-dialog *::before, .bbpc-dialog *::after { box-sizing: border-box; }
.bbpc-top { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; }
.bbpc-dialog h2 { margin: 0; color: #382b3d; font: 400 clamp(23px, 4vw, 34px)/1.12 Georgia, serif; }
.bbpc-dialog .bbpc-close { background: white; color: #493b47; border: 1px solid #c9bfc3; border-radius: 4px; font: 500 14px/1 'Work Sans', Arial, sans-serif; padding: 0 13px; min-height: 42px; cursor: pointer; }
.bbpc-choice { display: block; margin: 12px 0 14px; }
.bbpc-choice span, .bbpc-dialog figcaption { display: block; margin: 0 0 5px; color: #634950; font: 500 11px/1.3 'Roboto Mono', monospace; letter-spacing: .045em; text-transform: uppercase; }
.bbpc-choice select { display: block; width: min(100%, 390px); min-height: 42px; padding: 6px 28px 6px 9px; border: 1px solid #c3b5b9; border-radius: 4px; background: #fff; color: #382b3d; font: 400 16px/1.3 'Work Sans', Arial, sans-serif; }
.bbpc-comparison { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(8px, 2vw, 18px); align-items: start; }
.bbpc-dialog figure { margin: 0; }
.bbpc-overview, .bbpc-detail {
  position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; margin: 0;
  border: 1px solid #d2c5cb; border-radius: 4px; padding: 0; background: #f6f1eb; color: inherit;
}
.bbpc-overview { cursor: crosshair; touch-action: manipulation; }
.bbpc-dialog .bbpc-overview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; }
.bbpc-box { display: block; position: absolute; border: 2px solid #833311; outline: 1px solid white; box-shadow: inset 0 0 0 1px white; pointer-events: none; }
.bbpc-detail { background-repeat: no-repeat; }
.bbpc-dialog .bbpc-help { color: #594952; margin: 12px 0 0; font: 400 14px/1.45 'Work Sans', Arial, sans-serif; }
.bbpc-dialog .bbpc-product { display: inline-block; margin-top: 10px; color: #783211; text-decoration: underline; }
.bbpc-dialog [hidden] { display: none !important; }
@media (max-width:480px) {
  [data-bbpc-card] > .bbpc-chip { top: 4px; left: 4px; }
  .bbpc-dialog { padding: 14px; }
  .bbpc-choice select { width:100%; }
}
