.cg-dialog.cg-public-product {
  --product-ink: #191919;
  --product-secondary: #57534e;
  --product-border: #e2dfda;
  --product-neutral: #f3f1ee;
  --product-accent: #255f49;
  width: min(1260px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 1px solid var(--product-border);
  border-radius: 18px;
  background: #fff;
  color: var(--product-ink);
  font-family: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 80px #211b173d;
}

.cg-dialog.cg-public-product::backdrop { background: #1919197a; }

.cg-dialog.cg-public-product > header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 14px 5px 22px;
  border-bottom: 1px solid var(--product-border);
  background: #fff;
  color: var(--product-ink);
  touch-action: none;
}

.cg-public-product .product-window-label {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--product-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.cg-public-product > header .cg-close {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f2f1;
  color: var(--product-ink);
  font-size: 25px;
  line-height: 1;
}

.cg-public-product > header .cg-close:hover { background: #e8e7e5; }

.cg-public-product > .cg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.6vw, 38px);
  padding: clamp(16px, 2vw, 26px);
}

.cg-public-product .cg-media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
}

.cg-public-product .cg-stage {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: max(180px, calc(100dvh - 205px));
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
  background: var(--product-neutral);
  overflow: hidden;
  touch-action: pan-y;
  cursor: default;
}

.cg-public-product .cg-stage > img {
  position: absolute;
  inset: 0;
  display: block;
  width: min(100%, calc(100cqh * var(--product-photo-ratio, 1)));
  height: min(100%, calc(100cqw / var(--product-photo-ratio, 1)));
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transform-origin: 50% 50%;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
}

.cg-public-product .cg-stage { container-type: size; }
.cg-public-product .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] {
  --portrait-height: min(570px, max(180px, calc(100dvh - 205px)));
  width: min(100%, calc(var(--portrait-height) * var(--product-frame-ratio, .72)));
  aspect-ratio: var(--product-frame-ratio, .72);
  justify-self: center;
}

.cg-public-product .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

@media (min-width: 821px) {
  .cg-dialog.cg-public-product:has(.cg-stage[data-photo-shape="portrait"]) {
    width: min(1010px, calc(100% - 40px));
  }

  .cg-public-product > .cg-layout:has(.cg-stage[data-photo-shape="portrait"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  }
}

.cg-public-product .cg-stage.cg-is-zoomed > img { cursor: grab; }
.cg-public-product .cg-stage.cg-is-zoomed > img:active { cursor: grabbing; }

.cg-public-product .cg-stage .cg-prev,
.cg-public-product .cg-stage .cg-next {
  top: calc(50% - 22px);
  z-index: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #d8d6d1;
  border-radius: 50%;
  background: #fff !important;
  color: var(--product-ink);
  font-size: 25px !important;
  line-height: 1;
  box-shadow: 0 2px 9px #1b171323;
}

.cg-public-product .cg-stage .cg-prev { left: 10px; }
.cg-public-product .cg-stage .cg-next { right: 10px; }

.cg-public-product .cg-stage .cg-prev:hover,
.cg-public-product .cg-stage .cg-next:hover { background: #f7f7f6 !important; }

.cg-public-product .cg-status {
  z-index: 2;
  bottom: 9px;
  width: max-content;
  max-width: calc(100% - 24px);
  color: var(--product-ink);
  background: #fff;
}

.cg-public-product .cg-placeholder,
.cg-public-product .cg-placeholder b { color: var(--product-secondary); }

.cg-public-product .cg-tools {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-end;
  margin: 0;
}

.cg-public-product .cg-count {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 18px;
  background: #fff;
  color: var(--product-ink);
  font-size: 12px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.cg-dialog.cg-public-product .cg-tools :is(.cg-zoom, .cg-inline-reset, .cg-video-audio) {
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: #f4f3f1;
  color: var(--product-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.cg-dialog.cg-public-product .cg-tools :is(.cg-zoom, .cg-inline-reset, .cg-video-audio):hover {
  background: #ebe9e6;
}

.cg-dialog.cg-public-product .cg-tools .cg-inline-reset {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  background: #fff;
  box-shadow: 0 1px 6px #19191926;
}

.cg-public-product .cg-thumbs {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 2px 2px 3px;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: #aba7a0 #fff;
  touch-action: auto;
}

.cg-public-product .cg-thumbs button {
  width: clamp(58px, 6.4vw, 76px);
  min-width: clamp(58px, 6.4vw, 76px);
  height: clamp(58px, 6.4vw, 76px);
  min-height: clamp(58px, 6.4vw, 76px);
  padding: 3px;
  border: 1px solid var(--product-border);
  border-radius: 9px;
  background: #f4f2ef !important;
  box-shadow: none;
}

.cg-public-product .cg-thumbs button[aria-current="true"] { border: 2px solid var(--product-ink); }
.cg-public-product .cg-thumbs button > span { color: var(--product-ink); }
.cg-public-product .cg-thumbs .cg-video-thumb { isolation: isolate; }

.cg-public-product .cg-video-thumb .cg-video-glyph {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ece9e5;
  border-radius: 50%;
  background: #fff;
  color: #191919;
  font-size: 15px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.cg-public-product .cg-video-thumb .cg-video-caption {
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  border-radius: 3px;
  background: #191919dc;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.cg-public-product .cg-stage[data-media-kind="video"] {
  background: #1f1e1d;
  touch-action: auto;
}

.cg-public-product .cg-stage > .cg-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: auto;
}

.cg-public-product .cg-stage[data-media-kind="video"] :is(.cg-prev, .cg-next) {
  top: calc(50% - 22px);
}

.cg-public-product .cg-bottom {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 3px 0 0;
  background: #fff;
}

.cg-public-product .product-category {
  margin: 0 0 5px;
  color: var(--product-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.cg-dialog.cg-public-product .product-heading h2 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(24px, 2.25vw, 34px);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -.024em;
  text-wrap: pretty;
}

.cg-public-product .cg-summary {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--product-border);
}

.cg-public-product .cg-summary strong {
  color: var(--product-ink);
  font-size: clamp(21px, 2vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.cg-public-product .cg-help { display: none; }

.cg-public-product .store-contact-actions {
  margin: 0;
  padding: 0;
}

.cg-public-product .store-offer-label {
  margin: 0 0 7px;
  color: var(--product-secondary);
  font-size: 14px;
}

.cg-public-product .store-contact-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 8px;
}

.cg-public-product .store-contact-links a {
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid #bdbab5;
  border-radius: 24px;
  background: #fff;
  color: var(--product-ink);
  font-size: 14px;
  text-align: center;
}

.cg-public-product .store-contact-links .store-whatsapp {
  border-color: var(--product-accent);
  background: var(--product-accent);
  color: #fff;
}

.cg-public-product .store-contact-links .store-whatsapp:only-child { grid-column: 1 / -1; }

.cg-public-product .product-benefits {
  display: grid;
  gap: 9px;
  margin: 3px 0 0;
  padding: 14px;
  border: 1px solid var(--product-border);
  border-radius: 12px;
  background: #faf9f7;
}

.cg-public-product .product-benefits-title {
  margin: 0;
  color: var(--product-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.cg-public-product .product-benefit {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 9px;
  align-items: start;
  min-width: 0;
}

.cg-public-product .product-benefit + .product-benefit {
  padding-top: 8px;
  border-top: 1px solid var(--product-border);
}

.cg-public-product .product-benefit-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2e5c8;
  color: #624415;
  font-size: 16px;
  line-height: 1;
}

.cg-public-product .product-benefit-icon svg { width: 16px; height: 16px; }

.cg-public-product .product-benefit-title {
  margin: 0;
  color: var(--product-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.cg-public-product .product-benefit-text {
  margin: 3px 0 0;
  color: var(--product-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.cg-public-product .product-benefit a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  color: var(--product-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-underline-offset: 3px;
}

.cg-dialog.cg-public-product .shop-product-meta {
  margin: 0 !important;
  padding: 0;
  color: var(--product-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.cg-dialog.cg-public-product .shop-product-availability {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.cg-dialog.cg-public-product .shop-product-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 5px 12px;
  margin: 0 !important;
}

.cg-dialog.cg-public-product .shop-product-actions .shop-product-add {
  flex: 1 0 100%;
  min-height: 46px;
  border: 1px solid #272727;
  border-radius: 24px;
  background: #272727;
  color: #fff;
}

.cg-dialog.cg-public-product .shop-product-actions .shop-product-add:disabled {
  border-color: #e6e4e0;
  background: #f3f2f0;
  color: var(--product-secondary);
}

.cg-dialog.cg-public-product .shop-product-actions button:not(.shop-product-add) {
  width: auto;
  min-height: 44px;
  padding: 4px 1px;
  border: 0;
  background: transparent;
  color: var(--product-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cg-dialog.cg-public-product :is(a, button, header):focus-visible,
.cg-dialog.cg-public-product .cg-stage > img:focus-visible {
  outline: 2px solid #383838;
  outline-offset: 2px;
}

.cg-dialog.cg-public-product > header:focus-visible { outline-offset: -3px; }

.cg-public-fullscreen.cg-fullscreen,
.cg-public-fullscreen.cg-fullscreen::backdrop {
  background: #f5f3f0;
  color: #191919;
}

.cg-fullscreen.cg-public-fullscreen :is(.cg-full-top, .cg-full-bottom) { background: #fff; }
.cg-fullscreen.cg-public-fullscreen .cg-full-viewport { background: #f5f3f0; }
.cg-fullscreen.cg-public-fullscreen :is(.cg-full-status, .cg-full-help) { color: #47433f; }

.cg-fullscreen.cg-public-fullscreen button {
  border-color: #d5d1cb;
  background: #f4f3f1;
  color: #191919;
}

.cg-fullscreen.cg-public-fullscreen button:focus-visible {
  outline: 2px solid #383838;
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .cg-dialog.cg-public-product {
    width: min(580px, calc(100% - 12px));
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }

  .cg-public-product > .cg-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding: 8px 10px max(14px, env(safe-area-inset-bottom));
  }

  .cg-dialog.cg-public-product > header { padding: 3px 7px 3px 12px; }

  .cg-public-product .cg-stage {
    aspect-ratio: 1.07;
    max-height: max(160px, 54dvh);
    border-radius: 9px;
  }

  .cg-public-product .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] {
    --portrait-height: min(440px, 51dvh);
    max-height: var(--portrait-height);
  }

  .cg-public-product .cg-stage .cg-prev { left: 5px; }
  .cg-public-product .cg-stage .cg-next { right: 5px; }

  .cg-public-product .cg-thumbs button {
    width: clamp(52px, 15vw, 70px);
    min-width: clamp(52px, 15vw, 70px);
    height: clamp(52px, 15vw, 70px);
    min-height: clamp(52px, 15vw, 70px);
  }

  .cg-public-product .cg-bottom { gap: 9px; }
  .cg-public-product .product-benefits { padding: 12px; }
  .cg-public-product .product-benefit a { min-height: 44px; }
}

@media (max-width: 360px) {
  .cg-public-product > .cg-layout { padding-inline: 8px; }
  .cg-dialog.cg-public-product .product-heading h2 { font-size: 22px; }
}

/* Give the team and shared galleries the same position for photo controls. */
.cg-dialog.cg-photo-gallery:not(.cg-public-product) .cg-count {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 16px;
  background: #fff;
  color: #191919;
  font-size: 12px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.cg-dialog.cg-photo-gallery:not(.cg-public-product) .cg-media { position: relative; }

.cg-dialog.cg-photo-gallery:not(.cg-public-product) .cg-inline-reset {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  min-height: 44px;
  padding: 5px 11px;
  border-color: #e2dfda;
  background: #fff;
  color: #191919;
  font-size: 13px;
}

/* Stack the gallery on narrow screens and touch tablets in portrait. */
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) {
  .cg-dialog.cg-photo-gallery {
    width: min(600px, 100%);
    max-width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #191919;
  }

  .cg-dialog.cg-photo-gallery > header {
    min-height: 48px;
    box-sizing: border-box;
    padding: 2px max(8px, env(safe-area-inset-right)) 2px max(14px, env(safe-area-inset-left));
    border-bottom: 1px solid #e7e5e1;
    background: #fff;
  }

  .cg-dialog.cg-photo-gallery > header .cg-close {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f4f3f1;
    color: #191919;
  }

  .cg-dialog.cg-photo-gallery > .cg-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 0 max(16px, env(safe-area-inset-bottom));
  }

  .cg-dialog.cg-photo-gallery .cg-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .cg-dialog.cg-photo-gallery .cg-stage {
    position: relative;
    display: grid;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 66dvh;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 0;
    background: #f4f3f0;
    overflow: hidden;
    container-type: size;
    touch-action: pan-y;
  }

  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="landscape"] {
    aspect-ratio: var(--product-photo-ratio, 1.3333);
  }

  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="square"] {
    aspect-ratio: 1;
  }

  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] {
    width: 100%;
    max-height: min(670px, 75dvh);
    aspect-ratio: var(--product-frame-ratio, .70);
  }

  .cg-dialog.cg-photo-gallery .cg-stage > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    object-position: center;
    transform-origin: center;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
  }

  .cg-dialog.cg-photo-gallery .cg-stage.cg-is-zoomed > img { touch-action: none; }

  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] > img {
    object-fit: cover;
    object-position: center 2%;
  }

  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="video"] {
    background: #1f1e1d;
    touch-action: auto;
  }

  .cg-dialog.cg-photo-gallery .cg-count {
    position: absolute;
    top: 8px;
    left: max(8px, env(safe-area-inset-left));
    z-index: 1;
    padding: 4px 8px;
    border-radius: 16px;
    background: #fff;
    color: #191919;
    font-size: 12px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }

  .cg-dialog.cg-photo-gallery .cg-stage :is(.cg-prev, .cg-next) {
    top: calc(50% - 22px);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #e2dfda;
    border-radius: 50%;
    background: #fffffff2 !important;
    color: #191919;
    box-shadow: 0 1px 7px #19191926;
  }

  .cg-dialog.cg-photo-gallery .cg-stage .cg-prev { left: max(7px, env(safe-area-inset-left)); }
  .cg-dialog.cg-photo-gallery .cg-stage .cg-next { right: max(7px, env(safe-area-inset-right)); }

  .cg-dialog.cg-photo-gallery .cg-thumbs {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 7px max(8px, env(safe-area-inset-right)) 5px max(8px, env(safe-area-inset-left));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-padding-inline: 8px;
    touch-action: pan-x;
  }

  .cg-dialog.cg-photo-gallery .cg-thumbs::-webkit-scrollbar { display: none; }

  .cg-dialog.cg-photo-gallery .cg-thumbs button {
    flex: 0 0 clamp(44px, 13vw, 57px);
    width: clamp(44px, 13vw, 57px);
    min-width: 44px;
    height: clamp(44px, 13vw, 57px);
    min-height: 44px;
    padding: 2px;
    border: 1px solid #dedbd5;
    border-radius: 7px;
    background: #f5f4f1 !important;
    box-shadow: none;
  }

  .cg-dialog.cg-photo-gallery .cg-thumbs button[aria-current="true"] { border: 2px solid #272725; }
  .cg-dialog.cg-photo-gallery .cg-thumbs button img { object-fit: cover; border-radius: 3px; }

  .cg-dialog.cg-photo-gallery .cg-tools {
    display: flex;
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-end;
    min-height: 0;
    margin: 0;
    padding: 0 max(9px, env(safe-area-inset-right)) 0 max(9px, env(safe-area-inset-left));
  }

  .cg-dialog.cg-photo-gallery .cg-tools :is(.cg-zoom, .cg-video-audio) {
    min-height: 44px;
    padding: 5px 11px;
    border: 0;
    border-radius: 8px;
    background: #f4f3f1;
    color: #191919;
    font-size: 13px;
    font-weight: 650;
  }

  .cg-dialog.cg-photo-gallery .cg-tools .cg-inline-reset { right: max(7px, env(safe-area-inset-right)); }

  .cg-dialog.cg-photo-gallery .cg-bottom {
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }
}

@media (min-width: 600px) and (pointer: coarse) and (orientation: portrait) {
  .cg-dialog.cg-photo-gallery.cg-public-product:has(.cg-stage[data-photo-shape="portrait"]) {
    width: min(600px, 100%);
  }
  .cg-dialog.cg-photo-gallery.cg-public-product > .cg-layout:has(.cg-stage[data-photo-shape="portrait"]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] {
    --portrait-limit: min(890px, 77dvh);
    width: min(100%, calc(var(--portrait-limit) * var(--product-frame-ratio, .70)));
    max-height: var(--portrait-limit);
    justify-self: center;
  }
}

/* Preserve the two-column layout in landscape and keep its controls touch-sized. */
@media (min-width: 821px) and (pointer: coarse) and (orientation: landscape) {
  .cg-dialog.cg-photo-gallery .cg-stage > img { touch-action: pan-y; }
  .cg-dialog.cg-photo-gallery .cg-stage.cg-is-zoomed > img { touch-action: none; }
  .cg-dialog.cg-photo-gallery .cg-media { grid-template-columns: minmax(0, 1fr); }
  .cg-dialog.cg-photo-gallery .cg-thumbs { grid-column: 1; grid-row: 2; scrollbar-width: none; }
  .cg-dialog.cg-photo-gallery .cg-tools { grid-column: 1; grid-row: 3; }
  .cg-dialog.cg-photo-gallery .cg-thumbs button {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
  }
}

@media (min-width: 601px) and (max-width: 820px) and (max-height: 600px) and (orientation: landscape) {
  .cg-dialog.cg-photo-gallery { width: min(760px, calc(100% - 16px)); }
  .cg-dialog.cg-photo-gallery > .cg-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .86fr);
    align-items: start;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .cg-fullscreen.cg-public-fullscreen {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100dvh;
    margin: 0;
    background: #fff;
    color: #191919;
  }

  .cg-fullscreen.cg-public-fullscreen:not([open]) { display: none; }
  .cg-fullscreen.cg-public-fullscreen::backdrop { background: #fff; }

  .cg-fullscreen.cg-public-fullscreen .cg-full-viewport {
    position: relative;
    inset: auto;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    background: #f4f3f0;
  }

  .cg-fullscreen.cg-public-fullscreen .cg-full-viewport img {
    min-width: 0;
    min-height: 0;
  }

  .cg-fullscreen.cg-public-fullscreen :is(.cg-full-top, .cg-full-bottom) {
    position: relative;
    inset: auto;
    gap: clamp(4px, 1.6vw, 9px);
    box-sizing: border-box;
    background: #fff;
  }

  .cg-fullscreen.cg-public-fullscreen .cg-full-top {
    grid-row: 1;
    padding: calc(3px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 3px max(12px, env(safe-area-inset-left));
    border-bottom: 1px solid #e7e5e1;
  }

  .cg-fullscreen.cg-public-fullscreen .cg-full-bottom {
    grid-row: 3;
    padding: 5px max(4px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    border-top: 1px solid #e7e5e1;
  }

  .cg-fullscreen.cg-public-fullscreen .cg-full-count {
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
  }

  .cg-fullscreen.cg-public-fullscreen button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-color: #e7e5e1;
    border-radius: 50%;
    background: #f8f7f5;
    color: #191919;
  }

  .cg-fullscreen.cg-public-fullscreen button:disabled { opacity: .45; }
  .cg-fullscreen.cg-public-fullscreen .cg-full-status { bottom: calc(61px + env(safe-area-inset-bottom)); }
  .cg-fullscreen.cg-public-fullscreen .cg-full-help { display: none; }
}

@media (max-width: 820px), (pointer: coarse) {
  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] {
    --full-portrait-height: min(850px, 82dvh);
    width: min(100%, calc(var(--full-portrait-height) * var(--product-photo-ratio, .5625)));
    max-height: var(--full-portrait-height);
    aspect-ratio: var(--product-photo-ratio, .5625);
    justify-self: center;
  }

  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .cg-dialog.cg-photo-gallery .cg-thumbs {
    margin-top: 6px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .cg-dialog.cg-photo-gallery .cg-stage[data-media-kind="photo"][data-photo-shape="portrait"] {
    --full-portrait-height: max(160px, calc(100dvh - 140px));
  }
}

.cg-fullscreen.cg-photo-immersive[open] {
  display: block;
  width: 100%;
  height: 100dvh;
  background: #f4f3f0;
}

.cg-fullscreen.cg-photo-immersive .cg-full-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cg-fullscreen.cg-photo-immersive .cg-full-viewport img {
  object-fit: contain;
  object-position: center;
}

.cg-fullscreen.cg-photo-immersive :is(.cg-full-top, .cg-full-bottom, .cg-full-status, .cg-full-help) {
  display: none;
}

.store-negotiation-note {
  margin: 4px 0 0;
  color: #a12420;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.store-negotiation-note .store-negotiation-chat {
  color: inherit;
  text-decoration: none;
}

.store-negotiation-note .store-negotiation-chat:hover { text-decoration: underline; }
.store-negotiation-note .store-negotiation-chat:focus-visible { outline: 2px solid #a12420; outline-offset: 2px; }
.store-negotiation-end { white-space: nowrap; }
.store-negotiation-end svg {
  width: 15px;
  height: 15px;
  vertical-align: -.23em;
  color: #177347;
}

.store-card .store-negotiation-note { font-size: 12px; }
.store-shared-heading { flex: 1; min-width: 0; }

.store-contact-links.store-negotiation-links { gap: 6px; }

.store-negotiation-links .store-whatsapp {
  flex-wrap: wrap;
  gap: 2px 6px;
}

.store-negotiation-links .store-contact-number {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .store-card .store-negotiation-links > a { flex-basis: 100%; }
}
