/* Seller journey: progressive onboarding instead of showing every setting at once. */

.journey-auth-home {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.journey-auth-home:hover,
.journey-auth-home:focus-visible {
  color: #fff;
}

.auth-brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.journey-auth-legal {
  margin: -2px 0 0;
  color: #737a74;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.journey-auth-legal a {
  color: #2f55bf;
}

.journey-marketplace-settings {
  grid-column: 1 / -1;
}

.journey-start-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}

.journey-start-progress > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #e4e7ec;
  border-radius: 13px;
  background: #fff;
}

.journey-start-progress b {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
}

.journey-start-progress span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.journey-start-progress strong {
  color: #344054;
  font-size: 12px;
}

.journey-start-progress small {
  overflow: hidden;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-start-progress > div.done {
  border-color: #abefc6;
  background: #f6fef9;
}

.journey-start-progress > div.done b {
  background: #dcfae6;
  color: #067647;
}

.journey-start-progress > div.active {
  border-color: #dda99f;
  background: #fff4ef;
  box-shadow: 0 0 0 3px rgba(183, 77, 63, 0.08);
}

.journey-start-progress > div.active b {
  background: #b74d3f;
  color: #fff;
}

.journey-marketplace-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.journey-marketplace-switcher button {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.journey-marketplace-switcher button:hover {
  border-color: #8f968f;
}

.journey-marketplace-switcher button.active {
  border-color: #171a18;
  box-shadow: 0 0 0 3px rgba(23, 26, 24, 0.09);
}

.journey-marketplace-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.journey-marketplace-mark.kaspi {
  background: #ef3124;
}
.journey-marketplace-mark.ozon {
  background: #005bff;
}
.journey-marketplace-mark.halyk {
  background: #00a65a;
}

.journey-marketplace-switcher button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.journey-marketplace-switcher strong {
  color: #101828;
  font-size: 13px;
}

.journey-marketplace-switcher small {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-marketplace-switcher small.connected {
  color: #067647;
  font-weight: 800;
}

.marketplace-settings-grid:has(.journey-marketplace-card) {
  display: block;
}

.journey-marketplace-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px;
  border-color: #e4e7ec;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.journey-marketplace-card.journey-card-active {
  animation: journey-card-in 0.2s ease both;
}

.journey-marketplace-card .marketplace-card-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #eaecf0;
}

.journey-marketplace-card .settings-help {
  margin: -2px 0 0;
  color: #667085;
}

.journey-credential-help {
  margin: 2px 0 4px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #f9fafb;
}

.journey-credential-help summary {
  padding: 11px 13px;
  color: #475467;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.journey-credential-help p {
  margin: 0;
  padding: 0 13px 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.journey-credential-help a {
  display: inline-flex;
  margin: 0 13px 12px;
  color: #2f55bf;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.journey-settings-note {
  display: flex;
  max-width: 720px;
  align-items: flex-start;
  gap: 10px;
  margin: 13px auto 0;
  padding: 12px 14px;
  border: 1px solid #d8d2c7;
  border-radius: 12px;
  background: #f7f4ed;
}

.journey-settings-note strong {
  flex: 0 0 auto;
  color: #424944;
  font-size: 12px;
}

.journey-settings-note span {
  color: #626963;
  font-size: 12px;
  line-height: 1.5;
}

.journey-profile-toggle {
  display: flex;
  grid-column: 1 / -1;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.journey-profile-toggle > span {
  display: grid;
  gap: 3px;
}

.journey-profile-toggle strong {
  color: #101828;
  font-size: 13px;
}

.journey-profile-toggle small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.journey-profile-toggle b {
  color: #2f55bf;
  font-size: 12px;
}

.journey-profile-toggle.expanded {
  border-color: #bbb4a8;
  background: #f7f4ed;
}

.journey-marketplace-switcher button:focus-visible,
.journey-profile-toggle:focus-visible,
.journey-credential-help a:focus-visible {
  outline: 3px solid #2f55bf;
  outline-offset: 2px;
}

.journey-profile-section.journey-profile-collapsed {
  display: none !important;
}

.unified-catalog-panel-head p {
  max-width: 720px;
}

@keyframes journey-card-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .journey-auth-home {
    top: 18px;
    left: 18px;
  }

  .journey-start-progress {
    grid-template-columns: 1fr;
  }

  .journey-start-progress small {
    white-space: normal;
  }

  .journey-marketplace-switcher {
    grid-template-columns: 1fr;
  }

  .journey-marketplace-switcher button {
    min-height: 58px;
  }

  .journey-settings-note {
    display: grid;
  }

  .journey-profile-toggle {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .journey-auth-home {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
  }

  .journey-start-progress > div,
  .journey-marketplace-switcher button,
  .journey-profile-toggle {
    border-radius: 12px;
  }

  .journey-marketplace-card {
    padding: 16px;
  }

  .journey-profile-toggle {
    flex-direction: column;
    gap: 8px;
  }
}
