.donation-desicription-strong {
  font-weight: 600;
}
.donation-widget {
  box-sizing: border-box;
  border-radius: 5px;
  border: 2px solid #ecedf1;
  background: rgba(251, 251, 252, 0.1);
  backdrop-filter: blur(10px);
  width: 24rem;
  margin: 120px auto 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  z-index: 2;
  padding: 2.06rem 1.53rem;
}
.donation-widget-title {
  color: #fbfbfc;
  font-family: "Barlow", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 3rem !important;
  line-height: normal;
  margin: 0 auto;
}
.donation-widget-description {
  margin: 25px auto;
  max-width: 251px;
  color: #fbfbfc;
  font-family: "Montserrat", sans-serif;
}
.donation-widget-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-bottom: 1px solid #ecedf1;
  position: relative;
  /* gap: 1rem; */
}
.donation-widget-tab {
  /* =========== POSITIONING AND SIZING =========== */
  display: flex;
  flex: 1;
  align-items: center; /* Vertical alignment */
  justify-content: center; /* Horizontal alignment */
  width: 4rem;
  height: 37px;
  padding: 11px 20px;
  margin-top: 25px;
  box-sizing: border-box;
  background-color: transparent;
  /* =========== BORDERS =========== */
  border: 1.141px solid transparent;
  border-bottom: none;
  border-radius: 5.704px 5.704px 0 0;
  /* =========== FONT =========== */
  color: #fbfbfc;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}
/* New class specifically for the active tab */
.donation-widget-tab-active {
  border-color: #fbfbfc; /* Apply the visible border color */
}
/* Hide inactive panels */
.donation-widget-panel {
  display: none;
  padding-top: 25px;
  margin: 0 auto;
}

/* Show the active panel */
.donation-widget-panel-active {
  display: block;
}

/* ============= DONATION BUTTON GRID ============= */
.donation-widget-amounts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
  gap: 1rem; /* Vertical gap only */
  padding: 0;
  margin: 0;
}
.donation-widget-amounts-grid li {
  list-style: none;
  display: flex;
  flex-direction: column;
}
/* Align items in the first column (1, 3, 5) to the right */
.donation-widget-amounts-grid li:nth-child(odd) {
  align-items: flex-end;
}

/* Align items in the second column (2, 4, 6) to the left */
.donation-widget-amounts-grid li:nth-child(even) {
  align-items: flex-start;
}
.donation-widget-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

  width: 100%;
  height: 4rem;
  padding: 8px 0; /* Reduced vertical padding */
  gap: 10px; /* Added space between tier and amount */
  border-radius: 5.704px;
  border: 1.141px solid #fbfbfc;
  background: rgba(251, 251, 252, 0.2);
  color: #fbfbfc;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.donation-widget-button-amount {
  font-size: 1rem;
}
.donation-widget-button:hover {
  background: rgba(251, 251, 252, 0.4);
}

/* Style for the labels above the buttons */
.donation-widget-button-tier {
  display: block;
  width: 100px;
  text-align: center;
  font-size: var(--caption);
  font-weight: 500;
  height: 12px; /* Ensures consistent spacing */
}
/* This class hides the label on the one-time panel but preserves its space */
.donation-widget-button-label-hidden {
  visibility: hidden;
}
.donation-widget-alternatives {
  margin-top: 2rem;
}
.donation-widget-alternatives-title {
  color: #fbfbfc;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}
.donation-widget-alternatives-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.donation-widget-button-secondary {
  /**************** Button's Layout Controls ****************/
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  position: relative;
  /**************** Button's Size, Shape, Color Controls ****************/
  height: 3rem;
  border-radius: 0.625rem;
  border: 1px solid #202335;
  /* box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); */
  background:rgba(71, 78, 115, 0.3);
  /**************** Button's Font Controls ****************/
  color: #fbfbfc;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.donation-widget-button-secondary:hover {
  /* border: 2px solid white; */
  background-color: #202335;
}
/* --- MODAL STYLES --- */
.donation-widget-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.donation-widget-modal-visible {
  display: flex;
}

.donation-widget-modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.donation-widget-modal-dialog {
  position: relative; /* Context for the close button */
  color: #fbfbfc;
  width: 18.75rem;
  z-index: 1001;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  border: 2px solid #ecedf1;
  background: rgba(251, 251, 252, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem; /* Padding is now on the dialog itself */
}

.donation-widget-modal-close-button {
  position: absolute; /* Positioned relative to the dialog */
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fbfbfc;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1; /* Improves vertical alignment */
  z-index: 10;
}

.donation-widget-modal-title {
  margin: 0; /* Removed auto margin, will be centered by its container */
  padding-top: 1rem; /* Space below the close button */
  text-align: center;
  font-family: "Barlow", sans-serif;
  font-size: 2.5rem !important;
}

.donation-widget-modal-content {
  line-height: 1.6;
}
.donation-widget-modal-mobile-header p {
  text-align: left;
}
.donation-widget-modal-content address,
.donation-widget-modal-content dl {
  margin-top: 1rem;
}

.donation-widget-modal-content dt {
  font-weight: bold;
  margin-top: 0.5rem;
}
#check-modal .donation-widget-modal-content address {
  border: 1px solid #ecedf1;
  background: rgba(246, 246, 247, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5625rem 1rem;
  text-align: center;
}
#daf-modal .donation-widget-modal-content dl {
  border: 1px solid #ecedf1;
  background: rgba(246, 246, 247, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5625rem 1rem;
  text-align: center;
}
#daf-modal .donation-widget-modal-content dl dd,
#daf-modal .donation-widget-modal-content dl dd address {
  margin: 0;
  gap: 0.6rem;
}
/* ==================================== MEDIA QUERIES ==================================== */

@media screen and (min-width: 768px) {
  .donation-widget {
    width: 48rem;
  }
  .donation-widget-title {
    font-size: 3.5rem !important;
  }
  .donation-widget-description {
    margin: 28px 0;
  }

  .donation-widget-description,
  .donation-widget-tab,
  .donation-widget-button-amount,
  .donation-widget-button-secondary {
    font-size: 1.165rem !important;
  }
.donation-widget-alternatives-title{
  font-size: 1.75rem;
}
  .donation-widget-description,
  .donation-widget-tabs {
    width: 390px;
    max-width: 510px;
  }
  .donation-widget-tabs{
    gap: 1rem;
  }
  .donation-widget-tab {
    max-width: 130px;
            min-height: 54px;
  }
  .donation-widget-button {
    width: 100%;
    height: 4.5rem;
  }
  .donation-widget-button-secondary {
    width: 8.48456rem;
    height: 3.44188rem;
    padding: 1.82088rem 4.88325rem;
    gap: 0.82769rem;
  }
  .donation-widget-amounts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem; /* Adjust gap for three columns */
    max-width: 388px;
    margin: 0 auto;
  }

  /* Reset alignment for all items in a 3-column layout */
  .donation-widget-amounts-grid li:nth-child(odd),
  .donation-widget-amounts-grid li:nth-child(even) {
    align-items: center;
  }
  .donation-widget-amounts-grid li {
    max-width: 122px;
  }
  .donation-widget-alternatives-title {
    margin-top: 2.5rem;
  }
  .donation-widget-alternatives-actions {
    width: 22rem;
    margin: 25px auto;
  }
  .donation-widget-modal-dialog {
    width: 35.9375rem;
  }
  /* Apply width constraints to the new content wrapper */
  .donation-widget-modal-content {
    width: 23rem;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1200px) {
  .donation-widget {
    width: 43.5rem;
    margin-left: -25%;
  }
  .donation-widget-description,
  .donation-widget-tab,
  .donation-widget-button-amount,
   .donation-widget-button-secondary  {
    font-size: 1.35rem !important;
  }
  .donation-widget-title,
  .donation-widget-description,
  .donation-widget-tabs {
    width: 461px;
    max-width: 467px;
  }
  .donation-widget-tabs {
    gap: 1rem;
  }
  .donation-widget-tab {
    max-width: 146px;

    font-size: 1rem;
  }
  .donation-widget-title {
    font-size: 4rem !important;
  }
  .donation-widget-alternatives-title {
    font-size: 2.1rem;
  }
  .donation-widget-amounts-grid {
    gap: 1rem;
    max-width: 468px;
  }
  .donation-widget-button,
  .donation-widget-amounts-grid li {
    width: 146px;
    max-width: 146px;
    height: 55px;
  }
  .donation-widget-alternatives-title {
    margin-top: 2.5rem;
  }
  .donation-widget-alternatives-actions {
    width: 400px;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget {
    width: 58rem;
  }
  .donation-widget-header {
    width: 591px;
    margin: 0 auto;
  }
  .donation-widget-title {
    font-size: 5rem !important;
  }
  .donation-widget-description,
  .donation-widget-tab,
  .donation-widget-button-amount,
   .donation-widget-button-secondary  {
    font-size: 1.65rem !important;
  }
  .donation-widget-title,
  .donation-widget-description{
    width: 591px;
    max-width: 591px;
  }
  .donation-widget-tabs {
    min-width: 534px;
  }
  .donation-widget-tab {
    min-width: 170px;

    font-size: 1rem;
  }
  .donation-widget-alternatives-title {
    font-size: 2rem;
  }
  .donation-widget-amounts-grid {
    gap: 1rem;
    max-width: 543px;
  }
  .donation-widget-button,
  .donation-widget-amounts-grid li {
    width: 170px;
    max-width: 170px;
    height: 55px;
  }
  .donation-widget-alternatives-title {
    margin-top: 2.5rem;
  }
  .donation-widget-alternatives-actions {
    width: 500px;
  }
}
