/* YueF PDP 3D Interactive Try-On Shell — White / Peacock Green (#05634F) / Antique Gold (#82612F) */

.yuef-3d-tryon-shell {
  margin-top: 18px;
  border: 1px solid #DFE5E0;
  border-radius: 16px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 59, 50, 0.06);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #163F37;
}

.yuef-3d-tryon-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 20px;
  background: #F1F4EF;
  border-bottom: 1px solid #DFE5E0;
}

.yuef-3d-tryon-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.yuef-3d-tryon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #EDF5EF;
  border: 1px solid #C2DEC9;
  color: #05634F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.yuef-3d-tryon-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #05634F;
  flex: none;
}

.yuef-3d-tryon-sub {
  font-size: 13px;
  color: #4F635C;
  line-height: 1.4;
}

.yuef-3d-tryon-tabs {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D3DDD7;
  gap: 3px;
  flex: none;
}

.yuef-3d-tryon-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #34443F;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.yuef-3d-tryon-tab:hover {
  color: #05634F;
}

.yuef-3d-tryon-tab[aria-selected="true"] {
  background: #05634F;
  color: #FFFFFF;
}

.yuef-3d-tryon-tab:focus-visible {
  outline: 2px solid #82612F;
  outline-offset: 2px;
}

.yuef-3d-tryon-stage {
  position: relative;
  background: #FFFFFF;
  min-height: 520px;
}

.yuef-3d-tryon-stage[data-state="ready"] {
  min-height: 0;
}

.yuef-3d-tryon-host {
  display: block;
  width: 100%;
  max-width: 100%;
}

.yuef-3d-tryon-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 520px;
  padding: 36px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #F5F7F3 100%);
}

.yuef-3d-tryon-stage[data-state="ready"] .yuef-3d-tryon-loading {
  display: none;
}

.yuef-3d-tryon-gem-spinner {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
}

.yuef-3d-tryon-gem-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(5, 99, 79, 0.16);
  border-top-color: #05634F;
  border-right-color: #82612F;
  animation: yuef-3d-spin 1.05s linear infinite;
}

.yuef-3d-tryon-gem-spinner svg {
  width: 24px;
  height: 24px;
  stroke: #05634F;
  fill: none;
  stroke-width: 1.5;
}

@keyframes yuef-3d-spin {
  to {
    transform: rotate(360deg);
  }
}

.yuef-3d-tryon-loading-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: #163F37;
}

.yuef-3d-tryon-loading-note {
  margin: 0;
  max-width: 420px;
  font-size: 13px;
  color: #5C6D67;
  line-height: 1.55;
}

.yuef-3d-tryon-sync-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: #EDF5EF;
  border-top: 1px solid #C2DEC9;
  color: #163F37;
  font-size: 13px;
  line-height: 1.45;
}

.yuef-3d-tryon-sync-banner.is-visible {
  display: flex;
  flex-wrap: wrap;
}

.yuef-3d-tryon-sync-link {
  color: #05634F;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.yuef-3d-tryon-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 20px;
  background: #F7F2E8;
  border-top: 1px solid #E6DEC8;
  font-size: 12.5px;
  color: #4A5A54;
  line-height: 1.5;
}

.yuef-3d-tryon-footnote strong {
  color: #163F37;
  font-weight: 600;
}

.yuef-3d-tryon-footnote-badge {
  color: #82612F;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
}

.yuef-3d-fit-tool-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .yuef-3d-tryon-shell {
    border-radius: 12px;
  }

  .yuef-3d-tryon-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .yuef-3d-tryon-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .yuef-3d-tryon-tab {
    flex: 1 1 50%;
    height: 38px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .yuef-3d-tryon-stage,
  .yuef-3d-tryon-loading {
    min-height: 420px;
  }

  .yuef-3d-tryon-footnote {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yuef-3d-tryon-gem-spinner::before {
    animation: none;
  }
}
