:root {
  --gpm-primary: #111111;
  --gpm-soft: #f5f6f7;
  --gpm-border: #e5e7eb;
  --gpm-text: #191919;
  --gpm-muted: #6b7280;
  --gpm-white: #ffffff;
  --gpm-danger: #b42318;
  --gpm-danger-bg: #fff3f2;
  --gpm-success: #157f3b;
  --gpm-success-bg: #effaf3;
  --gpm-radius: 12px;
  --gpm-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

.gpm-member-page {
  background: var(--gpm-soft);
}

.gpm-member-page .site-content {
  padding-top: clamp(42px, 7vw, 92px);
  padding-bottom: clamp(54px, 8vw, 110px);
}

.gpm-member-page .content-area,
.gpm-member-page .site-main,
.gpm-member-page .inside-article {
  width: 100%;
}

.gpm-member-page .inside-article {
  padding: 0 !important;
  background: transparent !important;
}

.gpm-member-page .entry-header,
.gpm-member-page .comments-area,
.gpm-member-page .post-navigation {
  display: none;
}

.gpm-member-page a {
  color: var(--gpm-text);
  text-decoration: none;
}

.gpm-member-page a:hover {
  color: var(--gpm-primary);
  text-decoration: underline;
}

.gpm-auth-wrap {
  width: min(100% - 32px, 460px);
  margin: 0 auto;
}

.gpm-auth-card {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--gpm-border);
  border-radius: 18px;
  background: var(--gpm-white);
  box-shadow: var(--gpm-shadow);
}

.gpm-auth-heading {
  margin-bottom: 28px;
  text-align: center;
}

.gpm-auth-heading h1,
.gpm-section-heading h2,
.gpm-summary h2 {
  margin: 0;
  color: var(--gpm-text);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.gpm-auth-heading h1 {
  font-size: 26px;
}

.gpm-auth-heading p,
.gpm-section-heading p,
.gpm-summary p {
  margin: 9px 0 0;
  color: var(--gpm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.gpm-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.gpm-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.gpm-field > label {
  color: #34383f;
  font-size: 13px;
  font-weight: 650;
}

.gpm-field input[type="text"],
.gpm-field input[type="email"],
.gpm-field input[type="tel"],
.gpm-field input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--gpm-border);
  border-radius: 8px;
  outline: none;
  background: var(--gpm-white);
  color: var(--gpm-text);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.gpm-field input::placeholder {
  color: #9ca3af;
}

.gpm-field input:hover {
  border-color: #c9cdd4;
}

.gpm-field input:focus {
  border-color: var(--gpm-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gpm-primary) 12%, transparent);
}

.gpm-field input:disabled {
  background: var(--gpm-soft);
  color: #7a808a;
  cursor: not-allowed;
}

.gpm-password-field input {
  padding-right: 66px !important;
}

.gpm-password-toggle {
  position: absolute;
  right: 9px;
  bottom: 9px;
  min-width: 45px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: var(--gpm-soft);
  color: #4b5563;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.gpm-password-toggle:hover {
  background: #e9ebee;
}

.gpm-help {
  margin: -1px 0 0;
  color: #858b94;
  font-size: 12px;
  line-height: 1.5;
}

.gpm-optional {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
}

.gpm-form-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.gpm-form-row-between {
  justify-content: space-between;
}

.gpm-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.gpm-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--gpm-primary);
}

.gpm-agree {
  padding: 14px;
  border-radius: 8px;
  background: var(--gpm-soft);
}

.gpm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, background-color .16s ease;
}

.gpm-form > .gpm-button {
  width: 100%;
  margin-top: 4px;
}

.gpm-button:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.gpm-button:disabled,
.gpm-button.is-loading {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.gpm-button-primary {
  background: var(--gpm-primary);
  color: var(--gpm-white) !important;
}

.gpm-button-secondary {
  border-color: var(--gpm-primary);
  background: var(--gpm-white);
  color: var(--gpm-primary) !important;
}

.gpm-footer-link {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--gpm-border);
  color: var(--gpm-muted);
  font-size: 13px;
  text-align: center;
}

.gpm-footer-link a {
  font-weight: 700;
}

.gpm-notice {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.gpm-notice-error {
  border-color: #f3c7c3;
  background: var(--gpm-danger-bg);
  color: var(--gpm-danger);
}

.gpm-notice-success {
  border-color: #bde6c9;
  background: var(--gpm-success-bg);
  color: var(--gpm-success);
}

.gpm-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.gpm-login-required,
.gpm-simple-message {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--gpm-border);
  border-radius: 16px;
  background: var(--gpm-white);
  box-shadow: var(--gpm-shadow);
  text-align: center;
}

.gpm-login-required strong {
  display: block;
  color: var(--gpm-text);
  font-size: 22px;
}

.gpm-login-required p {
  margin: 9px 0 24px;
  color: var(--gpm-muted);
  font-size: 14px;
}

.gpm-account-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
}

.gpm-account-wrap > .gpm-notice {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

.gpm-account-side {
  align-self: start;
  position: sticky;
  top: 30px;
  overflow: hidden;
  border: 1px solid var(--gpm-border);
  border-radius: var(--gpm-radius);
  background: var(--gpm-white);
  box-shadow: var(--gpm-shadow);
}

.gpm-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  text-align: center;
}

.gpm-avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 14px;
  border: 5px solid var(--gpm-soft);
  border-radius: 50%;
}

.gpm-profile-card strong {
  color: var(--gpm-text);
  font-size: 17px;
}

.gpm-profile-card span {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: var(--gpm-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpm-account-nav {
  display: grid;
  border-top: 1px solid var(--gpm-border);
}

.gpm-account-nav a {
  padding: 15px 20px;
  border-bottom: 1px solid var(--gpm-border);
  color: #3f454d;
  font-size: 14px;
}

.gpm-account-nav a:last-child {
  border-bottom: 0;
}

.gpm-account-nav a:hover {
  background: var(--gpm-soft);
  text-decoration: none;
}

.gpm-account-main {
  display: grid;
  gap: 22px;
}

.gpm-account-section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--gpm-border);
  border-radius: var(--gpm-radius);
  background: var(--gpm-white);
  box-shadow: var(--gpm-shadow);
  scroll-margin-top: 30px;
}

.gpm-section-heading {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gpm-border);
}

.gpm-section-heading h2,
.gpm-summary h2 {
  font-size: 22px;
}

.gpm-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gpm-soft) 100%);
}

.gpm-summary > div > span {
  color: var(--gpm-muted);
  font-size: 13px;
}

.gpm-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
  min-width: 270px;
  margin: 0;
}

.gpm-summary dl > div {
  padding: 15px;
  border: 1px solid var(--gpm-border);
  border-radius: 9px;
  background: rgba(255,255,255,.84);
}

.gpm-summary dt {
  color: var(--gpm-muted);
  font-size: 11px;
}

.gpm-summary dd {
  margin: 5px 0 0;
  color: var(--gpm-text);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .gpm-account-wrap {
    grid-template-columns: 1fr;
  }

  .gpm-account-side {
    position: static;
  }

  .gpm-profile-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 14px;
    justify-items: start;
    text-align: left;
  }

  .gpm-avatar {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .gpm-profile-card span {
    margin-top: 0;
  }

  .gpm-account-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .gpm-account-nav a {
    padding: 13px 8px;
    border-right: 1px solid var(--gpm-border);
    border-bottom: 0;
    font-size: 12px;
    text-align: center;
  }

  .gpm-account-nav a:last-child {
    border-right: 0;
  }

  .gpm-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .gpm-summary dl {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .gpm-member-page .site-content {
    padding-top: 26px;
    padding-bottom: 48px;
  }

  .gpm-auth-wrap,
  .gpm-account-wrap {
    width: min(100% - 20px, 1080px);
  }

  .gpm-auth-card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .gpm-form-row-between {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .gpm-account-section {
    padding: 24px 18px;
  }

  .gpm-account-nav {
    grid-template-columns: 1fr;
  }

  .gpm-account-nav a {
    border-right: 0;
    border-bottom: 1px solid var(--gpm-border);
  }

  .gpm-summary dl {
    grid-template-columns: 1fr;
  }
}

/* 회원가입 약관 및 개인정보 처리방침 팝업 */
.gpm-agreement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--gpm-soft);
}

.gpm-agreement-row .gpm-agree {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.gpm-agree em {
  margin-left: 3px;
  color: var(--gpm-danger);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.gpm-terms-open {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--gpm-text) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.gpm-terms-open:hover,
.gpm-terms-open:focus,
.gpm-terms-open:focus-visible,
.gpm-terms-open:active {
  background: transparent !important;
  color: var(--gpm-text) !important;
  text-decoration: none !important;
  box-shadow: none;
}

body.gpm-modal-open {
  overflow: hidden;
}

.gpmc-privacy-modal[hidden],
.gpmc-privacy-modal[aria-hidden="true"] {
  display: none !important;
}

.gpmc-privacy-modal {
  position: fixed !important;
  z-index: 2147483000 !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 20px !important;
}

.gpmc-privacy-backdrop {
  position: absolute !important;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(2px);
}

.gpmc-privacy-dialog {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  max-height: min(82vh, 760px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--gpm-border);
  border-radius: 14px;
  outline: none;
  background: var(--gpm-white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.gpmc-privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--gpm-border);
}

.gpmc-privacy-header h2 {
  margin: 0;
  color: var(--gpm-text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.gpmc-privacy-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gpm-soft);
  color: #333;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gpmc-privacy-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px 22px;
  overflow-wrap: anywhere;
}

/*
 * 개인정보처리방침 페이지의 본문 HTML과 Elementor 글꼴 설정은 유지합니다.
 * 원본 페이지의 섹션/컨테이너/위젯 여백과 폭 제한만 팝업 안에서 제거합니다.
 */
.gpmc-policy-html,
.gpmc-policy-html > .elementor,
.gpmc-policy-html .elementor-section,
.gpmc-policy-html .elementor-container,
.gpmc-policy-html .elementor-column,
.gpmc-policy-html .elementor-widget-wrap,
.gpmc-policy-html .elementor-widget-container,
.gpmc-policy-html .e-con,
.gpmc-policy-html .e-con-inner,
.gpmc-policy-html .elementor-element {
  margin: 0 !important;
  padding: 0 !important;
}

.gpmc-policy-html > .elementor,
.gpmc-policy-html .elementor-section,
.gpmc-policy-html .elementor-container,
.gpmc-policy-html .elementor-column,
.gpmc-policy-html .elementor-widget-wrap,
.gpmc-policy-html .e-con,
.gpmc-policy-html .e-con-inner {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  gap: 0 !important;
}

.gpmc-policy-html .elementor-widget:not(:last-child) {
  margin-bottom: 0 !important;
}

.gpmc-policy-html .elementor-widget-spacer,
.gpmc-policy-html .elementor-spacer,
.gpmc-policy-html .elementor-widget-divider {
  display: none !important;
}

/* GeneratePress/Elementor의 별도 페이지 제목 영역이 본문에 섞여 있어도 숨깁니다. */
.gpmc-policy-html .entry-header,
.gpmc-policy-html .page-header,
.gpmc-policy-html .page-title,
.gpmc-policy-html .elementor-page-title,
.gpmc-policy-html .elementor-widget-theme-post-title {
  display: none !important;
}

.gpmc-policy-html > :first-child,
.gpmc-policy-html > .elementor > :first-child {
  margin-top: 0 !important;
}

.gpmc-policy-html > :last-child,
.gpmc-policy-html > .elementor > :last-child {
  margin-bottom: 0 !important;
}

.gpmc-policy-html img,
.gpmc-policy-html video,
.gpmc-policy-html iframe,
.gpmc-policy-html table {
  max-width: 100%;
}

.gpmc-policy-html img,
.gpmc-policy-html video {
  height: auto;
}

.gpmc-privacy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--gpm-border);
  background: #fafafa;
}

.gpmc-privacy-footer > a {
  color: var(--gpm-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gpmc-privacy-footer .gpm-button {
  min-width: 100px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .gpm-agreement-row {
    align-items: flex-start;
  }

  .gpmc-privacy-modal {
    align-items: flex-end;
    padding: 0;
  }

  .gpmc-privacy-dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }

  .gpmc-privacy-header,
  .gpmc-privacy-content,
  .gpmc-privacy-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}



@media (max-width: 520px) {
  .gpmc-privacy-modal {
    padding: 10px !important;
  }

  .gpmc-privacy-dialog {
    max-height: 90vh !important;
    border-radius: 12px;
  }

  .gpmc-privacy-header,
  .gpmc-privacy-content,
  .gpmc-privacy-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
