#content.page-content:has(#gs-tryon-photo),
.page-content.card:has(#gs-tryon-photo) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-top: 8px;
}

.gs-tryon-photo {
  max-width: 1280px;
  margin: 8px auto 56px;
  padding: 0 8px 8px;
  color: #111;
  font-family: inherit;
}

.gs-tryon-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #111;
}

.gs-tryon-kicker {
  margin: 0 0 6px;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-tryon-photo h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.gs-tryon-back {
  flex: 0 0 auto;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
}

.gs-tryon-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.gs-tryon-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
}

.gs-tryon-file {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px dashed #111;
  background:
    linear-gradient(#fafafa, #fafafa) padding-box;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.gs-tryon-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gs-tryon-drop-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gs-tryon-drop-file {
  max-width: 100%;
  color: #6b6b6b;
  font-size: 12px;
  word-break: break-all;
}

.gs-tryon-person {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  margin-bottom: 8px;
}

.gs-tryon-colors {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.gs-tryon-colors legend {
  margin: 0 0 8px;
  padding: 0;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-tryon-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gs-tryon-swatches label {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid #c8c8c8;
  border-radius: 50%;
  cursor: pointer;
}

.gs-tryon-swatches input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gs-tryon-swatches label:has(input:checked) {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.gs-tryon-color-name {
  margin: 8px 0 0;
  color: #111;
  font-size: 13px;
  font-weight: 650;
}

.gs-tryon-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gs-tryon-feedback-modal[hidden] {
  display: none !important;
}

html.gs-tryon-feedback-lock {
  overflow: hidden;
}

.gs-tryon-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.46);
}

.gs-tryon-feedback-dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  padding: 28px 24px 22px;
  border: 1px solid #111;
}

.gs-tryon-photo .gs-tryon-feedback-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.gs-tryon-photo .gs-tryon-feedback-x:hover,
.gs-tryon-photo .gs-tryon-feedback-x:focus {
  background: transparent;
}

.gs-tryon-feedback {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.gs-tryon-feedback h2 {
  margin: 0 28px 8px 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gs-tryon-feedback p {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

.gs-tryon-feedback label {
  display: block;
  margin: 0 0 12px;
}

.gs-tryon-feedback label span {
  display: block;
  margin-bottom: 6px;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gs-tryon-feedback textarea,
.gs-tryon-feedback input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
}

.gs-tryon-feedback textarea {
  min-height: 110px;
  resize: vertical;
}

.gs-tryon-photo .gs-tryon-feedback button {
  width: auto;
  min-width: 160px;
  margin: 4px 0 0;
}

.gs-tryon-feedback-status {
  min-height: 1.3em;
  margin-top: 12px;
  color: #111;
  font-weight: 650;
}

.gs-tryon-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gs-tryon-scene {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.gs-tryon-scene legend {
  margin: 0 0 8px;
  padding: 0;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-tryon-scene-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #111;
}

.gs-tryon-scene-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 42px;
  padding: 10px 8px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gs-tryon-scene-options label + label {
  border-left: 1px solid #111;
}

.gs-tryon-scene-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gs-tryon-scene-options label:has(input:checked) {
  background: #111;
  color: #fff;
}

.gs-tryon-note {
  margin: 0 0 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.gs-tryon-photo button {
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.gs-tryon-photo button:hover,
.gs-tryon-photo button:focus {
  background: #000;
}

.gs-tryon-photo button:disabled {
  background: #8a8a8a;
  cursor: wait;
}

.gs-tryon-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 650;
}

.gs-tryon-photo.is-working .gs-tryon-status {
  color: #111;
}

.gs-tryon-stage {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 560px;
  background: #f2f2f2;
  border: 1px solid #e6e6e6;
}

.gs-tryon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 0;
  background: #f2f2f2;
}

.gs-tryon-result-card {
  display: none;
}

.gs-tryon-photo.is-done .gs-tryon-stage {
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 0;
  background: #fff;
}

.gs-tryon-photo.is-done .gs-tryon-result-card {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 760px;
  padding: 12px;
  background: #f7f7f7;
}

.gs-tryon-photo.is-done .gs-tryon-garment-card {
  align-items: flex-start;
  padding: 16px 12px;
  border-left: 1px solid #e6e6e6;
  background: #fff;
}

#gs-tryon-photo .gs-tryon-garment,
#gs-tryon-photo .gs-tryon-result,
#gs-tryon-photo .gs-tryon-person {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  margin: 0;
  float: none;
  box-shadow: none !important;
  filter: none !important;
  object-fit: contain;
}

#gs-tryon-photo.is-done .gs-tryon-result {
  width: 100%;
  max-width: 920px;
  height: auto;
  max-height: 860px;
  object-fit: contain;
}

#gs-tryon-photo.is-done .gs-tryon-garment {
  width: 100%;
  max-height: 260px;
}

#gs-tryon-photo .gs-tryon-result[hidden],
#gs-tryon-photo .gs-tryon-person[hidden] {
  display: none !important;
}

.gs-tryon-photo.is-working .gs-tryon-stage {
  position: relative;
}

.gs-tryon-photo.is-working .gs-tryon-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #111;
  transform-origin: left center;
  animation: gs-tryon-bar 1.1s ease-in-out infinite;
}

@keyframes gs-tryon-bar {
  0% { transform: scaleX(0.15); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0.15); }
}

@media (max-width: 800px) {
  .gs-tryon-head,
  .gs-tryon-layout,
  .gs-tryon-photo.is-done .gs-tryon-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gs-tryon-photo.is-done .gs-tryon-result-card {
    min-height: 0;
    order: -1;
  }

  .gs-tryon-photo.is-done .gs-tryon-garment-card {
    border-left: 0;
    border-top: 1px solid #e6e6e6;
  }

  #gs-tryon-photo.is-done .gs-tryon-result {
    max-height: none;
  }

  .gs-tryon-stage {
    min-height: 0;
  }
}
