
:root {
  --tsc-account-pink: #ec5c8f;
  --tsc-account-purple: #8b61f0;
  --tsc-account-violet: #a876ff;
  --tsc-account-blue: #5aa7ff;
  --tsc-account-ink: #333333;
  --tsc-account-muted: #888888;
  --tsc-account-border: rgba(180, 150, 230, 0.35);
  --tsc-account-shadow: 0 4px 16px rgba(120, 80, 180, 0.18);
}

.tsc-account-chip-mounted {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 48px;
}

.top-cart-row .wishlist-compare-holder.tsc-account-chip-mounted {
  width: 100%;
}

.tsc-account-chip,
.tsc-account-chip * {
  box-sizing: border-box;
}

.tsc-account-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 9px 7px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--tsc-account-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--tsc-account-shadow);
  border: 1px solid var(--tsc-account-border);
  overflow: visible;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tsc-account-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(120, 80, 180, 0.28);
  color: #222222;
  text-decoration: none;
}

.wishlist-compare-holder .tsc-account-chip a,
.wishlist-compare-holder .tsc-account-chip button,
.tsc-account-chip a,
.tsc-account-chip button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: 0;
  text-decoration: none !important;
}

.tsc-account-chip__profile {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  padding: 0 12px 0 0 !important;
  margin: 0 !important;
}

.tsc-account-chip__profile:hover,
.tsc-account-chip__profile:focus,
.tsc-account-chip__heart:hover,
.tsc-account-chip__heart:focus {
  color: inherit;
  text-decoration: none;
}

.tsc-account-chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
}

.tsc-account-chip__avatar--empty {
  color: var(--tsc-account-purple);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246, 240, 255, 0.98));
  border: 2px solid rgba(139, 97, 240, 0.42);
}

.tsc-account-chip__avatar--image {
  background-position: center;
  background-size: cover;
  border: 0;
}

.tsc-account-chip__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}

.tsc-account-chip__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--tsc-account-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.tsc-account-chip__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tsc-account-ink);
  line-height: 1.05;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsc-account-chip__divider {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: rgba(180, 150, 230, 0.35);
  flex: 0 0 1px;
}

.wishlist-compare-holder .tsc-account-chip__heart,
.tsc-account-chip__heart {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0 !important;
  border-radius: 999px;
  color: var(--tsc-account-pink) !important;
  background: transparent !important;
  transition: background 0.18s ease, transform 0.18s ease;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.tsc-account-chip__heart:hover,
.tsc-account-chip__heart:focus {
  color: var(--tsc-account-pink) !important;
  background: rgba(236, 92, 143, 0.08) !important;
  transform: scale(1.04);
}

.wishlist-compare-holder .tsc-account-chip__heart svg,
.tsc-account-chip__heart svg {
  display: block;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.tsc-account-chip__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3a30;
  border: 2px solid #fff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 63, 127, 0.35);
  z-index: 2;
}

.tsc-account-modal-open {
  overflow: hidden;
}

.tsc-account-modal,
.tsc-account-modal * {
  box-sizing: border-box;
}

.tsc-account-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 999999;
}

.tsc-account-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tsc-account-modal__backdrop {
  background: rgba(18, 16, 32, 0.48);
  backdrop-filter: blur(7px);
  inset: 0;
  position: absolute;
}

.tsc-account-modal__dialog {
  background: #fff;
  border: 1px solid rgba(139, 97, 240, 0.18);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(24, 18, 50, 0.28);
  color: #171731;
  left: 50%;
  max-height: calc(100vh - 42px);
  max-width: min(460px, calc(100vw - 28px));
  overflow: auto;
  padding: 30px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.985);
  transition: transform 180ms ease;
  width: 460px;
}

.tsc-account-modal.is-open .tsc-account-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
}

.tsc-account-modal__close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #6c6c80;
  cursor: pointer;
  display: inline-flex;
  font-size: 30px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
}

.tsc-account-modal__close:hover {
  background: rgba(139, 97, 240, 0.08);
  color: #8b61f0;
}

.tsc-account-modal__header {
  padding: 0 28px 18px;
  text-align: center;
}

.tsc-account-modal__sparkle {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.tsc-account-modal__header h2 {
  color: #171731;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 9px;
}

.tsc-account-modal__header p {
  color: #697086;
  font-size: 14.5px;
  line-height: 1.45;
  margin: 0;
}

.tsc-account-modal__tabs {
  background: linear-gradient(180deg, rgba(248, 245, 255, 0.95), rgba(255,255,255,0.95));
  border: 1px solid rgba(139, 97, 240, 0.18);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 22px;
  padding: 4px;
}

.tsc-account-modal__tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #171731;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

.tsc-account-modal__tab.is-active {
  background: #fff;
  box-shadow: 0 7px 18px rgba(120, 75, 205, 0.16);
  color: #8b61f0;
}

.tsc-account-modal__notice {
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.tsc-account-modal__notice.is-error {
  background: #fff0f4;
  border: 1px solid rgba(232, 63, 150, 0.22);
  color: #b91655;
}

.tsc-account-modal__notice.is-success {
  background: #effbf4;
  border: 1px solid rgba(20, 152, 78, 0.18);
  color: #147342;
}

.tsc-account-form {
  display: none;
}

.tsc-account-form.is-active {
  display: block;
}

.tsc-account-field {
  display: block;
  margin: 0 0 15px;
  position: relative;
}

.tsc-account-field span {
  color: #171731;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 7px;
}

.tsc-account-field em {
  color: #697086;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.tsc-account-field input {
  appearance: none;
  background: #fff;
  border: 1px solid rgba(105, 112, 134, 0.28);
  border-radius: 10px;
  color: #171731;
  display: block;
  font-size: 15px;
  height: 48px;
  line-height: 48px;
  outline: none;
  padding: 0 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  width: 100%;
}

.tsc-account-field--password input {
  padding-right: 48px;
}

.tsc-account-field input:focus {
  border-color: rgba(139, 97, 240, 0.72);
  box-shadow: 0 0 0 4px rgba(139, 97, 240, 0.11);
}

.tsc-account-field__toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #4273bd;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 28px;
  width: 42px;
}

.tsc-account-form__row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 18px;
}

.tsc-account-form__row a,
.tsc-account-modal__switch button,
.tsc-welcome-card a {
  color: #8b61f0 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.tsc-account-form__row a:hover,
.tsc-account-modal__switch button:hover,
.tsc-welcome-card a:hover {
  color: #ec5c8f !important;
}

.tsc-account-checkbox {
  align-items: center;
  color: #697086;
  cursor: pointer;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 700;
  gap: 8px;
}

.tsc-account-checkbox input {
  accent-color: #8b61f0;
  height: 17px;
  margin: 0;
  width: 17px;
}

.tsc-account-button {
  align-items: center;
  appearance: none;
  background: linear-gradient(135deg, #e83f96, #8b61f0);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 11px 24px rgba(139, 97, 240, 0.25);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 850;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0 22px;
  text-decoration: none !important;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  width: 100%;
}

.tsc-account-button:hover {
  box-shadow: 0 13px 28px rgba(139, 97, 240, 0.31);
  transform: translateY(-1px);
}

.tsc-account-button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.tsc-account-modal__or {
  align-items: center;
  color: #697086;
  display: flex;
  font-size: 13px;
  gap: 14px;
  justify-content: center;
  margin: 19px 0 16px;
}

.tsc-account-modal__or::before,
.tsc-account-modal__or::after {
  background: rgba(105, 112, 134, 0.15);
  content: "";
  height: 1px;
  flex: 1;
}

.tsc-account-modal__switch {
  color: #697086;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.tsc-account-modal__switch button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.tsc-account-benefit {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(139, 97, 240, 0.08), rgba(232, 63, 150, 0.06));
  border: 1px solid rgba(139, 97, 240, 0.15);
  border-radius: 14px;
  color: #697086;
  display: flex;
  gap: 10px;
  margin: 2px 0 16px;
  padding: 12px;
}

.tsc-account-benefit p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.tsc-account-hp {
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}

.tsc-welcome-page,
.tsc-welcome-page * {
  box-sizing: border-box;
}

.tsc-welcome-page {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(139, 97, 240, 0.10);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(52, 38, 99, 0.10);
  display: grid;
  grid-template-columns: minmax(460px, 1.35fr) minmax(360px, 0.9fr);
  gap: clamp(26px, 4vw, 54px);
  margin: 32px auto;
  max-width: 1280px;
  padding: clamp(32px, 4.5vw, 54px);
  position: relative;
  overflow: hidden;
}

.tsc-welcome-page::before {
  background:
    radial-gradient(circle at 14% 16%, rgba(139, 97, 240, 0.12), transparent 32%),
    radial-gradient(circle at 96% 24%, rgba(232, 63, 150, 0.08), transparent 28%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.tsc-welcome-page > * {
  position: relative;
  z-index: 1;
}

.tsc-welcome-page__main {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(260px, 1fr);
  gap: clamp(28px, 4vw, 54px);
  min-width: 0;
}

.tsc-welcome-avatar {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #f7f4ff;
  border: 10px solid #fff;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(52, 38, 99, 0.14);
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: min(100%, 232px);
}

.tsc-welcome-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tsc-welcome-page__intro {
  align-self: center;
  min-width: 0;
}

.tsc-welcome-page__eyebrow {
  background: linear-gradient(135deg, rgba(139, 97, 240, 0.12), rgba(232, 63, 150, 0.08));
  border-radius: 10px;
  color: #8b61f0;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 18px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.tsc-welcome-page h1 {
  color: #171731;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 16px;
}

.tsc-welcome-page > * p,
.tsc-welcome-page__intro p {
  color: #171731;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.48;
  margin: 0 0 22px;
  max-width: 470px;
}

.tsc-welcome-avatar-form {
  margin: 0;
  max-width: 380px;
}

.tsc-welcome-avatar-form__input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
  z-index: -1;
}

.tsc-welcome-page__button {
  align-items: center;
  appearance: none;
  background: linear-gradient(135deg, #e83f96, #8b61f0);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 11px 24px rgba(139, 97, 240, 0.25);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 850;
  gap: 10px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0 22px;
  text-decoration: none !important;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  width: 100%;
}

.tsc-welcome-page__button {
  font-size: 18px;
  height: 58px;
  max-width: 380px;
}

.tsc-welcome-page__button i {
  font-size: 21px;
}

.tsc-welcome-page__button:hover {
  box-shadow: 0 13px 28px rgba(139, 97, 240, 0.31);
  transform: translateY(-1px);
}

.tsc-welcome-page.is-uploading .tsc-welcome-page__button {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.tsc-welcome-page__later {
  color: #8b61f0 !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 850;
  margin: 16px 0 0;
  text-decoration: none !important;
}

.tsc-welcome-page__later:hover {
  color: #ec5c8f !important;
}

.tsc-welcome-page__notice {
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin: 14px 0 0;
  max-width: 380px;
  padding: 12px 14px;
}

.tsc-welcome-page__notice.is-error {
  background: #fff0f4;
  border: 1px solid rgba(232, 63, 150, 0.22);
  color: #b91655;
}

.tsc-welcome-page__notice.is-success {
  background: #effbf4;
  border: 1px solid rgba(20, 152, 78, 0.18);
  color: #147342;
}

.tsc-welcome-page__next {
  align-self: center;
  min-width: 0;
}

.tsc-welcome-page__next-title {
  align-items: center;
  color: #697086;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 14px;
  letter-spacing: 0.07em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.tsc-welcome-page__next-title span {
  background: rgba(105, 112, 134, 0.16);
  content: "";
  flex: 1;
  height: 1px;
}

.tsc-welcome-page__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tsc-welcome-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(139, 97, 240, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(52, 38, 99, 0.06);
  min-height: 300px;
  padding: 28px 24px;
}

.tsc-welcome-card__icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(232, 63, 150, 0.10), rgba(139, 97, 240, 0.12));
  border-radius: 16px;
  color: #8b61f0;
  display: inline-flex;
  font-size: 22px;
  height: 58px;
  justify-content: center;
  margin-bottom: 28px;
  width: 58px;
}

.tsc-welcome-card h2 {
  color: #4b4b55;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.16;
  margin: 0 0 26px;
}

.tsc-welcome-card p {
  color: #171731;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 22px;
}

.tsc-welcome-card a {
  color: #8b61f0 !important;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none !important;
}

.tsc-welcome-card__link {
  display: inline-block;
  margin-top: 12px;
}

.tsc-welcome-card a:hover {
  color: #ec5c8f !important;
}

.tsc-welcome-card__cta--share {
  align-items: center;
  background: linear-gradient(90deg, #e08a73 0%, #d44f83 100%);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(212, 79, 131, 0.18);
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  padding: 0 18px;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff !important;
}

.tsc-welcome-page .tsc-welcome-card a.tsc-welcome-card__cta--share,
.tsc-welcome-page .tsc-welcome-card a.tsc-welcome-card__cta--share:visited,
.tsc-welcome-page .tsc-welcome-card a.tsc-welcome-card__cta--share:hover,
.tsc-welcome-page .tsc-welcome-card a.tsc-welcome-card__cta--share:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.tsc-welcome-card__cta--share:hover {
  box-shadow: 0 12px 22px rgba(212, 79, 131, 0.24);
  transform: translateY(-1px);
}

/* Extra specificity to beat theme header rules */
.top-cart-row .wishlist-compare-holder .tsc-account-chip,
header .top-cart-row .wishlist-compare-holder .tsc-account-chip {
  display: inline-flex !important;
}

.top-cart-row .wishlist-compare-holder .tsc-account-chip__profile,
.top-cart-row .wishlist-compare-holder .tsc-account-chip__heart {
  text-decoration: none !important;
}

.top-cart-row .wishlist-compare-holder .tsc-account-chip__heart {
  background: transparent !important;
}

@media (max-width: 991px) {
  .tsc-account-chip,
  .tsc-account-chip-mounted {
    display: none !important;
  }

  .tsc-welcome-page {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .tsc-welcome-page__main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tsc-welcome-avatar {
    margin: 0 auto;
    max-width: 190px;
  }

  .tsc-welcome-page__intro p,
  .tsc-welcome-avatar-form,
  .tsc-welcome-page__button,
  .tsc-welcome-page__notice {
    margin-left: auto;
    margin-right: auto;
  }

  .tsc-welcome-page__later {
    justify-content: center;
  }

  .tsc-welcome-page__cards {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .tsc-welcome-page {
    border-radius: 22px;
    margin: 22px auto;
    padding: 24px 18px;
  }

  .tsc-welcome-page__cards {
    gap: 14px;
  }

  .tsc-welcome-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .tsc-welcome-card__icon {
    margin-bottom: 18px;
  }
}
