/* =================================================================== */
/* COMPONENT: Donation Widget                                          */
/* FILE:      donation-widget.css                                      */
/* =================================================================== */

/* * TABLE OF CONTENTS
 * -------------------------------------------------------------------
 * 1.0 Variables & Theming (:root)
 * 2.0 Wrappers (.hero__widget-container, .donation-wrapper)
 * 3.0 Main Widget Container (.donation-widget)
 * 4.0 Decoration Hook (.donation-widget__decoration)
 * 5.0 Header Area (.donation-widget__header, __title, __description)
 * 6.0 CTA Section (.donation-cta)
 * 7.0 Tabs & Panels (.donation-widget__tabs, __panel)
 * 8.0 Grid & Buttons (.donation-widget__grid, __button)
 * 9.0 Footer & Sub-footer (.donation-widget__footer, __subfooter)
 * 10.0 Modals (.donation-widget-modal)
 */

/* =================================================================== */
/* 1.0 Variables & Theming                                             */
/* =================================================================== */
:root {
  --dw-font-primary: var(--font-primary), sans-serif;
  --dw-font-display: "Barlow", sans-serif;
  --dw-font-display-condensed: "Barlow Condensed", sans-serif;
  --dw-radius: 5.7px;
  --dw-blur: 10px;
  --dw-color-text: #fbfbfc;
  --dw-color-border: #ecedf1;
  --dw-bg-glass: rgba(251, 251, 252, 0.1);
  --dw-bg-glass-hover: rgba(251, 251, 252, 0.4);
  --dw-bg-btn-secondary: rgba(32, 35, 53, 0.3);
  --dw-color-btn-secondary-hover: #202335;
}

/* =================================================================== */
/* 2.0 Wrappers                                                        */
/* =================================================================== */

.hero__widget-container {
  display: flex;
  margin: 0 auto;
  height: fit-content;
  width: 25rem;
  min-height: 650px;
}
@media screen and (min-width: 768px) {
  .hero__widget-container {
    width: 48.333rem;
  }
}

.donation-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .donation-wrapper {
    width: 48.333rem;
  }
}
@media screen and (min-width: 1200px) {
  .donation-wrapper {
    width: 43.5rem;
  }
}
@media screen and (min-width: 1920px) {
  .donation-wrapper {
    width: 58rem;
  }
}

.donation-wrapper--floating {
  width: 53.33rem;
  position: absolute;
  /* top: 30rem; */
  left: 50%;
  transform: translate(-50%);
  z-index: 2;
}
/* .page-donate .donation-wrapper--floating{
  top: 30rem;
} */
body:not(.page-donate) .donation-wrapper--floating {
  top: 5%;
}
/* Home Page widget floats to the left */
@media screen and (min-width: 1200px) {
  body:not(.page-donate) .donation-wrapper--floating {
    transform: translate(0);
    left: 2%;
    right: auto;
    top: 9%;
    width: 640px;
  }
}
@media (min-width: 1400px) {
  /* Donate page widget floats to the right */
  body.page-donate .donation-wrapper--floating {
    left: auto;
    right: -8%;
    top: 2%;
    transform: none;
  }
}

/* =================================================================== */
/* 3.0 Main Widget Container                                           */
/* =================================================================== */
/* .donation-wrapper--floating {
  width: 25rem;
} */
@media (min-width: 768px) {
  .donation-wrapper--floating {
    width: 48.333rem;
  }
}
.donation-wrapper--floating .donation-widget {
  display: flex;
  flex-direction: column;
  gap: 1.91667rem;
  position: relative;
  box-sizing: border-box;
  width: 25rem;
  margin: 0 auto;
  padding: 1.3rem;
  border-radius: var(--dw-radius);
  border: 2px solid var(--dw-color-border);
  background: var(--dw-bg-glass);
  backdrop-filter: blur(var(--dw-blur));
  -webkit-backdrop-filter: blur(var(--dw-blur));
  color: var(--dw-color-text);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}
.donation-widget {
  display: flex;
  flex-direction: column;
  gap: 1.91667rem;
  position: relative;
  box-sizing: border-box;
  width: 25rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  border-radius: var(--dw-radius);
  border: 2px solid var(--dw-color-border);
  background: var(--dw-bg-glass);
  backdrop-filter: blur(var(--dw-blur));
  -webkit-backdrop-filter: blur(var(--dw-blur));
  color: var(--dw-color-text);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}
@media screen and (min-width: 768px) {
  .donation-wrapper--floating .donation-widget,
  .donation-widget {
    width: 48.333rem;
    padding: 2.333rem 2.91667rem;
  }
}
@media screen and (min-width: 1200px) {
  .donation-wrapper--floating .donation-widget,
  .donation-widget {
    width: 53.33rem;
  }
}
@media screen and (min-width: 1400px) {
  .donation-wrapper--floating .donation-widget,
  .donation-widget {
    width: 53.33rem;
  }
}
@media screen and (min-width: 1920px) {
  .donation-wrapper--floating .donation-widget,
  .donation-widget {
    width: 58rem;
    padding: 2.333rem 1.3rem;
  }
}

.donation-widget--layout-hero {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  z-index: 2;
}
@media screen and (min-width: 1200px) {
  .donation-widget--layout-hero {
    margin-left: -25%;
  }
}

/* =================================================================== */
/* 4.0 Decoration Hook                                                 */
/* =================================================================== */

.donation-widget__decoration {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
  width: 5rem;
  height: 5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* =================================================================== */
/* 5.0 Header Area                                                     */
/* =================================================================== */

.donation-widget__header {
  margin: 0;
}
@media screen and (min-width: 768px) {
  .donation-widget__header {
    width: 510px;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__header {
    width: 661px;
  }
}

.donation-widget__title {
  margin: 0 auto;
  color: inherit;
  text-align: left;
  font-style: normal;
  line-height: normal;
  font-size: 2.85rem !important;
}
@media screen and (min-width: 768px) {
  .donation-widget__title {
    font-size: 3.6625rem !important;
    width: 510px;
    /* max-width: 510px; */
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__title {
    font-size: 4.4758333rem !important;
    width: 570px;
    margin: 0;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__title {
    font-size: 4.9125rem !important;
    width: 100%;
    max-width: 661px;
  }
}

.donation-widget__description {
  margin: 0.2rem 0 0 0;
  max-width: 251px;
  color: inherit;
  font-family: var(--dw-font-primary);
  font-size: 1.1667rem;
  text-align: left;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
@media screen and (min-width: 768px) {
  .donation-widget__description {
    margin: 0 auto;
    font-size: 1.5rem !important;
    line-height: 26px;
    width: 510px;
    max-width: 510px;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__description {
    font-size: 1.833rem !important;
    line-height: 28px;
    width: 524px;
    margin: 2rem 0;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__description {
    font-size: 2rem !important;
    line-height: 35px;
    width: 100%;
    max-width: 591px;
  }
}

.donation-widget__text--strong {
  font-weight: 600;
}

/* =================================================================== */
/* 6.0 CTA Section                                                     */
/* =================================================================== */

.donation-cta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  width: 100%;
}

.donation-cta p {
  font-family: var(--dw-font-primary);
  color: var(--Neutral-Indigo-100);
  font-size: 1.45833rem;
  font-weight: 600;
  margin: 0;
}
@media (min-width: 768px) {
  .donation-cta p {
    font-size: 1.875rem;
  }
}
@media (min-width: 1200px) {
  .donation-cta p {
    font-size: 2.291667rem;
  }
}
@media (min-width: 1920px) {
  .donation-cta p {
    font-size: 2.5rem;
  }
}

.donation-cta .btn-cta {
  display: inline-block;
  padding: 1.25rem;
  background: linear-gradient(
    82deg,
    rgba(161, 166, 174, 0.32) -17.88%,
    rgba(231, 231, 231, 0.48) -0.79%,
    rgba(229, 232, 237, 0.16) 33.39%,
    rgba(231, 231, 231, 0.4) 67.57%,
    rgba(235, 235, 235, 0.08) 84.66%
  );
  color: var(--Neutral-Indigo-100);
  font-family: var(--dw-font-display-condensed);
  font-size: 2.278333rem;
  font-style: normal;
  font-weight: 400;
  line-height: 46.588px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: var(--dw-radius);
  border: 1.25px solid #fbfbfc;
  transition: transform 0.2s ease;
  width: fit-content;
  margin: 0 auto;
}
.donation-cta .btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
@media (min-width: 768px) {
  .donation-cta .btn-cta {
    font-size: 2.93rem;
  }
}
@media (min-width: 1200px) {
  .donation-cta .btn-cta {
    font-size: 3.580833rem;
  }
}
@media (min-width: 1920px) {
  .donation-cta .btn-cta {
    font-size: 3.90667rem;
  }
}

/* =================================================================== */
/* 7.0 Tabs & Panels                                                   */
/* =================================================================== */

.donation-widget__tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-bottom: 1px solid var(--dw-color-border);
  position: relative;
}
@media screen and (min-width: 768px) {
  .donation-widget__tabs {
    gap: 1rem;
    width: 510px;
    max-width: 510px;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__tabs {
    width: 470px;
    max-width: 467px;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__tabs {
    min-width: 534px;
  }
}

.donation-widget__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 37px;
  padding: 11px 20px;
  margin-top: 1rem;
  box-sizing: border-box;
  background-color: transparent;
  border: 1.141px solid transparent;
  border-bottom: none;
  border-radius: var(--dw-radius) var(--dw-radius) 0 0;
  color: inherit;
  font-family: var(--dw-font-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
@media screen and (min-width: 768px) {
  .donation-widget__tab {
    max-width: 130px;
    min-height: 54px;
    font-size: 1.165rem !important;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__tab {
    max-width: 146px;
    font-size: 1rem !important;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__tab {
    min-width: 170px;
    font-size: 1rem !important;
  }
}

.donation-widget__tab--active {
  border-color: var(--dw-color-text);
  font-weight: 700;
}

.donation-widget__panel {
  display: none;
  margin: 0 auto;
}

.donation-widget__panel--active {
  display: block;
  max-width: 291px;
}
@media screen and (min-width: 768px) {
  .donation-widget__panel--active {
    max-width: 510px;
  }
}

/* =================================================================== */
/* 8.0 Grid & Buttons                                                  */
/* =================================================================== */

.donation-widget__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .donation-widget__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    max-width: 388px;
    margin: 0 auto;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__grid {
    max-width: 468px;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__grid {
    max-width: 543px;
  }
}

.donation-widget__grid li {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.donation-widget__grid li:nth-child(odd) {
  align-items: flex-end;
}
.donation-widget__grid li:nth-child(even) {
  align-items: flex-start;
}

@media screen and (min-width: 768px) {
  .donation-widget__grid li:nth-child(odd),
  .donation-widget__grid li:nth-child(even) {
    align-items: center;
  }
  .donation-widget__grid li {
    max-width: 122px;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__grid li {
    width: 146px;
    max-width: 146px;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__grid li {
    width: 170px;
    max-width: 170px;
  }
}

.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;
  gap: 10px;
  border-radius: var(--dw-radius);
  border: 1.141px solid var(--dw-color-text);
  background: rgba(251, 251, 252, 0.2);
  color: var(--dw-color-text);
  font-family: var(--dw-font-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.donation-widget__button:hover {
  background: var(--dw-bg-glass-hover);
}
@media screen and (min-width: 768px) {
  .donation-widget__button {
    height: 4.5rem;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__button {
    height: 55px;
  }
}

.donation-widget__amount {
  font-size: 1.1667rem;
}
@media screen and (min-width: 768px) {
  .donation-widget__amount {
    font-size: 1.5rem !important;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__amount {
    font-size: 1.833rem !important;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__amount {
    font-size: 2rem !important;
  }
}

.donation-widget__tier {
  display: block;
  width: 100px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  height: 12px;
}

/* =================================================================== */
/* 9.0 Footer & Sub-footer                                             */
/* =================================================================== */

.donation-widget__footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.donation-widget__footer-title {
  color: var(--dw-color-text);
  text-align: center;
  font-family: var(--dw-font-primary);
  font-size: 1.458333rem;
  font-weight: 600;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .donation-widget__footer-title {
    font-size: 1.875rem;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__footer-title {
    font-size: 2.291667rem;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__footer-title {
    font-size: 2.5rem;
  }
}

.donation-widget__footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  .donation-widget__footer-actions {
    width: 22rem;
    margin: 0 auto;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__footer-actions {
    width: 400px;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__footer-actions {
    width: 500px;
  }
}

.donation-widget__button--secondary {
  flex-direction: row;
  height: 3rem;
  border-radius: 0.625rem;
  border: 1px solid #202335;
  background: var(--dw-bg-btn-secondary);
  font-size: 1.1667rem;
  font-weight: 500;
}
.donation-widget__button--secondary:hover {
  background-color: var(--dw-color-btn-secondary-hover);
}
@media screen and (min-width: 768px) {
  .donation-widget__button--secondary {
    width: 8.48rem;
    height: 3.44rem;
    padding: 1.82rem 4.88rem;
    font-size: 1.5rem !important;
  }
}
@media screen and (min-width: 1200px) {
  .donation-widget__button--secondary {
    font-size: 1.8333rem !important;
  }
}
@media screen and (min-width: 1920px) {
  .donation-widget__button--secondary {
    font-size: 2rem !important;
    border-radius: 0.85rem;
    border: 2px solid #202335;
    width: 14.2rem;
    height: 5.85rem;
    padding: 19.5px 52.5px;
  }
}

.donation-widget__subfooter {
  margin: 0 auto;
}
.donation-widget__subfooter p {
  color: var(--Neutral-Indigo-100);
  font-family: var(--dw-font-primary);
  font-size: 1.458333rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  letter-spacing: 1.2px;
}
@media (min-width: 768px) {
  .donation-widget__subfooter p {
    font-size: 1.875rem;
  }
}
@media (min-width: 1200px) {
  .donation-widget__subfooter p {
    font-size: 2.291667rem;
  }
}
@media (min-width: 1920px) {
  .donation-widget__subfooter p {
    font-size: 2.5rem;
  }
}

.donation-widget__subfooter a {
  color: var(--Neutral-Indigo-100);
  cursor: pointer;
  text-decoration: underline;
}

/* =================================================================== */
/* 10.0 Modals                                                         */
/* =================================================================== */

.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;
  z-index: 1001;
  width: 18.75rem;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: var(--dw-radius);
  border: 2px solid var(--dw-color-border);
  background: var(--dw-bg-glass);
  color: var(--dw-color-text);
  backdrop-filter: blur(var(--dw-blur));
}
@media screen and (min-width: 768px) {
  .donation-widget-modal__dialog {
    width: 35.9375rem;
  }
}

.donation-widget-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.donation-widget-modal__title {
  margin: 0;
  padding-top: 1rem;
  text-align: center;
  font-family: var(--dw-font-display);
  font-size: 2.5rem !important;
}

.donation-widget-modal__body {
  line-height: 1.6;
  font-family: var(--dw-font-primary);
}
@media screen and (min-width: 768px) {
  .donation-widget-modal__body {
    width: 23rem;
    margin: 0;
  }
}

.donation-widget-modal__body address,
.donation-widget-modal__body dl {
  margin-top: 1rem;
  border: 1px solid var(--dw-color-border);
  background: rgba(246, 246, 247, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5625rem 1rem;
  text-align: center;
  font-style: normal;
}
