html:has([data-xw-photo]) { scroll-behavior: auto; }
.xw-photo { container: xw-photo / inline-size; min-width: 0; width: 100%; border-top: 1px solid var(--xw-line, #dce1db); margin-top: 28px; padding-top: 24px; color: var(--xw-ink, #242924); font: 14px/1.65 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.xw-photo *, .xw-photo *::before, .xw-photo *::after { box-sizing: border-box; letter-spacing: 0; }
.xw-photo [hidden] { display: none !important; }
.xw-photo h3, .xw-photo h4, .xw-photo h5, .xw-photo h6, .xw-photo p, .xw-photo figure { margin: 0; }
.xw-photo > .xw-photo-heading { font: 400 22px/1.35 Georgia, 'Times New Roman', serif; margin-bottom: 20px; overflow-wrap: anywhere; }
.xw-photo .xw-photo-toolbar h4, .xw-photo .xw-photo-preferences > h4 { font: 600 15px/1.45 Arial, Helvetica, sans-serif; }
.xw-photo .xw-photo-result > .xw-photo-toolbar h4 { font: 400 21px/1.35 Georgia, 'Times New Roman', serif; }
.xw-photo button { cursor: pointer; border-radius: 2px; font: 600 13px/1.4 Arial, Helvetica, sans-serif; text-transform: none; }
.xw-photo button:disabled { cursor: default; opacity: .48; }
.xw-photo svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.xw-photo button:focus-visible, .xw-photo a:focus-visible, .xw-photo input:focus-visible, .xw-photo select:focus-visible, .xw-photo textarea:focus-visible { outline: 2px solid var(--xw-water, #536975); outline-offset: 3px; }
.xw-photo-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.xw-photo-images, .xw-photo-preferences { min-width: 0; }
.xw-photo-preferences { border-top: 1px solid var(--xw-line, #dce1db); padding-top: 22px; }
.xw-photo .xw-photo-preferences > h4 { margin-bottom: 20px; }
.xw-photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; min-height: 42px; }
.xw-photo-toolbar h4 { min-width: 0; overflow-wrap: anywhere; }
.xw-photo-total { display: inline-block; font: 12px/1.4 Arial, Helvetica, sans-serif; color: var(--xw-muted, #667066); margin-left: 14px; white-space: nowrap; vertical-align: middle; }
.xw-photo button.xw-photo-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid var(--xw-line, #dce1db); background: #fff; color: var(--xw-muted, #667066); flex-shrink: 0; }
.xw-photo button.xw-photo-icon-button:hover { color: var(--xw-red, #963e33); border-color: var(--xw-red, #963e33); }
.xw-photo-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 200px; padding: 24px 18px; border: 1px dashed #aab9b0; background: #f6f8f7; text-align: center; }
.xw-photo-drop.is-dragging { outline: 2px solid var(--xw-wood, #395f4c); outline-offset: -2px; background: #eaf1ed; }
.xw-photo-drop-icon { display: inline-flex; font-size: 28px; color: var(--xw-wood, #395f4c); }
.xw-photo-drop > p:not(.xw-photo-formats) { font-size: 15px; }
.xw-photo button.xw-photo-add { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 18px; background: #fff; color: var(--xw-ink, #242924); border: 1px solid #bac5bd; }
.xw-photo button.xw-photo-add:hover:not(:disabled) { border-color: var(--xw-wood, #395f4c); color: var(--xw-wood, #395f4c); }
.xw-photo .xw-photo-formats { font-size: 11px; line-height: 1.7; color: var(--xw-muted, #667066); max-width: 310px; overflow-wrap: anywhere; }
.xw-photo-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.xw-photo-drop.has-photos { min-height: 124px; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; padding: 18px; }
.xw-photo-drop.has-photos .xw-photo-drop-icon, .xw-photo-drop.has-photos > p:not(.xw-photo-formats) { display: none; }
.xw-photo-drop.has-photos .xw-photo-formats { max-width: 240px; text-align: left; }
.xw-photo-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 20px; }
.xw-photo-previews:empty { display: none; }
.xw-photo-preview { min-width: 0; }
.xw-photo-preview-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #eef1ef; border: 1px solid var(--xw-line, #dce1db); overflow: hidden; }
.xw-photo-preview-media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.xw-photo-preparing { padding: 14px; text-align: center; color: var(--xw-muted, #667066); font-size: 12px; }
.xw-photo-preview figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; min-height: 52px; font-style: normal; }
.xw-photo-preview figcaption > div { min-width: 0; }
.xw-photo-preview figcaption strong { display: block; font-size: 12px; font-weight: 600; }
.xw-photo-filename { display: block; color: var(--xw-muted, #667066); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.xw-photo-fieldset { padding: 0; margin: 0 0 22px; border: 0; min-width: 0; }
.xw-photo-fieldset legend, .xw-photo-field > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; padding: 0; }
.xw-photo-scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xw-photo-scenes label { position: relative; cursor: pointer; min-width: 0; }
.xw-photo-scenes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xw-photo-scenes span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px 4px; min-height: 65px; border: 1px solid #bac5bd; font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.xw-photo-scenes span svg { font-size: 15px; }
.xw-photo-scenes label + label span { border-left: 0; }
.xw-photo-scenes input:checked + span { background: #eaf1ed; color: var(--xw-wood, #395f4c); box-shadow: inset 0 -2px var(--xw-wood, #395f4c); }
.xw-photo-scenes input:focus-visible + span { outline: 2px solid var(--xw-water, #536975); outline-offset: 3px; }
.xw-photo-field { margin-bottom: 18px; min-width: 0; }
.xw-photo .xw-photo-field select, .xw-photo .xw-photo-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #bac5bd; border-radius: 2px; background: #fff; color: var(--xw-ink, #242924); padding: 10px 12px; font: 14px/1.6 Arial, Helvetica, sans-serif; }
.xw-photo-field select { min-height: 46px; padding-right: 26px; text-overflow: ellipsis; }
.xw-photo-field textarea { min-height: 100px; resize: vertical; overflow-wrap: anywhere; }
.xw-photo .xw-photo-count { text-align: right; color: var(--xw-muted, #667066); font-size: 11px; margin-top: 5px; }
.xw-photo-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; cursor: pointer; font-size: 12px; line-height: 1.7; margin-bottom: 10px; }
.xw-photo-consent input { appearance: auto; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--xw-wood, #395f4c); }
.xw-photo-consent span { overflow-wrap: anywhere; }
.xw-photo-consent input[aria-invalid="true"] { outline: 1px solid #9a302b; outline-offset: 2px; }
.xw-photo .xw-photo-privacy { font-size: 11px; line-height: 1.7; color: var(--xw-muted, #667066); margin-bottom: 18px; overflow-wrap: anywhere; }
.xw-photo-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.xw-photo button.xw-photo-submit { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 13px 16px; color: #fff; border: 1px solid var(--xw-red, #963e33); background: var(--xw-red, #963e33); }
.xw-photo button.xw-photo-submit:hover:not(:disabled) { background: #803027; border-color: #803027; }
.xw-photo .xw-photo-status { min-height: 42px; margin-top: 12px; color: var(--xw-muted, #667066); font-size: 12px; overflow-wrap: anywhere; }
.xw-photo-status[data-state="error"] { color: #9a302b; }
.xw-photo-result { border-top: 2px solid var(--xw-wood, #395f4c); margin-top: 32px; padding-top: 28px; scroll-margin-top: 24px; overflow-wrap: anywhere; }
.xw-photo-result [data-photo-result-heading]:focus { outline-offset: 6px; }
.xw-photo-summary { max-width: 900px; white-space: pre-wrap; font-size: 15px; line-height: 1.85; }
.xw-photo-observations { margin-top: 24px; }
.xw-photo-observations h5, .xw-photo-direction h5 { font: 600 12px/1.6 Arial, Helvetica, sans-serif; margin-bottom: 10px; }
.xw-photo-observations ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; list-style: none; padding: 0; margin: 0; }
.xw-photo-observations li { min-width: 0; border-top: 1px solid var(--xw-line, #dce1db); padding-top: 12px; }
.xw-photo-observations strong { color: var(--xw-wood, #395f4c); font-size: 11px; font-weight: 600; }
.xw-photo-observations p { font-size: 13px; white-space: pre-wrap; margin-top: 5px; }
.xw-photo-direction { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--xw-line, #dce1db); padding-top: 16px; margin-top: 20px; }
.xw-photo-direction p { font-size: 12px; color: var(--xw-muted, #667066); white-space: pre-wrap; }
.xw-photo-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; align-items: start; }
.xw-photo-recommendation { min-width: 0; border: 1px solid var(--xw-line, #dce1db); border-radius: 4px; padding: 20px; }
.xw-photo-references { font-size: 11px; color: var(--xw-wood, #395f4c); margin-bottom: 8px !important; }
.xw-photo-recommendation h5 { font: 400 20px/1.4 Georgia, 'Times New Roman', serif; margin-bottom: 18px; }
.xw-photo-placement { border-left: 2px solid var(--xw-wood, #395f4c); padding-left: 14px; margin-bottom: 18px; }
.xw-photo-placement h6 { font: 600 11px/1.6 Arial, Helvetica, sans-serif; color: var(--xw-wood, #395f4c); margin-bottom: 6px; }
.xw-photo-placement p { font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.xw-photo-details { margin: 0; }
.xw-photo-details > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--xw-line, #dce1db); padding-top: 10px; margin-top: 10px; font-size: 12px; }
.xw-photo-details dt { color: var(--xw-muted, #667066); }
.xw-photo-details dd { margin: 0; white-space: pre-wrap; }
.xw-photo-catalog-link { display: inline-flex; align-items: center; min-height: 44px; padding-top: 10px; margin-top: 10px; color: var(--xw-red, #963e33); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.xw-photo .xw-photo-empty { border-top: 1px solid var(--xw-line, #dce1db); padding-top: 22px; margin-top: 24px; color: var(--xw-muted, #667066); }
@container xw-photo (max-width: 560px) {
  .xw-photo-recommendations, .xw-photo-observations ul { grid-template-columns: minmax(0, 1fr); }
  .xw-photo-direction { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .xw-photo-result { margin-top: 18px; }
}
@container xw-photo (min-width: 560px) and (max-width: 819px) {
  .xw-photo-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .xw-photo-preferences > h4, .xw-photo-field:has(textarea), .xw-photo-consent, .xw-photo-privacy, .xw-photo-submit, .xw-photo-status { grid-column: 1 / -1; }
}
@container xw-photo (min-width: 820px) {
  .xw-photo-workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
  .xw-photo-preferences { border-top: 0; border-left: 1px solid var(--xw-line, #dce1db); padding: 0 0 0 24px; }
}
@container xw-photo (max-width: 340px) {
  .xw-photo-previews { gap: 16px 10px; }
  .xw-photo-preview figcaption { gap: 5px; }
  .xw-photo-recommendation { padding: 18px; }
  .xw-photo-details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .xw-photo-drop.has-photos .xw-photo-formats { text-align: center; }
}
@media (max-width: 700px) {
  .xw-photo .xw-photo-field select, .xw-photo .xw-photo-field textarea { font-size: 16px; }
}
