/* AONE review 05: member details, account controls, and inquiry lists. */
body.aone-member-page .mypage .profile-strip {
  grid-template-columns: 80px minmax(0, 1fr) auto;
  height: auto;
  gap: 24px;
}

body.aone-member-page .mypage .profile-strip > .profile-identity {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

body.aone-member-page .mypage .profile-identity :is(strong, b) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.aone-member-page .mypage .profile-strip > .profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 0;
}

body.aone-member-page .mypage .profile-actions :is(.button, form, button) {
  width: auto;
  margin: 0;
}

body.aone-member-page .mypage .profile-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1.4;
}

body.aone-member-page .mypage .mypage-wishlist-list {
  display: grid;
  gap: 16px;
}

body.aone-member-page .mypage .recent-learning {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}

body.aone-member-page .mypage .recent-learning > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.aone-member-page .mypage .recent-learning > a {
  min-width: 132px;
  padding-inline: 20px;
  white-space: nowrap;
}

.member-auth-page .member-profile-form > :is(.member-field, [data-personal-type], [data-business-number], .member-profile-consent) {
  margin-top: 20px;
}

.member-auth-page .member-profile-form > .member-field:first-of-type {
  margin-top: 0;
}

.member-auth-page .member-field select {
  appearance: none;
  padding: 12px 48px 12px 16px;
  background-image: url("images/redesign/icons/book-arrow-5.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

.member-auth-page .member-profile-consent {
  padding: 18px;
  border: 1px solid var(--rd-gray-20, #e4e4e4);
  border-radius: var(--rd-radius-sm, 12px);
  background: var(--rd-gray-5, #f8f8f8);
}

.member-auth-page .member-profile-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--rd-gray-80, #2d2d2d);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.member-auth-page .member-profile-consent input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: var(--rd-primary-60, #104ff3);
}

.member-auth-page .member-profile-consent p {
  margin: 8px 0 0 30px;
  color: var(--rd-gray-60, #717171);
  font-size: 12px;
  line-height: 1.65;
  word-break: keep-all;
}

.member-auth-page .member-field-help {
  margin: 9px 0 0;
  color: var(--rd-gray-60, #717171);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.member-auth-page .member-field-help ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.4em;
}

body.aone-inquiry-page .page-section .inquiry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.aone-inquiry-page .page-section .inquiry-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 148px;
  min-height: 50px;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid var(--rd-primary-60, #104ff3);
  border-radius: 999px;
  background: var(--rd-primary-60, #104ff3);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

body.aone-inquiry-page .page-section .inquiry-create-button:hover {
  border-color: var(--rd-primary-70, #003ddd);
  background: var(--rd-primary-70, #003ddd);
  color: #fff;
}

body.aone-inquiry-page .page-section .inquiry-create-button:focus-visible {
  outline: 3px solid var(--rd-primary-60, #104ff3);
  outline-offset: 4px;
}

body.aone-inquiry-page .page-section .inquiry-empty-state p {
  margin: 12px 0 24px;
  line-height: 1.7;
}

body.aone-inquiry-page .page-section .inquiry-list > a {
  gap: 20px;
}

body.aone-inquiry-page .page-section .inquiry-list > a > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.aone-inquiry-page .page-section .inquiry-list > a > strong {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body.aone-member-page .mypage .profile-strip {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body.aone-member-page .mypage .profile-strip > span {
    width: 64px;
    height: 64px;
  }

  body.aone-member-page .mypage .profile-strip > .profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.aone-member-page .mypage .profile-strip {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 18px;
    gap: 16px;
  }

  body.aone-member-page .mypage .profile-strip > span {
    width: 54px;
    height: 54px;
  }

  body.aone-member-page .mypage .profile-strip > .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  body.aone-member-page .mypage .profile-actions :is(.button, form, button) {
    width: 100%;
  }

  body.aone-member-page .mypage .profile-actions form {
    grid-column: 1 / -1;
  }

  body.aone-member-page .mypage .profile-actions .button {
    padding: 12px 8px;
    font-size: 13px;
  }

  body.aone-member-page .mypage .recent-learning {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.aone-inquiry-page .page-section .inquiry-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  body.aone-inquiry-page .page-section .inquiry-heading > div {
    order: 0;
  }

  body.aone-inquiry-page .page-section .inquiry-heading > .inquiry-create-button {
    order: 1;
  }

  body.aone-inquiry-page .page-section .inquiry-empty-state {
    padding: 48px 22px;
  }
}
