:root {
  --font-body: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;

  --title-font: var(--font-body);
  --font-headline: var(--font-body);
  --button-font-family: var(--font-body);
}
body .elc-iam {
  --color-primary-100: #f5f5f5;
}

body .elc-button {
  --button-font-family: var(--font-body);
}

body .elc-ramp .elc-input-error {
  margin-block-end: 12px;
}

body .elc-iam .elc-iam-checkboxGroup-rows-wrapper .elc-iam-checkbox-group-toggle {
  display: none;
}

body
  .elc-iam
  .elc-iam-checkboxGroup-rows-wrapper
  .elc-iam-checkbox-group-toggle:checked
  + .elc-iam-checkbox-group-items {
  max-height: 100vh;
}

body .elc-iam .elc-iam-rampForm-content .elc-iam-section-basicSection-wrapper .elc-iam-dropdown {
  margin-right: 0px;
}

body .elc-iam .elc-iam-rampForm-content .elc-iam-section-basicSection-wrapper {
  display: grid;
  column-gap: var(--iam-column-gap);
  grid-template-areas:
    'lastName lastName lastName'
    'firstName firstName firstName'
    'lastNameAlternate lastNameAlternate lastNameAlternate'
    'firstNameAlternate firstNameAlternate firstNameAlternate'
    'emailAddress emailAddress emailAddress'
    'mobileNumber mobileNumber mobileNumber'
    'postalCode postalCode postalCode'
    'state state state'
    'city city city'
    'address1 address1 address1'
    'address2 address2 address2'
    'birthdayOptional birthdayOptional birthdayOptional'
    'birthYear birthMonth birthDay'
    'sex sex sex'
    'communicationMethodOptIn communicationMethodOptIn communicationMethodOptIn'
    'acceptPrivacyPolicyAndTnc acceptPrivacyPolicyAndTnc acceptPrivacyPolicyAndTnc';
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body
  .elc-iam
  .elc-iam-rampForm-content
  .elc-iam-communicationMethodOptIn-wrapper
  .elc-iam-checkbox-group-items {
  display: grid;
  column-gap: var(--iam-column-gap);
  grid-template-areas:
    'emailPromotions smsPromotions'
    'phonePromotions postalPromotions';
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
}

body .elc-iam.elc-iam-in-store .elc-iam-checkbox-group-select-all .elc-arrow-icon {
  margin-inline: 8px;
  margin-block-start: 3px;
}

body .iam-loyalty .elc-iam-section-loyaltySection-wrapper .elc-iam-loyaltyCallout-wrapper p {
  font-size: var(--text-sm);
}
