/* Trendyfy photo creator v0.5.13. Only step 1 of the photo wizard is styled.
   Other routes, the video wizard, and payment/confirmation steps are untouched. */
#modalRoot .photo-create-sheet,
#modalRoot .photo-create-sheet * { box-sizing: border-box; }

#modalRoot .photo-create-sheet {
  --tf-ink: #151327;
  --tf-lilac: #777da6;
  --tf-violet: #6840fa;
  --tf-stroke: #dcd7ff;
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 20px), 520px);
  max-width: 520px;
  max-height: min(calc(100dvh - var(--tg-popup-safe-top, 12px) - 12px), 850px);
  min-height: 0;
  margin-inline: auto;
  padding: 12px clamp(14px, 4.8vw, 27px) 0;
  border: 1px solid rgba(227, 222, 250, .8);
  border-radius: 30px 30px 22px 22px;
  background: #fff;
  color: var(--tf-ink);
  box-shadow: 0 26px 80px rgba(26, 16, 79, .21);
  overflow: hidden;
  isolation: isolate;
}
#modalRoot .photo-create-sheet .sheet-handle {
  flex: 0 0 auto;
  width: 39px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #b6b6c4;
}
#modalRoot .photo-create-sheet .modal-back.create-back {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid #ebe8fe;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 15px rgba(74, 56, 158, .08);
}
#modalRoot .photo-create-sheet .creation-stepper {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  padding: 42px 5px 10px;
  margin: 0;
  min-height: 112px;
}
#modalRoot .photo-create-sheet .creation-step-node {
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 63px;
  width: 63px;
  background: none;
}
#modalRoot .photo-create-sheet .creation-step-circle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #f0edfc;
  color: #7b7fa7;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 0 0 1px #efebff;
}
#modalRoot .photo-create-sheet .creation-step-node.active .creation-step-circle {
  color: #fff;
  background: linear-gradient(145deg, #aa80ff 3%, #5837f7 86%);
  box-shadow: 0 0 0 6px #eee8ff, 0 7px 16px rgba(88, 55, 247, .21);
}
#modalRoot .photo-create-sheet .creation-step-node small {
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  color: #8084a9;
  white-space: nowrap;
}
#modalRoot .photo-create-sheet .creation-step-node.active small { color: #5d39fb; }
#modalRoot .photo-create-sheet .creation-connector {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 2px;
  margin-top: 20px;
  background-image: radial-gradient(circle,#c8bdff 1.6px,transparent 1.8px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}
#modalRoot .photo-create-sheet .creation-connector i { display: none; }

#modalRoot .photo-create-sheet .creation-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}
#modalRoot .photo-create-sheet .create-step-panel { min-width: 0; width: 100%; }
#modalRoot .photo-create-sheet .photo-create-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 0 0 12px;
  gap: 0;
}
#modalRoot .photo-create-sheet .photo-create-panel .create-step-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin: 4px 0 18px;
  padding: 0 2px;
}
#modalRoot .photo-create-sheet .photo-create-panel .create-step-kicker {
  order: 0;
  align-self: center;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #f2eeff;
  padding: 6px 12px;
  color: #623df7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .095em;
  line-height: 1.1;
  text-transform: uppercase;
}
#modalRoot .photo-create-sheet .photo-create-panel .create-step-copy h2 {
  order: 1;
  padding: 0;
  margin: 0;
  color: #121127;
  font-size: clamp(26px, 7vw, 33px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -.05em;
}
#modalRoot .photo-create-sheet .photo-create-panel .create-step-copy .desc {
  order: 2;
  width: 100%;
  padding: 0;
  margin: 9px 0 0;
  color: #8589aa;
  font-size: clamp(12px, 3.3vw, 14px);
  line-height: 1.45;
  font-weight: 500;
  overflow-wrap: anywhere;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-inputs {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 12px;
  width: 100%;
  margin: 0 0 18px;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item,
#modalRoot .photo-create-sheet .photo-create-panel .upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 160px;
  gap: 6px;
  margin: 0;
  padding: 15px 16px 18px;
  border: 1.5px dashed #c9c0ff;
  border-radius: 19px;
  background: linear-gradient(140deg,#f9f7ff,#f6f5ff);
  cursor: pointer;
  text-align: center;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item.is-selected {
  border-color: #8b67fc;
  background: #f2efff;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-upload-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 3px;
  border-radius: 15px;
  background: #e9e3ff;
  color: #a28cff;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-upload-symbol svg { width: 43px; height: 43px; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-upload-add {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  border-radius: 50%;
  background: linear-gradient(145deg,#a676fc,#5432fb);
  border: 2px solid #fff;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item b,
#modalRoot .photo-create-sheet .photo-create-panel .upload-zone strong {
  margin: 2px 0 0;
  padding: 0;
  color: #17142b;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item small,
#modalRoot .photo-create-sheet .photo-create-panel .upload-zone small {
  max-width: 100%;
  padding: 0;
  color: #8387a9;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%,230px);
  min-height: 36px;
  max-width: 100%;
  margin-top: 7px;
  padding: 8px 13px;
  border: 1px solid #bcaaff;
  border-radius: 999px;
  background: #f2edff;
  color: #5834e9;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
  font-weight: 800;
  word-break: break-word;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item input[type="file"],
#modalRoot .photo-create-sheet .photo-create-panel .upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
#modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item:focus-within,
#modalRoot .photo-create-sheet .photo-create-panel .upload-zone:focus-within {
  outline: 2px solid #7150ff;
  outline-offset: 3px;
}
#modalRoot .photo-create-sheet .photo-create-panel .photo-extra-fields {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 0;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-field {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  gap: 0;
  padding: 0;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-field-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #151428;
  overflow-wrap: anywhere;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-required {
  color: #f54890;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-field-help {
  margin: 0 0 8px;
  color: #8689a9;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 1.5px solid #ded8ff;
  border-radius: 14px;
  background: #fff;
  min-height: 51px;
  padding: 0 13px;
  transition: border-color .2s ease,box-shadow .2s ease;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control:focus-within {
  border-color: #8062fa;
  box-shadow: 0 0 0 3px rgba(121,88,251,.12);
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-text-glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f3f1fc;
  color: #8d89b9;
  font-size: 17px;
  line-height: 1;
  font-family: Georgia,serif;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control input,
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control textarea,
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control select {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  max-height: 160px;
  padding: 12px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #26213c;
  font-weight: 500;
  font-family: inherit;
  font-size: 16px; /* avoids iOS keyboard zoom */
  line-height: 1.35;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control textarea {
  resize: vertical;
  min-height: 90px;
  padding-top: 14px;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control input::placeholder,
#modalRoot .photo-create-sheet .photo-create-panel .tf-variable-control textarea::placeholder { color: #9598b5; opacity: 1; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-select-control select { appearance: none; padding-right: 15px; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-select-arrow { color: #7054dc; font-size: 25px; pointer-events: none; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-toggle-field {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-toggle-field > div { flex: 1 1 auto; min-width: 0; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch { flex: 0 0 auto; position: relative; width: 50px; height: 30px; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e7e3f6;
  transition: background .18s ease;
  pointer-events: none;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch-track:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(37,22,83,.13);
  transition: transform .18s ease;
}
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch input:checked + .tf-switch-track { background: #7951ff; }
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch input:checked + .tf-switch-track:after { transform: translateX(20px); }
#modalRoot .photo-create-sheet .photo-create-panel .tf-switch:focus-within .tf-switch-track { outline: 2px solid #7650f5; outline-offset: 3px; }
#modalRoot .photo-create-sheet .photo-create-panel .selection-status {
  display: block;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 3px auto 10px;
  padding: 8px 13px;
  border: 1px solid #ddd4ff;
  border-radius: 999px;
  background: #f1edff;
  color: #5c35ed;
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
}
#modalRoot .photo-create-sheet .photo-create-panel .selection-status.hidden { display: none; }
#modalRoot .photo-create-sheet .photo-create-panel .preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(70px,1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}
#modalRoot .photo-create-sheet .photo-create-panel .preview-grid:empty { display: none; }
#modalRoot .photo-create-sheet .photo-create-panel .preview-grid .preview { position: relative; max-height: 110px; border-radius: 12px; overflow: hidden; }
#modalRoot .photo-create-sheet .photo-create-panel .preview-grid .preview img { width: 100%;height: 100%;min-height: 75px;max-height: 110px;object-fit: cover; }
#modalRoot .photo-create-sheet .photo-create-panel .upload-legal-minimal {
  display: flex;
  justify-content: center;
  margin: 7px 0 13px;
  padding: 0;
}
#modalRoot .photo-create-sheet .photo-create-panel .subtle-legal-link {
  border: 0;
  background: none;
  padding: 4px;
  color: #8284ac;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  font-size: 11.5px;
  font-weight: 650;
}
#modalRoot .photo-create-sheet .photo-create-panel .cta-bar.single-action {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 0 max(9px,env(safe-area-inset-bottom,0px));
  background: linear-gradient(180deg,rgba(255,255,255,.75),#fff 21%);
}
#modalRoot .photo-create-sheet .photo-create-panel .cta-bar .primary.create-next {
  display: flex;
  width: 100%;
  min-height: 54px;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(105deg,#9959fc 0%,#6540fa 60%,#4a6bf9 100%);
  box-shadow: 0 8px 18px rgba(96,60,234,.19);
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 1;
}
#modalRoot .photo-create-sheet .photo-create-panel .cta-bar .primary.create-next em {
  font-style: normal;
  color: inherit;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
#modalRoot .photo-create-sheet .photo-create-panel .cta-bar .primary.create-next:disabled {
  opacity: .48;
  box-shadow: none;
  cursor: not-allowed;
}
@media (min-width: 600px) {
  #modalRoot .photo-create-sheet { border-radius: 32px; }
  #modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item,
  #modalRoot .photo-create-sheet .photo-create-panel .upload-zone { min-height: 196px; }
}
@media (max-width: 360px) {
  #modalRoot .photo-create-sheet { width: calc(100vw - 12px); padding-inline: 12px; border-radius: 24px 24px 18px 18px; }
  #modalRoot .photo-create-sheet .creation-stepper { min-height: 103px; padding-top: 42px; }
  #modalRoot .photo-create-sheet .creation-step-node { min-width: 54px; width: 54px; }
  #modalRoot .photo-create-sheet .creation-step-circle { width: 38px; height: 38px; }
  #modalRoot .photo-create-sheet .creation-connector { margin-top: 18px; }
  #modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item { min-height: 144px; }
}
@media (max-height: 720px) {
  #modalRoot .photo-create-sheet .creation-stepper { padding-top: 36px; min-height: 100px; }
  #modalRoot .photo-create-sheet .photo-create-panel .create-step-copy { margin-bottom: 13px; }
  #modalRoot .photo-create-sheet .photo-create-panel .flow-photo-item,
  #modalRoot .photo-create-sheet .photo-create-panel .upload-zone { min-height: 136px; }
  #modalRoot .photo-create-sheet .photo-create-panel .tf-upload-symbol { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  #modalRoot .photo-create-sheet .photo-create-panel * { transition: none !important; }
}
