.mc-portal-hub__header {
  gap: 24px;
}

.mc-portal-logout {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #d8e4e0;
  border-radius: 999px;
  color: #405954;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mc-portal-logout:hover {
  background: #fff;
  border-color: #b9cdc6;
  transform: translateY(-1px);
}

.mc-portal-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-portal-service {
  border-top: 3px solid var(--mc-service-color);
  height: 100%;
  min-height: 280px;
  transition: box-shadow .22s ease, transform .22s ease, opacity .22s ease;
}

.mc-portal-service:hover {
  box-shadow: 0 20px 48px rgba(20, 57, 47, .1);
  transform: translateY(-2px);
}

.mc-portal-service h2 {
  letter-spacing: -.025em;
}

.mc-portal-service__mark {
  height: 7px;
  width: 38px;
}

.mc-portal-service--inactive {
  opacity: .88;
}

.mc-portal-service--inactive:hover {
  opacity: .9;
}

.mc-portal-service--active,
.mc-portal-service--unverified {
  opacity: 1;
}

.mc-portal-service__badge {
  align-self: flex-start;
  background: color-mix(in srgb, var(--mc-service-color) 11%, white);
  border: 1px solid color-mix(in srgb, var(--mc-service-color) 24%, white);
  border-radius: 999px;
  color: var(--mc-service-color);
  font-size: 11px;
  font-weight: 750;
  margin-top: 18px;
  padding: 5px 9px;
}

.mc-portal-service--tools h2 {
  margin-top: 16px;
}

.mc-portal-service__actions {
  display: grid;
  gap: 11px;
  margin-top: auto;
}

.mc-portal-service__actions .mc-portal-service__action {
  margin-top: 0;
}

.mc-portal-service__action--primary {
  align-items: center;
  background: var(--mc-service-color);
  border-radius: 9px;
  color: #fff !important;
  display: flex;
  justify-content: space-between;
  min-height: 43px;
  padding: 10px 13px;
}

.mc-portal-service__action--secondary {
  font-size: 12px !important;
  justify-self: start;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mc-portal-footer {
  border-top: 1px solid var(--mc-line);
  color: #71837f;
  font-size: 12px;
  grid-column: 1 / -1;
  letter-spacing: .025em;
  margin: 28px 0 0;
  padding-top: 18px;
  text-align: center;
}

.mc-portal-password-field {
  display: block;
  position: relative;
}

.mc-portal-password-field input {
  padding-right: 52px !important;
}

.mc-portal-form .mc-portal-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #59706b;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
}

.mc-portal-form .mc-portal-password-toggle:hover {
  background: #edf5f2;
  color: #1f8a5b;
}

.mc-portal-password-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mc-portal-password-toggle .mc-portal-eye-closed,
.mc-portal-password-toggle.is-visible .mc-portal-eye-open {
  display: none;
}

.mc-portal-turnstile {
  margin: 5px 0 2px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.mc-portal-turnstile .cf-turnstile {
  max-width: 100%;
}

.mc-portal-turnstile .cf-turnstile-br {
  display: none;
}

.mc-portal-password-toggle.is-visible .mc-portal-eye-closed {
  display: block;
}

.mc-portal-state--authenticated {
  align-items: center;
  background: radial-gradient(circle at 88% 18%, rgba(31, 138, 91, .13), transparent 30%), linear-gradient(135deg, #f8fbfa, #eef6f3);
  display: flex;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.mc-portal-state__content {
  max-width: 650px;
}

.mc-portal-state--authenticated h1 {
  margin-bottom: 18px;
}

.mc-portal-state__lead {
  color: var(--mc-muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 590px;
}

.mc-portal-state--authenticated .mc-portal-button {
  max-width: 240px;
}

.mc-portal-state__services {
  align-items: center;
  border-top: 1px solid var(--mc-line);
  color: #61736f;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px 22px;
  margin-top: 30px;
  padding-top: 20px;
}

.mc-portal-state__services span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.mc-portal-state__services i {
  background: #1f8a5b;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.mc-portal-state__services .is-method35 i {
  background: #6f2346;
}

.mc-portal-state__services .is-tools i {
  background: #4f86ff;
}

@media (max-width: 900px) {
  .mc-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mc-portal-hub__header {
    display: flex;
    flex-direction: column;
  }

  .mc-portal-logout {
    margin-top: 0;
  }

  .mc-portal-grid {
    grid-template-columns: 1fr;
  }

  .mc-portal-service {
    min-height: 230px;
  }

  .mc-portal-state--authenticated {
    min-height: 460px;
  }

  .mc-portal-state__lead {
    font-size: 16px;
  }

  .mc-portal-state__services {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-portal-logout,
  .mc-portal-service {
    transition: none;
  }
}
