/* Interactive patch fitting room: original artwork, displayed with shape masks. */
#probador[hidden], #probador [hidden], [data-try-entry][hidden] { display: none !important; }
.patch-themes .try-entry { background: var(--dark); border-color: var(--dark); color: white; }
.patch-themes .try-entry:hover { background: #183f36; }
.patch-try { scroll-margin-top: 160px; margin: 30px 0 22px; padding: 28px; border: 1px solid #b7d1c3; border-radius: 24px; background: #e9f2ed; }
.try-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 26px; }
.try-heading > div { max-width: 720px; }
.try-heading .eyebrow { font-size: 12px; letter-spacing: .1em; margin: 0 0 9px; }
.try-heading h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 0 0 14px; color: var(--dark); }
.try-heading p:not(.eyebrow) { font-size: 16px; line-height: 1.7; margin: 0; color: var(--ink); }
.try-catalogue-link { flex: none; font-weight: 750; font-size: 14px; line-height: 1.6; padding-top: 5px; text-underline-offset: 4px; }
.try-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 26px; }
.try-workbench, .try-picker { min-width: 0; }
.try-stage { position: relative; isolation: isolate; width: 100%; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; background: #d8d5d0; outline: 3px solid transparent; outline-offset: 3px; scroll-margin-top: 160px; }
.try-stage.is-drop-target { outline-color: #287e68; }
.try-backpack { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; pointer-events: none; }
.try-layer { position: absolute; inset: 0; pointer-events: none; }
.try-placed { position: absolute; display: block; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: grab; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 2px 2px #0009); min-height: 0; min-width: 0; outline: 2px solid transparent; outline-offset: 4px; transform-origin: center; }
.try-placed.is-selected, .try-placed:focus-visible { outline-color: #f2d486; outline-style: dashed; }
.try-placed.is-dragging { cursor: grabbing; outline-style: solid; }
.try-art { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.try-art--round { clip-path: circle(48% at 50% 50%); }
.try-art--round-logo { clip-path: circle(46% at 50% 50%); }
.try-art--long { clip-path: inset(7% 1% 7% 1% round 7% / 20%); }
.try-art--long-wide { clip-path: inset(8% 1% 7% 1% round 7% / 20%); }
.try-art--square { clip-path: inset(3.5% 4% 3.5% 4% round 12%); }
.try-art--historic { clip-path: inset(1.5% 1.5% 2.5% 1.5% round 10%); }
.try-empty { position: absolute; inset: 17% 17% auto; height: 14%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; text-align: center; color: #fff; padding: 8px; pointer-events: none; text-shadow: 0 1px 3px #000; }
.try-empty > span:first-child { font-size: 27px; line-height: 1; color: #f2d486; }
.try-empty strong { font-size: clamp(12px, 1.3vw, 16px); line-height: 1.3; }
.try-empty > span:last-child { font-size: 12px; line-height: 1.3; }
.try-stage-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; font-weight: 750; }
.try-stage-caption a { text-underline-offset: 3px; }
.try-help { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 14px 0; }
.try-editor, .try-picker { background: white; border: 1px solid #c2d6cb; border-radius: 16px; padding: 20px; }
.try-label { display: block; color: var(--dark); font-size: 14px; font-weight: 750; margin-bottom: 8px; line-height: 1.5; }
.patch-try select { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; border: 1px solid #a3beb0; border-radius: 9px; background: #fff; color: #193d34; font: 650 15px/1.5 Montserrat, sans-serif; padding: 9px 30px 9px 10px; text-overflow: ellipsis; }
.patch-try button { font-family: Montserrat, sans-serif; }
.try-editor fieldset { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.try-editor legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 14px; font-weight: 750; color: var(--dark); line-height: 1.5; }
.try-editor fieldset:disabled { opacity: .55; }
.try-sliders { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.try-sliders label { min-width: 0; font-size: 14px; font-weight: 700; }
.try-sliders output { font-weight: 550; color: var(--muted); }
.try-sliders input { display: block; width: 100%; min-height: 44px; margin: 3px 0 0; accent-color: var(--dark); cursor: pointer; }
.try-nudges { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin: 8px 0 14px; }
.try-nudges > span { font-size: 13px; font-weight: 700; margin-right: 4px; }
.try-nudges button { min-width: 44px; min-height: 44px; font-size: 23px; padding: 0; }
.try-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.try-actions button, .try-nudges button, .try-clear { border: 1px solid #afc6b9; border-radius: 9px; background: #f5faf7; color: var(--dark); cursor: pointer; font-weight: 750; line-height: 1.5; }
.try-actions button { min-height: 44px; padding: 9px 11px; font-size: 13px; flex: 1 1 auto; }
.try-actions .try-remove { color: #8b3030; background: #fff8f6; border-color: #dcbdb5; }
.try-clear { display: block; width: 100%; min-height: 44px; padding: 10px 12px; margin-top: 16px; font-size: 13px; background: white; }
.patch-try button:disabled, .patch-try select:disabled { cursor: default; }
.try-clear:disabled { opacity: .5; }
.try-actions button:hover:enabled, .try-nudges button:hover:enabled, .try-clear:hover:enabled { background: #e3f0e8; }
.try-picker { scroll-margin-top: 160px; }
.try-picker-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.try-step { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; background: var(--dark); color: #fff; font-size: 27px; }
.try-picker h3 { font-size: 21px; line-height: 1.3; margin: 0 0 9px; color: var(--dark); }
.try-picker-heading p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.try-zone { display: flex; flex-wrap: wrap; gap: 8px 14px; min-width: 0; padding: 0 0 14px; border: 0; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.try-zone legend { font-size: 14px; font-weight: 750; margin-bottom: 4px; }
.try-zone label { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: 13px; font-weight: 650; cursor: pointer; }
.try-zone input { width: 18px; height: 18px; accent-color: var(--dark); margin: 0; }
.try-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 650px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 3px 6px 8px 3px; margin: 18px -6px 0 -3px; }
.try-choice { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 7px; min-width: 0; padding: 10px; border: 1px solid #c4d7cc; border-radius: 12px; background: #f4f8f6; color: var(--dark); text-align: left; cursor: pointer; }
.try-choice:hover { border-color: var(--dark); background: #e8f3ed; }
.try-choice-image { display: flex; align-items: center; justify-content: center; height: 95px; padding: 2px; }
.try-choice-image img { width: auto; max-width: 100%; max-height: 100%; height: auto; }
.try-choice-name { font-size: 13px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.try-choice-add { font-size: 12px; font-weight: 800; line-height: 1.5; }
.try-status { min-height: 24px; margin: 20px 0 0; color: var(--dark); font-size: 14px; font-weight: 650; line-height: 1.6; }
.try-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0 0; }
.try-image-error { padding: 12px; color: #7b2424; background: #fff1e9; border: 1px solid #d9b1a3; border-radius: 9px; font-size: 14px; line-height: 1.6; }
.has-patch-try .patch-card { display: flex; flex-direction: column; }
.has-patch-try .patch-link { height: auto; flex: 1; }
.try-from-gallery { display: block; width: calc(100% - 24px); min-height: 44px; padding: 9px; margin: 0 12px 14px; border: 1px solid #aac7b6; border-radius: 9px; background: #e8f2ec; color: var(--dark); font: 750 13px/1.5 Montserrat, sans-serif; cursor: pointer; }
.try-from-gallery:hover { background: #d9ebdf; }
@media (max-width: 980px) {
  .try-heading { flex-direction: column; gap: 12px; }
  .try-layout { gap: 18px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .patch-try { padding: 20px; scroll-margin-top: 190px; }
  .try-editor, .try-picker { padding: 14px; }
  .try-choices { gap: 8px; max-height: 570px; }
  .try-choice { padding: 8px; }
  .try-choice-image { height: 78px; }
  .try-stage, .try-picker { scroll-margin-top: 190px; }
}
@media (max-width: 740px) {
  .try-layout { grid-template-columns: 1fr; gap: 22px; }
  .patch-try { padding: 18px 14px; margin-top: 24px; border-radius: 18px; }
  .try-heading p:not(.eyebrow) { font-size: 15px; }
  .try-heading { margin-bottom: 20px; }
  .try-stage { width: min(100%, 440px); margin-inline: auto; }
  .try-empty strong { font-size: 14px; }
  .try-choices { max-height: 440px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .try-choice-image { height: 84px; }
  .try-choice-name { font-size: 12px; }
  .try-picker h3 { font-size: 21px; }
  .try-status { font-size: 14px; }
}
@media (max-width: 420px) {
  .try-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .try-choice-name { font-size: 13px; }
  .try-nudges { gap: 5px; }
  .try-empty > span:first-child { font-size: 20px; }
  .try-empty strong { font-size: 12px; }
  .try-empty > span:last-child { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .patch-try { scroll-behavior: auto; } }
