[data-product-tour] [hidden] { display: none !important; }
[data-product-tour] { position: relative; }
/* Keep the photo layout measurable while the tour is visible. It remains
   invisible and inaccessible, but Swiper can respond to viewport changes. */
[data-product-tour] #product-photo-panel[hidden] {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
/* A hidden viewer needs real dimensions to initialise its panorama correctly. */
[data-product-tour] #product-tour-panel[hidden] {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}
.product-media-tabs {
  display: flex;
  align-items: stretch;
  gap: 16px;
  border-bottom: 1px solid #e0e2e5;
  margin-bottom: 20px;
}
.product-media-tabs .product-media-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 125px;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #62676c;
  font: inherit;
  font-size: 21px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.product-media-tabs .product-media-tab + .product-media-tab::before {
  content: "";
  position: absolute;
  left: -9px;
  width: 1px;
  height: 24px;
  background: #aaadb1;
}
.product-media-tabs .product-media-tab[aria-selected="true"] {
  border-bottom-color: #f68019;
  color: #292c30;
  font-weight: 600;
}
.product-media-tabs #product-tour-tab[aria-selected="true"] { color: #aa4600; }
.product-media-tabs .product-media-tab:hover { color: #292c30; background: #fbf8f5; }
.product-media-tabs #product-tour-tab > span {
  display: block;
  flex: none;
  width: 25px;
  height: 25px;
  font-size: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9'/%3E%3Cpath fill-rule='evenodd' d='M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z'/%3E%3C/svg%3E");
  filter: invert(57%) sepia(85%) saturate(2637%) hue-rotate(351deg) brightness(102%);
}
.product-media-tab:focus-visible, .product-tour-dialog button:focus-visible, .product-tour-external a:focus-visible {
  outline: 3px solid #f68019;
  outline-offset: 3px;
}
.product-tour-panel { margin-bottom: 15px; }
.product-tour-stage {
  position: relative;
  height: var(--product-photo-height, 530px);
  overflow: hidden;
  border-radius: 10px;
  background: #1b2025;
}
.product-tour-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1b2025;
}
.product-tour-stage.is-loading iframe { visibility: hidden; }
.product-tour-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 20px;
  background: #1b2025;
  color: #fff;
  pointer-events: none;
}
.product-tour-status::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  border: 2px solid #ffffff40;
  border-top-color: #f68019;
  border-radius: 50%;
  animation: product-tour-spin .8s linear infinite;
}
@keyframes product-tour-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .product-tour-status::before { animation: none; } }
.product-tour-external {
  display: none;
}
.product-tour-stage.is-delayed .product-tour-external {
  display: block;
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.product-tour-external a { color: #2d3136; text-decoration: underline; }
.product-tour-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1b2025;
  color: #fff;
}
.product-tour-dialog:not([open]) { display: flex; flex-direction: column; visibility: hidden; pointer-events: none; }
.product-tour-dialog[open] { display: flex; flex-direction: column; }
.product-tour-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.product-tour-dialog-bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: #fff;
  color: #2d3136;
  font-weight: 600;
}
.product-tour-dialog-bar button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f7f8fa;
  color: #2d3136;
  font: inherit;
  cursor: pointer;
}
.product-tour-dialog-bar button span { font-size: 24px; line-height: 1; }
.product-tour-dialog-body { flex: 1; min-height: 0; padding-bottom: env(safe-area-inset-bottom); }
.product-tour-dialog-body .product-tour-stage { height: 100%; border-radius: 0; }
@media (max-width: 700px) {
  .product-media-tabs { margin-bottom: 14px; }
  .product-media-tabs .product-media-tab { flex: 1; min-width: 0; min-height: 51px; font-size: 16px; padding: 0 10px; }
  .product-media-tabs #product-tour-tab > span { width: 22px; height: 22px; }
}
