:root {
  --cream: #fff8f3;
  --cream-dark: #f8ebe2;
  --brown: #49372f;
  --brown-light: #806b61;
  --pink: #e98288;
  --pink-dark: #d9656c;
  --peach: #f5c6b3;
  --white: #ffffff;
  --border: #eadbd2;
  --shadow: 0 18px 50px rgba(84, 54, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Gowun Dodum", sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* HEADER */

.language {
  display: flex;
  gap: 6px;
}

.language button {
  border: 1px solid #ddd;
  background: white;
  color: #555;
  padding: 7px 11px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.2s;
}

.language button:hover {
  background: #f5eee6;
  color: #8b5e3c;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  background: rgba(255, 248, 243, 0.9);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(234, 219, 210, 0.7);
}

.topbar-inner {
  max-width: 1080px;
  margin: auto;
  padding: 14px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Jua", sans-serif;
  font-size: 20px;
}

.mini-donate {
  background: var(--brown);
  color: white;
  border-radius: 999px;
  padding: 8px 17px;
  font-size: 13px;
}


/* HERO */

.hero {
  max-width: 1080px;
  margin: auto;
  padding: 110px 20px 60px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 25% 50%;
  background: var(--cream-dark);
}

.hero-image {
  position: relative;
  overflow: hidden;

  border-radius: 30px;
  box-shadow: var(--shadow);

  aspect-ratio: 4 / 5;
}

.hero-photo {
  position: absolute;
  inset: 0;

  background-image: url("assets/danbi-main.jpg");
  background-size: cover;

  /* ⭐ 이 값을 조절 */
  background-position: 25% center;

  background-repeat: no-repeat;
}

.hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;

  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);

  padding: 12px 18px;
  border-radius: 18px;

  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-badge span {
  color: var(--brown-light);
  font-size: 12px;
}

.hero-badge strong {
  font-family: "Jua", sans-serif;
  font-size: 20px;
}

.eyebrow {
  color: var(--pink-dark);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: bold;
}

h1,
h2,
h3 {
  font-family: "Jua", sans-serif;
  font-weight: 400;
  line-height: 1.35;
}

h1 {
  font-size: clamp(42px, 5vw, 72px);
  margin: 15px 0 25px;
}

h1 span {
  color: var(--pink-dark);
}

.hero-text {
  font-size: 18px;
  color: var(--brown-light);
  max-width: 520px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  margin-top: 22px;

  border: 0;
  cursor: pointer;

  background: var(--pink-dark);
  color: white;

  border-radius: 999px;
  padding: 16px 28px;

  font-family: inherit;
  font-size: 16px;
  font-weight: bold;

  box-shadow: 0 12px 25px rgba(217,101,108,.25);

  transition: .2s;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.small-note {
  color: var(--brown-light);
  font-size: 12px;
  margin-top: 12px;
}


/* SECTION */

.section,
.status-section {
  max-width: 1080px;
  margin: auto;
  padding: 80px 20px;
}

.section-title {
  margin-bottom: 35px;
}

.section-title p {
  color: var(--pink-dark);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0;
  font-weight: bold;
}

.section-title h2 {
  margin: 5px 0 0;
  font-size: clamp(30px, 4vw, 45px);
}


/* STATUS */

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.status-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 25px;

  box-shadow: 0 8px 25px rgba(84,54,39,.05);
}

.status-card span {
  font-size: 27px;
}

.status-card small {
  display: block;
  color: var(--brown-light);
  margin-top: 10px;
}

.status-card strong {
  display: block;
  font-family: "Jua", sans-serif;
  font-size: 18px;
}

.status-card.danger {
  background: #fff0ef;
}


/* STORY */

.story-box {
  max-width: 780px;
  background: white;
  border-radius: 30px;
  padding: 35px;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  font-size: 17px;
}

.story-box p {
  margin-top: 0;
  margin-bottom: 25px;
}

.highlight {
  background: #fff0ed;
  color: #a54e54;

  padding: 20px;
  border-radius: 18px;

  margin: 25px 0;
}


/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 15px;
}

.gallery-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  background: var(--cream-dark);
}


/* TIMELINE */

.timeline {
  position: relative;
  max-width: 800px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 20px;

  padding: 20px 0;

  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.number {
  width: 55px;
  height: 55px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--pink);
  color: white;

  font-family: "Jua", sans-serif;
}

.timeline-item h3 {
  margin: 0;
  font-size: 22px;
}

.timeline-item p {
  color: var(--brown-light);
  margin: 5px 0 0;
}


/* FUND */

.fund {
  background: #f9ede6;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1040px) / 2));
  padding-right: max(20px, calc((100vw - 1040px) / 2));
}

.fund-card {
  background: white;
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.fund-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.fund-top span {
  display: block;
  color: var(--brown-light);
  font-size: 13px;
}

.fund-top strong {
  display: block;
  font-family: "Jua", sans-serif;
  font-size: 34px;
}

.fund-percent {
  color: var(--pink-dark);
}

.progress {
  margin-top: 25px;
  height: 15px;
  border-radius: 999px;
  background: #f0e5df;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
  border-radius: 999px;
  transition: width 1s ease;
}

.fund-number {
  margin-top: 12px;

  display: flex;
  justify-content: space-between;

  color: var(--brown-light);
  font-size: 13px;
}

.fund-number strong {
  color: var(--brown);
}

.cost-grid {
  margin-top: 25px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cost-grid div {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 18px;
}

.cost-grid span {
  display: block;
  color: var(--brown-light);
  font-size: 13px;
}

.cost-grid strong {
  font-family: "Jua", sans-serif;
}

.estimate {
  color: var(--brown-light);
  font-size: 12px;
  margin-top: 20px;
}


/* DONATE */

.donate {
  max-width: none;
  background: var(--brown);
  color: white;

  text-align: center;

  padding-left: 20px;
  padding-right: 20px;
}

.donate-inner {
  max-width: 650px;
  margin: auto;
}

.heart {
  font-size: 55px;
}

.donate .eyebrow {
  color: var(--peach);
}

.donate h2 {
  font-size: clamp(36px, 6vw, 55px);
}

.donate p {
  color: #e9dcd5;
}

.donation-method,
.bank-method {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;

  padding: 25px;
  margin-top: 20px;

  text-align: left;
}

.donation-method h3,
.bank-method h3 {
  margin-top: 0;
}

.full {
  width: 100%;
}

.payment-note {
  text-align: center;
  font-size: 12px;
}

.account {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  background: rgba(255,255,255,.08);
  padding: 15px;
  border-radius: 16px;
}

.account small {
  display: block;
  color: #d8c8c0;
}

.account strong {
  font-size: 20px;
}

.account button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
}

.account-number {
  font-size: 11px;
}


/* TRANSPARENCY */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.promise-grid div {
  background: white;
  padding: 25px;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.promise-grid span {
  color: var(--pink-dark);
  font-family: "Jua", sans-serif;
}

.promise-grid h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.promise-grid p {
  color: var(--brown-light);
}


/* FINAL */

.final-message {
  padding: 110px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, #ffe0d3 0, transparent 25%),
    radial-gradient(circle at 80% 70%, #ffd8da 0, transparent 25%),
    var(--cream);
}

.final-message h2 {
  font-size: clamp(35px, 6vw, 60px);
}

.final-message span {
  font-size: 30px;
}


/* FOOTER */

footer {
  background: #352923;
  color: #d9ccc5;
  padding: 40px 20px;
  text-align: center;
}

footer strong {
  color: white;
  font-family: "Jua", sans-serif;
  font-size: 20px;
}

footer p {
  font-size: 13px;
}

footer small {
  color: #9d8c83;
  font-size: 11px;
}


/* MOBILE */
@media (max-width: 760px) {

  .header {
    padding: 15px;
  }

  .logo {
    font-size: 14px;
  }

  .language button {
    padding: 6px 8px;
    font-size: 11px;
  }

}

@media (max-width: 760px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 95px;
  }

  .hero-image {
    max-height: 520px;
  }

  .hero-image img {
    aspect-ratio: 4 / 4.5;
    object-fit: cover;
    object-position: 25% 50%;
  }

  .hero-content {
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid img:first-child {
    grid-column: span 2;
  }

  .cost-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .story-box {
    padding: 25px;
  }

  .fund {
    padding-left: 20px;
    padding-right: 20px;
  }

  .account {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 430px) {

  .status-grid,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }
}

/* =========================================================
   DANBI LANGUAGE SWITCHER
========================================================= */

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  order: 1;

  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.75);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
}

.language-button {
  border: none;
  background: transparent;
  color: #777;
  padding: 7px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.language-button:hover {
  color: #333;
}

.language-button.active {
  background: #ffffff;
  color: #e36d55;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* =========================================================
   HERO PHOTO POSITION
   단비 사진의 내부 보이는 위치
========================================================= */

.hero-photo {
  background-position: 25% center;
}


/* =========================================================
   ACCOUNT
========================================================= */

.account-number {
  margin-top: 18px;
  padding: 15px 18px;
  background: #fff7f2;
  border-radius: 14px;
  text-align: center;
  color: #333;
}

.account-number strong {
  font-size: 21px;
  letter-spacing: 1px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .topbar-inner {
    gap: 8px;
  }

  .top-actions {
    gap: 5px;
  }

  .language-switcher {
    gap: 1px;
  }

  .language-button {
    padding: 6px 5px;
    font-size: 10px;
  }

  .mini-donate {
    font-size: 12px;
    padding: 8px 11px;
  }

  .brand {
    font-size: 15px;
  }

}


@media (max-width: 480px) {

  .language-button {
    font-size: 9px;
    padding: 6px 4px;
  }

  .mini-donate {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

}


/* =========================================================
   SMOOTH SCROLL
========================================================= */

html {
  scroll-behavior: smooth;
}


/* =========================================================
   DONATE SECTION SCROLL OFFSET
   상단 고정 메뉴에 가려지지 않도록
========================================================= */

#donate {
  scroll-margin-top: 90px;
}

/* =========================================
   헤더 언어 버튼 + 후원 버튼 최종 배치
   기존 CSS 수정 없이 추가
========================================= */

.top-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

/* 언어 선택 영역 */
.language-switcher {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* 후원하기 */
.mini-donate {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* 언어 버튼 */
.language-button {
  white-space: nowrap !important;
}


/* =========================================
   모바일
========================================= */

@media (max-width: 480px) {

  .top-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
  }

  .language-switcher {
    display: flex !important;
    order: 1 !important;
  }

  .mini-donate {
    display: inline-flex !important;
    order: 2 !important;
  }

  .language-button {
    padding: 5px 5px !important;
    font-size: 9px !important;
  }

}

/* =========================================
   단비 치료기록 갤러리
   우리 가족의 단비 갤러리와 비슷한 크기
========================================= */

.treatment-history {
  margin-top: 40px;
}

.treatment-history-title {
  margin-bottom: 18px;
}

.treatment-history-title p {
  margin: 0 0 5px;
  color: #d9795f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.treatment-history-title h3 {
  margin: 0 0 5px;
  color: #4d433e;
  font-size: 22px;
}

.treatment-history-title span {
  color: #9b8e87;
  font-size: 12px;
}


/* ==============================
   가로 갤러리
============================== */

.treatment-gallery {

  display: flex;

  gap: 14px;

  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 16px;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: #e5b19f transparent;
}


/* Chrome / Safari */

.treatment-gallery::-webkit-scrollbar {
  height: 5px;
}

.treatment-gallery::-webkit-scrollbar-track {
  background: #f7eee9;
  border-radius: 10px;
}

.treatment-gallery::-webkit-scrollbar-thumb {
  background: #dfaa98;
  border-radius: 10px;
}


/* ==============================
   사진 카드

   중요:
   한 화면에 3장 정도 보이도록 설정
============================== */

.treatment-gallery-item {

  flex: 0 0 calc((100% - 28px) / 3);

  min-width: 0;

  background: #ffffff;

  border-radius: 15px;

  overflow: hidden;

  border: 1px solid rgba(190, 150, 130, 0.14);

  box-shadow:
    0 6px 20px rgba(100, 70, 50, 0.07);

  scroll-snap-align: start;
}


/* ==============================
   사진
============================== */

.treatment-gallery-photo {

  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: #f5eee9;
}

.treatment-gallery-photo img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* 번호 */

.treatment-number {

  position: absolute;

  top: 8px;
  right: 8px;

  width: 28px;
  height: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,0.92);

  color: #c96f57;

  font-size: 9px;

  font-weight: 700;

  box-shadow:
    0 2px 8px rgba(0,0,0,0.08);
}


/* ==============================
   설명
============================== */

.treatment-gallery-caption {

  padding: 12px 12px 14px;
}

.treatment-gallery-caption small {

  display: block;

  margin-bottom: 4px;

  color: #d9795f;

  font-size: 8px;

  font-weight: 700;

  letter-spacing: 1px;
}

.treatment-gallery-caption h4 {

  margin: 0 0 5px;

  color: #4d433e;

  font-size: 13px;

  line-height: 1.4;
}

.treatment-gallery-caption p {

  margin: 0;

  color: #7d716b;

  font-size: 10px;

  line-height: 1.55;
}


/* ==============================
   모바일
============================== */

@media (max-width: 600px) {

  .treatment-history {
    margin-top: 30px;
  }

  .treatment-history-title h3 {
    font-size: 19px;
  }

  .treatment-history-title span {
    font-size: 10px;
  }


  /*
    모바일에서는
    한 장이 크게 보이고
    오른쪽에 다음 사진 일부가 보임
  */

  .treatment-gallery-item {

    flex: 0 0 72%;

    border-radius: 14px;
  }


  .treatment-gallery-photo {
    aspect-ratio: 1 / 1;
  }

  .treatment-gallery-caption {
    padding: 11px 12px 13px;
  }

  .treatment-gallery-caption h4 {
    font-size: 13px;
  }

  .treatment-gallery-caption p {
    font-size: 10px;
  }

}

/* =========================================
   우리 가족의 단비 - 가로 사진 갤러리
========================================= */

.danbi-gallery {

  display: flex;

  gap: 14px;

  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 16px;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: #e5b19f transparent;
}


/* Chrome / Safari 스크롤바 */

.danbi-gallery::-webkit-scrollbar {
  height: 5px;
}

.danbi-gallery::-webkit-scrollbar-track {
  background: #f7eee9;
  border-radius: 10px;
}

.danbi-gallery::-webkit-scrollbar-thumb {
  background: #dfaa98;
  border-radius: 10px;
}


/* 사진 카드 */

.danbi-gallery-item {
  flex: 0 0 calc((100% - 28px) / 3);

  aspect-ratio: 3 / 4;

  overflow: hidden;

  border-radius: 15px;

  background: #f5eee9;

  scroll-snap-align: start;

  box-shadow:
    0 6px 20px rgba(100, 70, 50, 0.07);
}

@media (max-width: 600px) {
  .danbi-gallery-item {
    flex: 0 0 72%;
    border-radius: 14px;
  }
}

/* 사진 */


.danbi-gallery-item img {

  width: 100%;
  height: 100%;
  
  display: block;

  object-fit: cover;
  background: #f8f3ef;
  transition: transform 0.3s ease;
}


/* PC에서 살짝 확대 */

.danbi-gallery-item:hover img {
  transform: scale(1.03);
}


/* =========================================
   모바일
========================================= */

@media (max-width: 600px) {

  .danbi-gallery {

    gap: 12px;

    padding-bottom: 14px;
  }

  .danbi-gallery-item {

    /*
      한 장 크게 + 다음 사진 일부 표시
    */
    flex: 0 0 72%;

    border-radius: 14px;
  }

}

/* =====================================================
   후원금액 선택
===================================================== */

.donation-amount-section {
  margin-top: 28px;
}


.donation-amount-title {
  margin-bottom: 14px;

  font-size: 14px;
  font-weight: 700;

  color: #555;
}


.donation-amount-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 10px;
}


.donation-amount-button {
  min-height: 52px;

  padding: 12px 8px;

  border: 1px solid #ddd;

  border-radius: 12px;

  background: #fff;

  color: #333;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}


.donation-amount-button:hover {
  border-color: #e8a23a;

  background: #fffaf2;
}


.donation-amount-button:active {
  transform: scale(0.97);
}


/* 선택된 버튼 */

.donation-amount-button.active {
  border-color: #e8a23a;

  background: #e8a23a;

  color: #fff;
}


/* 선택 금액 */

.selected-donation {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-top: 18px;

  padding: 18px 20px;

  border-radius: 14px;

  background: #faf7f2;
}


.selected-donation span {
  color: #666;

  font-size: 14px;
}


.selected-donation strong {
  color: #222;

  font-size: 22px;
  font-weight: 800;
}


/* =====================================================
   모바일
===================================================== */

@media (max-width: 600px) {

  .donation-amount-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .donation-amount-button {
    min-height: 50px;

    font-size: 14px;
  }


  .selected-donation {
    padding: 16px;
  }


  .selected-donation strong {
    font-size: 20px;
  }

}

/* =========================================================
   DANBI DONATION AMOUNT
========================================================= */


/* =========================================================
   후원금액 전체 영역
========================================================= */

.donation-amount-section {

  width: 100%;

  margin-top: 28px;

}


/* =========================================================
   제목
========================================================= */

.donation-amount-title {

  margin-bottom: 14px;

  color: #555;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.5;

}


/* =========================================================
   금액 버튼 그리드
========================================================= */

.donation-amount-grid {

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;

  width: 100%;

}


/* =========================================================
   금액 버튼
========================================================= */

.donation-amount-button {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  min-height: 54px;

  padding: 12px 8px;

  border: 1px solid #dedede;

  border-radius: 12px;

  background: #ffffff;

  color: #333333;

  font-family: inherit;

  font-size: 15px;

  font-weight: 700;

  line-height: 1.2;

  cursor: pointer;

  appearance: none;

  -webkit-appearance: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;

}


/* =========================================================
   버튼 hover
========================================================= */

.donation-amount-button:hover {

  border-color: #e7a23b;

  background: #fffaf3;

}


/* =========================================================
   버튼 클릭
========================================================= */

.donation-amount-button:active {

  transform: scale(0.97);

}


/* =========================================================
   선택된 버튼
========================================================= */

.donation-amount-button.active {

  border-color: #e7a23b;

  background: #e7a23b;

  color: #ffffff;

  box-shadow:
    0 4px 12px rgba(231, 162, 59, 0.22);

}


/* =========================================================
   선택된 버튼 hover
========================================================= */

.donation-amount-button.active:hover {

  border-color: #d99126;

  background: #d99126;

  color: #ffffff;

}


/* =========================================================
   버튼 안 텍스트
========================================================= */

.donation-amount-text {

  display: block;

  pointer-events: none;

}


/* =========================================================
   선택된 후원금 표시
========================================================= */

.selected-donation {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  width: 100%;

  margin-top: 18px;

  padding: 18px 20px;

  border: 1px solid #eee5d9;

  border-radius: 14px;

  background: #faf7f2;

  box-sizing: border-box;

}


/* =========================================================
   선택 금액 라벨
========================================================= */

.selected-donation span {

  color: #666666;

  font-size: 14px;

  font-weight: 600;

}


/* =========================================================
   선택 금액
========================================================= */

.selected-donation strong {

  color: #222222;

  font-size: 22px;

  font-weight: 800;

  line-height: 1;

  white-space: nowrap;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

  .donation-amount-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

  .donation-amount-section {

    margin-top: 24px;

  }


  .donation-amount-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;

  }


  .donation-amount-button {

    min-height: 50px;

    padding: 10px 6px;

    border-radius: 10px;

    font-size: 14px;

  }


  .selected-donation {

    margin-top: 14px;

    padding: 16px;

  }


  .selected-donation span {

    font-size: 13px;

  }


  .selected-donation strong {

    font-size: 19px;

  }

}
/* =========================================================
   PAYPAL MODAL
========================================================= */

#paypalDonationModal {

  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 99999;

  display: none;

}


#paypalDonationModal.is-open {

  display: block;

}


/* =========================================================
   MODAL OVERLAY
========================================================= */

#paypalDonationModal
.paypal-modal-overlay {

  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

  box-sizing: border-box;

  background:
    rgba(0, 0, 0, 0.55);

  overflow-y: auto;

}

#paypalDonationModal.is-open .paypal-modal-overlay {
    display: flex;
}
/* =========================================================
   MODAL
========================================================= */

#paypalDonationModal
.paypal-modal {

  position: relative;

  width: min(
    460px,
    100%
  );

  max-height:
    calc(100vh - 40px);

  margin: auto;

  padding: 30px 24px;

  box-sizing: border-box;

  background: #ffffff;

  border-radius: 24px;

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.25);

  overflow-y: auto;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

#paypalDonationModal
.paypal-modal-close {

  position: absolute;

  top: 10px;
  right: 12px;

  width: 42px;
  height: 42px;

  padding: 0;

  border: none;

  background: transparent;

  font-size: 32px;

  line-height: 42px;

  text-align: center;

  cursor: pointer;

  z-index: 10;

}


/* =========================================================
   HEADER
========================================================= */

#paypalDonationModal
.paypal-modal-header {

  text-align: center;

  padding-top: 10px;

}


#paypalDonationModal
.paypal-modal-icon {

  font-size: 40px;

  margin-bottom: 10px;

}


#paypalDonationModal
.paypal-modal-header h2 {

  margin: 0 0 10px;

  font-size: 24px;

}


#paypalDonationModal
.paypal-modal-description {

  margin: 0;

  line-height: 1.6;

}


/* =========================================================
   SELECTED AMOUNT
========================================================= */

#paypalDonationModal
.paypal-selected-amount {

  margin: 24px 0;

  padding: 18px;

  text-align: center;

  border-radius: 16px;

  background: #f7f7f7;

}


#paypalDonationModal
.paypal-selected-amount span {

  display: block;

  margin-bottom: 6px;

  font-size: 14px;

}


#paypalDonationModal
.paypal-selected-amount strong {

  display: block;

  font-size: 28px;

}


/* =========================================================
   LOADING
========================================================= */

#paypalDonationModal
.paypal-payment-loading {

  padding: 16px;

  text-align: center;

  font-size: 14px;

}


/* =========================================================
   PAYPAL BUTTON
========================================================= */

#paypalDonationModal
.paypal-button-container {

  width: 100%;

  max-width: 100%;

}


/* =========================================================
   NOTICE
========================================================= */

#paypalDonationModal
.paypal-payment-notice {

  margin: 16px 0 0;

  text-align: center;

  font-size: 13px;

  line-height: 1.5;

  opacity: 0.7;

}


/* =========================================================
   BODY SCROLL LOCK
========================================================= */

body.paypal-modal-open {

  overflow: hidden;

}


/* =========================================================
   MOBILE
========================================================= */

@media (
  max-width: 480px
) {

  #paypalDonationModal
  .paypal-modal-overlay {

    padding: 12px;

  }


  #paypalDonationModal
  .paypal-modal {

    width: 100%;

    max-height:
      calc(100vh - 24px);

    padding: 26px 18px;

    border-radius: 20px;

  }


  #paypalDonationModal
  .paypal-modal-header h2 {

    font-size: 21px;

  }


  #paypalDonationModal
  .paypal-selected-amount strong {

    font-size: 24px;

  }

}