/* Tabs  */
.donation-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donation-popup-box {
  background: #fff5f4;
  padding: 0px 3px 20px 20px;
  border-radius: 16px;
  height: 560px;
  max-height: 560px;
  overflow-y: hidden;
  overflow-x: hidden;
  position: relative;
}

.donation-popup-close {
  position: relative;
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  z-index: 1000;
  padding: 10px;
  background-color: #fceeee;
  border-radius: 60px !important;
  width: 37px;
  right: -595px;
  bottom: 250px;
}

.figma-tab-buttons {
  display: flex;
  justify-content: center;
  background: #faeaea;
  padding: 6px;
  border-radius: 50px;
  margin-bottom: 16px;
  /* position: fixed; */
  width: 548px;
  align-items: center;
  z-index: 1;
}

.figma-tab-btn {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.figma-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.figma-tab-pane {
  display: none;
}

.figma-tab-pane.active {
  display: block;
}

/* Tabs end */

/* scroll bar */
/* Target scrollable container */
.scroll-container {
  max-height: 380px; /* Adjust as needed */
  overflow-y: auto;
  /* scrollbar-width: thin;        For Firefox */
  /* scrollbar-color: #bbb #f0f0f0; Track and thumb for Firefox */
  padding-right: 20px;
}

/* For Webkit browsers (Chrome, Edge, Safari) */
.scroll-container::-webkit-scrollbar {
  width: 6px; /* Thin scrollbar */
}

.scroll-container::-webkit-scrollbar-track {
  background: #f0f0f0; /* Light track background */
  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #b0b0b0; /* Scroll thumb color */

  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: blue; /* On hover */
}

.donation-onetime-wrapper {
  width: 558px !important;
  margin: auto;
  /* background: #fceeee; */
  border-radius: 16px;
  /* padding: 20px; */
  /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
  position: relative;
  top: 0px;
}

.donation-scroll-card:hover {
  background: #f9e6e6;
}

.donation-scroll-card img {
  width: 122px;
  height: 98px;
  object-fit: cover;
  border-radius: 8px !important;
  margin-right: 12px;
}

.donation-onetime-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.donation-onetime-info h3 {
  font-size: 15px;
  margin: 0 0 4px;
  line-height: 1.2;
}

.donation-onetime-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  /* -webkit-line-clamp: 1; */
  -webkit-box-orient: vertical;
}

.round-right-icon {
  width: 33px !important;
  height: 33px !important;
}

.donation-scroll-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.donation-scroll-card {
  display: flex;
  /* background: #fff; */
  border-radius: 12px;
  padding: 12px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
  transition: background 0.3s;
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
}

.donation-scroll-card:hover {
  background: #f9e6e6;
}

.donation-scroll-card:visited,
.donation-scroll-card:active,
.donation-scroll-card:focus {
  color: inherit !important;
  text-decoration: none !important;
}
.tabs-img {
  width: 122px !important;
  height: 98px !important;
}

.donation-onetime-info h3 {
  font-size: 15px;
  margin: 0 0 4px;
  line-height: 1.2;
}

.donation-onetime-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Remove a:visited colors globally inside this widget */
.donation-scroll-card a,
.donation-scroll-card a:visited,
.donation-scroll-card a:focus,
.donation-scroll-card a:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* 

 */
/* ───────────── Common Styles ───────────── */

.payment-feature-image {
  width: 100%;
  height: 216px !important;
  object-fit: cover;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
}

.image-container {
  position: relative;
  width: 100%;
  max-height: 400px;
  margin-bottom: 24px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.donation-banner-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.onetime-donate-btn {
  padding: 12px 24px;
  font-size: 18px;
  background: #d93025;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.donation-section-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.donation-section-wrapper h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0;
}

.donation-section-wrapper p {
  color: #555;
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 24px;
}

.donation-section-wrapper .donation-label {
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 12px;
  background: #e6f5ea;
  color: #1a7f4c;
}

.donation-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.donation-grid-container-view-all {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1366px;
}

.donation-card {
  width: 388px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #b0b0b0;
  justify-content: center;
  align-items: center;
}

.donation-card-monthly {
  height: 484px !important;
}

.donation-card-monthly1 {
  height: 388px !important;
  margin-top: 10px;
  margin-bottom: 10px;
}

.donation-card-onetime {
  height: 634px !important;
}

.donation-card-inner {
  width: 348px;
  text-align: center;
}

.donation-card-inner-onetime {
  height: 594px;
}

.donation-card-inner-monthly {
  height: 444px;
}

.donation-card-inner-content {
  width: 348px;
  height: 64px;
}

.donation-card img {
  width: 348px;
  height: 266px !important;
  object-fit: cover;
  border-radius: 12px;
}

.donation-card .img-icon {
  width: unset !important;
  height: unset !important;
  padding-right: 3px;
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%; /* or a fixed width like 300px */
}

.donation-card h3 {
  font-family: "Kaisei HarunoUmi", serif;
  font-style: bold;
  font-size: 24px;
  font-weight: 700;
  color: rgba(43, 40, 40, 1);
  line-height: 32px;
  letter-spacing: 0.5%;
  margin: auto;
}

.donation-card p {
  font-family: Manrope;
  font-weight: 500;
  font-size: 16px;
  color: #806c6c;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
  position: relative;
  display: flex;
  gap: 3px;
  justify-content: center;
}

.donation-card-body {
  padding: 0 9px;
  display: flex;
  flex-direction: column;
}

.donation-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #444;
}

.donation-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.progress-bar-container {
  margin-top: 8px;
}

.progress-bar {
  background: #eee;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 10px;
  background: #4caf50;
  width: 0%;
}

.progress-label {
  font-size: 12px;
  margin-top: 4px;
  text-align: right;
  color: #555;
}

.progress-bar-value {
  font-family: Neue Montreal;
  font-weight: 500;
  font-style: Medium;
  font-size: 23px;
  line-height: 32px;
  letter-spacing: -3%;
}

.donation-view-all-btn {
  background: #fff;
  color: #000;
  padding: 10px 24px;
  border: 2px solid #000;
  border-radius: 24px;
}

.donation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.donation-popup-inner {
  position: relative; /* Needed for positioning the close button relative to it */
  background: #fff; /* Set the background of the popup */
  padding: 20px; /* Add padding inside the popup */
  border-radius: 8px; /* Rounded corners for the inner popup */
  width: 300px; /* Width of the popup */
  text-align: left; /* Align text to the left */
  max-height: 400px; /* Set a max height for the inner popup */
  overflow-y: auto; /* Enable vertical scrolling if content overflows */
}

.popup-close-btn {
  position: relative; /* Position the button inside the popup */
  top: -7rem; /* Adjust to position the button near the top */
  right: -20rem; /* Use right to keep it aligned to the top-right corner */
  width: 25px; /* Button size */
  height: 25px;
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 5px;
  border-radius: 50%; /* Make it round */
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
/* Hover effect for the close button */
.popup-close-btn:hover {
  background: #f37254; /* Color change when hovering */
}

.donation-popup-inner input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.donation-popup-inner button {
  width: 100%;
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
}

/* ───────────── Dropdown Styles for Donation Popups ───────────── */

.donation-popup-inner select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  appearance: none; /* Removes default arrow in some browsers */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

/* Optional hover/focus styling */
.donation-popup-inner select:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* ───────────── One-time Specific Overrides ───────────── */

.onetime .donation-section-wrapper .donation-label {
  background: #f1f5f9;
  color: #2e7d32;
  font-size: 13px;
  padding: 6px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.onetime .donation-section-wrapper h2 {
  font-size: 28px;
}

.onetime .donation-section-wrapper p {
  font-size: 15px;
  max-width: 520px;
}

.onetime .donation-card h3 {
  font-size: 18px;
  margin: 16px 12px 6px;
}

.onetime .donation-card p {
  font-size: 14px;
  margin: 0 12px 16px;
}

.onetime .donation-view-all-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 12px 32px;
  margin: 40px auto 0;
  font-size: 15px;
}
