.gateway-panel {
  width: min(780px, calc(100% - 48px));
}

.gateway-actions {
  width: min(720px, 100%);
  gap: 14px;
  margin: 66px auto 0;
}

.gateway-actions.single-action {
  width: min(470px, 100%);
}

.gateway-button {
  min-height: 72px;
  grid-template-columns: 72px minmax(0, 1fr);
  border-radius: 18px;
}

.gateway-button-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, .09);
  font-size: 25px;
}

.gateway-button-icon img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.gateway-button strong {
  padding: 0 18px;
  text-align: center;
  font-size: 16px;
}

.social-list a.social-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .filled {
  fill: currentColor;
  stroke: none;
}

.public-input-shell {
  position: relative;
  width: 100%;
}

.public-input-shell > input {
  width: 0;
}

.keyboard-control-icon .keyboard-body {
  fill: currentColor;
  stroke: none;
}

.keyboard-control-icon .keyboard-keys rect {
  fill: #fff;
  stroke: none;
}

.virtual-keyboard {
  position: absolute;
  z-index: 130;
  right: 0;
  top: calc(100% + 8px);
  padding: 6px;
  border: 1px solid #d7dadd;
  border-radius: 6px;
  color: #111;
  background: #f1f2f3;
  box-shadow: 0 5px 15px rgba(20, 28, 34, .2);
  user-select: none;
  -webkit-user-select: none;
}

.public-input-shell .virtual-key {
  min-width: 0;
  height: 35px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #d4d7da;
  border-radius: 4px;
  color: #0f1113;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  cursor: pointer;
}

.public-input-shell .virtual-key:active,
.public-input-shell .virtual-key.active {
  color: #fff;
  border-color: #1b78ad;
  background: #1b78ad;
}

.numeric-keyboard {
  width: 150px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.numeric-keyboard .numeric-delete {
  grid-column: span 2;
}

.numeric-keyboard .numeric-done {
  grid-column: 1 / -1;
}

.alpha-keyboard {
  width: min(395px, calc(100vw - 24px));
  display: grid;
  gap: 5px;
}

.virtual-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.alpha-keyboard .virtual-key {
  flex: 1 1 0;
  padding-inline: 5px;
}

.alpha-keyboard .key-delete,
.alpha-keyboard .key-shift,
.alpha-keyboard .key-mode {
  flex-grow: 1.55;
}

.alpha-keyboard .key-done {
  flex-grow: 2.8;
}

.alpha-keyboard .key-small {
  flex-grow: .65;
}

@media (max-width: 919px) {
  .global-header-inner {
    min-height: 98px;
    padding: 0 26px;
  }

  .global-brand {
    left: 26px;
    top: 18px;
    width: calc(100% - 118px);
    height: 62px;
  }

  .menu-toggle {
    right: 26px;
    top: 31px;
    width: 34px;
    height: 32px;
    gap: 4px;
    padding: 4px;
  }

  .menu-toggle span {
    height: 3px;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-open .global-header-inner {
    min-height: 100svh;
    padding: 108px 26px 28px;
  }

  .menu-open .header-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .header-tools .header-search {
    height: 44px;
    border-width: 1px;
  }

  .header-search button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .header-search svg {
    width: 18px;
  }

  .language-links {
    min-width: 104px;
    gap: 11px;
  }

  .language-links a {
    font-size: 15px;
  }

  .menu-open .global-nav {
    margin-top: 22px;
  }

  .global-nav > ul > li {
    border-bottom-color: rgba(255, 255, 255, .055);
  }

  .nav-item-row {
    min-height: 46px;
  }

  .nav-item-row > a {
    width: 100%;
    padding: 14px 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .015em;
  }

  .submenu-toggle,
  .submenu-parent::after {
    display: none !important;
    content: none !important;
  }

  .submenu.is-expanded {
    padding: 9px 0;
    border-top-width: 3px;
  }

  .submenu a {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
  }
}

@media (max-width: 680px) {
  .global-header-inner {
    min-height: 90px;
    padding-inline: 18px;
  }

  .global-brand {
    left: 18px;
    top: 16px;
    width: calc(100% - 82px);
    height: 56px;
  }

  .menu-toggle {
    right: 18px;
    top: 29px;
    width: 32px;
    height: 30px;
  }

  .menu-open .global-header-inner {
    padding: 96px 22px 26px;
  }

  .menu-open .header-tools {
    gap: 10px;
  }

  .language-links {
    min-width: 82px;
    gap: 9px;
  }

  .language-links a {
    font-size: 14px;
  }

  .menu-open .global-nav {
    margin-top: 18px;
  }

  .nav-item-row {
    min-height: 43px;
  }

  .nav-item-row > a {
    padding: 12px 0;
    font-size: 14px;
  }

  .submenu a {
    padding: 9px 16px;
    font-size: 13.5px;
  }

  .login-card {
    padding: 24px 7% 42px;
  }

  .login-brand-header {
    min-height: 68px;
    display: flex;
    justify-content: center;
    gap: 0;
  }

  .login-brand-header .login-logo {
    width: min(82%, 300px);
    height: 56px;
  }

  .login-brand-header .login-logo.align-right {
    display: none;
  }

  .login-service-nav,
  .login-mobile-select {
    display: none !important;
  }

  .login-intro {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .login-information {
    grid-template-columns: 50px minmax(0, 1fr);
    margin-top: 18px;
    border-radius: 10px;
  }

  .login-information-icon {
    font-size: 23px;
  }

  .login-information > div:last-child {
    padding: 16px 15px;
    font-size: 14px;
    line-height: 1.48;
  }

  .login-information strong {
    margin-bottom: 3px;
  }

  .public-login-form {
    margin-top: 28px;
  }

  .public-form-row {
    margin-top: 22px;
  }

  .public-form-row > span:first-child {
    font-size: 13px;
  }

  .public-form-helper,
  .public-form-notice {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .forgot-link {
    margin-top: 23px;
    font-size: 14px;
  }

  .public-form-actions {
    margin-top: 31px;
  }

  .cancel-button,
  .login-submit {
    min-height: 54px;
    font-size: 16px;
  }

  .login-footer {
    min-height: 154px;
    gap: 9px;
    padding: 21px 20px;
  }

  .login-footer-logos {
    gap: 7px;
  }

  .login-footer-logos .login-logo {
    width: min(160px, 72%);
    height: 30px;
    font-size: 10px;
  }

  .login-footer-copy {
    gap: 9px 15px;
    font-size: 11.5px;
    line-height: 1.4;
  }

  .virtual-keyboard {
    top: calc(100% + 7px);
    padding: 5px;
  }

  .public-input-shell .virtual-key {
    height: 32px;
    padding-inline: 4px;
    font-size: 12px;
  }

  .numeric-keyboard {
    width: 146px;
  }

  .alpha-keyboard {
    right: 50%;
    width: calc(100vw - 20px);
    transform: translateX(50%);
  }

  .virtual-keyboard-row,
  .alpha-keyboard {
    gap: 4px;
  }

  .gateway-panel {
    width: 100%;
  }

  .gateway-actions,
  .gateway-actions.single-action {
    width: min(82vw, 340px);
    margin-top: 58px;
    gap: 10px;
  }

  .gateway-button {
    min-height: 60px;
    grid-template-columns: 60px minmax(0, 1fr);
    border-radius: 16px;
  }

  .gateway-button-icon {
    font-size: 21px;
  }

  .gateway-button-icon img {
    width: 31px;
    height: 31px;
  }

  .gateway-button strong {
    padding: 0 14px;
    font-size: 14px;
  }
}
