@charset "UTF-8";
/* Campaign summary widget */
.campaign-description {
  margin-bottom: 1em;
}

.single-campaign .campaign-description {
  font-size: 1.5em;
  font-weight: bolder;
}

.single-campaign.campaign-widget .campaign-description {
  font-size: 1em;
  font-weight: normal;
}

.campaign-summary {
  *zoom: 1;
  padding: 0 1em;
  margin-bottom: 1em;
  border: 1px solid #e6e6e6;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.campaign-summary:before,
.campaign-summary:after {
  content: " ";
  display: table;
}

.campaign-summary:after {
  clear: both;
}

.campaign-summary .campaign-summary-item {
  float: left;
  width: 50%;
  padding: 1em 0;
  border-bottom: 1px solid #e6e6e6;
}

.campaign-summary .campaign-raised .amount,
.campaign-summary .campaign-figures .amount {
  display: block;
  font-size: 1.5em;
  font-weight: bolder;
}

.campaign-summary .campaign-donors {
  clear: left;
}

.campaign-summary .donors-count,
.campaign-summary .time-left {
  font-weight: bolder;
}

.campaign-summary .campaign-donation {
  float: left;
  width: 100%;
  padding: 1em 0;
  text-align: center;
}

.campaign-summary .campaign-donation .donate-button {
  display: inline-block;
}

.campaign-is-endless .campaign-summary-item,
.campaign-has-no-goal .campaign-summary-item {
  width: 100%;
  text-align: center;
}

/* Campaign Progress Bar */
.campaign-progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e6e6e6;
}

.campaign-progress-bar .bar {
  position: relative;
  display: block;
  height: 100%;
}

/* Donate Button */
.donate-button {
  padding: 6px 24px;
  font-size: 1em;
  line-height: 1.5em;
  border: none;
  color: #fff;
}

/* Forms */
.charitable-button {
  cursor: pointer;
}

.charitable-form-field {
  margin-bottom: 1em;
}

.charitable-form-field label {
  display: block;
  margin-bottom: 4px;
}

.charitable-form-field input,
.charitable-form-field select,
.charitable-form-field textarea {
  width: 100%;
}

.charitable-form-field button,
.charitable-form-field input[type=submit],
.charitable-form-field input[type=button],
.charitable-form-field input[type=radio],
.charitable-form-field input[type=checkbox] {
  width: auto;
  margin-left: 0;
}

.charitable-form-field.odd {
  clear: left;
}

.charitable-form-field.charitable-form-field-checkbox input[type=checkbox] {
  display: inline;
  height: auto;
}

.charitable-form-field.charitable-form-field-checkbox label {
  display: inline;
  padding-left: 4px;
}

.charitable-form-field.charitable-radio-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.charitable-form-field.charitable-radio-list li {
  list-style: none;
  margin: 0 20px 0 0;
  display: inline-block;
  line-height: 1em;
}

.charitable-form-field.charitable-form-field-multi-checkbox ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.charitable-form-field.charitable-form-field-multi-checkbox ul li {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.charitable-form-field .wp-media-buttons {
  margin-bottom: 0.5em;
}

.charitable-form-field .wp-editor-container {
  border: 1px solid #dedede;
}

.charitable-fieldset > :last-child,
.charitable-fieldset-field-wrapper > :last-child {
  margin-bottom: 1em;
}

.charitable-radio-list label,
.charitable-checkbox-list label {
  display: inline;
}

.charitable-submit-field .button {
  font-size: 1em;
  line-height: 1.5em;
}

.charitable-form-content {
  margin-bottom: 1em;
  font-size: 16px;
}

.charitable-gateway-fields {
  padding-top: 1em;
}

#charitable_field_cc_cvc {
  max-width: 180px;
}

@media (min-width: 48em) {
  #charitable_field_cc_cvc {
    float: left;
    width: 33%;
  }
}
@media (min-width: 48em) {
  #charitable_field_cc_expiration {
    float: left;
    width: 63%;
    margin-left: 4%;
    clear: none;
  }
}
#charitable_field_cc_expiration .charitable-fieldset-field-header {
  font-weight: normal;
}

#charitable_field_cc_expiration fieldset > *:not(.charitable-fieldset-field-header) {
  float: left;
  width: 49%;
  max-width: 140px;
}

#charitable_field_cc_expiration .year {
  margin-left: 2%;
}

.charitable-form-fields .charitable-fieldset {
  margin: 0 0 1em;
  padding: 1.5em 20px 0.5em;
  border: 1px solid #ebebeb;
}

.charitable-form-fields .charitable-fieldset-field-wrapper {
  margin: 0;
  padding: 0;
  border: none;
}

.charitable-form-fields .charitable-fieldset-field-wrapper .charitable-fieldset-field-header {
  margin-bottom: 4px;
  font-weight: bold;
}

.charitable-form-header {
  margin: 0 0 1em;
  font-size: 1.2em;
  font-weight: bolder;
}

.charitable-repeatable-form-field-table {
  margin-bottom: 1em;
}

.charitable-donation-form {
  padding-top: 1em;
}

.charitable-donation-form .donation-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.charitable-donation-form .donation-amounts li:last-child {
  /* grid-column: 1 / -1; */
}

.charitable-donation-form .donation-amounts li:last-child label {
  /* width: 100%; */
}

.charitable-donation-form .donation-amounts:before,
.charitable-donation-form .donation-amounts:after {
  /* content: " ";
        display: table;  */
}

.charitable-donation-form .donation-amounts:after {
  clear: both;
}

.charitable-donation-form .donation-amounts .donation-amount {
  position: relative;
  float: auto;
  width: auto;
  margin: 0 2% 0.5em 0;
  border: 1px solid #ddd;
  background-color: transparent;
  list-style: none;
}

.charitable-donation-form .donation-amounts .donation-amount .custom-donation-amount-wrapper,
.charitable-donation-form .donation-amounts .donation-amount > label {
  display: block;
  width: auto;
  padding: 0.5em 1em;
  margin: 0;
  font-size: 1em;
  cursor: pointer;
}

.charitable-donation-form .donation-amounts .donation-amount .amount {
  font-weight: bolder;
}

.charitable-donation-form .donation-amounts .donation-amount:nth-child(2n+2) {
  margin-right: 0;
}

.charitable-donation-form .donation-amounts .donation-amount input[type=radio] {
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.charitable-donation-form .donation-amounts .donation-amount.selected {
  background-color: black;
}

.charitable-donation-form .donation-amounts .donation-amount.selected label {
  color: #fff;
}

.charitable-donation-form .donation-amounts .donation-amount.custom-donation-amount.selected label {
  color: inherit;
}

.charitable-donation-form.charitable-template-standard .donation-amounts .donation-amount.custom-donation-amount.selected,
.charitable-donation-form.charitable-template-standard .donation-amounts.donation-suggested-amount li {
  background-color: transparent !important;
}

.charitable-donation-form.charitable-template-standard .charitable-your-donation-amount {
  font-size: 18px;
  line-height: 20px;
}

@media screen and (max-width: 37.5em) {
  .charitable-donation-form .donation-amounts .donation-amount {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}
.charitable-donation-form .custom-donation-input {
  max-width: calc(100% - 2rem);
  min-height: 30px;
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}

.charitable-donation-form .charitable-fieldset-referral-code {
  /* if empty, hide the section */
}
.charitable-donation-form .charitable-fieldset-referral-code #charitable_field_donor_referral_code {
  margin-bottom: 0;
}
.charitable-donation-form .charitable-fieldset-referral-code #charitable_field_donor_referral_code label {
  display: none;
}
.charitable-donation-form .charitable-fieldset-referral-code p.charitable-form-content {
  display: none;
  margin: 0;
}
.charitable-donation-form .charitable-fieldset-referral-code .charitable-section-description {
  margin: 10px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
}

#charitable-donor-fields > .charitable-form-field,
#charitable-donor-fields .charitable-form-fields > .charitable-form-field {
  clear: both;
  padding: 0 20px;
}

.widget_charitable_donate_widget #charitable-donation-amount-form {
  padding-top: 0;
}

.widget_charitable_donate_widget #charitable-donation-amount-form .donation-amounts .donation-amount {
  width: 100%;
  margin-right: 0;
}

.charitable-hidden {
  display: none !important;
  visibility: hidden;
}

.charitable-form-field-donor-fields .charitable-login-details {
  padding-top: 1em;
}

#charitable-donor-fields {
  padding: 1.5em 0 0.5em;
}

#charitable-donor-fields .charitable-form-header {
  padding: 0 20px;
}

.charitable-modal #charitable-donor-fields .charitable-form-header {
  padding-left: 0;
}

.charitable-donor-details {
  padding: 0 20px 1em 0;
  font-size: 1rem;
  margin-bottom: 25px;
}

.charitable-donor-details .donor-address,
.charitable-donor-details .donor-contact-details {
  margin-bottom: 0.5em;
}

.charitable-donor-details .charitable-change-user-details {
  margin-bottom: 0;
  padding-bottom: 0;
}

#charitable-user-fields,
#charitable-meta-fields {
  padding: 0 0px;
}

.charitable-modal #charitable-user-fields,
.charitable-modal #charitable-meta-fields {
  padding: 0;
}

#charitable-meta-fields {
  padding-top: 1.5em;
  margin-top: 1.5em;
  border-top: 1px solid #ebebeb;
}

.charitable-terms-text {
  border: 1px solid #ebebeb;
  padding: 10px;
  background-color: #f8f8f8;
  margin-bottom: 1em;
  max-height: 200px;
  overflow: scroll;
  display: none;
}

.charitable-terms-text.active {
  display: block;
}

#login-prompt {
  margin-bottom: 4px;
}

.charitable-login-form {
  padding: 1em;
  margin-bottom: 1em;
  border: 1px solid #ebebeb;
}

.charitable-login-form label {
  display: block;
  margin-bottom: 4px;
}

.charitable-login-form > p,
.charitable-login-form .login-username,
.charitable-login-form .login-password,
.charitable-login-form .login-remember {
  margin-bottom: 1em;
  padding-bottom: 0;
}

.charitable-login-form .login-submit {
  margin-bottom: 0;
  padding-bottom: 0;
}

.js .charitable-donation-form .donation-amount input[type=radio] {
  display: none;
}

/* Receipts */
.donation-summary {
  margin-bottom: 1em;
  padding-bottom: 0;
}

.donation-summary dd,
.donation-summary dt {
  margin-top: 0;
}

.donation-summary dt {
  float: left;
  margin-right: 0.5em;
  font-weight: bold;
}

.donation-summary dd {
  display: block;
  margin-bottom: 0;
}

.donation-summary dd::after {
  content: " ";
  display: block;
  clear: left;
}

.charitable-table.donation-details {
  width: 100%;
  text-align: left;
}

.charitable-table.donation-details td,
.charitable-table.donation-details th {
  padding: 15px;
}

body.ast-single-post .charitable-table.donation-details td {
  padding: 15px;
}

.charitable-table.donation-details tfoot td {
  border-top: 1px solid #e6e6e6;
  padding-top: 15px;
  font-weight: 500;
}

h3.charitable-header {
  font-weight: 800;
  border-bottom: 1px solid black;
  padding-bottom: 10px;
  margin-top: 50px;
}

.charitable-table tr,
.charitable-table td {
  padding-right: 1.5em;
}

/* Campaigns grid */
.campaign-loop.campaign-list,
.campaign-loop.campaign-grid {
  margin: 0 0 1em 0;
  padding: 0;
  list-style: none;
}

.campaign-loop.campaign-list li.campaign,
.campaign-loop.campaign-list .campaign.hentry,
.campaign-loop.campaign-grid li.campaign,
.campaign-loop.campaign-grid .campaign.hentry {
  position: relative;
  padding: 0;
  margin: 0 0 1em 0;
  list-style: none;
  box-shadow: none;
  box-sizing: border-box;
}

.campaign-loop.campaign-list li.campaign h3,
.campaign-loop.campaign-list .campaign.hentry h3,
.campaign-loop.campaign-grid li.campaign h3,
.campaign-loop.campaign-grid .campaign.hentry h3 {
  margin-top: 0;
  text-decoration: none;
}

.campaign-loop.campaign-list .wp-post-image,
.campaign-loop.campaign-grid .wp-post-image {
  padding-bottom: 1em;
}

.campaign-loop.campaign-list .campaign-donation-stats,
.campaign-loop.campaign-grid .campaign-donation-stats {
  margin-bottom: 1em;
}

.campaign-loop.campaign-list .campaign-donation-stats .amount,
.campaign-loop.campaign-list .campaign-donation-stats .goal-amount,
.campaign-loop.campaign-grid .campaign-donation-stats .amount,
.campaign-loop.campaign-grid .campaign-donation-stats .goal-amount {
  font-weight: bolder;
}

.campaign-loop.campaign-list .campaign-donation .button,
.campaign-loop.campaign-grid .campaign-donation .button {
  display: inline-block;
}

.campaign-progress-bar {
  margin-bottom: 0.5em;
  overflow: hidden;
}

.campaign-loop.campaign-list li.campaign,
.campaign-loop.campaign-list .campaign.hentry {
  padding: 0 0 1em 0;
  margin: 0 0 1em 0;
  border-bottom: 1px solid #e6e6e6;
}

.campaign-loop.campaign-grid {
  display: grid;
  gap: 5px;
  margin: 0 0 1em 0;
  padding: 0;
  list-style: none;
}

/* Grid column variations */
.campaign-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.campaign-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.campaign-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.campaign-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.campaign-grid-7 {
  grid-template-columns: repeat(7, 1fr);
}

.campaign-grid-8 {
  grid-template-columns: repeat(8, 1fr);
}

/* Maintain existing campaign item styles */
.campaign-loop.campaign-grid li.campaign,
.campaign-loop.campaign-grid .campaign.hentry {
  list-style: none;
  padding: 1em;
  border: 1px solid #e6e6e6;
  margin: 0; /* Remove margin since we're using grid gap */
}

/* Mobile responsive breakpoint */
@media screen and (max-width: 768px) {
  .campaign-grid-2,
  .campaign-grid-3,
  .campaign-grid-4,
  .campaign-grid-5,
  .campaign-grid-6,
  .campaign-grid-7,
  .campaign-grid-8 {
    grid-template-columns: 1fr;
  }
}
.campaign-loop.campaign-grid .campaign-donation {
  text-align: center;
}

/* Masonry Layout Overrides */
.campaign-loop.campaign-grid.masonry {
  display: block !important; /* Override grid display */
  -moz-column-gap: 1em;
  -webkit-column-gap: 1em;
  column-gap: 1em;
}

.campaign-loop.campaign-grid.masonry li.campaign,
.campaign-loop.campaign-grid.masonry .campaign.hentry {
  display: inline-block !important;
  margin: 0 0 1em !important;
  width: 100% !important;
  float: none !important;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* Masonry Column Variations */
.campaign-loop.campaign-grid.masonry.campaign-grid-2 {
  -moz-column-count: 2 !important;
  -webkit-column-count: 2 !important;
  column-count: 2 !important;
}

.campaign-loop.campaign-grid.masonry.campaign-grid-3 {
  -moz-column-count: 3 !important;
  -webkit-column-count: 3 !important;
  column-count: 3 !important;
}

.campaign-loop.campaign-grid.masonry.campaign-grid-4 {
  -moz-column-count: 4 !important;
  -webkit-column-count: 4 !important;
  column-count: 4 !important;
}

/* Mobile responsive breakpoint for masonry */
@media screen and (max-width: 768px) {
  .campaign-loop.campaign-grid.masonry.campaign-grid-2,
  .campaign-loop.campaign-grid.masonry.campaign-grid-3,
  .campaign-loop.campaign-grid.masonry.campaign-grid-4 {
    -moz-column-count: 1 !important;
    -webkit-column-count: 1 !important;
    column-count: 1 !important;
  }
}
/* Donors */
.donors-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.donors-list .donor {
  *zoom: 1;
  list-style: none;
  padding: 1em 0;
}

.donors-list .donor:before,
.donors-list .donor:after {
  content: " ";
  display: table;
}

.donors-list .donor:after {
  clear: both;
}

.donors-list .donor .avatar {
  margin: 0;
}

.donors-list .donor .donor-name {
  font-weight: bold;
}

.donors-list .donor .donor-name,
.donors-list .donor .donor-location,
.donors-list .donor .donor-donation-amount {
  margin: 0.5em 0 0 0;
}

.donors-list .donor > *:first-child {
  margin-top: 0;
}

.donors-list.donors-list-horizontal .donor {
  display: inline-block;
  padding: 0 20px 1em 0;
  width: 100px;
  vertical-align: top;
}

.donors-list.donors-list-vertical .donor {
  border-bottom: 1px solid #e6e6e6;
}

/* Widgets */
.widget.widget_charitable_campaigns_widget .campaigns {
  margin: 0 0 1em 0;
  padding: 0;
  list-style: none;
}

.widget.widget_charitable_campaigns_widget .campaign {
  list-style: none;
  padding: 1em 0;
  border-bottom-color: #e6e6e6;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.widget.widget_charitable_campaigns_widget .campaign .wp-post-image {
  padding: 0;
  margin: 0 0 0.5em 0;
}

.widget.widget_charitable_campaigns_widget .campaign .campaign-title {
  padding: 0;
  margin: 0 0 0.5em 0;
  font-size: inherit;
  font-weight: bolder;
}

.widget.widget_charitable_campaigns_widget .campaign .campaign-time-left {
  font-weight: normal;
}

/* Notices */
.charitable-notice {
  padding: 1em;
  margin-bottom: 1em;
  border: 1px solid;
}

.charitable-notice > ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.charitable-notice > ul li {
  padding: 0;
  border: none;
}

.charitable-notice a {
  text-decoration: underline;
}

/* modal donation */
.charitable-modal.charitable-modal-donation {
  width: 80%;
  max-width: 800px;
  padding: 1em;
  background-color: #fff;
  overflow-y: auto;
}

.charitable-modal.charitable-modal-donation .charitable-submit-field {
  margin-bottom: 0;
}


p.minimum-donation-amount-text,
p.maximum-donation-amount-text {
  font-weight: 500;
  margin-bottom: 3px;
}

/* donation form templates */
.charitable-donation-form.charitable-template-standard .charitable-fieldset {
  padding: 0;
  border: none;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset .charitable-form-header {
  font-size: 21px;
  line-height: 21px;
  font-weight: 800;
  margin-bottom: 10px;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset {
  margin: 0 0 1em;
  padding: 1em 20px 0.5em !important;
  border: 1px solid #ebebeb;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset > :last-child,
.charitable-donation-form.charitable-template-standard .charitable-fieldset-field-wrapper > :last-child {
  margin-bottom: 0;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.has-suggested-amounts {
  margin-bottom: 0;
  grid-template-columns: 1fr 1fr;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.has-suggested-amounts.donation-amounts-count-3 li:last-child, .charitable-donation-form.charitable-template-standard .donation-amounts.has-suggested-amounts.donation-amounts-count-5 li:last-child {
  grid-column: 1/-1;
}
.charitable-donation-form.charitable-template-standard .donation-amounts .donation-amount {
  margin: 5px;
}
.charitable-donation-form.charitable-template-standard .donation-amounts li {
  text-align: center;
}
.charitable-donation-form.charitable-template-standard .donation-amounts li span.description {
  font-size: 16px !important;
  line-height: 21px !important;
  font-weight: 500;
  display: block;
  margin: 5px auto;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.donation-suggested-amount {
  display: flex;
  flex-direction: row;
  margin-top: 5px !important;
  margin-bottom: 10px;
  padding: 5px;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.donation-suggested-amount span.custom-donation-amount-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.donation-suggested-amount li {
  display: flex;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 4px 0;
  margin: 5px;
  width: 100%;
  margin: 0;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.donation-suggested-amount li label {
  width: 100%;
  margin-bottom: 10px;
  display: block;
}
.charitable-donation-form.charitable-template-standard .donation-amounts.donation-suggested-amount li input[type=text] {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 10px;
  max-width: calc(100% - 4rem);
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields {
  padding-top: 0;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields .charitable-form-header {
  padding: 0;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields .charitable-form-fields {
  margin-top: 15px;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields {
  padding-left: 0;
  padding-right: 0;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields input,
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields select {
  font-size: 16px;
  line-height: 16px;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields input {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields select {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields .charitable-form-field {
  display: flex;
  flex-direction: column;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields .charitable-form-field label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.charitable-donation-form.charitable-template-standard #charitable-donor-fields #charitable-user-fields .charitable-form-field input {
  width: auto;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code {
  padding-left: 0;
  padding-right: 0;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code input,
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code select {
  font-size: 16px;
  line-height: 16px;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code input {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code select {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
  background-color: #fff;
  color: #4d4d4d;
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code .charitable-form-field {
  display: flex;
  flex-direction: column;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code .charitable-form-field label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.charitable-donation-form.charitable-template-standard .charitable-fieldset-referral-code .charitable-form-field input {
  width: auto !important;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable-gateway-selector-header {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields .charitable-form-field {
  margin-bottom: 5px;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable-gateway-selector {
  margin-top: 5px;
  margin-bottom: 0px;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable-gateway-selector li {
  margin-right: 15px;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable-gateway-selector li label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable-gateway-selector-header {
  display: none;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields .charitable-form-field {
  display: flex;
  flex-direction: column;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 10px;
  display: block;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields input {
  width: auto;
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  min-height: 25px;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
.charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable_stripe_card_field {
  width: auto;
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  min-height: 42px;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}

#charitable-donation-form .donation-amounts::before {
  content: "" !important;
  display: none !important;
  background-color: red;
}

#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset {
  padding: 0;
  border: none;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset .charitable-form-header {
  font-size: 21px;
  line-height: 21px;
  font-weight: 800;
  margin-bottom: 10px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset > :last-child,
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-field-wrapper > :last-child {
  margin-bottom: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts ::before {
  content: none;
  display: none;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts {
  margin-bottom: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-1 {
  grid-template-columns: 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-2 {
  grid-template-columns: 1fr 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-2 .donation-amount {
  margin: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-2 .donation-amount:first-child {
  margin-left: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-2 .donation-amount:last-child {
  margin-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-3 .donation-amount {
  margin: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-3 .donation-amount:first-child {
  margin-left: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-3 .donation-amount:last-child {
  margin-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-4 .donation-amount {
  margin: 5px;
  width: auto;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-4 .donation-amount label {
  width: 100%;
  text-align: center;
  padding: 10px !important;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-4 .donation-amount:first-child {
  margin-left: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-4 .donation-amount:last-child {
  margin-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-5 {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-5 .donation-amount {
  margin: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-5 .donation-amount:first-child {
  margin-left: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-5 .donation-amount:last-child {
  margin-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-6 {
  grid-template-columns: 1fr 1fr 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-6 .donation-amount {
  margin: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-7, #charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-8 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-7 .donation-amount, #charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.has-suggested-amounts.donation-amounts-count-8 .donation-amount {
  margin: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts .donation-amount {
  margin: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts .donation-amount:first-child {
  margin-left: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts .donation-amount:last-child {
  margin-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts li {
  text-align: center;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts li span.description {
  font-size: 16px !important;
  line-height: 21px !important;
  font-weight: 500;
  display: block;
  margin: 5px auto;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.donation-suggested-amount {
  display: flex;
  flex-direction: row;
  margin-top: 5px !important;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.donation-suggested-amount span.custom-donation-amount-wrapper {
  display: block;
  width: 100%;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.donation-suggested-amount li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: solid 1px #8c8c8c;
  border-radius: 4px;
  padding: 4px 0;
  width: 100%;
  margin: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.donation-suggested-amount li label {
  width: 100%;
  display: none;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal ul.donation-amounts.donation-suggested-amount li input[type=text] {
  height: fit-content;
  background-color: #fff;
  font-size: var(--givewp-font-size-headline-md);
  font-weight: normal;
  line-height: 1.5;
  color: #bababa;
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  text-align: center;
  padding: 0;
  min-height: 45px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-custom-donation-field-alone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: solid 1px #8c8c8c;
  border-radius: 4px;
  padding: 4px 0;
  width: 100%;
  margin: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-custom-donation-field-alone label {
  width: 100%;
  display: none;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-custom-donation-field-alone input[type=text] {
  height: fit-content;
  background-color: #fff;
  font-size: var(--givewp-font-size-headline-md);
  font-weight: normal;
  line-height: 1.5;
  color: #bababa;
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  text-align: center;
  padding: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields {
  padding-top: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields .charitable-form-header {
  padding: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields .charitable-form-fields {
  margin-top: 15px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields {
  padding-left: 0;
  padding-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields input,
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields select {
  font-size: 16px;
  line-height: 16px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields input {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields select {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
  background-color: #fff;
  color: #4d4d4d;
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields .charitable-form-field {
  display: flex;
  flex-direction: column;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields .charitable-form-field label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields .charitable-form-field input {
  width: auto;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code {
  padding-left: 0;
  padding-right: 0;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code input,
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code select {
  font-size: 16px;
  line-height: 16px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code input {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code select {
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
  background-color: #fff;
  color: #4d4d4d;
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code .charitable-form-field {
  display: flex;
  flex-direction: column;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code .charitable-form-field label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-fieldset-referral-code .charitable-form-field input {
  width: auto !important;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector-header {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields .charitable-form-field {
  margin-bottom: 5px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector {
  margin-top: 5px;
  margin-bottom: 0px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li {
  margin-right: 5px;
  /* Add checkmark icon when checked */
  /* Override: Remove checkmark icons from gateway tab labels */
  /* Override: Restore proper cursor for gateway tabs */
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li input[type=radio] {
  display: none;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li label {
  display: inline-block;
  position: relative;
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  padding: 10px 20px;
  margin-right: -1px;
  /* Overlap bordering */
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #f1f1f1;
  opacity: 0.55;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li input[type=radio]:checked + label {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  opacity: 1;
  padding-left: 35px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li input[type=radio]:checked + label::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300a32a' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li.charitable-gateway-tab input[type=radio]:checked + label::before {
  content: none !important;
  background-image: none !important;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector li.charitable-gateway-tab label {
  cursor: pointer !important;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields #charitable-gateway-selector-header {
  display: none;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields {
  padding: 10px 10px;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields .charitable-form-field {
  display: flex;
  flex-direction: column;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields label {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 10px;
  display: block;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal #charitable-gateway-fields .charitable-gateway-fields.charitable-form-fields input {
  width: auto;
  border-width: 0.078rem;
  border-style: solid;
  border-radius: 0.25rem;
  padding: 0.8rem 1rem;
  background-color: #fff;
  color: #4d4d4d;
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .donate-button {
  width: 100%;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-notice {
  padding: 5px 10px;
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal .charitable-notice li {
  margin: 10px 0;
}

@media screen and (max-width: 700px) {
  .charitable-donation-form.charitable-template-minimal #charitable-donor-fields #charitable-user-fields .charitable-form-group.charitable-form-group-number-1 {
    flex-direction: column;
  }
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-1,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-2,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-3,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-5,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-7,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-8,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-9,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-10 {
    grid-template-columns: 1fr;
  }
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-4,
  .charitable-donation-form.charitable-template-minimal .donation-amounts.has-suggested-amounts.donation-amounts-count-6 {
    grid-template-columns: 1fr 1fr;
  }
}
#charitable-gateway-fields-stripe.charitable-cc-fields-multiple {
  display: grid;
  grid-template-columns: 75% 25%;
  grid-template-rows: auto auto; /* This creates the equivalent of a 2x2 grid */
  gap: 10px; /* Optional: Sets the gap between grid items */
  /* Mobile responsive adjustment */
}
#charitable-gateway-fields-stripe.charitable-cc-fields-multiple > div.charitable_stripe_multiple_field:nth-child(even) input,
#charitable-gateway-fields-stripe.charitable-cc-fields-multiple > div:first-child input {
  font-family: sans-serif !important;
  font-size: 16px !important;
  padding: 15px 10px !important;
  min-height: 15px !important;
  font-weight: 500 !important;
}
#charitable-gateway-fields-stripe.charitable-cc-fields-multiple > div.charitable_stripe_multiple_field:nth-child(odd) { /* Target every even div (2nd, 4th, 6th, etc.) */ }
#charitable-gateway-fields-stripe.charitable-cc-fields-multiple > div > div,
#charitable-gateway-fields-stripe.charitable-cc-fields-multiple > div input {
  width: auto !important;
  border-width: 0.078rem !important;
  border-style: solid !important;
  border-radius: 0.25rem !important;
  padding: 15px 10px !important;
  background-color: #fff !important;
  color: #4d4d4d !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  min-height: 15px;
  font-size: 16px !important;
}
@media screen and (max-width: 768px) {
  #charitable-gateway-fields-stripe.charitable-cc-fields-multiple {
    grid-template-columns: 100%;
  }
}

.charitable-privacy-policy-text {
  font-size: 16px;
  line-height: 21px;
  font-weight: 400;
}

/* QR Code Section */
.charitable-qr-code-section {
  margin: 2em 0;
  text-align: center;
}
.charitable-qr-code-section .charitable-qr-code {
  margin: 0;
}
.charitable-qr-code-section .charitable-qr-code img {
  max-width: 100%;
  height: 200px;
  margin: 0 auto;
}
.charitable-qr-code-section .charitable-qr-code-instructions {
  color: #666;
  font-size: 0.9em;
  margin: 0 auto;
}
.charitable-qr-code-section .charitable-qr-download {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.charitable-qr-code-section .charitable-qr-download:hover {
  background-color: #e1e1e1;
  border-color: #999;
}
.charitable-qr-code-section .charitable-qr-download:active {
  background-color: #d1d1d1;
}

/* Donation Summary Container */
.donation-summary-container {
  margin-bottom: 2em;
}
.donation-summary-container.two-column {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
}
@media screen and (max-width: 800px) {
  .donation-summary-container.two-column {
    flex-direction: column;
    gap: 1em;
  }
}
.donation-summary-container.two-column .donation-summary-column {
  flex: 1;
  min-width: 0;
}
.donation-summary-container.two-column .donation-qr-column {
  flex: 0 0 300px;
  max-width: 300px;
}
@media screen and (max-width: 800px) {
  .donation-summary-container.two-column .donation-qr-column {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0 auto;
  }
}
.donation-summary-container.single-column .donation-qr-column {
  margin-top: 2em;
  max-width: 300px;
}
.donation-summary-container.single-column .charitable-qr-code-section {
  margin: 0 !important;
  text-align: left;
}
.donation-summary-container.single-column .charitable-qr-code,
.donation-summary-container.single-column .charitable-qr-code img {
  margin: 0 !important;
  text-align: left;
}
.donation-summary-container.single-column p.charitable-qr-code-instructions {
  text-align: left;
}
.donation-summary-container.single-column .charitable-qr-code img {
  margin-left: -10px !important;
}
.charitable-qr-code-section {
  text-align: center;
}
.charitable-qr-code-section .charitable-qr-code {
  margin: 0;
}
.charitable-qr-code-section .charitable-qr-code img {
  max-width: 100%;
  height: 200px;
  margin: 0 auto;
}
.charitable-qr-code-section .charitable-qr-code-instructions {
  color: #666;
  font-size: 0.9em;
  margin: 0 auto;
}
.charitable-qr-code-section .charitable-qr-download {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.charitable-qr-code-section .charitable-qr-download:hover {
  background-color: #e1e1e1;
  border-color: #999;
}
.charitable-qr-code-section .charitable-qr-download:active {
  background-color: #d1d1d1;
}

.charitable-payment-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 0 0;
}
.charitable-payment-divider::before, .charitable-payment-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e6e6e6;
}
.charitable-payment-divider span {
  padding: 0 10px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}

.charitable-square-payment-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 20px 0;
}
.charitable-square-payment-divider::before, .charitable-square-payment-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e6e6e6;
}
.charitable-square-payment-divider span {
  padding: 0 10px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}

#charitable_stripe_express_checkout_field.charitable-hidden {
  display: none;
}

.charitable-campaigns-pagination {
  margin: 2em 0;
  text-align: center;
  clear: both;
}
.charitable-campaigns-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  margin: 0 0.2em;
  text-decoration: none;
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.charitable-campaigns-pagination .page-numbers:hover {
  background-color: #f8f8f8;
  border-color: #ddd;
  color: #333;
}
.charitable-campaigns-pagination .page-numbers.current {
  background-color: #f1f1f1;
  border-color: #ddd;
  color: #333;
  font-weight: bold;
}
.charitable-campaigns-pagination .page-numbers.prev, .charitable-campaigns-pagination .page-numbers.next {
  font-weight: bold;
}
.charitable-campaigns-pagination .page-numbers.dots {
  border: none;
  padding: 0.5em 0.2em;
}
@media screen and (max-width: 600px) {
  .charitable-campaigns-pagination .page-numbers {
    padding: 0.4em 0.8em;
    margin: 0 0.1em;
    font-size: 0.85em;
  }
}

/* Campaign Pagination Loading State */
.charitable-campaigns-shortcode {
  position: relative;
}
.charitable-campaigns-shortcode.charitable-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}
.charitable-campaigns-shortcode.charitable-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: charitable-spin 1s linear infinite;
  z-index: 2;
}

@keyframes charitable-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#charitable-square-wallet-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

/* When empty, hide the container */
#charitable-square-wallet-buttons:empty {
  display: none;
}

/* All direct child divs */
#charitable-square-wallet-buttons > div {
  min-width: 160px;
  max-width: 240px;
  box-sizing: border-box;
  display: inline-block !important;
}

/* Make SDK-injected buttons responsive */
#charitable-square-wallet-buttons button,
#charitable-square-wallet-buttons iframe,
#charitable-square-wallet-buttons .gpay-card-info-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* When exactly one div child */
#charitable-square-wallet-buttons > div:only-child {
  width: 100%;
}

/* When exactly two div children */
#charitable-square-wallet-buttons > div:first-child:nth-last-child(2),
#charitable-square-wallet-buttons > div:first-child:nth-last-child(2) ~ div {
  width: 50%;
}

/* When Apple Pay button is hidden, make Google Pay button take full width */
#charitable-square-wallet-buttons #apple-pay-button[style*="display: none"] ~ #google-pay-button,
#charitable-square-wallet-buttons #apple-pay-button[style*="display: none"] + #google-pay-button {
  width: 100% !important;
  flex: none !important;
}

#charitable-square-wallet-buttons #google-pay-button button,
#charitable-square-wallet-buttons #google-pay-button button,
#charitable-square-wallet-buttons #google-pay-button iframe,
#charitable-square-wallet-buttons #google-pay-button iframe {
  width: 100% !important;
}

/* Additional rule for when Apple Pay button is hidden via JavaScript */
#charitable-square-wallet-buttons #apple-pay-button[style*="display: none"] {
  display: none !important;
  flex: none !important;
}

@media (max-width: 768px) {
  #charitable-square-wallet-buttons {
    flex-direction: column;
    gap: 15px;
  }
  #charitable-square-wallet-buttons > div {
    max-width: 100%;
    min-width: 0;
  }
}
#cash-app-pay-button {
  max-height: 40px;
  position: relative;
  top: -4px;
}

#google-pay-button,
#apple-pay-button {
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  width: 100%;
  margin: 0 !important;
}

/* Apple Pay specific styling */
#apple-pay-button {
  height: 48px !important;
  max-height: 48px !important;
  /* Target the actual Apple Pay button element */
}
#apple-pay-button button,
#apple-pay-button iframe,
#apple-pay-button div {
  height: 48px !important;
  max-height: 48px !important;
}

/* Google Pay specific styling for donate button with static size mode */
#google-pay-button {
  height: 48px !important;
  max-height: 48px !important;
  /* Target the actual Google Pay button element */
}
#google-pay-button button,
#google-pay-button iframe,
#google-pay-button div {
  height: 48px !important;
  max-height: 48px !important;
}

#google-pay-button:before,
#apple-pay-button:before {
  content: "Google Pay";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#apple-pay-button:before {
  content: "Apple Pay";
}

.wallet-enabled #google-pay-button:before,
.wallet-enabled #apple-pay-button:before {
  display: none;
}

#charitable-square-wallet-separator {
  text-align: center;
  width: 100%;
  display: block;
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  position: relative;
}

#charitable-square-wallet-separator:before,
#charitable-square-wallet-separator:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 33%;
  height: 1px;
  background: #ddd;
}

#charitable-square-wallet-separator:before {
  left: 0;
}

#charitable-square-wallet-separator:after {
  right: 0;
}

#charitable-square-card-payment-fields {
  border: 0;
  margin: 0;
  padding: 0;
}
#charitable-square-card-payment-fields.no-wallets {
  padding: 0;
  border: none;
}

/* Gateway Tab Styles */
.charitable-gateway-tabs {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0px;
}

.charitable-gateway-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-start;
  align-items: stretch;
}

/* Responsive behavior for different screen sizes and contexts */
@media screen and (max-width: 768px) {
  .charitable-gateway-tab-list {
    gap: 6px;
  }
}
/* Modal-specific responsive behavior */
.charitable-modal .charitable-gateway-tab-list {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.charitable-modal .charitable-gateway-tab {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  max-width: 200px;
}

/* Small screens and narrow modals */
@media screen and (max-width: 480px) {
  .charitable-gateway-tab-list {
    flex-direction: column;
    gap: 4px;
  }
  .charitable-gateway-tab {
    flex: 1 1 auto;
    min-width: auto;
    max-width: none;
  }
  .charitable-modal .charitable-gateway-tab {
    flex: 1 1 auto;
    min-width: auto;
    max-width: none;
  }
}
/* Medium screens - 2 columns in modals */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .charitable-modal .charitable-gateway-tab {
    flex: 1 1 calc(50% - 4px);
    min-width: 100px;
    max-width: 110px;
  }
}
/* Larger screens - 3+ columns when space allows */
@media screen and (min-width: 769px) {
  .charitable-gateway-tab-list {
    flex-wrap: wrap;
  }
  .charitable-gateway-tab {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 120px;
    max-width: 160px;
  }
  .charitable-modal .charitable-gateway-tab {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 120px;
    max-width: 160px;
  }
}
/* Very large screens - 4+ columns */
@media screen and (min-width: 1024px) {
  .charitable-gateway-tab {
    flex: 1 1 calc(25% - 6px);
    min-width: 100px;
    max-width: 140px;
  }
  .charitable-modal .charitable-gateway-tab {
    flex: 1 1 calc(25% - 6px);
    min-width: 100px;
    max-width: 140px;
  }
}
.charitable-gateway-tab {
  flex: 0 0 auto;
  position: relative;
  min-width: 100px;
  max-width: 180px;
  margin: 0;
  outline-width: 0px !important;
  /* Ensure checked state overrides focus state */
}

.charitable-gateway-tab label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px 10px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
  min-height: 60px;
  position: relative;
  outline: none; /* Remove focus outline */
  width: 100%;
  box-sizing: border-box;
}

/* Responsive adjustments for tab labels */
@media screen and (max-width: 480px) {
  .charitable-gateway-tab label {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    min-height: 50px;
  }
  .charitable-gateway-tab .charitable-gateway-icon {
    margin-right: 8px;
  }
}
/* Modal-specific label adjustments */
.charitable-modal .charitable-gateway-tab label {
  padding: 10px 6px 8px 6px;
  min-height: 55px;
}

@media screen and (max-width: 480px) {
  .charitable-modal .charitable-gateway-tab label {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 10px;
    min-height: 45px;
  }
}
/* Dropdown for overflow */
.charitable-gateway-dropdown-wrapper {
  position: relative;
  flex: 0 0 auto;
  margin-left: 8px;
}
@media screen and (max-width: 768px) {
  .charitable-gateway-dropdown-wrapper {
    margin-left: 6px;
  }
}

.charitable-gateway-dropdown-toggle {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 12px !important;
  height: 40px;
  min-width: 32px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  margin-left: 4px !important;
  margin-right: 0 !important;
  transition: background 0.15s !important;
  color: #000 !important;
}
.charitable-gateway-dropdown-toggle:hover, .charitable-gateway-dropdown-toggle[aria-expanded=true] {
  background: #f0f2f5 !important;
}
.charitable-gateway-dropdown-toggle:focus {
  outline: none !important;
  background: #e0e0e0 !important;
}
.charitable-gateway-dropdown-toggle span, .charitable-gateway-dropdown-toggle svg {
  display: block !important;
  font-size: 20px !important;
  color: #222 !important;
  pointer-events: none !important;
}

.charitable-gateway-dropdown-list {
  position: absolute;
  right: 0;
  top: 40px;
  margin-top: 0px;
  background: #23272f;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  min-width: 210px;
  padding: 6px 0;
  z-index: 1000;
  list-style: none;
  font-size: 16px;
  width: auto;
  max-width: 320px;
  text-align: left;
  display: none;
}
.charitable-gateway-dropdown-list.show {
  display: block;
}
.charitable-gateway-dropdown-list .white-in-charitable-gateway-dropdown-list {
  color: #fff !important;
}
.charitable-gateway-dropdown-list .charitable-gateway-tab {
  display: flex;
  align-items: center;
  padding: 0 18px 0 12px;
  min-height: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  border-radius: 4px;
  transition: background 0.12s;
  position: relative;
}
.charitable-gateway-dropdown-list .charitable-gateway-tab:hover, .charitable-gateway-dropdown-list .charitable-gateway-tab.active {
  background: #353a42;
}
.charitable-gateway-dropdown-list .charitable-gateway-tab label {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  min-height: inherit !important;
  border: none !important;
}
.charitable-gateway-dropdown-list .charitable-gateway-tab .charitable-gateway-label {
  flex: 1;
  padding-left: 0;
  color: inherit;
  min-height: none;
  flex-direction: row;
  color: #fff !important;
}
.charitable-gateway-dropdown-list .charitable-gateway-tab.active .charitable-gateway-label {
  color: #b6f5c1;
}
.charitable-gateway-dropdown-list .charitable-gateway-tab.active::before {
  content: "✓";
  color: #b6f5c1;
  font-size: 16px;
  margin-right: 8px;
  display: inline-block;
  width: 18px;
  text-align: center;
}

/* Hide dropdown when not needed */
.charitable-gateway-dropdown-wrapper[style*="display: none"] {
  display: none !important;
}

/* Ensure proper spacing in the form */
.charitable-fieldset-field-wrapper .charitable-gateway-tabs {
  margin-bottom: 1em;
}

/* Accessibility improvements */
.charitable-gateway-tab input[type=radio]:focus + label {
  outline: none;
  border: none;
  box-shadow: none;
}

.charitable-gateway-dropdown-toggle:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Animation for dropdown */
.charitable-gateway-dropdown-list {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: none;
}
.charitable-gateway-dropdown-list.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Comprehensive focus style override for gateway tabs */
.charitable-gateway-tab:focus, .charitable-gateway-tab:focus-visible, .charitable-gateway-tab:focus-within, .charitable-gateway-tab:where(.wp-site-blocks *:focus), .charitable-gateway-tab:where(.wp-site-blocks *:focus-visible), .charitable-gateway-tab:where(.wp-site-blocks *:focus-within),
.charitable-gateway-tab *:focus,
.charitable-gateway-tab *:focus-visible,
.charitable-gateway-tab *:focus-within,
.charitable-gateway-tab *:where(.wp-site-blocks *:focus),
.charitable-gateway-tab *:where(.wp-site-blocks *:focus-visible),
.charitable-gateway-tab *:where(.wp-site-blocks *:focus-within),
.charitable-gateway-tab input[type=radio]:focus,
.charitable-gateway-tab input[type=radio]:focus-visible,
.charitable-gateway-tab input[type=radio]:focus-within,
.charitable-gateway-tab input[type=radio]:where(.wp-site-blocks *:focus),
.charitable-gateway-tab input[type=radio]:where(.wp-site-blocks *:focus-visible),
.charitable-gateway-tab input[type=radio]:where(.wp-site-blocks *:focus-within),
.charitable-gateway-tab input[type=radio] + label:focus,
.charitable-gateway-tab input[type=radio] + label:focus-visible,
.charitable-gateway-tab input[type=radio] + label:focus-within,
.charitable-gateway-tab input[type=radio] + label:where(.wp-site-blocks *:focus),
.charitable-gateway-tab input[type=radio] + label:where(.wp-site-blocks *:focus-visible),
.charitable-gateway-tab input[type=radio] + label:where(.wp-site-blocks *:focus-within),
.charitable-gateway-tab label:focus,
.charitable-gateway-tab label:focus-visible,
.charitable-gateway-tab label:focus-within,
.charitable-gateway-tab label:where(.wp-site-blocks *:focus),
.charitable-gateway-tab label:where(.wp-site-blocks *:focus-visible),
.charitable-gateway-tab label:where(.wp-site-blocks *:focus-within) {
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-offset: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 0px !important;
  outline-style: none !important;
  outline-offset: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Prevent flash of gateway fields on page load */
.charitable-gateway-fields {
  display: none;
}

.charitable-gateway-fields[data-gateway]:first-of-type {
  display: block;
}

/* When there's only one gateway (no gateway selector present), always show the fields */
#charitable-gateway-fields:not(:has(#charitable-gateway-selector)) .charitable-gateway-fields {
  display: block !important;
}

/* PayPal Gateway Message */
.charitable-paypal-message {
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
  color: #666;
  margin: 1em 0;
}

/* Offline Gateway Message */
.charitable-offline-message {
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
  color: #666;
  margin: 1em 0;
}

/* Frontend recurring payment method filtering styles */
.charitable-gateway-tab.disabled-for-recurring,
#charitable-gateway-selector li.disabled-for-recurring {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
  color: #6c757d;
}
.charitable-gateway-tab.disabled-for-recurring::after,
#charitable-gateway-selector li.disabled-for-recurring::after {
  content: "⚠";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #f39c12;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
}

/* Ensure labels don't overlap with icons */
#charitable-gateway-selector li.disabled-for-recurring label {
  padding-right: 35px;
  position: relative;
}

/* Make disabled radio buttons more visible */
#charitable-gateway-selector li.disabled-for-recurring input[type=radio] {
  opacity: 0.4;
}

.charitable-recurring-payment-method-warning {
  margin: 1em 0;
  padding: 1em;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
  width: 100%;
  display: block;
  box-sizing: border-box;
  clear: both;
  float: none;
  position: relative;
  z-index: 1;
}
.charitable-recurring-payment-method-warning p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.charitable-recurring-payment-method-error {
  margin: 1em 0;
  padding: 1em;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.charitable-recurring-payment-method-error p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

button[type=submit].disabled-for-recurring,
input[type=submit].disabled-for-recurring,
.donate-button.disabled-for-recurring {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}
button[type=submit].disabled-for-recurring:hover,
input[type=submit].disabled-for-recurring:hover,
.donate-button.disabled-for-recurring:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  opacity: 0.6;
}

/* ==========================================================================
   CRITICAL PAYMENT METHOD FUNCTIONALITY
   These styles are essential for payment system functionality
   ========================================================================== */
/* Gateway Tab Radio Button Styling - CRITICAL */
.charitable-gateway-tab input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.charitable-gateway-tab input[type=radio]:checked + label {
  border-bottom: 2px solid #43a047;
  color: #43a047;
  background: none;
  box-shadow: none;
  outline: none !important;
}

.charitable-gateway-tab input[type=radio]:focus + label {
  outline: none;
  border-bottom: 2px solid #e0e0e0;
}

.charitable-gateway-tab label:focus {
  outline: none;
  border-bottom: 2px solid #e0e0e0;
}

.charitable-gateway-tab input[type=radio]:checked + label,
.charitable-gateway-tab input[type=radio]:checked:focus + label {
  border-bottom: 2px solid #43a047 !important;
  color: #43a047;
  background: none;
  box-shadow: none;
}

/* Gateway Tab Icon and Label Styling - CRITICAL */
.charitable-gateway-tab .charitable-gateway-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.charitable-gateway-tab .charitable-gateway-icon svg {
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 30px;
}

.charitable-gateway-tab .charitable-gateway-label {
  font-size: 12px;
  font-weight: 500;
  color: #495057;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

/* Focus State Overrides - CRITICAL */
.charitable-gateway-tab:focus-within,
.charitable-gateway-tab:where(.wp-site-blocks *:focus),
.charitable-gateway-tab:focus:where(.wp-site-blocks *:focus),
.charitable-gateway-tab:active,
.charitable-gateway-tab:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Offline Payment Message - CRITICAL */
.charitable-offline-message {
  text-align: center;
  font-size: 16px;
  line-height: 21px;
  color: #666;
  margin: 1em 0;
}

/* Payment Method Error Styling - CRITICAL */
.charitable-payment-method-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}

.charitable-payment-method-error small {
  color: #856404;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 8px;
  display: block;
}

.charitable-payment-method-error.local-environment {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.charitable-payment-method-error.https-required {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Visual Indicator for Payment Method Tabs with Errors - CRITICAL */
.charitable-gateway-tab.payment-method-error {
  opacity: 0.7;
  position: relative;
}

.charitable-gateway-tab.payment-method-error::after {
  content: "⚠";
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.charitable-gateway-tab.payment-method-error:hover {
  opacity: 1;
}

/* Ensure Error Messages are Visible When Payment Method is Selected - CRITICAL */
.charitable-gateway-fields[style*="display: block"] .charitable-payment-method-error {
  display: block !important;
}

/* Fix Hover Text for Payment Method Tabs - CRITICAL */
.charitable-gateway-tab label {
  cursor: pointer;
}

.charitable-gateway-tab .charitable-gateway-icon {
  pointer-events: none;
}

.charitable-gateway-tab .charitable-gateway-icon svg {
  pointer-events: none;
}

/* Remove iframe Title Hover Text from Payment Method Tabs - CRITICAL */
.charitable-gateway-tab iframe {
  pointer-events: none;
}

.charitable-gateway-tab iframe[title] {
  pointer-events: none;
}

/* Ensure Payment Method Tabs Have Proper Hover Text - CRITICAL */
.charitable-gateway-tab[data-gateway-id=square_core] label {
  cursor: pointer;
}

.charitable-gateway-tab[data-gateway-id=stripe_ach_direct_debit] label {
  cursor: pointer;
}

.charitable-gateway-tab[data-gateway-id=stripe] label {
  cursor: pointer;
}

/* Remove Any iframe Hover Effects from Payment Tabs - CRITICAL */
.charitable-gateway-tab .StripeElement iframe,
.charitable-gateway-tab #charitable_stripe_ach_direct_debit_field iframe {
  pointer-events: none;
}

/* ACH Direct Debit Container Protection - CRITICAL */
#charitable_stripe_ach_direct_debit_field {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 50px !important;
  position: relative !important;
  z-index: 1 !important;
}

#charitable_stripe_ach_direct_debit_field.ach-transition-protected {
  transition: none !important;
  animation: none !important;
}

#charitable_stripe_ach_direct_debit_field .StripeElement {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure ACH Container is Visible When Gateway is Selected - CRITICAL */
.charitable-gateway-fields[data-gateway=stripe_ach_direct_debit] #charitable_stripe_ach_direct_debit_field {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override Any Conflicting Styles - CRITICAL */
.charitable-gateway-fields[data-gateway=stripe_ach_direct_debit] #charitable_stripe_ach_direct_debit_field[style*="display: none"] {
  display: block !important;
}

.charitable-gateway-fields[data-gateway=stripe_ach_direct_debit] #charitable_stripe_ach_direct_debit_field[style*="visibility: hidden"] {
  visibility: visible !important;
}

.charitable-gateway-fields[data-gateway=stripe_ach_direct_debit] #charitable_stripe_ach_direct_debit_field[style*="opacity: 0"] {
  opacity: 1 !important;
}

/* ==========================================================================
   PAYMENT METHOD DISPLAY CLASSES
   These classes are added to the form based on the payments_method_display setting
   ========================================================================== */
/* Form with buttons payment method display */
.charitable-donation-form.charitable-payment-method-buttons {
  /* Add specific styling for forms using the buttons display */
}

/* Form with text_tabs payment method display */
.charitable-donation-form.charitable-payment-method-text_tabs {
  /* Add specific styling for forms using the text_tabs display */
}

/* Gateway tabs with payment method display class */
#charitable-gateway-tabs.charitable-payment-method-buttons {
  /* Specific styling for gateway tabs when using buttons display */
}

#charitable-gateway-tabs.charitable-payment-method-text_tabs {
  /* Specific styling for gateway tabs when using text_tabs display */
}

/* ==========================================================================
   MINIMAL TEMPLATE OVERRIDES FOR BUTTONS PAYMENT METHOD
   These overrides prevent minimal template styles from affecting buttons display
   ========================================================================== */
/* Override minimal template styles for forms using buttons payment method */
#charitable-donation-form.charitable-donation-form.charitable-template-minimal.charitable-payment-method-buttons {
  /* Override gateway selector styles for buttons display */
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal.charitable-payment-method-buttons #charitable-gateway-fields #charitable-gateway-selector li {
  /* Remove minimal template radio button styling for buttons display */
  /* Remove checkmark icon styling for buttons display */
  /* Remove padding adjustment for buttons display */
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal.charitable-payment-method-buttons #charitable-gateway-fields #charitable-gateway-selector li input[type=radio] {
  display: block; /* Restore default display */
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal.charitable-payment-method-buttons #charitable-gateway-fields #charitable-gateway-selector li label {
  /* Remove minimal template label styling for buttons display */
  display: flex; /* Restore flexbox layout */
  position: static; /* Remove absolute positioning */
  font-size: inherit; /* Use default font size */
  line-height: inherit; /* Use default line height */
  font-weight: inherit; /* Use default font weight */
  padding: inherit; /* Use default padding */
  margin: inherit; /* Use default margin */
  border: inherit; /* Use default border */
  cursor: inherit; /* Use default cursor */
  background-color: inherit; /* Use default background */
  opacity: inherit; /* Use default opacity */
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal.charitable-payment-method-buttons #charitable-gateway-fields #charitable-gateway-selector li input[type=radio]:checked + label::before {
  content: none !important;
  background-image: none !important;
}
#charitable-donation-form.charitable-donation-form.charitable-template-minimal.charitable-payment-method-buttons #charitable-gateway-fields #charitable-gateway-selector li input[type=radio]:checked + label {
  padding-left: inherit !important;
}
