/* A single retailer face, shared from browsing to opening and the private collection. */
.retailer-card-face{display:block;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:1920/1212;overflow:hidden;border-radius:3.3333%;background:#eeeae1}
.retailer-card-face>.retailer-card-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:var(--retailer-photo-position,center);transform:scale(var(--retailer-photo-zoom,1));transform-origin:center top;border:0;border-radius:inherit}
/* Spabreaks supplies a card inset in a white canvas. Frame the coloured face. */
.retailer-card-face[data-supplier-card-art][data-retailer=spabreaks]>.retailer-card-photo{transform:scale(2.28);transform-origin:center}
.retailer-logo-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:52%;height:40%;padding:3.5%;border-radius:2.5cqw;background:#fffdf6;box-shadow:0 2px 10px #0000000d}
.retailer-logo-panel[data-surface=ink]{background:#183d35}
.retailer-logo-panel[data-surface=white]{background:#fff}
.retailer-card-face .retailer-logo-panel>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none;transform:none}
.retailer-logo-fallback{font:600 8cqw/1.1 var(--sans,Arial,sans-serif);color:#183d35;text-align:center;overflow-wrap:anywhere}
.retailer-logo-panel[data-surface=ink] .retailer-logo-fallback{color:#fffdf6}
.retailer-logo-panel:has(.retailer-logo-fallback:not([hidden]))>img{display:none}
/* The whole tile remains the touch target; the state indicator belongs to the footer. */
#compact-builder .gift{position:relative;border-radius:10px;overflow:hidden}
#compact-builder .gift .gift-face{height:auto;aspect-ratio:1920/1212;overflow:hidden;background:transparent;border-radius:8px 8px 0 0}
#compact-builder .gift .gift-face>.retailer-card-face,#compact-builder .gift .gift-face>.choiceplus-family-face{width:100%;height:auto;aspect-ratio:1920/1212;border-radius:8px}
#compact-builder .gift>.gift-check{position:absolute;top:auto;bottom:8px;right:8px;width:28px;height:28px;border-radius:50%}
#compact-builder .gift .gift-price{padding-right:42px}
#compact-builder .gift .gift-name{padding-right:10px}
#compact-builder .item>.retailer-card-face{width:56px;flex:none;align-self:center}
.studio #gift-options .gift-option:has(.retailer-card-face) .gift-visual{display:block;padding:0;background:transparent;height:auto;aspect-ratio:1920/1212}
.studio #gift-options .gift-visual:has(.retailer-card-face):before,.studio #gift-options .gift-visual:has(.retailer-card-face):after,.studio #gift-options .gift-visual:has(.retailer-card-face) .gift-visual-label,.studio #gift-options .gift-visual:has(.retailer-card-face) .gift-added{display:none}
.basket-item-art>.retailer-card-face{width:100%}
#unwrapping .inner-gift .inner-card-face.retailer-photo-face{aspect-ratio:1920/1212;background:transparent}
#unwrapping .inner-card-face.retailer-photo-face:before,#unwrapping .inner-card-face.retailer-photo-face:after{content:none}
#unwrapping .inner-card-face.retailer-photo-face>.retailer-card-face{width:100%;height:100%}
#unwrapping .retailer-gift-value{font:500 16px/1.5 var(--sans);margin:12px 0;color:inherit}
#unwrapping .retailer-gift-value .inner-card-value{position:static;font:inherit;letter-spacing:normal;color:inherit}
.card-gifts>.retailer-card-face{width:96px;height:auto;flex:none}
.my-card-face.retailer-owned-face{display:flex;flex-direction:column;aspect-ratio:auto;padding:0;background:transparent;overflow:hidden;border:0;box-shadow:none}
.my-card-face.retailer-owned-face:before,.my-card-face.retailer-owned-face:after{content:none}
.my-card-face.retailer-owned-face>.retailer-card-face{width:100%;height:auto;aspect-ratio:1920/1212;flex:none}
.my-card-face.retailer-owned-face>.my-card-face-foot{position:static;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:0;width:100%;padding:12px 14px;background:#f5f3eb;color:#183d35}
.my-card-face.retailer-owned-face .my-card-test{position:static;align-self:flex-start;margin:0 14px 10px}

.my-card-detail .my-card-face.retailer-owned-face{padding:0}
.flexible-brand-logo:has(.retailer-card-face){display:block;width:100%;height:auto;padding:0;background:transparent;aspect-ratio:1920/1212;border:0}
.flexible-brand-logo>.retailer-card-face{width:100%;height:100%}
.chosen-retailer-face{display:block;width:min(100%,320px);margin:0 auto 20px}


/* Card assets are distinct from photographic browsing tiles. Preserve the full 11:5 face. */
.retailer-card-face.diagonal-ribbon-face{aspect-ratio:11/5;background:transparent;border-radius:4.727% / 10.4%;}
.retailer-card-face.diagonal-ribbon-face>.retailer-ribbon-art{position:static;display:block;width:100%;height:auto;aspect-ratio:11/5;object-fit:contain;border:0;border-radius:inherit;transform:none;filter:none;max-width:none;max-height:none;}
.ribbon-art-fallback{display:block;padding:10%;background:#183d35;color:#fffdf6;font:600 8cqw/1.2 var(--sans,Arial,sans-serif);text-align:center;}
.ribbon-art-fallback[hidden]{display:none;}
#unwrapping .inner-gift .inner-card-face.retailer-photo-face{aspect-ratio:11/5;min-height:0;height:auto;}
#unwrapping .inner-card-face.retailer-photo-face>.diagonal-ribbon-face{height:auto;aspect-ratio:11/5;}
.my-card-face.retailer-owned-face>.diagonal-ribbon-face{height:auto;aspect-ratio:11/5;}
#compact-builder .item>.diagonal-ribbon-face{width:72px;}
.basket-item-art:has(.diagonal-ribbon-face){width:72px;max-width:72px;height:auto;aspect-ratio:11/5;flex:none;}
#checkout-items .summary-row>.diagonal-ribbon-face{width:72px;flex:none;}
.flexible-brand-logo:has(.diagonal-ribbon-face){aspect-ratio:11/5;min-height:0;}
.flexible-brand-logo>.diagonal-ribbon-face{height:auto;aspect-ratio:11/5;}
/* A dense recipient catalogue: 3 across on desktop, 2 on phone. Amounts remain 44px targets. */
#brand-choice:has(.flexible-brand-grid){width:min(880px,96vw);}
#brand-choice .flexible-brand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0;}
#brand-choice .flexible-brand{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:center;gap:6px;padding:10px;min-width:0;background:#f5f3eb;border:1px solid #d9dfd3;border-radius:10px;}
#brand-choice .flexible-brand-logo{flex-basis:100%;width:100%;margin:0 0 3px;min-height:0;}
#brand-choice .flexible-brand>b{flex-basis:100%;min-height:2.5em;font:500 14px/1.3 var(--sans);margin:2px 0 4px;overflow-wrap:anywhere;}
#brand-choice .flexible-brand .gift-value-button{flex:1 1 44px;min-width:44px;min-height:44px;margin:0;padding:7px 5px;font-size:14px;line-height:1.2;}
#brand-choice .flexible-brand .gift-value-button:focus-visible{outline:2px solid #1947e5;outline-offset:2px;}
@media(max-width:600px){
 #brand-choice .flexible-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 #brand-choice .flexible-brand{padding:8px;gap:5px;}
 #brand-choice .flexible-brand>b{font-size:14px;}
 #compact-builder .item>.diagonal-ribbon-face{width:64px;}
}
/* The retained legacy catalogue also scales its art down on narrow screens. */
#make #gift-options .gift-option{min-width:0;}
#make #gift-options .gift-visual:has(.retailer-card-face),#make #gift-options .gift-visual:has(.choiceplus-family-face){min-height:0;min-width:0;}

/* ChoicePlus picker and confirmation use the same compact layout. */
#brand-choice[data-flexible-choice] {
 width:min(900px,calc(100vw - 24px));
 max-height:calc(100dvh - 24px);
 padding:20px clamp(14px,3vw,28px);
}
#brand-choice[data-flexible-choice] .dialog-close-bar {
 position:absolute;
 top:12px;
 right:14px;
 margin:0;
}
#brand-choice[data-flexible-choice] h2 {
 margin:0 94px 6px 0;
 font-size:clamp(25px,4vw,37px);
 line-height:1.1;
}
#brand-choice[data-flexible-choice] :is(h3,h4) {
 margin:12px 0 6px;
}
#brand-choice[data-flexible-choice] .choiceplus-budget {
 max-width:320px;
}
#brand-choice[data-flexible-choice] .choiceplus-balance {
 display:flex;
 align-items:baseline;
 gap:4px;
 margin:0 0 6px;
 color:#183d35;
 font:500 14px/1.25 var(--sans);
}
#brand-choice[data-flexible-choice] .choiceplus-balance strong {
 font-size:22px;
 font-weight:600;
}
#brand-choice[data-flexible-choice] .choiceplus-meter {
 display:block;
 width:100%;
 height:6px;
 accent-color:#3158d8;
}
#brand-choice[data-flexible-choice] .choiceplus-instruction {
 margin:12px 0;
 color:#183d35;
 font:400 14px/1.45 var(--sans);
}
#brand-choice[data-flexible-choice] .flexible-brand-grid {
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:10px;
 margin:12px 0 0;
}
#brand-choice[data-flexible-choice] .flexible-brand {
 padding:8px;
}
#brand-choice[data-flexible-choice] .flexible-brand>b {
 min-height:0;
 margin:1px 0 3px;
}
#brand-choice[data-flexible-choice] .flexible-brand .gift-value-button {
 font-size:13px;
}
#brand-choice[data-flexible-choice] :is(.button,.text-link) {
 min-height:44px;
 margin:4px 12px 4px 0;
}
#brand-choice[data-flexible-choice] .choiceplus-picks {
 list-style:none;
 padding:0;
 margin:8px 0;
 max-width:520px;
}
#brand-choice[data-flexible-choice] .choiceplus-pick {
 display:flex;
 align-items:center;
 gap:12px;
 padding:3px 0;
 min-height:36px;
 border-bottom:1px solid #d9dfd3;
}
#brand-choice[data-flexible-choice] .choiceplus-pick strong {
 margin-left:auto;
}
#brand-choice[data-flexible-choice] .choiceplus-pick .text-link {
 margin:0;
}
#brand-choice[data-flexible-choice] .choiceplus-confirmation {
 display:flex;
 align-items:center;
 gap:8px;
 min-height:3em;
 margin:4px 0 8px;
}
.choiceplus-confirmation-burst {
 display:none;
}
#brand-choice[data-flexible-choice] .choiceplus-selection {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),210px));
 gap:12px;
 list-style:none;
 padding:0;
 margin:0 0 8px;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-card {
 min-width:0;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-face {
 display:grid;
 aspect-ratio:11/5;
 border-radius:10px;
 isolation:isolate;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-face > * {
 grid-area:1/1;
 min-width:0;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-face .flexible-brand-logo {
 height:100%;
 margin:0;
 border-radius:inherit;
 pointer-events:none;
}
#brand-choice[data-flexible-choice] .choiceplus-face-action {
 place-self:end start;
 padding:6px;
 z-index:1;
}
#brand-choice[data-flexible-choice] .choiceplus-face-action .button {
 min-height:44px;
 margin:0;
 padding:6px 12px;
 background:#fffdf6;
 color:#183d35;
 border:1px solid #183d35;
 border-radius:7px;
 font:600 13px/1.15 var(--sans);
 box-shadow:none;
}
#brand-choice[data-flexible-choice] .choiceplus-face-action .button:hover {
 background:#f0ede0;
}
#brand-choice[data-flexible-choice] .choiceplus-face-action .button:focus-visible {
 outline:2px solid #fffdf6;
 outline-offset:2px;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-card h4 {
 display:flex;
 justify-content:space-between;
 gap:6px;
 margin:7px 0 0;
 overflow-wrap:anywhere;
 font:600 14px/1.35 var(--sans);
}
#brand-choice[data-flexible-choice] .choiceplus-selection-card h4 span:last-child {
 flex:none;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-actions {
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:0 8px;
 min-height:62px;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-actions :is(.button,.text-link) {
 margin:0;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-details {
 min-height:44px;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-details :is(.text-link,.choiceplus-instruction) {
 margin:0;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-details .choiceplus-instruction {
 margin:4px 0;
}
@media(prefers-reduced-motion:no-preference){
 .choiceplus-confirmation-burst {
  display:block;
  position:relative;
  width:24px;
  height:24px;
  flex:none;
  pointer-events:none;
 }
 .choiceplus-confirmation-burst::before {
  content:"";
  position:absolute;
  inset:5px;
  border:1.5px solid #183d35;
  border-radius:50%;
  animation:choiceplus-pulse 370ms cubic-bezier(.2,.7,.3,1) both;
 }
 .choiceplus-confirmation-spark {
  position:absolute;
  inset:calc(50% - 1px) auto auto calc(50% - 1px);
  width:5px;
  height:2px;
  border-radius:2px;
  background:#3455dc;
  animation:choiceplus-spark 500ms 105ms cubic-bezier(.16,1,.3,1) both;
 }
 .choiceplus-confirmation-spark:nth-child(1) {--angle:-170deg;--distance:13px;background:#a95c42;}
 .choiceplus-confirmation-spark:nth-child(2) {--angle:-127deg;--distance:18px;background:#42675a;}
 .choiceplus-confirmation-spark:nth-child(3) {--angle:-88deg;--distance:20px;background:#c5a44c;}
 .choiceplus-confirmation-spark:nth-child(4) {--angle:-37deg;--distance:23px;}
 .choiceplus-confirmation-spark:nth-child(5) {--angle:10deg;--distance:19px;background:#42675a;}
 .choiceplus-confirmation-spark:nth-child(6) {--angle:52deg;--distance:22px;background:#a95c42;}
 .choiceplus-confirmation-spark:nth-child(7) {--angle:90deg;--distance:15px;background:#c5a44c;}
 .choiceplus-confirmation-spark:nth-child(8) {--angle:139deg;--distance:13px;}
 @keyframes choiceplus-pulse {
  0% {opacity:0;transform:scale(.3);}
  24% {opacity:.8;}
  100% {opacity:0;transform:scale(1.8);}
 }
 @keyframes choiceplus-spark {
  0% {opacity:0;transform:rotate(var(--angle)) translateX(4px) scale(.4);}
  24% {opacity:1;}
  100% {opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) scale(.55);}
 }
 #brand-choice[data-flexible-choice] .choiceplus-selection.just-reserved .choiceplus-face-action .button {
  animation:choiceplus-confirmed 260ms cubic-bezier(.2,.8,.3,1) both;
 }
 @keyframes choiceplus-confirmed {
  from {opacity:0;transform:translateY(4px);}
  to {opacity:1;transform:translateY(0);}
 }
}
#brand-choice[data-flexible-choice] .choiceplus-code {
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:4px 12px;
 font-size:13px;
}
#brand-choice[data-flexible-choice] .choiceplus-code code {
 overflow-wrap:anywhere;
 font-size:14px;
 font-weight:600;
}
@media(max-width:800px){
 #brand-choice[data-flexible-choice] .flexible-brand-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}
@media(max-width:560px){
 #brand-choice[data-flexible-choice] .flexible-brand-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
 }
 #brand-choice[data-flexible-choice] .choiceplus-selection {
  grid-template-columns:repeat(2,minmax(0,210px));
  gap:10px;
 }
 #brand-choice[data-flexible-choice] .choiceplus-face-action {
  padding:5px;
 }
 #brand-choice[data-flexible-choice] .choiceplus-face-action .button {
  padding-inline:8px;
 }
}
@media(max-width:350px){
 #brand-choice[data-flexible-choice] .choiceplus-confirmation {
  min-height:4.35em;
 }
}

/* Use the same reading width and close control for both card journeys. */
#brand-choice[data-choice-size] {
 --choice-pad:clamp(14px,3vw,28px);
 max-height:calc(100dvh - 24px);
 padding:20px var(--choice-pad);
 scrollbar-width:thin;
 scrollbar-color:#9aa79e transparent;
}
#brand-choice[data-choice-size="compact"] {
 width:min(640px,calc(100vw - 24px));
}
#brand-choice[data-choice-size] .dialog-close-bar {
 position:sticky;
 top:0;
 right:auto;
 height:0;
 margin:0;
 padding:0;
 justify-content:flex-end;
 align-items:flex-start;
 z-index:3;
}
#brand-choice[data-choice-size] .dialog-close-bar .close {
 margin:0;
 min-height:44px;
}
#brand-choice[data-choice-size] #choice-content>h2 {
 margin:0 104px 14px 0;
 font-size:clamp(25px,4vw,37px);
 line-height:1.12;
 overflow-wrap:anywhere;
}
#brand-choice[data-flexible-choice] #choice-content>h2 {
 margin-bottom:6px;
}
#brand-choice .gift-choice-summary {
 display:flex;
 align-items:center;
 gap:clamp(12px,3vw,20px);
 margin:0 0 16px;
}
#brand-choice .gift-choice-art {
 width:min(52%,190px);
 flex:none;
}
#brand-choice .gift-choice-art .diagonal-ribbon-face {
 width:100%;
 height:auto;
}
#brand-choice .gift-choice-facts {
 display:grid;
 gap:3px;
 font:500 13px/1.35 var(--sans);
}
#brand-choice .gift-choice-facts strong {
 font-size:22px;
 line-height:1.15;
}
#brand-choice[data-choice-size]:not([data-flexible-choice]) .choice-help {
 margin:0 0 12px;
 color:inherit;
 font:400 14px/1.5 var(--sans);
}
#brand-choice[data-choice-size]:not([data-flexible-choice]) :is(.field,.compatibility-check) {
 margin:12px 0;
}
#brand-choice[data-choice-size] :is(.button,.text-link) {
 min-height:44px;
}
#brand-choice[data-choice-size="compact"] .choiceplus-budget {
 max-width:none;
}
#brand-choice[data-flexible-choice] .choiceplus-confirmation {
 min-height:24px;
 margin:6px 0 12px;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-details:empty {
 display:none;
}
#brand-choice[data-flexible-choice] .choiceplus-selection-actions {
 min-height:44px;
 margin-top:8px;
}
#brand-choice[data-choice-size] .sample-gift-code {
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 gap:0 12px;
 align-items:center;
 padding:8px 10px 3px;
 margin:8px 0;
 border:1px solid #d9dfd3;
 border-radius:8px;
 background:#fffdf6;
 color:#183d35;
 font:500 13px/1.3 var(--sans);
}
#brand-choice[data-choice-size] .sample-gift-code-label,
#brand-choice[data-choice-size] .sample-gift-copy-status {
 grid-column:1/-1;
}
#brand-choice[data-choice-size] .sample-gift-copy-status:empty {
 display:none;
}
#brand-choice[data-choice-size] .sample-gift-copy-status {
 padding-bottom:5px;
}
#brand-choice[data-choice-size] .sample-gift-code code {
 min-width:0;
 overflow-wrap:anywhere;
 font-size:13px;
 font-weight:600;
 user-select:all;
}
#brand-choice[data-choice-size] .sample-gift-code .text-link {
 margin:0;
}
#brand-choice[data-flexible-choice] .choiceplus-selection:has(> :only-child) {
 grid-template-columns:minmax(0,1fr);
}
#brand-choice[data-flexible-choice] .choiceplus-selection-card:only-child :is(.choiceplus-selection-face,h4) {
 max-width:220px;
}
@media(min-width:561px){
 #brand-choice[data-flexible-choice][data-choice-size="compact"] .flexible-brand-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
 #brand-choice[data-flexible-choice] .choiceplus-selection-card:only-child:has(.sample-gift-code) {
  display:grid;
  grid-template-columns:minmax(0,220px) minmax(0,1fr);
  grid-template-rows:auto 1fr;
  column-gap:18px;
  align-items:start;
 }
 #brand-choice[data-flexible-choice] .choiceplus-selection-card:only-child:has(.sample-gift-code) .choiceplus-selection-details {
  grid-area:1/2/3/3;
 }
}
@media(max-width:560px){
 #brand-choice[data-flexible-choice] .choiceplus-selection:has(.sample-gift-code) {
  grid-template-columns:minmax(0,1fr);
 }
 #brand-choice[data-flexible-choice] .choiceplus-selection:has(.sample-gift-code) :is(.choiceplus-selection-face,h4) {
  max-width:220px;
 }
}

/* Remove the thin white border baked into Urban's preview image. */
.retailer-card-face[data-supplier-card-art][data-retailer=urban]>.retailer-card-photo{transform:scale(1.055);transform-origin:center}
