/** Shopify CDN: Minification failed

Line 7:0 Comments in CSS use "/* ... */" instead of "//"
Line 1003:26 Unexpected "-"

**/
//* Shopify AI Try-On Modal - Professional Pink Theme */

/* for iccshopping theme */

/* :root {
  --wacoal-pink: #e91e63;
  --wacoal-light-pink: #fcf3fb;
  --wacoal-soft-pink: #f8bbd0;
  --wacoal-dark-pink: #c2185b;
  --wacoal-white: #ffffff;
  --wacoal-gray: #757575;
  --wacoal-dark-gray: #424242;
  --wacoal-shadow: rgba(233, 30, 99, 0.15);
} */

/* for wacoal theme */
:root {
  --wacoal-pink: #ef60a2;
  --wacoal-light-pink: #fcf3fb;
  --wacoal-soft-pink: #f8bbd0;
  --wacoal-dark-pink: #ef60a2;
  --wacoal-white: #ffffff;
  --wacoal-gray: #757575;
  --wacoal-dark-gray: #424242;
  --wacoal-shadow: rgba(233, 30, 99, 0.15);
}

.try-on-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.try-on-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.try-on-modal-content {
  position: relative;
  background: var(--wacoal-white);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  margin: 7.5vh auto;
  overflow: hidden;
  box-shadow: 0 24px 48px var(--wacoal-shadow);
}

/* Header with Pink Gradient */
.try-on-modal-header {
  background: linear-gradient(
    135deg,
    var(--wacoal-pink),
    var(--wacoal-dark-pink)
  );
  color: var(--wacoal-white);
  padding: 24px;
  text-align: center;
  position: relative;
}

.try-on-header-content h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.try-on-subheader {
  margin: 8px 0 0 0;
  font-size: 16px;
  opacity: 0.9;
  font-weight: 400;
}

.try-on-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--wacoal-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.try-on-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Modal Body */
.try-on-modal-body {
  padding: 0;
  background: var(--wacoal-light-pink);
  max-height: calc(85vh - 88px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wacoal-soft-pink) transparent;
}

.try-on-modal-body::-webkit-scrollbar {
  width: 6px;
}

.try-on-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.try-on-modal-body::-webkit-scrollbar-thumb {
  background: var(--wacoal-soft-pink);
  border-radius: 3px;
}

/* Step Indicator */
.try-on-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: var(--wacoal-white);
  border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

.try-on-step {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--wacoal-gray);
  font-weight: 500;
}

.try-on-step.active {
  color: var(--wacoal-pink);
}

.try-on-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--wacoal-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-weight: 600;
  background: var(--wacoal-white);
}

.try-on-step.active .try-on-step-number {
  background: var(--wacoal-pink);
  border-color: var(--wacoal-pink);
  color: var(--wacoal-white);
}

.try-on-step-divider {
  width: 40px;
  height: 2px;
  background: var(--wacoal-gray);
  opacity: 0.3;
  margin: 0 12px;
  align-self: center;
}

/* Upload Section */
.try-on-upload-section {
  padding: 24px 20px 28px;
  text-align: center;
  background: var(--wacoal-white);
  margin: 20px;
  /* border-radius: 16px; */
  box-shadow: 0 4px 12px var(--wacoal-shadow);
  position: relative;
  /* padding: 0; */
  margin: 0;
}

/* Product Preview */
.try-on-product-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(252, 243, 251, 0.5),
    rgba(248, 187, 208, 0.2)
  );
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.try-on-product-preview::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(233, 30, 99, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.try-on-product-preview img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--wacoal-white);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.2);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.try-on-product-info {
  position: relative;
  z-index: 1;
}

.try-on-product-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--wacoal-dark-gray);
  line-height: 1.4;
  max-width: 400px;
  word-wrap: break-word;
}

.try-on-upload-area {
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
}

.try-on-upload-area::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wacoal-soft-pink),
    transparent
  );
}

.try-on-upload-area h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: var(--wacoal-dark-gray);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.try-on-button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.try-on-upload-btn,
.try-on-camera-btn {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  max-width: 180px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--wacoal-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.try-on-upload-btn:hover,
.try-on-camera-btn:hover {
  background: var(--wacoal-dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--wacoal-shadow);
}

.try-on-camera-btn {
  background: transparent;
  border: 2px solid var(--wacoal-pink);
  color: var(--wacoal-pink);
  box-shadow: none;
}

.try-on-camera-btn:hover {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
}

.try-on-upload-text {
  color: var(--wacoal-gray);
  font-size: 13px;
  margin: 20px 0 0 0;
  line-height: 1.5;
}

/* Processing Section */
.try-on-processing-section {
  padding: 60px 24px;
  text-align: center;
  background: var(--wacoal-white);
  margin: 24px;
  border-radius: 16px;
}

.try-on-processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.try-on-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--wacoal-light-pink);
  border-top: 3px solid var(--wacoal-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.try-on-processing-section p {
  color: var(--wacoal-dark-gray);
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* Slideshow Styles */
.try-on-slideshow-container {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

.try-on-slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--wacoal-shadow);
  background: var(--wacoal-light-pink);
}

.try-on-slideshow-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-duration, 500ms) ease-in-out;
}

.try-on-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.try-on-slide:hover {
  transform: scale(1.02);
}

.try-on-slide[style*="cursor: pointer"]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(239, 96, 162, 0.3);
}

.try-on-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(252, 243, 251, 0.3),
    rgba(248, 187, 208, 0.2)
  );
  pointer-events: none;
}

.try-on-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.try-on-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--wacoal-soft-pink);
  cursor: pointer;
  transition: all 0.3s ease;
}

.try-on-slide-dot.active {
  background: var(--wacoal-pink);
  transform: scale(1.2);
}

.try-on-slide-dot:hover {
  background: var(--wacoal-dark-pink);
  transform: scale(1.1);
}

/* Results Section */
.try-on-results-section {
  padding: 20px;
  background: var(--wacoal-white);
  /* margin: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--wacoal-shadow); */
  position: relative;
}

.try-on-view-toggle-container {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* View Toggle - Pink Theme */
.try-on-view-toggle {
  display: inline-flex;
  /* background: var(--wacoal-light-pink); */
  background: rgba(255, 255, 255, 0.2);
  /* padding: 4px; */
  border-radius: 20px;
  /* margin: 0 auto 24px auto; */
  box-shadow: inset 0 2px 4px rgba(233, 30, 99, 0.1);
}

.try-on-view-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  /* color: var(--wacoal-gray); */
  color: var(--wacoal-soft-pink);
  min-width: 50px;
}

.try-on-view-btn.active {
  background: var(--wacoal-white);
  color: var(--wacoal-pink);
  box-shadow: 0 2px 8px var(--wacoal-shadow);
}

.try-on-view-btn:hover:not(.active) {
  color: var(--wacoal-dark-pink);
}

/* Image Display with Zoom */
.try-on-image-container {
  min-height: 500px;
  max-height: 500px;
  transform: scale(0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--wacoal-shadow);
  background: var(--wacoal-white);
  position: relative;
}

.try-on-image-display {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.try-on-image-display:active {
  cursor: grabbing;
}

.try-on-image-display img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none; /* Prevent image drag events */
}

/* Zoom Controls */
.try-on-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.try-on-zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--wacoal-pink);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.try-on-zoom-btn:hover:not(:disabled) {
  background: var(--wacoal-dark-pink);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

.try-on-zoom-btn:disabled {
  background: var(--wacoal-soft-pink);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.try-on-zoom-level {
  font-size: 12px;
  font-weight: 600;
  color: var(--wacoal-dark-gray);
  min-width: 40px;
  text-align: center;
  background: var(--wacoal-light-pink);
  padding: 4px 8px;
  border-radius: 12px;
}

/* Action Buttons */
.try-on-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 10px;
}

.try-on-action-btn {
  flex: 1;
  background: transparent;
  border: 2px solid var(--wacoal-pink);
  color: var(--wacoal-pink);
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.try-on-action-btn.icon-only {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.try-on-action-btn:hover {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--wacoal-shadow);
}

.try-on-action-btn.primary {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
  border-color: var(--wacoal-pink);
}

.try-on-action-btn.primary:hover {
  background: var(--wacoal-dark-pink);
  border-color: var(--wacoal-dark-pink);
}

/* Icons for buttons */
.try-on-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
  .try-on-image-container {
    min-height: 430px;
    max-height: 430px;
  }

  .try-on-modal-content {
    width: 95%;
    margin: 2.5vh auto;
    max-height: 95vh;
  }

  .try-on-modal-header {
    padding: 10px;
  }

  .try-on-header-content h2 {
    font-size: 20px;
  }

  .try-on-step {
    font-size: 12px;
  }

  .try-on-step-divider {
    width: 20px;
    margin: 0 8px;
  }

  .try-on-button-group {
    flex-direction: column;
    gap: 12px;
  }

  .try-on-upload-btn,
  .try-on-camera-btn {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* .try-on-actions {
    flex-direction: column;
  } */

  .try-on-action-btn {
    width: 100%;
  }

  .try-on-slideshow-container {
    max-width: 250px;
  }

  .try-on-slideshow-wrapper {
    height: 160px;
  }

  .try-on-view-toggle-container {
    top: 12px;
    left: 12px;
  }

  /* .try-on-zoom-controls {
    padding: 6px 10px;
    gap: 6px;
  } */

  .try-on-zoom-btn {
    width: 28px;
    height: 28px;
  }

  .try-on-zoom-level {
    font-size: 11px;
    min-width: 35px;
    padding: 3px 6px;
  }
}

@media (max-width: 600px) {
  .try-on-button-group {
    gap: 10px;
  }

  .try-on-upload-btn,
  .try-on-camera-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .try-on-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .try-on-modal-body {
    max-height: calc(100vh - 88px);
  }

  .try-on-steps {
    padding: 16px;
  }

  .try-on-upload-section {
    margin: 16px;
    padding: 20px;
  }
  /* .try-on-results-section {
  } */

  .try-on-product-preview img {
    width: 120px;
    height: 150px;
  }

  .try-on-product-info h4 {
    font-size: 14px;
    max-width: 250px;
  }

  .try-on-slideshow-container {
    max-width: 200px;
  }

  .try-on-slideshow-wrapper {
    height: 140px;
  }

  .try-on-slideshow-dots {
    gap: 6px;
  }

  .try-on-slide-dot {
    width: 6px;
    height: 6px;
  }

  .try-on-view-toggle-container {
    top: 8px;
    left: 8px;
  }

  /* .try-on-zoom-controls {
    padding: 4px 8px;
    gap: 4px;
  } */

  .try-on-zoom-btn {
    width: 24px;
    height: 24px;
  }

  .try-on-zoom-level {
    font-size: 10px;
    min-width: 30px;
    padding: 2px 4px;
  }
}

/* Animation for modal entrance */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.try-on-modal {
  animation: modalSlideIn 0.4s ease-out;
}

/* Accessibility */
.try-on-modal *:focus {
  outline: 2px solid var(--wacoal-pink);
  outline-offset: 2px;
}

.try-on-modal button:focus {
  outline-offset: 4px;
}

/* Hide elements */
.hidden {
  display: none !important;
}


.try-on-quota {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 48px);
  margin: 12px auto 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--wacoal-white);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.try-on-quota-label {
  opacity: 0.78;
  font-weight: 500;
  white-space: nowrap;
}

.try-on-quota-value {
  font-weight: 700;
  white-space: nowrap;
}

.try-on-quota.is-depleted,
.try-on-quota.is-unavailable {
  background: rgba(255, 255, 255, 0.24);
}

.try-on-upload-section {
  margin: 0;
  padding: 18px 16px 24px;
  box-shadow: none;
}

.try-on-modal-body {
  max-height: calc(85vh - 124px);
}

.try-on-results-section {
  padding: 18px 20px 22px;
  overflow: visible;
}

.try-on-image-container {
  width: 100%;
  height: min(56vh, 480px);
  min-height: 300px;
  max-height: none;
  transform: none;
}

.try-on-image-display {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wacoal-white);
}

.try-on-image-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.try-on-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}

.try-on-action-btn {
  min-height: 42px;
}

@media (max-width: 768px) {
  .try-on-modal-body {
    max-height: calc(95vh - 124px);
  }

  .try-on-image-container {
    height: min(52vh, 430px);
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .try-on-modal-body {
    max-height: calc(100vh - 124px);
  }

  .try-on-upload-section {
    margin: 0;
    padding: 16px 12px 22px;
  }

  .try-on-results-section {
    padding: 16px 12px 20px;
  }

  .try-on-image-container {
    height: min(50vh, 390px);
    min-height: 240px;
  }

  .try-on-quota {
    max-width: calc(100% - 28px);
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .try-on-action-btn {
    min-height: 40px;
  }
}
* Shopify AI Try-On Modal - Professional Pink Theme */

/* for iccshopping theme */

/* :root {
  --wacoal-pink: #e91e63;
  --wacoal-light-pink: #fcf3fb;
  --wacoal-soft-pink: #f8bbd0;
  --wacoal-dark-pink: #c2185b;
  --wacoal-white: #ffffff;
  --wacoal-gray: #757575;
  --wacoal-dark-gray: #424242;
  --wacoal-shadow: rgba(233, 30, 99, 0.15);
} */

/* for wacoal theme */
:root {
  --wacoal-pink: #ef60a2;
  --wacoal-light-pink: #fcf3fb;
  --wacoal-soft-pink: #f8bbd0;
  --wacoal-dark-pink: #ef60a2;
  --wacoal-white: #ffffff;
  --wacoal-gray: #757575;
  --wacoal-dark-gray: #424242;
  --wacoal-shadow: rgba(233, 30, 99, 0.15);
}

.try-on-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.try-on-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.try-on-modal-content {
  position: relative;
  background: var(--wacoal-white);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  margin: 7.5vh auto;
  overflow: hidden;
  box-shadow: 0 24px 48px var(--wacoal-shadow);
}

/* Header with Pink Gradient */
.try-on-modal-header {
  background: linear-gradient(
    135deg,
    var(--wacoal-pink),
    var(--wacoal-dark-pink)
  );
  color: var(--wacoal-white);
  padding: 24px;
  text-align: center;
  position: relative;
}

.try-on-header-content h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.try-on-subheader {
  margin: 8px 0 0 0;
  font-size: 16px;
  opacity: 0.9;
  font-weight: 400;
}

.try-on-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--wacoal-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.try-on-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Modal Body */
.try-on-modal-body {
  padding: 0;
  background: var(--wacoal-light-pink);
  max-height: calc(85vh - 88px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wacoal-soft-pink) transparent;
}

.try-on-modal-body::-webkit-scrollbar {
  width: 6px;
}

.try-on-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.try-on-modal-body::-webkit-scrollbar-thumb {
  background: var(--wacoal-soft-pink);
  border-radius: 3px;
}

/* Step Indicator */
.try-on-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: var(--wacoal-white);
  border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

.try-on-step {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--wacoal-gray);
  font-weight: 500;
}

.try-on-step.active {
  color: var(--wacoal-pink);
}

.try-on-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--wacoal-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-weight: 600;
  background: var(--wacoal-white);
}

.try-on-step.active .try-on-step-number {
  background: var(--wacoal-pink);
  border-color: var(--wacoal-pink);
  color: var(--wacoal-white);
}

.try-on-step-divider {
  width: 40px;
  height: 2px;
  background: var(--wacoal-gray);
  opacity: 0.3;
  margin: 0 12px;
  align-self: center;
}

/* Upload Section */
.try-on-upload-section {
  padding: 24px 20px 28px;
  text-align: center;
  background: var(--wacoal-white);
  margin: 20px;
  /* border-radius: 16px; */
  box-shadow: 0 4px 12px var(--wacoal-shadow);
  position: relative;
  /* padding: 0; */
  margin: 0;
}

/* Product Preview */
.try-on-product-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(252, 243, 251, 0.5),
    rgba(248, 187, 208, 0.2)
  );
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.try-on-product-preview::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(233, 30, 99, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.try-on-product-preview img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--wacoal-white);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.2);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.try-on-product-info {
  position: relative;
  z-index: 1;
}

.try-on-product-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--wacoal-dark-gray);
  line-height: 1.4;
  max-width: 400px;
  word-wrap: break-word;
}

.try-on-upload-area {
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
}

.try-on-upload-area::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wacoal-soft-pink),
    transparent
  );
}

.try-on-upload-area h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: var(--wacoal-dark-gray);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.try-on-button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.try-on-upload-btn,
.try-on-camera-btn {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  max-width: 180px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--wacoal-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.try-on-upload-btn:hover,
.try-on-camera-btn:hover {
  background: var(--wacoal-dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--wacoal-shadow);
}

.try-on-camera-btn {
  background: transparent;
  border: 2px solid var(--wacoal-pink);
  color: var(--wacoal-pink);
  box-shadow: none;
}

.try-on-camera-btn:hover {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
}

.try-on-upload-text {
  color: var(--wacoal-gray);
  font-size: 13px;
  margin: 20px 0 0 0;
  line-height: 1.5;
}

/* Processing Section */
.try-on-processing-section {
  padding: 60px 24px;
  text-align: center;
  background: var(--wacoal-white);
  margin: 24px;
  border-radius: 16px;
}

.try-on-processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.try-on-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--wacoal-light-pink);
  border-top: 3px solid var(--wacoal-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.try-on-processing-section p {
  color: var(--wacoal-dark-gray);
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* Slideshow Styles */
.try-on-slideshow-container {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

.try-on-slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--wacoal-shadow);
  background: var(--wacoal-light-pink);
}

.try-on-slideshow-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-duration, 500ms) ease-in-out;
}

.try-on-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.try-on-slide:hover {
  transform: scale(1.02);
}

.try-on-slide[style*="cursor: pointer"]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(239, 96, 162, 0.3);
}

.try-on-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(252, 243, 251, 0.3),
    rgba(248, 187, 208, 0.2)
  );
  pointer-events: none;
}

.try-on-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.try-on-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--wacoal-soft-pink);
  cursor: pointer;
  transition: all 0.3s ease;
}

.try-on-slide-dot.active {
  background: var(--wacoal-pink);
  transform: scale(1.2);
}

.try-on-slide-dot:hover {
  background: var(--wacoal-dark-pink);
  transform: scale(1.1);
}

/* Results Section */
.try-on-results-section {
  padding: 20px;
  background: var(--wacoal-white);
  /* margin: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--wacoal-shadow); */
  position: relative;
}

.try-on-view-toggle-container {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* View Toggle - Pink Theme */
.try-on-view-toggle {
  display: inline-flex;
  /* background: var(--wacoal-light-pink); */
  background: rgba(255, 255, 255, 0.2);
  /* padding: 4px; */
  border-radius: 20px;
  /* margin: 0 auto 24px auto; */
  box-shadow: inset 0 2px 4px rgba(233, 30, 99, 0.1);
}

.try-on-view-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  /* color: var(--wacoal-gray); */
  color: var(--wacoal-soft-pink);
  min-width: 50px;
}

.try-on-view-btn.active {
  background: var(--wacoal-white);
  color: var(--wacoal-pink);
  box-shadow: 0 2px 8px var(--wacoal-shadow);
}

.try-on-view-btn:hover:not(.active) {
  color: var(--wacoal-dark-pink);
}

/* Image Display with Zoom */
.try-on-image-container {
  min-height: 500px;
  max-height: 500px;
  transform: scale(0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--wacoal-shadow);
  background: var(--wacoal-white);
  position: relative;
}

.try-on-image-display {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.try-on-image-display:active {
  cursor: grabbing;
}

.try-on-image-display img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none; /* Prevent image drag events */
}

/* Zoom Controls */
.try-on-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.try-on-zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--wacoal-pink);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.try-on-zoom-btn:hover:not(:disabled) {
  background: var(--wacoal-dark-pink);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

.try-on-zoom-btn:disabled {
  background: var(--wacoal-soft-pink);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.try-on-zoom-level {
  font-size: 12px;
  font-weight: 600;
  color: var(--wacoal-dark-gray);
  min-width: 40px;
  text-align: center;
  background: var(--wacoal-light-pink);
  padding: 4px 8px;
  border-radius: 12px;
}

/* Action Buttons */
.try-on-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 10px;
}

.try-on-action-btn {
  flex: 1;
  background: transparent;
  border: 2px solid var(--wacoal-pink);
  color: var(--wacoal-pink);
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.try-on-action-btn.icon-only {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.try-on-action-btn:hover {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--wacoal-shadow);
}

.try-on-action-btn.primary {
  background: var(--wacoal-pink);
  color: var(--wacoal-white);
  border-color: var(--wacoal-pink);
}

.try-on-action-btn.primary:hover {
  background: var(--wacoal-dark-pink);
  border-color: var(--wacoal-dark-pink);
}

/* Icons for buttons */
.try-on-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
  .try-on-image-container {
    min-height: 430px;
    max-height: 430px;
  }

  .try-on-modal-content {
    width: 95%;
    margin: 2.5vh auto;
    max-height: 95vh;
  }

  .try-on-modal-header {
    padding: 10px;
  }

  .try-on-header-content h2 {
    font-size: 20px;
  }

  .try-on-step {
    font-size: 12px;
  }

  .try-on-step-divider {
    width: 20px;
    margin: 0 8px;
  }

  .try-on-button-group {
    flex-direction: column;
    gap: 12px;
  }

  .try-on-upload-btn,
  .try-on-camera-btn {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* .try-on-actions {
    flex-direction: column;
  } */

  .try-on-action-btn {
    width: 100%;
  }

  .try-on-slideshow-container {
    max-width: 250px;
  }

  .try-on-slideshow-wrapper {
    height: 160px;
  }

  .try-on-view-toggle-container {
    top: 12px;
    left: 12px;
  }

  /* .try-on-zoom-controls {
    padding: 6px 10px;
    gap: 6px;
  } */

  .try-on-zoom-btn {
    width: 28px;
    height: 28px;
  }

  .try-on-zoom-level {
    font-size: 11px;
    min-width: 35px;
    padding: 3px 6px;
  }
}

@media (max-width: 600px) {
  .try-on-button-group {
    gap: 10px;
  }

  .try-on-upload-btn,
  .try-on-camera-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .try-on-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .try-on-modal-body {
    max-height: calc(100vh - 88px);
  }

  .try-on-steps {
    padding: 16px;
  }

  .try-on-upload-section {
    margin: 16px;
    padding: 20px;
  }
  /* .try-on-results-section {
  } */

  .try-on-product-preview img {
    width: 120px;
    height: 150px;
  }

  .try-on-product-info h4 {
    font-size: 14px;
    max-width: 250px;
  }

  .try-on-slideshow-container {
    max-width: 200px;
  }

  .try-on-slideshow-wrapper {
    height: 140px;
  }

  .try-on-slideshow-dots {
    gap: 6px;
  }

  .try-on-slide-dot {
    width: 6px;
    height: 6px;
  }

  .try-on-view-toggle-container {
    top: 8px;
    left: 8px;
  }

  /* .try-on-zoom-controls {
    padding: 4px 8px;
    gap: 4px;
  } */

  .try-on-zoom-btn {
    width: 24px;
    height: 24px;
  }

  .try-on-zoom-level {
    font-size: 10px;
    min-width: 30px;
    padding: 2px 4px;
  }
}

/* Animation for modal entrance */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.try-on-modal {
  animation: modalSlideIn 0.4s ease-out;
}

/* Accessibility */
.try-on-modal *:focus {
  outline: 2px solid var(--wacoal-pink);
  outline-offset: 2px;
}

.try-on-modal button:focus {
  outline-offset: 4px;
}

/* Hide elements */
.hidden {
  display: none !important;
}
