
/* PPA local dev: compact CREATE ACCOUNT popup only. */

@supports selector(.modal:has(#registerForm)) {

  #modalRoot .modal.small:has(#registerForm) {
    display: flex;
    flex-direction: column;
    width: min(510px, 100%);
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    border-radius: 24px;
    box-sizing: border-box;
  }

  #modalRoot .modal.small:has(#registerForm) > .modal-head {
    flex: 0 0 auto;
    padding: 13px 20px;
    min-height: 62px;
  }

  #modalRoot .modal.small:has(#registerForm) > .modal-head h2 {
    font-size: 21px;
    line-height: 1.2;
  }

  #modalRoot .modal.small:has(#registerForm) > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 13px 19px 12px;
    scrollbar-width: thin;
    scrollbar-color: #d5c9bf transparent;
  }

  #modalRoot .modal.small:has(#registerForm)
  > .modal-body::-webkit-scrollbar {
    width: 6px;
  }

  #modalRoot .modal.small:has(#registerForm)
  > .modal-body::-webkit-scrollbar-thumb {
    background: #d5c9bf;
    border-radius: 100px;
  }

  #modalRoot .modal.small:has(#registerForm) .mc-auth-banner {
    padding: 8px 11px;
    margin: 0 0 10px;
    gap: 7px 10px;
    min-height: 0;
    border-radius: 14px;
  }

  #modalRoot .modal.small:has(#registerForm)
  .mc-auth-banner-v4 .mc-auth-logo-full {
    width: 130px;
    max-height: 74px;
    height: auto;
    flex: 0 1 130px;
    object-fit: contain;
  }

  #modalRoot .modal.small:has(#registerForm)
  .mc-auth-banner-v4 .mc-auth-slogan {
    flex: 1 1 142px;
    font-size: 10px;
    line-height: 1.3;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm {
    gap: 10px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm .field {
    gap: 5px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm .field input {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    padding: 10px 13px;
    font-size: 16px;
    border-radius: 13px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm .password-toggle {
    width: 36px;
    height: 36px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm .legal-accept-card {
    padding: 10px 12px;
    gap: 7px;
    border-radius: 14px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm .legal-accept-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm .legal-accept-card > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 9px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #openUsageRules {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #registerForm > .button-accent.button-block {
    min-height: 48px;
    padding: 10px 15px;
  }

  #modalRoot .modal.small:has(#registerForm)
  #backToLogin {
    margin: 0;
    padding: 3px 0;
    min-height: 26px;
    line-height: 1.25;
  }

  @media (max-width: 560px) {

    #modalRoot .modal.small:has(#registerForm) {
      max-height: calc(100dvh - 14px);
      border-radius: 20px 20px 16px 16px;
    }

    #modalRoot .modal.small:has(#registerForm)
    > .modal-head {
      padding: 11px 15px;
      min-height: 56px;
    }

    #modalRoot .modal.small:has(#registerForm)
    > .modal-body {
      padding: 11px 14px 13px;
    }

    #modalRoot .modal.small:has(#registerForm)
    .mc-auth-banner-v4 .mc-auth-logo-full {
      width: 108px;
      max-height: 62px;
      flex-basis: 108px;
    }
  }
}
