.ct-ai-wrap-home-placement {
  clear: both;
  width: 100%;
  margin: 28px auto;
}

.ct-ai-wrap-home-placement .ct-ai-wrap-box {
  margin-top: 20px;
  margin-bottom: 28px;
}

.ct-ai-wrap-auto-placement {
  clear: both;
  width: 100%;
  margin: 24px 0;
}

.ct-ai-wrap-box {
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 24px;
  margin: 30px 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.ct-ai-wrap-intro h2 {
  margin-top: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #009FA7;
}

.ct-ai-wrap-intro p {
  margin-bottom: 0;
}

.ct-ai-wrap-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ct-ai-wrap-form label span {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
}

.ct-ai-wrap-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
}

.ct-ai-wrap-upload-label {
  display: block;
}

.ct-ai-wrap-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  width: 100%;
  min-height: 155px;
  padding: 22px;
  border: 2px dashed rgba(0,159,167,.45);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,159,167,.08), rgba(255,255,255,.95));
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ct-ai-wrap-dropzone:hover,
.ct-ai-wrap-dropzone:focus,
.ct-ai-wrap-dropzone.ct-ai-wrap-dragover {
  border-color: #009FA7;
  background: linear-gradient(135deg, rgba(0,159,167,.14), rgba(255,255,255,1));
  box-shadow: 0 8px 24px rgba(0,159,167,.14);
  transform: translateY(-1px);
  outline: none;
}

.ct-ai-wrap-dropzone.ct-ai-wrap-has-file {
  border-style: solid;
  border-color: #009FA7;
}

.ct-ai-wrap-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ct-ai-wrap-upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #009FA7;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.ct-ai-wrap-dropzone strong {
  font-size: 18px;
  color: #222;
}

.ct-ai-wrap-dropzone small {
  color: #666;
}

.ct-ai-wrap-file-name {
  display: inline-block;
  margin-top: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,159,167,.10);
  color: #007d84;
  font-style: normal;
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-ai-wrap-button,
.ct-ai-wrap-product-link {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: #009FA7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.ct-ai-wrap-again {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: #555;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.ct-ai-wrap-button:hover,
.ct-ai-wrap-product-link:hover,
.ct-ai-wrap-again:hover {
  color: #fff;
  opacity: .88;
}

.ct-ai-wrap-button:disabled {
  opacity: .6;
  cursor: wait;
}

.ct-ai-wrap-note {
  font-size: 14px;
  opacity: .75;
}

.ct-ai-wrap-status {
  margin-top: 16px;
  font-weight: 700;
}

.ct-ai-wrap-error {
  color: #b00020;
}

.ct-ai-wrap-result {
  margin-top: 24px;
}

.ct-ai-wrap-result img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

.ct-ai-wrap-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}



.ct-ai-wrap-native-select-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.ct-ai-wrap-color-picker {
  position: relative;
  width: 100%;
}

.ct-ai-wrap-color-current {
  display: grid;
  grid-template-columns: 38px 1fr auto 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  color: #222;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ct-ai-wrap-color-current:hover,
.ct-ai-wrap-picker-open .ct-ai-wrap-color-current {
  border-color: #009FA7;
  box-shadow: 0 6px 18px rgba(0,159,167,.10);
}

.ct-ai-wrap-swatch,
.ct-ai-wrap-option-swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.ct-ai-wrap-empty-swatch {
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.ct-ai-wrap-current-text {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-ai-wrap-current-finish {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,159,167,.10);
  color: #007d84;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ct-ai-wrap-caret {
  font-size: 22px;
  color: #009FA7;
  line-height: 1;
}

.ct-ai-wrap-color-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(0,159,167,.25);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.ct-ai-wrap-color-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.ct-ai-wrap-color-option:hover,
.ct-ai-wrap-color-option.ct-ai-wrap-selected {
  background: rgba(0,159,167,.10);
}

.ct-ai-wrap-option-text {
  display: grid;
  gap: 1px;
}

.ct-ai-wrap-option-text strong {
  color: #222;
  font-size: 14px;
  line-height: 1.25;
}

.ct-ai-wrap-option-text small {
  color: #666;
  font-size: 12px;
}


.ct-ai-wrap-loading {
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0,159,167,.22);
  border-radius: 14px;
  background: rgba(0,159,167,.06);
}

.ct-ai-wrap-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(0,159,167,.18);
  border-top-color: #009FA7;
  border-radius: 50%;
  animation: ct-ai-wrap-spin 0.8s linear infinite;
  flex: 0 0 34px;
}

.ct-ai-wrap-loading-text {
  display: grid;
  gap: 3px;
}

.ct-ai-wrap-loading-text strong {
  color: #009FA7;
}

.ct-ai-wrap-loading-text span {
  font-size: 14px;
  opacity: .86;
}

.ct-ai-wrap-button-loading {
  position: relative;
  opacity: .85;
}

@keyframes ct-ai-wrap-spin {
  to {
    transform: rotate(360deg);
  }
}

.ct-ai-wrap-result {
  overflow: hidden;
}

@media (max-width: 600px) {
  .ct-ai-wrap-box {
    padding: 18px;
  }

  .ct-ai-wrap-intro h2 {
    font-size: 22px;
  }

  
.ct-ai-wrap-native-select-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.ct-ai-wrap-color-picker {
  position: relative;
  width: 100%;
}

.ct-ai-wrap-color-current {
  display: grid;
  grid-template-columns: 38px 1fr auto 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  color: #222;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ct-ai-wrap-color-current:hover,
.ct-ai-wrap-picker-open .ct-ai-wrap-color-current {
  border-color: #009FA7;
  box-shadow: 0 6px 18px rgba(0,159,167,.10);
}

.ct-ai-wrap-swatch,
.ct-ai-wrap-option-swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.ct-ai-wrap-empty-swatch {
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.ct-ai-wrap-current-text {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-ai-wrap-current-finish {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,159,167,.10);
  color: #007d84;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ct-ai-wrap-caret {
  font-size: 22px;
  color: #009FA7;
  line-height: 1;
}

.ct-ai-wrap-color-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(0,159,167,.25);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.ct-ai-wrap-color-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.ct-ai-wrap-color-option:hover,
.ct-ai-wrap-color-option.ct-ai-wrap-selected {
  background: rgba(0,159,167,.10);
}

.ct-ai-wrap-option-text {
  display: grid;
  gap: 1px;
}

.ct-ai-wrap-option-text strong {
  color: #222;
  font-size: 14px;
  line-height: 1.25;
}

.ct-ai-wrap-option-text small {
  color: #666;
  font-size: 12px;
}


.ct-ai-wrap-loading {
    align-items: flex-start;
  }

  .ct-ai-wrap-result img {
    max-height: none;
  }

  .ct-ai-wrap-dropzone {
    min-height: 135px;
    padding: 18px;
  }

  .ct-ai-wrap-color-current {
    grid-template-columns: 34px 1fr 22px;
  }

  .ct-ai-wrap-current-finish {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: -4px;
  }

  .ct-ai-wrap-color-options {
    max-height: 280px;
  }
}
