/* v584: contained artwork and directional color navigation */
#product-color-guide-modal .z-size-guide-sheet{max-width:min(560px,calc(100vw - 20px))}
#product-color-guide-modal .z-size-guide-scroll{padding:0!important}
.z582-outfit-app{font-family:inherit;color:#233b34;--z582-text:#233b34}
.z582-outfit-intro{padding:22px 24px 15px;background:linear-gradient(115deg,#f4faf6,#f8f7f3)}
.z582-eyebrow{font-size:10px;font-weight:900;letter-spacing:.04em;color:#599079}
.z582-outfit-intro h3{font-size:19px;font-weight:850;margin:5px 0 3px;line-height:1.5;color:#254d40}
.z582-outfit-intro p{font-size:12px;line-height:1.85;color:#6c8176;margin:0}
.z582-outfit-stage{padding:14px 18px 12px;background:linear-gradient(180deg,#f8faf8,#eff5f2);touch-action:pan-y;user-select:none}
.z582-outfit-paper{height:315px;max-width:330px;margin:auto;display:grid;place-items:center;border-radius:22px;background:radial-gradient(ellipse at 50% 24%,#fff 0%,rgba(255,255,255,.42) 58%,rgba(215,227,219,.16) 100%);transition:none}
.z582-outfit-svg{width:100%;height:100%;filter:drop-shadow(0 5px 8px rgba(50,67,60,.11));overflow:hidden}
.z582-outfit-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:8px}
.z582-outfit-tags>div{background:rgba(255,255,255,.9);border:1px solid #e5ede7;border-radius:14px;padding:9px 12px;min-width:0}
.z582-outfit-tags small{display:block;color:#7e9188;font-size:10px;margin-bottom:4px}
.z582-outfit-tags b{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.z582-outfit-tags i{width:17px;height:17px;min-width:17px;border:1px solid rgba(0,0,0,.12);border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.z582-outfit-bottom{padding:17px 22px 23px;background:#fff}
.z582-outfit-bottom-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.z582-outfit-bottom-head>div:first-child{display:grid;gap:3px}
.z582-outfit-bottom-head strong{font-size:14px;color:#345f50}
.z582-outfit-bottom-head span{font-size:10px;color:#93a49b}
.z582-arrow-group{display:flex;gap:7px}
.z582-arrow-group button{width:38px;height:38px;border-radius:13px;border:1px solid #dce9e1;background:#f4faf6;color:#477966;font-weight:800;cursor:pointer}
.z582-arrow-group button:active{background:#e1f0e8}
.z582-outfit-palette{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 11px;scrollbar-width:thin;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain}
.z582-outfit-choice{flex:0 0 105px;min-height:105px;padding:9px 8px 10px;border-radius:16px;border:1px solid #e4ebe7;background:#fafcfb;color:#4b665b;text-align:center;cursor:pointer;display:grid;align-content:center;justify-items:center;gap:8px;scroll-snap-align:center;transition:border-color .17s,background .17s,transform .17s}
.z582-outfit-choice.is-selected{border:2px solid #619a7f;background:#edf8f1;transform:translateY(-1px)}
.z582-outfit-choice b{font-size:11px;line-height:1.5;font-weight:750}
.z582-outfit-color{display:block;width:50px;height:50px;border-radius:15px;border:2px solid rgba(255,255,255,.82);box-shadow:0 0 0 1px rgba(32,61,50,.18),0 3px 9px rgba(32,61,50,.12)}
.z582-outfit-reason{font-size:12px;color:#375a4c;margin:4px 0 0;line-height:1.7}
.z582-outfit-hint{font-size:10px;color:#9aa9a1;margin:5px 0 0}
.z582-category-kind{display:inline-block;padding:3px 10px;border-radius:999px;color:#427765;background:#e9f5ef;border:1px solid #d3e9dc;font-size:11px;margin:6px 0}
.z582-garment-type{border:1px solid #dcece1;border-radius:15px;background:#f7fbf8;padding:13px}
.z582-garment-type[hidden]{display:none!important}
@media(max-width:600px){#product-color-guide-modal .z-size-guide-sheet{max-width:100vw}.z582-outfit-intro{padding:16px 18px 11px}.z582-outfit-intro h3{font-size:17px}.z582-outfit-stage{padding:10px 12px}.z582-outfit-paper{height:270px}.z582-outfit-bottom{padding:14px 15px 19px}.z582-outfit-choice{flex-basis:94px;min-height:94px}.z582-outfit-color{width:44px;height:44px}.z582-outfit-tags{gap:7px}.z582-outfit-tags>div{padding:8px 9px}.z582-outfit-tags b{font-size:11px}}
html.dark-mode .z582-outfit-intro,body.dark-mode .z582-outfit-intro{background:#1b3028}
html.dark-mode .z582-outfit-intro h3,body.dark-mode .z582-outfit-intro h3{color:#d8f4e3}
html.dark-mode .z582-outfit-stage,body.dark-mode .z582-outfit-stage{background:#243a30}
html.dark-mode .z582-outfit-bottom,body.dark-mode .z582-outfit-bottom{background:#1d2d29}
html.dark-mode .z582-outfit-bottom-head strong,body.dark-mode .z582-outfit-bottom-head strong{color:#d8f4e3}
html.dark-mode .z582-outfit-choice,body.dark-mode .z582-outfit-choice{background:#253a31;border-color:#375749;color:#d7ebdf}
html.dark-mode .z582-outfit-choice.is-selected,body.dark-mode .z582-outfit-choice.is-selected{background:#315341;border-color:#84b99d}
@media(prefers-reduced-motion:reduce){.z582-outfit-choice{transition:none}}

/* v583: the 240x355 SVG must NEVER paint beyond the illustration's own box. */
#product-color-guide-modal .z582-outfit-stage{
  position:relative;min-width:0;overflow:hidden;padding:12px 16px 13px;
  touch-action:pan-y;
}
#product-color-guide-modal .z582-outfit-paper{
  width:100%;max-width:344px;height:254px;min-height:0;max-height:none;
  margin:0 auto;display:grid;place-items:center;overflow:hidden;
  border-radius:20px;isolation:isolate;contain:layout paint;
}
#product-color-guide-modal .z583-outfit-art{
  width:156px;height:231px;max-width:75%;max-height:calc(100% - 12px);
  position:relative;display:block;overflow:hidden;flex:none;
}
#product-color-guide-modal .z583-outfit-art>.z582-outfit-svg{
  display:block;width:100%!important;height:100%!important;
  max-width:100%;max-height:100%;overflow:hidden!important;
  object-fit:contain;pointer-events:none;
}
#product-color-guide-modal .z582-outfit-tags{
  position:relative;z-index:1;min-width:0;margin:10px auto 0;max-width:344px;
}
#product-color-guide-modal .z582-outfit-bottom{position:relative;z-index:1;min-width:0}
#product-color-guide-modal .z582-outfit-palette{
  min-width:0;touch-action:pan-y;overscroll-behavior-inline:contain;
}
#product-color-guide-modal .z582-outfit-choice{user-select:none;-webkit-user-select:none}
@media(max-width:600px){
  #product-color-guide-modal .z-size-guide-sheet{width:100%;max-height:min(88dvh,780px)}
  #product-color-guide-modal .z582-outfit-intro{padding:11px 16px 8px}
  #product-color-guide-modal .z582-outfit-intro h3{font-size:16px;margin:3px 0 2px}
  #product-color-guide-modal .z582-outfit-intro p{font-size:11px;line-height:1.6}
  #product-color-guide-modal .z582-outfit-stage{padding:9px 13px 10px}
  #product-color-guide-modal .z582-outfit-paper{height:208px;max-width:100%;border-radius:18px}
  #product-color-guide-modal .z583-outfit-art{width:128px;height:190px;max-height:calc(100% - 10px)}
  #product-color-guide-modal .z582-outfit-tags{margin-top:8px;gap:8px}
  #product-color-guide-modal .z582-outfit-tags>div{padding:7px 9px;min-width:0}
  #product-color-guide-modal .z582-outfit-tags b{font-size:11px}
  #product-color-guide-modal .z582-outfit-bottom{padding:11px 15px 15px}
  #product-color-guide-modal .z582-outfit-bottom-head{margin-bottom:8px}
  #product-color-guide-modal .z582-outfit-choice{flex-basis:92px;min-height:90px}
}
@media(max-width:375px), (max-height:650px){
  #product-color-guide-modal .z582-outfit-paper{height:176px}
  #product-color-guide-modal .z583-outfit-art{width:108px;height:160px}
}

/* v584: SVG arrow geometry is physical and cannot be mirrored by RTL glyph shaping. */
#product-color-guide-modal .z582-arrow-group{direction:rtl;align-items:center}
#product-color-guide-modal .z582-arrow-group button{display:grid;place-items:center;padding:0;flex:0 0 38px}
#product-color-guide-modal .z582-arrow-group button svg{width:20px;height:20px;display:block;overflow:visible;direction:ltr;transform:none!important}
#product-color-guide-modal .z582-arrow-group button svg path{fill:none;stroke:currentColor;stroke-width:2.75;stroke-linecap:round;stroke-linejoin:round}
#product-color-guide-modal .z582-arrow-group button:disabled{opacity:.36;cursor:not-allowed}

/* v585: native kinetic horizontal rail; horizontal gesture never auto-selects a color. */
#product-color-guide-modal .z582-outfit-palette{
  overflow-x:auto!important;overflow-y:hidden!important;
  touch-action:pan-x pan-y!important;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  user-select:none;
}
#product-color-guide-modal .z582-outfit-choice{scroll-snap-align:center;flex-shrink:0;touch-action:pan-x pan-y}
@media(prefers-reduced-motion:reduce){#product-color-guide-modal .z582-outfit-palette{scroll-behavior:auto}}
