.watch-personalization {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e7cf9d;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf9 0%, #fbf4e8 100%);
  color: #17130e;
}

.watch-personalization__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.watch-personalization__heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.watch-personalization__step {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: #a66e08;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.watch-personalization__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.watch-personalization__label span,
.watch-personalization__error {
  color: #b42318;
}

.watch-personalization__field-wrap {
  position: relative;
}

.watch-personalization__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 72px 12px 14px;
  border: 1px solid #cfb57f;
  border-radius: 8px;
  background: #fff;
  color: #17130e;
  font: inherit;
  outline: none;
}

.watch-personalization__input:focus {
  border-color: #9d6808;
  box-shadow: 0 0 0 2px rgba(157, 104, 8, .14);
}

.watch-personalization__input[aria-invalid="true"] {
  border-color: #b42318;
}

.watch-personalization__count {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #8d877e;
  font-size: 12px;
  pointer-events: none;
}

.watch-personalization__help,
.watch-personalization__error,
.watch-personalization__hint {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.watch-personalization__help {
  color: #817a70;
}

.watch-personalization__error {
  font-weight: 600;
}

.watch-personalization__hint {
  margin-top: 14px;
  color: #895c09;
  font-weight: 700;
}

.watch-personalization__hint span {
  margin-right: 6px;
}

.watch-personalization__preview-button,
.watch-personalization__modal-done {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid #b8790a;
  border-radius: 8px;
  background: #fff;
  color: #9a6507;
  font: inherit;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
}

.watch-personalization__preview-button:hover,
.watch-personalization__modal-done:hover {
  background: #fff8e9;
}

.watch-personalization__media-name,
.watch-personalization__modal-name {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 1.5em;
  padding: .22em .38em .28em;
  overflow: hidden;
  color: #241500;
  background: linear-gradient(180deg, #f2ca69 0%, #d79a31 48%, #efbd55 100%);
  border-top: 1px solid rgba(85, 48, 5, .72);
  border-bottom: 1px solid rgba(85, 48, 5, .68);
  clip-path: polygon(5% 4%, 95% 4%, 100% 50%, 95% 96%, 5% 96%, 0 50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(94,49,4,.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.45), 0 0 2px rgba(255,216,105,.6);
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
}

/* The theme applies width/height:100% to every direct child of .media.
   Keep the nameplate isolated from that gallery rule. */
.product__media-item product-thumbnail-opener > .watch-personalization__media-name {
  display: flex !important;
  right: auto !important;
  bottom: auto !important;
  height: auto !important;
  max-width: none !important;
}

.product__media-item .product__media > .watch-personalization__media-name {
  display: flex !important;
  right: auto !important;
  bottom: auto !important;
  height: auto !important;
  max-width: none !important;
}

.product__media-item:not(.is-active):not(.watch-personalization-current) product-thumbnail-opener > .watch-personalization__media-name {
  display: none !important;
}

.watch-personalization__media-name[hidden] {
  display: none !important;
}

.watch-personalization__modal[hidden] {
  display: none;
}

.watch-personalization__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.watch-personalization__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.watch-personalization__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.watch-personalization__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #17130e;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.watch-personalization__modal-title {
  margin: 0 40px 16px 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.watch-personalization__modal-canvas {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.watch-personalization__modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
}

body.watch-preview-open {
  overflow: hidden;
}

variant-radios .watch-personalization-hidden-option {
  display: none !important;
}

variant-selects option.watch-personalization-hidden-option {
  display: none;
}

@media screen and (max-width: 749px) {
  .watch-personalization {
    padding: 14px;
    border-radius: 10px;
  }

  .watch-personalization__heading h2 {
    font-size: 18px;
  }

  .watch-personalization__dialog {
    padding: 16px;
  }
}
