/* Approved Retrato checkout. Scoped so delivery, tracking and admin keep their layout. */
.workflow.checkout-retrato {
  --paper:#faf7f1; --card:#fffaf3; --red:#680d0e; --wine:#4e0b0c; --gold:#bd934f;
  --line:#d6bc98; --ink:#28343b; --muted:#646563; --sage:#718e51;
  --heading:Georgia,'Times New Roman',serif; --body:Arial,Helvetica,sans-serif;
  background:var(--paper) url('/christmas-reference/paper-texture.webp') repeat;
  color:var(--ink); font:400 16px/1.48 var(--body);
}
.workflow.checkout-retrato .letter-flow {width:min(640px,calc(100% - 32px));padding-bottom:0}
.workflow.checkout-retrato .letter-flow:has([data-products]:not([hidden])) {width:min(640px,calc(100% - 32px))}
.workflow.checkout-retrato .gift-header-inner {max-width:1100px;min-height:72px}
.workflow.checkout-retrato .gift-brand {font:700 22px/1.02 var(--heading);gap:8px}
.workflow.checkout-retrato .gift-art-logo {width:43px;height:38px}
.workflow.checkout-retrato .gift-progress {max-width:460px;margin-inline:auto}
.workflow.checkout-retrato .gift-flow-heading {margin:8px auto 24px}
.workflow.checkout-retrato .gift-title {text-align:left;padding:0;margin:14px 0 20px}
.workflow.checkout-retrato .gift-title h1 {margin:0 0 12px;padding:0;font-size:clamp(30px,5vw,38px);line-height:1.08;max-width:520px}
.workflow.checkout-retrato [data-flow-title] {white-space:pre-line}
.workflow.checkout-retrato .gift-title>p {font:400 16px/1.45 var(--body);margin:0;max-width:460px}
.workflow.checkout-retrato .gift-title .gift-stamp {display:none}
.workflow.checkout-retrato .gift-current-product {margin:20px 0;padding:0 0 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;font:700 23px/1.2 var(--heading)}
.workflow.checkout-retrato .gift-current-product small {font-size:13px;margin-top:5px}
.workflow.checkout-retrato .gift-current-product strong {font:700 21px/1.2 var(--heading)}
.workflow.checkout-retrato .gift-current-price {display:flex;align-items:center;gap:12px;border:0;padding:0;flex:none}
.workflow.checkout-retrato .gift-current-price .link-button {display:none}
.workflow.checkout-retrato [data-personalization-part=message] .gift-current-product {display:none}
.workflow.checkout-retrato [data-flow-step="2"] .gift-current-product,.workflow.checkout-retrato [data-flow-step="3"] .gift-current-product {display:none}
.workflow.checkout-retrato .letter-details h2 {font:700 25px/1.2 var(--heading);color:var(--red);margin:0}
.workflow.checkout-retrato .gift-choice-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}
.workflow.checkout-retrato [data-carousel-position] {font:400 13px/1.4 var(--body);color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.workflow.checkout-retrato .gift-option-carousel,.workflow.checkout-retrato .gift-template-carousel {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;width:100%;max-width:460px;margin:0 auto;touch-action:pan-y}
.workflow.checkout-retrato .gift-option-carousel[data-single=yes] {grid-template-columns:minmax(0,1fr);max-width:350px}
.workflow.checkout-retrato .gift-carousel-arrow {display:grid;place-items:center;width:44px;min-width:44px;height:48px;min-height:48px;padding:0;border:1px solid var(--red);border-radius:13px;background:var(--red);color:var(--paper);box-shadow:none;transition:transform 140ms ease,background-color 140ms ease}
.workflow.checkout-retrato .gift-carousel-arrow svg {width:21px;height:21px;display:block;flex:none}
.workflow.checkout-retrato .gift-carousel-arrow:active {transform:scale(.94);background:var(--wine)}
.workflow.checkout-retrato .gift-carousel-arrow:focus-visible {outline:2px solid var(--red);outline-offset:3px}
.workflow.checkout-retrato .gift-product-carousel {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px 8px;align-items:center;max-width:568px;margin-inline:auto;touch-action:pan-y}
.workflow.checkout-retrato .gift-product-navigation {display:contents}
.workflow.checkout-retrato .gift-product-navigation [data-carousel-prev] {grid-column:1;grid-row:1}
.workflow.checkout-retrato .gift-product-navigation [data-carousel-next] {grid-column:3;grid-row:1}
.workflow.checkout-retrato .gift-product-navigation [data-carousel-position] {grid-column:2;grid-row:2;text-align:center}
.workflow.checkout-retrato .gift-product-carousel[data-single=yes] {grid-template-columns:minmax(0,1fr);max-width:460px}
.workflow.checkout-retrato .gift-product-carousel[data-single=yes] .gift-product-navigation {display:none}
.workflow.checkout-retrato .gift-products {display:block;min-width:0;grid-column:2;grid-row:1}
.workflow.checkout-retrato .gift-product-carousel[data-single=yes] .gift-products {grid-column:1}
.workflow.checkout-retrato .gift-product {width:100%;min-width:0}
.workflow.checkout-retrato .gift-product-select {padding:20px 20px 10px}
.workflow.checkout-retrato .gift-product-select h2 {font-size:27px;line-height:1.15}
.workflow.checkout-retrato .gift-product-select>p {font-size:15px;line-height:1.45;margin-top:6px}
.workflow.checkout-retrato button.gift-product-image {width:100%;height:170px;margin:14px 0}
.workflow.checkout-retrato .gift-product-price {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;font-size:28px;line-height:1.2;white-space:nowrap;margin-right:0}
.workflow.checkout-retrato .gift-product-price del {white-space:nowrap;margin-right:0}
.workflow.checkout-retrato .gift-per-unit {display:block;margin-top:4px}
.workflow.checkout-retrato .gift-features {font-size:15px;line-height:1.5}
.workflow.checkout-retrato .gift-product-example {display:flex;justify-content:center;align-items:center;width:100%;min-height:46px;min-width:0;padding:10px 15px;margin:4px 0 16px;border-radius:10px;background:var(--red);border-color:var(--red);color:var(--paper);font:700 19px/1.2 var(--heading);transform-origin:center}
.workflow.checkout-retrato [data-products]:not([hidden]):not(:has(dialog[open])) [data-product-card]:not([hidden]):has([name=product]:checked) .gift-product-example {animation:gift-preview-invite 3.6s ease-in-out infinite}
.workflow.checkout-retrato [data-flow-step="1"]:not(:has(dialog[open])) [data-personalization-panel=choices]:not([hidden]) .gift-voice-row:not([hidden]):has([name=voice]:checked) .gift-voice-play:not(:disabled)[aria-pressed=false],
.workflow.checkout-retrato [data-flow-step="1"]:not(:has(dialog[open])) [data-personalization-panel=choices]:not([hidden]) [data-character-section]:not([hidden]) .gift-character-option:not([hidden]):has([name=character]:checked) .gift-character-example {animation:gift-preview-invite 3.6s ease-in-out infinite}
.workflow.checkout-retrato :is(.gift-product-example,.gift-voice-play,.gift-character-example):hover,.workflow.checkout-retrato :is(.gift-product-example,.gift-voice-play,.gift-character-example):focus-visible {animation-play-state:paused!important}
@keyframes gift-preview-invite {
  0%,26%,50%,100% {transform:translateY(0) scale(1)}
  14% {transform:translateY(-2px) scale(1.035)}
  37% {transform:translateY(-1px) scale(1.02)}
}
.workflow.checkout-retrato .select-characters {display:block;min-width:0;max-width:none;margin:0}
.workflow.checkout-retrato .gift-character-example {display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;margin-top:12px;padding:10px;border:1px solid var(--red);border-radius:7px;background:var(--red);color:var(--paper);font:700 16px/1.3 var(--heading)}
.workflow.checkout-retrato .gift-character-example svg {width:19px;height:19px;flex:none}
.workflow.checkout-retrato .gift-character-preview {width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);overflow:auto}
.workflow.checkout-retrato .gift-character-preview::backdrop {background:rgb(25 10 10 / .75)}
.workflow.checkout-retrato .gift-character-preview h2 {padding-right:28px;font:700 23px/1.2 var(--heading);color:var(--red);margin:0 0 14px}
.workflow.checkout-retrato .gift-character-preview img {display:block;width:100%;height:auto;max-height:calc(100dvh - 150px);object-fit:contain;border-radius:7px}
.workflow.checkout-retrato .select-characters .choice-card {padding:0;border:1px solid var(--red);border-radius:12px;overflow:hidden;background:var(--card)}
.workflow.checkout-retrato .select-characters .choice-card:has(:checked) {border:1px solid var(--red);background:var(--card)}
.workflow.checkout-retrato .select-characters img {display:block;width:100%;height:360px;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center 22%;border:0;border-radius:0}
.workflow.checkout-retrato .gift-character-caption {padding:13px 9px;min-height:47px;background:var(--red);color:var(--paper);gap:8px}
.workflow.checkout-retrato .gift-character-caption .letter-character-name {color:var(--paper);font:700 20px/1.2 var(--heading);overflow-wrap:anywhere}
.workflow.checkout-retrato .gift-character-caption input[type=radio] {accent-color:var(--paper);width:17px;height:17px;margin:0;flex:none}
.workflow.checkout-retrato .gift-carousel-hint {font:400 12px/1.5 var(--body);color:var(--muted);text-align:center;margin:12px 0 26px}
.workflow.checkout-retrato [data-choice-carousel][data-single=yes]+.gift-carousel-hint {display:none}
.workflow.checkout-retrato .voice-choices {position:relative;margin:24px 0 0;padding:0;border:0}
.workflow.checkout-retrato .voice-choices legend {font:700 25px/1.2 var(--heading);padding-right:50px;white-space:normal}
.workflow.checkout-retrato .voice-choices>.hint {font-size:14px;margin:8px 0 12px}
.workflow.checkout-retrato .gift-voice-position {position:absolute;right:0;top:-28px}
.workflow.checkout-retrato .select-voices {display:block;min-width:0;margin:0}
.workflow.checkout-retrato .gift-voice-row {border:1px solid var(--red);border-radius:12px;padding:12px;background:var(--card);text-align:center}
.workflow.checkout-retrato .voice-card,.workflow.checkout-retrato .voice-card:has(:checked) {display:flex;justify-content:center;align-items:center;gap:7px;min-height:0;border:0;border-radius:0;background:none;padding:0;text-align:center}
.workflow.checkout-retrato .voice-card>input[type=radio] {position:static;width:16px;height:16px;opacity:1;clip-path:none;overflow:visible;margin:0;accent-color:var(--red);flex:none}
.workflow.checkout-retrato .voice-card:focus-within {outline:2px solid var(--gold);outline-offset:4px;border-radius:4px}
.workflow.checkout-retrato .letter-voice-name {font:700 19px/1.25 var(--heading);color:var(--red);overflow-wrap:anywhere}
.workflow.checkout-retrato .gift-voice-play {position:static;transform:none;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;min-height:44px;height:auto;padding:9px;margin-top:12px;border:1px solid var(--red);border-radius:7px;background:var(--red);color:var(--paper);font:700 15px/1.3 var(--heading)}
.workflow.checkout-retrato .gift-voice-play>span {display:flex;align-items:center;justify-content:center}
.workflow.checkout-retrato .gift-voice-play svg {width:19px;height:19px;flex:none}
.workflow.checkout-retrato .gift-voice-play:disabled {opacity:.5}
.workflow.checkout-retrato .voice-preview {display:none}
.workflow.checkout-retrato [data-preview-status]:empty {display:none}
.workflow.checkout-retrato [data-preview-status] {font-size:13px;text-align:center;margin:12px 0}
.workflow.checkout-retrato .gift-selection-summary {display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;background:var(--card);padding:12px 14px;margin-bottom:24px}
.workflow.checkout-retrato .gift-selection-summary strong {display:block;color:var(--red);font:700 18px/1.3 var(--heading)}
.workflow.checkout-retrato .gift-selection-summary small {display:block;color:var(--muted);font:400 13px/1.4 var(--body);margin-top:4px}
.workflow.checkout-retrato .gift-selection-summary .link-button {flex:none;min-height:44px;font:700 15px var(--heading);text-decoration:underline;text-underline-offset:3px}
.workflow.checkout-retrato .gift-templates {margin:12px 0 18px;padding:0;border:0}
.workflow.checkout-retrato .gift-templates>summary {display:none}
.workflow.checkout-retrato .gift-templates>[data-message-templates] {margin:0;padding:0;border:0;background:none;box-shadow:none}
.workflow.checkout-retrato .template-intro {font:400 14px/1.45 var(--body);color:var(--muted);margin:0 0 14px}
.workflow.checkout-retrato .template-categories {display:flex;gap:8px;flex-wrap:nowrap;margin:14px 0}
.workflow.checkout-retrato .template-categories button {min-width:0;flex:1;min-height:44px;padding:9px 6px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--red);font:700 15px/1.3 var(--heading);box-shadow:none}
.workflow.checkout-retrato .template-categories button[aria-pressed=true] {background:var(--red);color:var(--paper);border-color:var(--red)}
.workflow.checkout-retrato .template-label {font:700 17px/1.35 var(--heading);color:var(--red);margin:0 0 12px}
.workflow.checkout-retrato .template-grid {display:block;min-width:0;margin:0}
.workflow.checkout-retrato .template-choice {display:block;width:100%;min-height:85px;padding:14px 10px;border:1px solid var(--red);border-radius:9px;background:var(--card);color:var(--red);box-shadow:none;text-align:center;font:700 20px/1.25 var(--heading)}
.workflow.checkout-retrato .template-choice[aria-pressed=true] {background:#fdebea;border:1px solid var(--red);color:var(--red)}
.workflow.checkout-retrato .template-choice .template-indicator {display:none}
.workflow.checkout-retrato .gift-carousel-position {font:400 12px/1.4 var(--body);color:var(--muted);text-align:center;margin:10px 0}
.workflow.checkout-retrato .template-own {display:block;min-height:44px;padding:6px 0;border:0;background:none;color:var(--red);font:400 13px/1.4 var(--body);text-decoration:underline;text-underline-offset:3px}
.workflow.checkout-retrato .template-details {border:0;margin-top:16px;padding:0}
.workflow.checkout-retrato .template-details h4 {font:700 19px/1.3 var(--heading);color:var(--red);margin:0 0 12px}
.workflow.checkout-retrato .template-fields {display:grid;grid-template-columns:minmax(0,1fr);gap:13px;padding:0;margin:0}
.workflow.checkout-retrato .template-fields label {grid-column:auto;min-width:0;font:700 17px/1.3 var(--heading);color:var(--red)}
.workflow.checkout-retrato .template-fields.template-fields-three {grid-template-columns:minmax(0,1fr) 80px}
.workflow.checkout-retrato .template-fields-three [data-field-key=activity] {grid-column:1/-1}
.workflow.checkout-retrato .template-fields input,.workflow.checkout-retrato .letter-message textarea,.workflow.checkout-retrato [name=email] {display:block;width:100%;min-height:46px;margin:6px 0 0;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:400 16px/1.48 var(--body)}
.workflow.checkout-retrato .letter-message {display:block;margin-top:22px;font:700 18px/1.3 var(--heading);color:var(--red)}
.workflow.checkout-retrato .letter-message textarea {min-height:200px;resize:vertical}
.workflow.checkout-retrato .letter-message-help {font-size:12px;margin-top:7px}
.workflow.checkout-retrato .letter-message-help small {font-size:12px}
.workflow.checkout-retrato .gift-message-tip {font:400 13px/1.5 var(--body);padding:13px;margin:16px 0 22px}
.workflow.checkout-retrato .gift-template-length-warning {font-size:14px;color:var(--red);margin:10px 0}
.workflow.checkout-retrato [data-personalization-panel=message]>h2 {margin-bottom:10px}
.workflow.checkout-retrato [data-personalization-panel=message]>label:not(.letter-message) {display:block;font:700 18px/1.3 var(--heading);color:var(--red);margin-top:14px}
.workflow.checkout-retrato #delivery-email-help {font:400 13px/1.5 var(--body);display:block;margin-top:6px}
.workflow.checkout-retrato .letter-details>.gift-sticky {position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;max-width:none;margin:26px 0 0;padding:17px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.workflow.checkout-retrato .letter-details>.gift-sticky>div {display:contents}
.workflow.checkout-retrato .letter-details>.gift-sticky>div>strong {grid-column:1/-1;font:700 20px var(--heading);overflow-wrap:anywhere}
.workflow.checkout-retrato .letter-details>.gift-sticky>div>small {grid-column:1;grid-row:2;min-width:0;font-size:13px}
.workflow.checkout-retrato .letter-details>.gift-sticky>strong {grid-column:2;grid-row:2;white-space:nowrap;border:0;padding:0;font:700 21px var(--heading)}
.workflow.checkout-retrato .letter-details>.gift-sticky>.button {grid-column:1/-1;grid-row:3;min-width:0;width:100%;min-height:48px;margin-top:9px;padding:12px 10px;border-radius:8px;font:700 19px/1.25 var(--heading)}
.workflow.checkout-retrato .letter-reassurance {font:400 13px/1.5 var(--body);margin:0 0 20px}
.workflow.checkout-retrato:has([data-step="1"]:not([hidden])) {padding-bottom:0}
.workflow.checkout-retrato .payment-delivery {background:#e7ebd7;color:#35502a;border-radius:9px;padding:14px;font:400 14px/1.5 var(--body);margin:16px 0}
.workflow.checkout-retrato .payment-delivery svg {flex:none;width:20px;height:20px}
.workflow.checkout-retrato .payment-methods small,.workflow.checkout-retrato .payment-security {font-size:13px}
.workflow.checkout-retrato .gift-checkout-message {margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.workflow.checkout-retrato .gift-checkout-message summary {color:var(--red);font:700 18px/1.3 var(--heading);min-height:32px}
.workflow.checkout-retrato .gift-checkout-message .gift-review-message {margin-top:10px}
@media(hover:hover) {.workflow.checkout-retrato .gift-carousel-arrow:hover {background:var(--wine);border-color:var(--wine)}}
@media(max-width:600px) {
  .workflow.checkout-retrato :is(.gift-product-carousel,.gift-option-carousel,.gift-template-carousel) {grid-template-columns:minmax(0,1fr);padding-inline:8px;column-gap:0;max-width:none}
  .workflow.checkout-retrato .gift-products,.workflow.checkout-retrato .gift-product-navigation [data-carousel-position] {grid-column:1}
  .workflow.checkout-retrato .gift-option-carousel :is(.select-characters,.select-voices) {grid-column:1;grid-row:1}
  .workflow.checkout-retrato .gift-template-carousel .template-grid {grid-column:1;grid-row:1}
  .workflow.checkout-retrato .gift-template-carousel .template-choice {padding-inline:28px}
  .workflow.checkout-retrato :is(.gift-product-navigation,.gift-option-carousel,.gift-template-carousel) :is([data-carousel-prev],[data-carousel-next],[data-template-prev],[data-template-next]) {grid-column:1;grid-row:1;z-index:1;position:relative;background:transparent;border:0;box-shadow:none}
  .workflow.checkout-retrato :is(.gift-product-navigation,.gift-option-carousel,.gift-template-carousel) :is([data-carousel-prev],[data-template-prev]) {justify-self:start;margin-left:-22px}
  .workflow.checkout-retrato :is(.gift-product-navigation,.gift-option-carousel,.gift-template-carousel) :is([data-carousel-next],[data-template-next]) {justify-self:end;margin-right:-22px}
  .workflow.checkout-retrato :is(.gift-product-navigation,.gift-option-carousel,.gift-template-carousel) .gift-carousel-arrow::before {content:'';position:absolute;inset:2px 6px;border-radius:11px;background:var(--red);box-shadow:0 0 0 3px var(--paper)}
  .workflow.checkout-retrato :is(.gift-product-navigation,.gift-option-carousel,.gift-template-carousel) .gift-carousel-arrow svg {position:relative;z-index:1;width:19px;height:19px}
  .workflow.checkout-retrato :is(.gift-product-navigation,.gift-option-carousel,.gift-template-carousel) .gift-carousel-arrow:is(:hover,:active)::before {background:var(--wine)}
  .workflow.checkout-retrato :is(.gift-product-carousel,.gift-option-carousel)[data-single=yes] {padding-inline:0;max-width:none}
  .workflow.checkout-retrato .gift-product-select {padding:18px 16px 10px}
  .workflow.checkout-retrato .gift-product-select h2 {font-size:clamp(21px,6vw,26px);overflow-wrap:anywhere;word-break:normal}
  .workflow.checkout-retrato .gift-product-example {padding-inline:7px;font-size:17px}
  .workflow.checkout-retrato .gift-features {font-size:14px;padding-left:18px}
}
@media(max-width:345px) {
  .workflow.checkout-retrato .gift-option-carousel,.workflow.checkout-retrato .gift-template-carousel {gap:6px}
  .workflow.checkout-retrato .gift-choice-heading h2,.workflow.checkout-retrato .voice-choices legend {font-size:22px}
  .workflow.checkout-retrato .gift-current-product {font-size:20px;gap:8px}
  .workflow.checkout-retrato .gift-current-price {gap:7px}
  .workflow.checkout-retrato .gift-current-price .link-button {font-size:14px}
  .workflow.checkout-retrato .letter-voice-name {font-size:17px}
  .workflow.checkout-retrato .gift-voice-row {padding:11px 8px}
  .workflow.checkout-retrato .gift-voice-play {font-size:14px;padding-inline:6px}
  .workflow.checkout-retrato .template-categories button {font-size:14px}
  .workflow.checkout-retrato .template-choice {font-size:18px;padding-inline:7px}
}
@media(prefers-reduced-motion:reduce) {
  .workflow.checkout-retrato .gift-carousel-arrow {transition:none}
  .workflow.checkout-retrato :is(.gift-product-example,.gift-voice-play,.gift-character-example) {animation:none!important;transform:none!important}
}

/* Message editing, navigation and count share one field. */
.workflow.checkout-retrato .gift-simple-message {margin:0;padding:0;border:0;background:none;box-shadow:none}
.workflow.checkout-retrato .gift-simple-message .template-error {position:static;margin:12px 0 0;padding:0;clear:both;font:400 14px/1.5 var(--body);color:var(--red);overflow-wrap:anywhere}
.workflow.checkout-retrato [data-personalization-panel=message] .gift-selection-summary {display:none}
.workflow.checkout-retrato [data-personalization-part=message] .letter-details>.gift-sticky {display:block;border:0;padding:0;margin-top:20px}
.workflow.checkout-retrato [data-personalization-part=message] .letter-details>.gift-sticky>div,.workflow.checkout-retrato [data-personalization-part=message] .letter-details>.gift-sticky>strong {display:none}
.workflow.checkout-retrato .gift-message-editor {border:1px solid var(--line);border-radius:10px;background:var(--card);overflow:hidden}
.workflow.checkout-retrato .gift-message-editor:focus-within {border-color:var(--red)}
.workflow.checkout-retrato .gift-message-editor textarea {display:block;width:100%;height:310px;min-height:220px;margin:0;padding:16px;resize:vertical;border:0;border-radius:0;background:var(--card);color:var(--ink);font:400 16px/1.6 var(--body)}
.workflow.checkout-retrato .gift-message-surface {position:relative;background:var(--card)}
.workflow.checkout-retrato .gift-message-surface textarea {position:relative;z-index:1;background:transparent;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;tab-size:8}
.workflow.checkout-retrato .gift-message-highlights {position:absolute;inset:0 0 auto;overflow:hidden;pointer-events:none;user-select:none}
.workflow.checkout-retrato [data-message-highlights] {box-sizing:border-box;margin:0;padding:16px;border:0;color:transparent;font:400 16px/1.6 var(--body);letter-spacing:normal;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;tab-size:8}
.workflow.checkout-retrato [data-message-token] {padding:0;border:0;border-radius:3px;color:transparent;background:#ffdfa3;box-shadow:inset 0 -2px #b17e2d;font:inherit;letter-spacing:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}
@media(forced-colors:active) {.workflow.checkout-retrato [data-message-token] {background:transparent;box-shadow:none;outline:1px solid CanvasText;outline-offset:-1px;forced-color-adjust:none}.workflow.checkout-retrato .gift-message-surface textarea {forced-color-adjust:auto}}
.workflow.checkout-retrato .gift-message-toolbar {display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:55px;padding:5px 8px;border-top:1px solid var(--line)}
.workflow.checkout-retrato .gift-message-navigation {display:flex;align-items:center;gap:7px}
.workflow.checkout-retrato .gift-message-navigation .gift-carousel-arrow {width:44px;height:44px;min-height:44px;border-radius:10px}
.workflow.checkout-retrato .gift-message-toolbar small,.workflow.checkout-retrato [data-template-position] {font:400 12px/1.3 var(--body);color:var(--muted);white-space:nowrap}
.workflow.checkout-retrato [data-template-position] {min-width:34px;text-align:center}
.workflow.checkout-retrato .gift-simple-message .template-confirm {position:fixed;inset:0;margin:auto;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--gold);border-radius:14px;background:var(--paper);color:var(--ink);overflow:auto;box-shadow:0 12px 48px #21120b40;scroll-margin:0}
.workflow.checkout-retrato .template-confirm::backdrop {background:#21120bbf}
.workflow.checkout-retrato .gift-simple-message .template-confirm h2 {font:700 24px/1.25 var(--heading);margin:0 0 14px;color:var(--red)}
.workflow.checkout-retrato .template-confirm-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:480px) {.workflow.checkout-retrato .template-confirm-actions {grid-template-columns:1fr}}
.workflow.checkout-retrato [data-personalization-part=review] .gift-sticky {display:none}
.workflow.checkout-retrato .gift-message-change {padding:16px 0;border-bottom:1px solid var(--line);color:var(--red);overflow-wrap:anywhere}
.workflow.checkout-retrato .gift-message-change strong {font:700 21px/1.3 var(--heading)}
.workflow.checkout-retrato .gift-message-change del {color:var(--muted);margin-right:7px}
.workflow.checkout-retrato .gift-message-change p {font:400 14px/1.5 var(--body);margin:8px 0 0;color:var(--ink)}
.workflow.checkout-retrato [data-message-revised] {white-space:pre-wrap;margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--card);font:400 16px/1.6 var(--body)}
.workflow.checkout-retrato :is([data-review-apply],[data-review-keep]) {width:100%;min-height:48px;margin-top:12px}
.workflow.checkout-retrato [data-review-edit],.workflow.checkout-retrato [data-review-skip] {display:block;min-height:44px;padding:10px 0;white-space:normal;text-align:left}
.workflow.checkout-retrato [data-personalization-panel=delivery] label {display:block;font:700 18px/1.3 var(--heading);color:var(--red)}
.workflow.checkout-retrato [data-personalization-panel=delivery] small {display:block;font:400 13px/1.5 var(--body);color:var(--muted);margin-top:7px}

/* Keep navigation hit areas clear of preview controls, including their pulse. */
@media(max-width:600px) {
  .workflow.checkout-retrato .gift-product-select,.workflow.checkout-retrato .gift-voice-row {padding-inline:30px}
}
html:has(body.workflow.checkout-retrato) {scroll-padding-bottom:calc(var(--checkout-fixed-height,0px) + 16px)}
.workflow.checkout-retrato :is(input,textarea,select,[role=alert],[role=status]) {scroll-margin-block:16px}
@media(max-width:700px) {
  .workflow.checkout-retrato:has([data-products]:not([hidden]) .gift-sticky),
  .workflow.checkout-retrato:has([data-payment-sticky]:not([hidden])) {padding-bottom:calc(var(--checkout-fixed-height,0px) + 16px)}
  .workflow.checkout-retrato.checkout-keyboard .gift-sticky {position:static;inset:auto;margin:20px 0 0;border:1px solid var(--line);border-radius:10px}
}
@media(max-width:700px) and (max-height:500px) {
  .workflow.checkout-retrato .gift-sticky {position:static;inset:auto;margin:20px 0 0;border:1px solid var(--line);border-radius:10px}
}
/* Paid extras on the e-mail step (scoped like the panel's own label rules so they win) */
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addons {margin:22px 0 0;padding:6px 16px 16px;border:1px solid var(--line);border-radius:12px;background:#fffaf1}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addons legend {padding:0 6px;font:700 17px var(--heading);color:var(--red)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addons legend small {display:inline;margin:0;font:400 13px var(--body);color:var(--muted)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addon {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line);font:inherit;color:var(--ink);cursor:pointer}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addon input {width:20px;height:20px;margin:2px 0 0}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addon span {display:grid;gap:3px;min-width:0}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addon strong {font:700 16px/1.3 var(--heading);color:var(--red)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addon small {margin:0;font:400 13px/1.45 var(--body);color:var(--muted)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-addon b {white-space:nowrap;font:700 15px var(--body);color:var(--red)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-child-name {margin-top:14px}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-schedule {display:grid;gap:14px;margin-top:14px}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-schedule[hidden] {display:none}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-schedule label {display:grid;gap:6px;font:600 15px var(--body);color:var(--ink)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-schedule input {width:100%;max-width:340px}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-schedule small {margin:0;font:400 13px/1.45 var(--body);color:var(--muted)}
.workflow.checkout-retrato [data-personalization-panel="delivery"] .gift-schedule .gift-optional {display:inline;font-weight:400}
