/* Product-linked watch face studio. Load after styles.css.
   Hardware pixels and screen transforms are supplied by the product data. */
.watchface-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
  gap: 54px;
  margin-top: 38px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
}
.watch-preview-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 16px 22px 20px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #eaeaea;
  background: #fff;
  text-align: center;
}
.watch-preview-figure {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
  line-height: 0;
  transform: scale(var(--device-zoom, 1));
  transform-origin: center center;
  pointer-events: none;
}
.watch-preview-figure .watch-hardware {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.watch-display {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--screen-radius, 0px);
  background: #000;
  line-height: 0;
  transform-origin: 0 0;
  backface-visibility: hidden;
  pointer-events: none;
}
.watch-display img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}
.watch-display--round { border-radius: 50%; }
.watch-preview-caption {
  position: relative;
  z-index: 3;
  display: block;
  margin: 0;
  color: #262626;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}
.watch-preview-caption strong,
.watch-preview-caption h3 {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}
.watch-preview-caption small {
  display: block;
  margin-top: 3px;
  color: #777;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.6;
}
.watch-preview-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.watch-preview-actions button,
.watch-preview-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #dededc;
  border-radius: 5px;
  background: #ffffffed;
  color: #303030;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 180ms, border-color 180ms;
}
.watch-preview-actions button:hover,
.watch-preview-actions .button:hover {
  border-color: #b6b6b3;
  background: #fff;
}
.watch-preview-actions svg { width: 17px; height: 17px; }
.watch-preview-stage > .watch-preview-actions {
  position: relative;
  z-index: 4;
  margin: 14px 0 0;
}
.watch-preview-actions [aria-pressed="true"] { border-color: #ec8c0c; background: #fff8ee; }
.watch-studio-label { display: block; color: #414141; font-size: .875rem; font-weight: 500; }
.watch-studio-step .selected-face-name { display: block; margin: 5px 0 0; }
.face-swatch-image { display: grid; place-items: center; width: 100%; height: 83px; }
.watchface-studio > .watch-preview-stage { position: sticky; top: calc(var(--header-height, 88px) + 16px); z-index: 3; }
.watch-studio-panel { min-width: 0; padding-top: 2px; }
.watch-studio-step { margin-bottom: 23px; }
.watch-studio-step > label,
label.watch-studio-step {
  display: block;
  margin-bottom: 10px;
  color: #414141;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
}
.watch-studio-step h3,
.watch-studio-step .step-title {
  display: block;
  margin: 0 0 12px;
  color: #262626;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.watch-studio-step .eyebrow {
  margin-bottom: 10px;
  color: #b66500;
  font-size: .75rem;
  letter-spacing: .06em;
}
.watch-studio-panel #watchface-model {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin-top: 9px;
  padding: 12px 43px 12px 15px;
  appearance: none;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center;
  color: #242424;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.watch-studio-panel #watchface-model:focus-visible {
  outline: 2px solid var(--orange, #ff9000);
  outline-offset: 3px;
}
.watch-studio-model-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 15px 0 25px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #f5f6f8;
}
.watch-studio-model-card img {
  display: block;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.watch-studio-model-card > div,
.watch-studio-model-card > span { min-width: 0; }
.watch-studio-model-card strong,
.watch-studio-model-card h3 {
  display: block;
  margin: 0 0 4px;
  color: #242424;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
}
.watch-studio-model-card p,
.watch-studio-model-card small,
.watch-studio-model-card > div > span,
.watch-studio-model-card > span > span {
  display: block;
  margin: 0;
  color: #777;
  font-size: .8125rem;
  line-height: 1.6;
}
.watchface-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.face-swatch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  min-height: 151px;
  margin: 0;
  padding: 15px 8px 12px;
  overflow: hidden;
  border: 1px solid #e4e5e6;
  border-radius: 8px;
  background: #f7f8f9;
  color: #444;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, box-shadow 180ms;
}
.face-swatch:hover { border-color: #bdbfbe; background: #f0f2f3; }
.face-swatch[aria-pressed="true"] {
  border-color: #ec8c0c;
  background: #fff8ee;
  box-shadow: inset 0 0 0 1px #ec8c0c;
  color: #272727;
}
.face-swatch:focus-visible {
  outline: 3px solid var(--orange, #ff9000);
  outline-offset: 3px;
}
.face-swatch img {
  display: block;
  flex-shrink: 0;
  width: 68px;
  max-width: 100%;
  height: 83px;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
.face-swatch > span:last-child,
.face-swatch .face-swatch-name {
  display: block;
  width: 100%;
  min-height: 36px;
  font-size: .8125rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.face-swatch--original img { width: 83px; height: 83px; object-fit: contain; }
.selected-face-name {
  margin: 17px 0 7px;
  color: #303030;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.6;
}
.selected-face-name strong { font-weight: 500; }
.watchface-preview-note {
  margin: 10px 0 0;
  color: #777;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.75;
}
.watchface-compatibility {
  margin: 15px 0 0;
  padding: 11px 14px;
  border: 0;
  border-left: 2px solid #c7d1bd;
  border-radius: 0 6px 6px 0;
  background: #f3f6ef;
  color: #536149;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.7;
}
.watchface-compatibility strong { font-weight: 500; }
.watchface-compatibility--unverified,
.watchface-compatibility--preview-only {
  border-left-color: #d5c5ab;
  background: #f9f6ef;
  color: #766342;
}
.watchface-compatibility--original {
  border-left-color: #cfd1d4;
  background: #f4f5f6;
  color: #666;
}
.watchface-product-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 23px;
  padding-top: 23px;
  border-top: 1px solid #e8e8e8;
}
.watchface-product-cta .button { min-height: 44px; padding: 11px 20px; font-size: .875rem; }
.watchface-product-cta .text-link { font-size: .875rem; }
.watch-studio-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 32px;
}
.watch-studio-detail .watch-preview-stage { padding: 10px 12px 18px; }
.watch-studio-detail .watch-preview-figure { width: 100%; max-width: 520px; }
.watch-studio-detail h2 {
  margin-bottom: 18px;
  color: #242424;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.watch-studio-detail h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}
.watch-studio-detail p {
  color: #6c6c6c;
  font-size: .875rem;
  line-height: 1.8;
}
.watch-studio-detail .eyebrow { color: #b66500; font-size: .75rem; }
.watch-studio-detail .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.dialog:has(.watch-studio-detail) { width: min(calc(100% - 48px), 1080px); }

@media (max-width: 1100px) {
  .watchface-studio { gap: 32px; }
  .watch-preview-stage { padding-inline: 16px; }
  .watch-preview-figure { max-width: 500px; }
  .face-swatch { min-height: 143px; padding-top: 13px; gap: 9px; }
  .face-swatch img { width: 62px; height: 76px; }
  .face-swatch--original img { width: 76px; height: 76px; }
  .watch-studio-model-card { gap: 13px; padding-inline: 13px; }
  .watch-studio-model-card img { width: 57px; height: 57px; }
}
@media (max-width: 900px) {
  .watchface-studio { grid-template-columns: 1fr; gap: 29px; }
  .watch-preview-stage { width: 100%; max-width: 640px; margin-inline: auto; }
  .watch-preview-figure { max-width: 425px; }
  .watch-studio-panel { padding: 0; }
  .watchface-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .face-swatch { min-height: 156px; padding-top: 15px; }
  .face-swatch img { width: 71px; height: 87px; }
  .face-swatch--original img { width: 87px; height: 87px; }
  .watch-studio-detail { gap: 23px; }
  .watch-studio-detail h2 { font-size: 1.65rem; }
}
@media (max-width: 600px) {
  .watchface-studio { gap: 26px; margin-top: 27px; }
  .watch-preview-stage { width: 100%; padding: 9px 12px 16px; border-radius: 10px; }
  .watch-preview-figure { width: min(100%, 290px); max-width: none; }
  .watch-preview-caption { font-size: .875rem; line-height: 1.5; }
  .watch-preview-caption strong,
  .watch-preview-caption h3 { font-size: .9375rem; }
  .watch-preview-caption small { margin-top: 2px; font-size: .75rem; line-height: 1.5; }
  .watch-preview-actions button,
  .watch-preview-actions .button { min-height: 35px; padding: 7px 10px; font-size: .8125rem; }
  .watch-preview-actions svg { width: 15px; height: 15px; }
  .watch-studio-step { margin-bottom: 20px; }
  .watch-studio-step > label,
  label.watch-studio-step { font-size: .875rem; }
  .watch-studio-panel #watchface-model { min-height: 49px; padding-block: 12px; font-size: 1rem; }
  .watch-studio-model-card { margin: 13px 0 22px; padding: 12px 13px; gap: 13px; }
  .watch-studio-model-card img { width: 53px; height: 53px; }
  .watch-studio-model-card strong,
  .watch-studio-model-card h3 { font-size: .9375rem; }
  .watch-studio-model-card p,
  .watch-studio-model-card small { font-size: .8125rem; }
  .watchface-picker { gap: 9px; }
  .face-swatch { min-height: 146px; padding: 12px 6px 10px; gap: 9px; border-radius: 7px; }
  .face-swatch img { width: 62px; height: 76px; }
  .face-swatch--original img { width: 76px; height: 76px; }
  .face-swatch > span:last-child,
  .face-swatch .face-swatch-name { min-height: 36px; font-size: .75rem; line-height: 1.5; }
  .selected-face-name { margin-top: 16px; font-size: .9375rem; }
  .watchface-preview-note,
  .watchface-compatibility { font-size: .875rem; line-height: 1.75; }
  .watchface-compatibility { padding: 11px 12px; }
  .watchface-product-cta { gap: 15px; margin-top: 20px; padding-top: 20px; }
  .watchface-product-cta .button { min-height: 44px; padding-inline: 18px; font-size: .8125rem; }
  .watchface-product-cta .text-link { font-size: .8125rem; }
  .watch-studio-detail { grid-template-columns: 1fr; gap: 24px; }
  .watch-studio-detail .watch-preview-stage { padding: 9px 9px 15px; }
  .watch-studio-detail .watch-preview-figure { width: min(100%, 310px); max-width: none; }
  .watch-studio-detail h2 { margin-bottom: 15px; font-size: 1.55rem; }
  .watch-studio-detail p { font-size: .875rem; }
  .dialog:has(.watch-studio-detail) { width: calc(100% - 24px); }
}
@media (max-width: 360px) {
  .watch-preview-figure { width: min(100%, 270px); }
  .watch-preview-stage { padding-inline: 8px; }
  .watchface-picker { gap: 7px; }
  .face-swatch { min-height: 139px; padding-inline: 5px; }
  .face-swatch img { width: 57px; height: 70px; }
  .face-swatch--original img { width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .face-swatch,
  .watch-preview-actions button,
  .watch-preview-actions .button { transition: none; }
}

