/* Gold necklace product page */
product-info[data-gold-necklace] {
  --gold-ink:#422f38; --gold-rose:#996579; --gold-rule:#dfd1ce; --gold-paper:#fdfaf5;
  color:var(--gold-ink); container-type:inline-size;
}
product-info[data-gold-necklace] .product-info-wrap {
  & .product-title-box h1 {color:var(--gold-ink);font:600 clamp(24px,5vw,34px)/1.1 var(--heading-font-family);letter-spacing:-.025em;text-wrap:balance}
  & .product-price-box {display:none}
  & .nn-feeding-perks {padding:0;margin:10px 0 18px}
  & .nn-feeding-perks .feature-list {margin:0}
  & .product-custom-options-wrapper {color:var(--gold-ink);font-family:var(--body-font-family);margin:0}
  & .product-custom-options-wrapper [hidden], & .greeting-card-fields[hidden] {display:none!important}
  & .necklace-sets-picker {margin:0 0 20px}
  & .necklace-sets-picker .product-varient-heading, & .nn-gold-personalize {
    font:600 clamp(22px,4vw,26px)/1.16 var(--heading-font-family);color:var(--gold-ink);margin:0 0 10px;
  }
  & .necklace-sets-picker [data-option-slug="sets"] .product-variants-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  & .necklace-sets-picker [data-option-slug="sets"] .variant-label {
    position:relative;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;align-content:start;
    gap:5px;width:100%;height:100%;min-height:0;padding:5px 5px 9px;
    border:1px solid var(--gold-rule);border-radius:12px;background:var(--gold-paper);color:var(--gold-ink);
    line-height:1.25;text-align:center;white-space:normal;font:500 15px/1.24 var(--body-font-family);
  }
  & .necklace-sets-picker .variant-label::after {content:none}
  & .necklace-sets-picker .variant-label::before {
    content:"";position:absolute;inset:10px auto auto 10px;width:15px;height:15px;
    box-sizing:border-box;border:1px solid #997f79;border-radius:50%;background:#fffaf4;
  }
  & .necklace-sets-picker input:checked + .variant-label {
    background:#f9edf0;border-color:var(--gold-rose);box-shadow:inset 0 0 0 1px var(--gold-rose);color:var(--gold-ink);
  }
  & .necklace-sets-picker input:checked + .variant-label::before {border:4px solid var(--gold-rose);background:white}
  & .necklace-sets-picker .variant-label img {display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;object-position:50% 49%;border-radius:7px}
  & .nn-gold-choice-name {align-self:center;max-width:22ch;font-weight:600;text-wrap:balance}
  & .nn-gold-price {display:inline-flex;gap:7px;align-items:baseline;font-size:16px}
  & .nn-gold-price s {font-size:12px;color:#76676a}
  & .custom-field {margin:0 0 14px}
  & .custom-field > label, & .nn-gold-fonts legend, & .necklace-preview figcaption, & .engrave-message-title {
    display:block;color:var(--gold-ink);font:600 16px/1.3 var(--body-font-family);margin:0 0 6px;
  }
  & .custom-field input[type=text], & .engrave-message-textarea, & .greeting-card-field :is(input,textarea) {
    display:block;box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;background:white;border:1px solid var(--gold-rule);
    border-radius:7px;font:500 16px/1.4 var(--body-font-family);color:var(--gold-ink)
  }
  & .nn-gold-fonts {border:0;margin:0 0 15px;padding:0;min-width:0}
  & .nn-gold-fonts > div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  & .nn-gold-fonts label {position:relative;margin:0;min-width:0;cursor:pointer}
  & .nn-gold-fonts input {position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
  & .nn-gold-fonts span {height:100%;min-height:44px;padding:4px 3px;display:grid;place-items:center;text-align:center;color:var(--gold-ink);background:var(--gold-paper);border:1px solid var(--gold-rule);border-radius:6px;font-size:clamp(13px,3.6cqi,18px);line-height:1.15}
  & .nn-gold-fonts :checked + span {border-color:var(--gold-rose);background:#f9edf0;box-shadow:inset 0 0 0 1px var(--gold-rose)}
  & .nn-gold-fonts :focus-visible + span, & .necklace-sets-picker :focus-visible + label {outline:2px solid #865469;outline-offset:2px}
  & .necklace-preview {margin:0 0 16px;background:var(--gold-paper);border:1px solid var(--gold-rule);border-radius:10px;overflow:hidden}
  & .necklace-preview figcaption {margin:0;padding:8px 12px;border-bottom:1px solid var(--gold-rule)}
  & .necklace-preview__frame {border:0;border-radius:0}
  & .engrave-message-subtitle {font:500 14px/1.4 var(--body-font-family);color:#685860;margin:0 0 8px}
  & .engrave-message-block {margin:0 0 14px}
  & .greeting-card-fields {margin:8px 0 14px;padding:12px;border:1px solid var(--gold-rule);border-radius:9px;background:var(--gold-paper)}
  & .product-buy-buttons-wrapper {margin:12px 0 0}
  & .product-inventory {justify-content:center;text-align:center;margin:8px 0 4px}
}
body:has([data-gold-necklace]) #MainContent > .before-after-section {display:none}
body:has([data-gold-necklace]) #MainContent > :is(.text-with-multiple-images-section,.multicolumn-section,.section-product-specifications) {border-block-start:4px solid white}
body:has([data-gold-necklace]) #MainContent > .multicolumn-section:not(:has(.nn-gold-album)) {display:none}
body:has([data-gold-necklace]) .nn-safe-features__heading {white-space:normal;text-wrap:balance}
body:has([data-gold-necklace]) .nn-safe-features__label {text-wrap:balance}
/* Use the feeding set's offer and personalization layout with the jewelry variant controls. */
product-info[data-gold-necklace] .product-info-wrap .necklace-sets-picker .product-varient-heading {
  font: 600 clamp(22px, 4vw, 26px)/1.16 var(--heading-font-family);
  color: var(--gold-ink);
  margin: 0 0 5px;
}
.nn-gold-offer-intro { margin: 0 0 12px; color: #65565c; font: 500 15px/1.4 var(--body-font-family); }
product-info[data-gold-necklace] .product-info-wrap .necklace-sets-picker { margin-bottom: 12px; }
product-info[data-gold-necklace] .necklace-sets-picker [data-option-slug="sets"] .product-variants-list { align-items: stretch; }
product-info[data-gold-necklace] .necklace-sets-picker .product-variant-item { display: flex; align-self: stretch; margin: 0; min-width: 0; }
product-info[data-gold-necklace] .necklace-sets-picker [data-option-slug="sets"] .product-variant-item .variant-label {
  box-sizing: border-box; width: 100%; height: 100%; align-content: stretch; background: #fffcf8; color: #422f38;
}
product-info[data-gold-necklace] .necklace-sets-picker [data-option-slug="sets"] .product-variant-item input:checked + .variant-label {
  background: #f8edef !important; color: #422f38 !important; border-color: #996579 !important; box-shadow: inset 0 0 0 1px #996579;
}
product-info[data-gold-necklace] .necklace-sets-picker .nn-gold-price { color: #422f38; }
product-info[data-gold-necklace] .necklace-sets-picker .nn-gold-price strong { font-size: clamp(17px, 4cqi, 21px); }
product-info[data-gold-necklace] .product-info-wrap .nn-gold-fields {
  display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 14px 10px;
  padding: 13px; border: 1px solid var(--gold-rule); border-radius: 12px; background: #fffcf8; margin-bottom: 14px;
}
product-info[data-gold-necklace] .nn-gold-fields > .custom-field { grid-column: 1/-1; margin: 0; }
product-info[data-gold-necklace] .nn-gold-fields .nn-gold-fonts { margin: 0; min-width: 0; }
product-info[data-gold-necklace] .product-info-wrap .nn-gold-fields .nn-gold-fonts > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
product-info[data-gold-necklace] .nn-gold-fields necklace-engraving-preview { min-width: 0; }
product-info[data-gold-necklace] .product-info-wrap .nn-gold-fields .necklace-preview { margin: 0; }
product-info[data-gold-necklace] .product-info-wrap .nn-gold-fields figcaption { padding: 5px 8px; font-size: 13px; background: #f5ebe7; }
product-info[data-gold-necklace] .nn-gold-fields .necklace-preview__frame { aspect-ratio: 1.7; }

/* Jewelry controls follow the same measures as the feeding set purchase panel. */
product-info[data-gold-necklace] .product-info-wrap {
  & .nn-gold-choose { margin:0; color:#422f38; font:600 clamp(22px,4vw,26px)/1.13 var(--heading-font-family); letter-spacing:inherit; text-transform:none; }
  & .nn-gold-offer-intro { margin:6px 0 12px; font-size:clamp(12px,3.5cqi,15px); color:#695b60; }
  & .necklace-sets-picker .variant-label img { aspect-ratio:1.38; }
  & .necklace-sets-picker input:checked + .variant-label::before { background:#a36577; border:1px solid #a36577; }
  & .necklace-sets-picker input:checked + .variant-label::after { content:""; position:absolute; display:block; inset:12px auto auto 15px; width:5px; height:8px; border:solid white; border-width:0 1.5px 1.5px 0; border-radius:0; background:none; transform:rotate(45deg); }
  & .nn-gold-fields { grid-template-columns:1fr; padding:0; gap:0; background:#fffbf6; border-radius:13px; }
  & .nn-gold-fields > .custom-field { padding:13px 14px 0; }
  & .nn-gold-fields .nn-gold-fonts { padding:14px; }
  & .nn-gold-fields .nn-gold-fonts > div { gap:6px; }
  & .nn-gold-fonts span { min-height:42px; font-size:clamp(15px,3.4cqi,20px); }
  & .nn-gold-fields .necklace-preview { border:0; border-radius:0 0 12px 12px; }
  & .nn-gold-fields figcaption { display:flex; justify-content:space-between; align-items:center; font-size:12px; padding:6px 13px; }
  & .nn-gold-fields .necklace-preview__frame { aspect-ratio:2.25; }
  & .nn-gold-gift-panel { background:#fffbf6; border:1px solid #e2d6d1; border-radius:12px; overflow:hidden; }
  & .nn-gold-gift-panel .engrave-message-block { margin:0; padding:13px 14px; background:transparent; border:0; }
  & .nn-gold-gift-panel .engrave-message-subtitle { margin:4px 0 8px; font-size:13px; }
  & .nn-gold-gift-panel .engrave-message-textarea { min-height:44px; }
  & .nn-gold-gift-panel .greeting-card-fields { margin:0; padding:0 14px 14px; border:0; background:transparent; }
  & .add-to-cart [data-atc-text] { color:white; font:600 1.625rem/1.25 var(--body-font-family); }
  & .product-buy-buttons-wrapper .add-to-cart { width:100%; color:white; }
}
body:has([data-gold-necklace]) .text-with-multiple-images-section:not(:has(section, .nn-safe-features, .nn-personalized-story)) { border:0; }
.nn-gold-guide { display:block; --choice-ink:#422f38; --choice-button:#422f38; --choice-muted:#695b60; }
.nn-gold-guide .nn-set-guide__collection { list-style:none; margin:0; padding-inline:0; }
.nn-gold-guide .necklace-choices__button { margin:9px auto 0; min-height:40px; }
.nn-gold-guide .nn-set-guide__print img { object-fit:cover; }
.nn-gold-guide .necklace-choices__price { justify-content:center; margin:7px auto 0; }
@media(min-width:700px) {
  body:has([data-gold-necklace]) .nn-gold-guide .nn-set-guide__piece { flex-basis:50%; }
  .nn-gold-guide .nn-set-guide__print { max-width:330px; margin:auto; }
}

product-info[data-gold-necklace] .product-info-wrap {
  & .nn-gold-fields .nn-gold-fonts span { min-height:44px; padding:6px; background:white; border:1px solid #cdbfc1; border-radius:7px; }
  & .nn-gold-fields .nn-gold-fonts :checked + span { background:#f9edf0; border-color:#a36577; }
  & .nn-gold-fields .nn-gold-fonts label:has(:checked)::after { content:""; position:absolute; top:4px; right:5px; width:4px; height:7px; border:solid #824a5d; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); pointer-events:none; }
}
.nn-gold-guide .necklace-choices__button { display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border:1px solid #422f38; border-radius:7px; background:#422f38; color:white; font:600 15px/1.2 var(--body-font-family); text-decoration:none; }
.nn-gold-guide .necklace-choices__button:focus-visible { outline:2px solid #a36577; outline-offset:3px; }

product-info[data-gold-necklace] .product-info-wrap {
  & .nn-gold-fields .nn-gold-fonts { padding-top:0; margin:12px 0 0; }
  & .nn-gold-fonts legend { float:none; margin:0 0 5px; padding:0; }
}

product-info[data-gold-necklace] .nn-gold-gift-panel {
  --nn-edge: var(--purchase-edge);
  --nn-ink: var(--purchase-ink);
}
product-info[data-gold-necklace] .nn-card-fields[hidden] { display:none; }
product-info[data-gold-necklace] .nn-gold-pearl-help { margin:5px 0 0; color:var(--purchase-muted); font:400 13px/1.4 var(--body-font-family); }

/* The gift options share one panel. Keep the photo, copy, and checkbox aligned as the copy wraps. */
product-info.main-product-content[data-source="main-product"][data-gold-necklace] .nn-gold-gift-panel {
  --gift-border: #dad7d2;
  --gift-ink: #3b3334;
  --gift-muted: #655f5c;
  border: 1px solid var(--gift-border);
  border-radius: 12px;
  background: #fffbf5;
  & .engrave-message-title, & .nn-card-heading {
    color: var(--gift-ink);
    font: 500 15px/1.32 var(--body-font-family);
    letter-spacing: .01em;
  }
  & .engrave-message-title { margin: 0; }
  & .engrave-message-subtitle, & .nn-card-help {
    color: var(--gift-muted);
    font: 400 13px/1.35 var(--body-font-family);
    letter-spacing: 0;
    text-wrap: wrap;
  }
  & .engrave-message-textarea {
    border-color: #b9b5b0;
    padding: 9px 10px;
    border-radius: 7px;
  }
  & .nn-card-offer {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--gift-border);
    border-radius: 0;
    background: transparent;
  }
  & .nn-card-choice {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: clamp(42px,12cqi,56px) minmax(0,1fr) 23px;
    grid-template-areas: "photo title check" "photo help check";
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 10px;
    margin: 0;
    padding: 12px 14px;
  }
  & .nn-card-image { grid-area: photo; width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
  & .nn-card-copy, & .nn-card-title-row { display: contents; }
  & .nn-card-heading { grid-area: title; align-self: end; }
  & .nn-card-help { grid-area: help; align-self: start; max-width: none; }
  & .nn-card-choice input[type=checkbox] {
    grid-area: check;
    box-sizing: border-box;
    width: 23px;
    height: 23px;
    margin: 0;
    border: 1.5px solid #898886;
    border-radius: 6px;
    background: white;
  }
  & .nn-card-choice input[type=checkbox]:checked { background: var(--purchase-rose); border-color: var(--purchase-rose); }
  & .nn-card-choice input[type=checkbox]:focus-visible { outline: 2px solid var(--purchase-ink); outline-offset: 3px; }
}
@container (min-width: 470px) {
  product-info.main-product-content[data-source="main-product"][data-gold-necklace] .nn-gold-gift-panel :is(.nn-card-help,.engrave-message-subtitle) {
    font-size: clamp(12px,2.4cqi,13px);
    letter-spacing: -.014em;
  }
  product-info.main-product-content[data-source="main-product"][data-gold-necklace] .nn-gold-gift-panel .engrave-message-subtitle {
    font-size: clamp(12px,2.3cqi,13px);
    letter-spacing: -.008em;
  }
}
@media (min-width: 992px) {
  product-info[data-gold-necklace] .product-info-wrap .nn-gold-fields {
    & .nn-gold-fonts { padding-bottom: 20px; }
    & .nn-gold-fonts legend { margin-bottom: 8px; }
    & .necklace-preview__frame { aspect-ratio: 2.5; }
    /* Anchor the top of the photo and its engraving while cropping the lower edge. */
    & .necklace-preview__art { top: 55.5556%; }
  }
  product-info[data-gold-necklace] .nn-gold-pearl-help { display: none; }
}

:is(.nn-little-story__prose, .nn-handbook__copy) sup.nn-gold-copy-mark {
  position: relative;
  top: -.65em;
  vertical-align: baseline;
  font: inherit;
  font-size: .5em;
  line-height: 0;
  letter-spacing: 0;
}

nn-necklace-film { display: block; }
nn-necklace-film.nn-hands__film video[data-necklace-film][controls],
nn-necklace-film.nn-little-story__film video[data-necklace-film][controls] {
  opacity: 1;
  pointer-events: auto;
}
