/* These styles apply only to the photographic workshops for the M and XL boxes. */
[data-photo-format] .workshop-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:50px;
  gap:12px;
  padding:0;
}
[data-photo-format] .workshop-title {display:none}
[data-photo-format] .gift-format-return {
  gap:4px;
  font-size:13px;
  text-decoration:none;
  padding:0 3px;
}
[data-photo-format] [data-back] {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:0 4px 0 0;
}
[data-photo-format] .m-back-chevron {width:16px;height:16px;transform:rotate(90deg)}
[data-photo-format] .steps {gap:16px}
[data-photo-format] .steps button {
  position:relative;
  min-height:44px;
  font-size:13px;
}
[data-photo-format] .steps .step-num {display:none}
[data-photo-format] .steps [aria-current]::after {
  content:'';
  position:absolute;
  bottom:7px;
  inset-inline:0;
  height:1px;
  background:currentColor;
}
[data-photo-format] .steps button:disabled {color:#757579;opacity:1}
[data-photo-format] .gift-preview {
  grid-template-rows:46px minmax(0,1fr);
  background:#eee;
  border-radius:8px;
}
[data-photo-format] .preview-top {
  font-size:17px;
  line-height:1.15;
  padding:0 20px;
}
[data-photo-format] .preview-top small {font-size:12px}
[data-photo-format] .view-toggle {gap:4px}
[data-photo-format] .view-toggle button {
  color:#676761;
  font-size:13px;
}
[data-photo-format] .view-toggle [aria-pressed=true] {color:var(--ink)}
[data-photo-format] .preview-caption {display:none}
/* Register the open and wrapped exposures against the same physical carton.
   The open and wrapped photographs have different canvas margins. */
[data-photo-format] .preview-stage {
  container-type:size;
}
[data-photo-format="box-m"] .preview-stage {
  --scene-width:1580;
  --scene-height:1990;
  --open-width:2000;
  --open-height:2000;
  --open-center-x:999;
  --open-center-y:995;
  --body-width:1224;
  --body-height:1036;
  --wrapped-body-width:1069;
  --wrapped-center-x:723.5;
  --wrapped-center-y:484.5;
}
[data-photo-format="box-xl"] .preview-stage {
  --scene-width:2000;
  --scene-height:2000;
  --open-width:1944;
  --open-height:1720;
  --open-center-x:975;
  --open-center-y:1000;
  --body-width:1640;
  --body-height:1428;
  --wrapped-body-width:1220;
  --wrapped-center-x:650;
  --wrapped-center-y:556;
}
[data-photo-format] .assembly-scene,
[data-photo-format] .package-scene {
  --m-unit:var(--m-legacy-unit,min(calc((100cqw - 16px) / var(--scene-width)),calc((100cqh - 12px) / var(--scene-height))));
  padding:0;
}
[data-photo-format] .m-assembly-photo,
[data-photo-format] .gift-wrap-photo,
[data-photo-format] .gift-monogram {
  position:absolute;
  inset:auto;
  left:50%;
  top:50%;
  padding:0;
}
[data-photo-format] .m-assembly-photo {
  width:calc(var(--open-width) * var(--m-unit));
  height:calc(var(--open-height) * var(--m-unit));
  transform:translate(calc(-1 * var(--open-center-x) * var(--m-unit)),calc(-1 * var(--open-center-y) * var(--m-unit)));
}
[data-photo-format] .gift-wrap-photo,
[data-photo-format] .gift-monogram {
  --wrap-unit:calc(var(--m-unit) * var(--body-width) / var(--wrapped-body-width));
  width:calc(1300 * var(--wrap-unit));
  height:calc(1112 * var(--wrap-unit));
  transform:translate(calc(-1 * var(--wrapped-center-x) * var(--wrap-unit)),calc(-1 * var(--wrapped-center-y) * var(--wrap-unit)));
}
[data-photo-format] .package-scene > .package {
  position:absolute;
  left:50%;
  top:50%;
  width:calc(var(--body-width) * var(--m-unit));
  height:calc(var(--body-height) * var(--m-unit));
  max-width:none;
  max-height:none;
  transform:translate(-50%,-50%);
}
[data-photo-format] .package-scene:not(.has-wrap-photo) .gift-monogram {display:none}
[data-photo-format].gift-step-2 .builder-options {grid-template-rows:minmax(0,1fr)}
[data-photo-format].gift-step-2 .panel-navigation {display:none}
[data-photo-format] .slot-tabs {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:stretch;
  gap:2px;
  padding:2px;
  border-radius:8px;
  background:#f1f1f2;
  overflow:visible;
}
[data-photo-format] .slot-tabs button {
  min-height:44px;
  padding:0 clamp(8px,2vw,22px);
  color:#4e4e53;
  background:transparent;
  border:1px solid transparent;
  border-radius:6px;
  font-size:14px;
}
[data-photo-format="box-xl"] .slot-tabs {
  grid-template-columns:1.15fr .74fr 1fr 1.3fr .76fr;
}
[data-photo-format="box-xl"] .slot-tabs button {
  white-space:normal;
  line-height:1.15;
  min-width:0;
  padding:3px;
  font-size:clamp(12px,3.35vw,14px);
}
[data-photo-format] .slot-tabs [aria-pressed=true] {
  color:var(--ink);
  background:#fff;
  border-color:#dddddf;
  box-shadow:0 1px 3px #00000009;
}
[data-photo-format] .m-aroma-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin:17px 0 10px;
}
[data-photo-format] .m-aroma-heading h1 {font-size:26px;line-height:1.12;letter-spacing:-.04em}
[data-photo-format] .m-aroma-heading>span {font-size:13px;color:#66666b}
[data-photo-format] .scent-card {
  gap:9px;
  min-height:57px;
  padding:9px 10px;
  background:#f6f6f7;
  border:1px solid transparent;
}
[data-photo-format] .scent-card[aria-pressed=true] {border-color:#333338;background:#fff;box-shadow:inset 0 0 0 .5px #333338}
[data-photo-format] .scent-card:disabled {opacity:1;color:#76767b;background:#fafafa}
[data-photo-format] .scent-card:disabled .scent-dot {opacity:.45}
[data-photo-format] .scent-card strong {font-size:14px;line-height:1.2}
[data-photo-format] .scent-card small {font-size:12px;line-height:1.2;color:#67676b}
[data-photo-format] .scent-card small:empty {display:none}
[data-photo-format] .scent-dot {width:7px;height:7px;margin-top:5px}
[data-photo-format] .primary-button {
  width:auto;
  min-width:0;
  min-height:44px;
  justify-content:center;
  gap:12px;
  padding:9px 14px;
  border-radius:8px;
  font-size:13px;
  line-height:1.25;
}
[data-photo-format] .button-arrow {
  display:inline-block;
  width:auto;
  height:auto;
  border:0;
  font-size:17px;
  line-height:1;
}
[data-photo-format] .primary-button:disabled .button-arrow {border:0}
@media(min-width:737px) {
  [data-photo-format].gift-step-2 #options-panel {padding-top:4px}
}
@media(hover:hover) {
  [data-photo-format] .scent-card:enabled:hover {border-color:#8c8c8f}
}
@media(max-width:736px) {
  #gift-app[data-photo-format] {
    padding:0;
    --m-gutter:max(16px,env(safe-area-inset-left),env(safe-area-inset-right));
  }
  [data-photo-format] .workshop-bar {
    min-height:44px;
    gap:8px;
    padding:0 var(--m-gutter);
  }
  [data-photo-format] .steps {gap:clamp(10px,3.7vw,22px)}
  [data-photo-format] .steps button {font-size:12px}
  [data-photo-format] .gift-format-return {font-size:13px}
  [data-photo-format] .workspace {
    overflow:auto;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    scroll-padding-block:8px;
  }
  [data-photo-format] .builder-layout {
    display:block;
    height:auto;
  }
  [data-photo-format] #visual-container {
    height:calc(var(--app-height) * .49);
    min-height:205px;
    max-height:570px;
  }
  [data-photo-format] .gift-preview {grid-template-rows:44px minmax(0,1fr);border-radius:0}
  [data-photo-format] .preview-top {font-size:16px;padding:0 var(--m-gutter)}
  [data-photo-format] .view-toggle button {min-height:44px;font-size:12px;padding:0 8px}
  [data-photo-format] .view-toggle button:last-child {margin-right:-8px}
  [data-photo-format] .builder-options {
    display:block;
    padding:9px var(--m-gutter) 16px;
  }
  [data-photo-format] #options-panel {
    overflow:visible;
    padding:0;
  }
  [data-photo-format] .panel-navigation {height:44px;margin:0 0 4px}
  [data-photo-format] .slot-tabs button {font-size:14px}
  [data-photo-format] .m-aroma-heading {margin:13px 0 8px}
  [data-photo-format] .m-aroma-heading h1 {font-size:23px}
  [data-photo-format] .scent-grid {gap:6px}
  [data-photo-format] .scent-card {gap:7px;min-height:54px;padding:8px 9px}
  [data-photo-format] .builder-bottom {
    min-height:72px;
    padding:8px var(--m-gutter) max(26px,env(safe-area-inset-bottom));
  }
  [data-photo-format] .gift-price>span {display:none}
  [data-photo-format] .primary-button {min-width:96px;max-width:calc(100% - 82px);padding-inline:12px}
  [data-photo-format] .button-arrow {display:none}
  .keyboard-open [data-photo-format] #visual-container {height:110px;min-height:0}
  .keyboard-open [data-photo-format] .gift-preview {grid-template-rows:40px minmax(0,1fr)}
}
@media(max-width:350px) {
  #gift-app[data-photo-format] {--m-gutter:max(12px,env(safe-area-inset-left),env(safe-area-inset-right))}
  [data-photo-format] .slot-tabs button,[data-photo-format] .scent-card strong {font-size:13px}
}

[data-photo-format] .m-mobile-set-name {display:none}
@media(max-width:736px) {
  [data-photo-format] .workshop-bar {background:#eee;gap:4px;min-height:48px}
  [data-photo-format] .gift-format-return {
    position:relative;padding:0;min-height:44px;font-size:13px;font-weight:400;
  }
  [data-photo-format] .gift-format-return .m-back-chevron {
    position:static;width:14px;height:14px;
  }
  [data-photo-format] .steps {gap:clamp(8px,3vw,16px)}
  [data-photo-format] .steps button {
    min-height:44px;padding:0;font-size:13px;font-weight:400;color:#5c5c60;
  }
  [data-photo-format] .steps button:disabled {color:#77777a}
  [data-photo-format] .steps [aria-current] {color:#171719;font-weight:600}
  [data-photo-format] .steps [aria-current]::after {display:none}
  [data-photo-format].gift-step-3 .panel-navigation {display:none}
  [data-photo-format] .preview-top {display:none}
  [data-photo-format] .gift-preview,
  .keyboard-open [data-photo-format] .gift-preview {grid-template-rows:minmax(0,1fr)}
  [data-photo-format] .steps button {gap:3px}
  [data-photo-format] .steps .step-num {display:inline;width:auto;height:auto;border:0;background:none;color:inherit;font:inherit}
  body {position:fixed;inset-inline:0;top:var(--m-viewport-top,0px)}
  [data-photo-format] .m-aroma-heading {margin:12px 0}
}

@media(max-width:736px) {
  #gift-app[data-photo-format],
  [data-photo-format] .workspace {background-color:#eee}
  [data-photo-format] .builder-options,
  [data-photo-format] .builder-bottom {background-color:#fff}
}
