.ta-donate-widget { display: grid; gap: 12px; }
.ta-donate-row { display: flex; flex-wrap: wrap; gap: 0px; align-items: center; }
.ta-donate-option { display: inline-flex; gap: 0px; align-items: center; cursor: pointer; }
.ta-donate-custom-row { flex-direction: column; align-items: stretch; }
.ta-donate-custom-label { font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.85; }
.ta-donate-custom { width: 100%; padding: 10px 12px; }
.ta-donate-impact { font-size: 1.125rem; opacity: 0.9; }
.ta-donate-submit-row .ta-donate-submit { display: inline-flex; justify-content: center; align-items: center; padding: 12px 16px; }
.ta-donate-editor-notice { padding: 10px 12px; border-left: 4px solid #f39c12; background: rgba(243, 156, 18, 0.08); margin-bottom: 12px; }



.donation-slider-minimal {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
}
.donation-slider-minimal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}
.donation-slider-minimal__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  gap: 80px;
  align-items: center;
}
.donation-slider-minimal__text-content {
  flex: 1;
  color: white;
}
.donation-slider-minimal__headline.header2 {
  font-size: 3.5rem;
  font-weight: 400;
  font-family: "Marr Sans Condensed Bold", Sans-serif;
  margin: 0 0 25px 0;
  line-height: 115%;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}
.donation-slider-minimal__description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.donation-slider-minimal__impact {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 20px 0 0 0;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
  font-style: italic;
  transition: all 0.3s ease;
  min-height: 4rem;
}
.donation-slider-minimal__controls {
  flex-shrink: 0;
  width: 300px;
}
.donation-slider-minimal__slider-section {
  margin-bottom: 40px;
}
.donation-slider-minimal__slider-container {
  position: relative;
  width: 100%;
  padding: 50px 0 20px 0;
  height: 60px;
}
.donation-slider-minimal__range {
  width: 100%;
  height: 28px;
  min-height: 0px !important;
  padding: 0px !important;
  margin: 0;
  background: transparent !important;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 2;
}

.donation-slider-minimal__range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1.5px;
  background: rgba(255,255,255, 1);
  border: none;
}

.donation-slider-minimal__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  margin-top:-8px;
}
.donation-slider-minimal__range::-webkit-range-progress {
  height: 15px;
  border-radius: 1.5px;
  background: blue;
  border: none;
}
.donation-slider-minimal__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  margin-top: -8.5px;
}
.donation-slider-minimal__range::-moz-range-track {
  width: 100%;
  height: 2px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 1);
  border: none;
}
.donation-slider-minimal__range::-moz-range-progress {
  width: 100%;
  height: 1px;
  border-radius: 1.5px;
  background: transparent;
  border: none;
}
.donation-slider-minimal__range::-ms-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: transparent;
}
.donation-slider-minimal__range::-ms-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-top: 0;
}
.donation-slider-minimal__range::-ms-fill-lower {
  background: transparent;
}
.donation-slider-minimal__range::-ms-fill-upper {
  background: transparent;
}
.donation-slider-minimal__amount-bubble {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  background: white;
  color: #333;
  padding: 8px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-weight: 900;
  font-size: 1.4rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.donation-slider-minimal__amount-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white;
}
.donation-slider-minimal__currency {
  font-size: 1rem;
  vertical-align: top;
}


/* Rep B extras (presets + custom amount) */
.donation-slider-minimal__extras {
  margin: 0 0 20px 0;
}

.donation-slider-minimal__presets {
  display: flex;
  gap: 10px;
  margin: 0 0 14px 0;
}

.donation-slider-minimal__preset {
  flex: 1;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.donation-slider-minimal__preset.is-active {
  background: rgba(255, 132, 51, 0.75);
}

.donation-slider-minimal__custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.donation-slider-minimal__custom-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.donation-slider-minimal__custom-inputwrap {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 8px 6px 0px;
  backdrop-filter: blur(5px);
}

.donation-slider-minimal__custom-currency {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  /* text-align: right; */
  position: relative;
  top: -4px;
  left: 8px;
}

.donation-slider-minimal__custom-input {
  width: 120px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-weight: 700;
}
.donation-slider-minimal__frequency-toggle {
  display: flex;
  border: 2px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}
.donation-slider-minimal__frequency-toggle input[type="radio"] {
  display: none;
}
.donation-slider-minimal__frequency-toggle label {
  flex: 1;
  padding: 12px 24px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: white;
}
.donation-slider-minimal__frequency-toggle:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.donation-slider-minimal__donate-btn {
  white-space: nowrap;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding: 12px 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.donation-slider-minimal__donate-btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Theme 1 - Tree Aid Green */
[data-theme="theme1"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #335402;
}
[data-theme="theme1"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #335402;
}
[data-theme="theme1"] .donation-slider-minimal__range::-ms-thumb {
  background: #335402;
}
[data-theme="theme1"] .donation-slider-minimal__amount-bubble {
  background: #335402;
  color: #F4F0E6;
}
[data-theme="theme1"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #335402;
}
[data-theme="theme1"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #335402;
  color: #F4F0E6;
}
[data-theme="theme1"] .donation-slider-minimal__donate-btn {
  background: #335402;
  color: #F4F0E6;
}
[data-theme="theme1"] .donation-slider-minimal__donate-btn:hover {
  background: #24330D;
}

/* Theme 2 - Acacia Green */
[data-theme="theme2"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #24330D;
}
[data-theme="theme2"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #24330D;
}
[data-theme="theme2"] .donation-slider-minimal__range::-ms-thumb {
  background: #24330D;
}
[data-theme="theme2"] .donation-slider-minimal__amount-bubble {
  background: #24330D;
  color: #F4F0E6;
}
[data-theme="theme2"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #24330D;
}
[data-theme="theme2"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #24330D;
  color: #F4F0E6;
}
[data-theme="theme2"] .donation-slider-minimal__donate-btn {
  background: #24330D;
  color: #F4F0E6;
}
[data-theme="theme2"] .donation-slider-minimal__donate-btn:hover {
  background: #1A250A;
}

/* Theme 3 - Baobab Green */
[data-theme="theme3"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #BDBC1D;
}
[data-theme="theme3"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #BDBC1D;
}
[data-theme="theme3"] .donation-slider-minimal__range::-ms-thumb {
  background: #BDBC1D;
}
[data-theme="theme3"] .donation-slider-minimal__amount-bubble {
  background: #BDBC1D;
  color: #24330D;
}
[data-theme="theme3"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #BDBC1D;
}
[data-theme="theme3"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #BDBC1D;
  color: #24330D;
}
[data-theme="theme3"] .donation-slider-minimal__donate-btn {
  background: #BDBC1D;
  color: #24330D;
}
[data-theme="theme3"] .donation-slider-minimal__donate-btn:hover {
  background: #A8A719;
}

/* Theme 4 - Seedling Green */
[data-theme="theme4"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #D2F49E;
}
[data-theme="theme4"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #D2F49E;
}
[data-theme="theme4"] .donation-slider-minimal__range::-ms-thumb {
  background: #D2F49E;
}
[data-theme="theme4"] .donation-slider-minimal__amount-bubble {
  background: #D2F49E;
  color: #24330D;
}
[data-theme="theme4"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #D2F49E;
}
[data-theme="theme4"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #D2F49E;
  color: #24330D;
}
[data-theme="theme4"] .donation-slider-minimal__donate-btn {
  background: #D2F49E;
  color: #24330D;
}
[data-theme="theme4"] .donation-slider-minimal__donate-btn:hover {
  background: #C4EE88;
}

/* Theme 5 - Bark Brown */
[data-theme="theme5"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #4E2F1D;
}
[data-theme="theme5"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #4E2F1D;
}
[data-theme="theme5"] .donation-slider-minimal__range::-ms-thumb {
  background: #4E2F1D;
}
[data-theme="theme5"] .donation-slider-minimal__amount-bubble {
  background: #4E2F1D;
  color: #F4F0E6;
}
[data-theme="theme5"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #4E2F1D;
}
[data-theme="theme5"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #4E2F1D;
  color: #F4F0E6;
}
[data-theme="theme5"] .donation-slider-minimal__donate-btn {
  background: #4E2F1D;
  color: #F4F0E6;
}
[data-theme="theme5"] .donation-slider-minimal__donate-btn:hover {
  background: #3A2416;
}

/* Theme 6 - Bouli Beige */
[data-theme="theme6"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #F4F0E6;
}
[data-theme="theme6"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #F4F0E6;
}
[data-theme="theme6"] .donation-slider-minimal__range::-ms-thumb {
  background: #F4F0E6;
}
[data-theme="theme6"] .donation-slider-minimal__amount-bubble {
  background: #F4F0E6;
  color: #24330D;
}
[data-theme="theme6"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #F4F0E6;
}
[data-theme="theme6"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #F4F0E6;
  color: #24330D;
}
[data-theme="theme6"] .donation-slider-minimal__donate-btn {
  background: #F4F0E6;
  color: #24330D;
}
[data-theme="theme6"] .donation-slider-minimal__donate-btn:hover {
  background: #E8E2D6;
}

/* Theme 7 - Cashew Orange */
[data-theme="theme7"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #FF8433;
}
[data-theme="theme7"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #FF8433;
}
[data-theme="theme7"] .donation-slider-minimal__range::-ms-thumb {
  background: #FF8433;
}
[data-theme="theme7"] .donation-slider-minimal__amount-bubble {
  background: #FF8433;
  color: white;
}
[data-theme="theme7"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #FF8433;
}
[data-theme="theme7"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #FF8433;
  color: white;
}
[data-theme="theme7"] .donation-slider-minimal__donate-btn {
  background: #FF8433;
  color: white;
}
[data-theme="theme7"] .donation-slider-minimal__donate-btn:hover {
  background: #E6722D;
}

/* Theme 8 - Shea Nut Beige */
[data-theme="theme8"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #ECC996;
}
[data-theme="theme8"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #ECC996;
}
[data-theme="theme8"] .donation-slider-minimal__range::-ms-thumb {
  background: #ECC996;
}
[data-theme="theme8"] .donation-slider-minimal__amount-bubble {
  background: #ECC996;
  color: #24330D;
}
[data-theme="theme8"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #ECC996;
}
[data-theme="theme8"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #ECC996;
  color: #24330D;
}
[data-theme="theme8"] .donation-slider-minimal__donate-btn {
  background: #ECC996;
  color: #24330D;
}
[data-theme="theme8"] .donation-slider-minimal__donate-btn:hover {
  background: #E0B583;
}

/* Theme 9 - Blue Sky */
[data-theme="theme9"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #C7E3F6;
}
[data-theme="theme9"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #C7E3F6;
}
[data-theme="theme9"] .donation-slider-minimal__range::-ms-thumb {
  background: #C7E3F6;
}
[data-theme="theme9"] .donation-slider-minimal__amount-bubble {
  background: #C7E3F6;
  color: #24330D;
}
[data-theme="theme9"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #C7E3F6;
}
[data-theme="theme9"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #C7E3F6;
  color: #24330D;
}
[data-theme="theme9"] .donation-slider-minimal__donate-btn {
  background: #C7E3F6;
  color: #24330D;
}
[data-theme="theme9"] .donation-slider-minimal__donate-btn:hover {
  background: #B3D9F0;
}

/* Theme 10 - Cashew Yellow */
[data-theme="theme10"] .donation-slider-minimal__range::-webkit-slider-thumb {
  background: #FFF86D;
}
[data-theme="theme10"] .donation-slider-minimal__range::-moz-range-thumb {
  background: #FFF86D;
}
[data-theme="theme10"] .donation-slider-minimal__range::-ms-thumb {
  background: #FFF86D;
}
[data-theme="theme10"] .donation-slider-minimal__amount-bubble {
  background: #FFF86D;
  color: #24330D;
}
[data-theme="theme10"] .donation-slider-minimal__amount-bubble::after {
  border-top-color: #FFF86D;
}
[data-theme="theme10"] .donation-slider-minimal__frequency-toggle input[type="radio"]:checked + label {
  background: #FFF86D;
  color: #24330D;
}
[data-theme="theme10"] .donation-slider-minimal__donate-btn {
  background: #FFF86D;
  color: #24330D;
}
[data-theme="theme10"] .donation-slider-minimal__donate-btn:hover {
  background: #FFF659;
}

@media (max-width: 768px) {
  .donation-slider-minimal__content {
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
  }
  .donation-slider-minimal__headline {
    font-size: 2.5rem;
    text-align: center;
  }
  .donation-slider-minimal__description {
    text-align: center;
  }
  .donation-slider-minimal__controls {
    width: 100%;
    max-width: 350px;
  }
}



/* -------------------------------------------
   Default widget themed styling (segmented UI)
   Applies when data-default-theme != legacy
------------------------------------------- */

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) {
  --ta-accent: #4E2F1D;
  --ta-accent-hover: #3A2416;
  --ta-accent-contrast: #FFFFFF;
  --ta-label: #4E2F1D;
  --ta-border: var(--ta-label);
  --ta-control-max-width: 520px;

  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Width presets (default widget only) */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset="w520"] { --ta-control-max-width: 520px; }
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset="w720"] { --ta-control-max-width: 720px; }
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset="w900"] { --ta-control-max-width: 900px; }
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset="fill"] { --ta-control-max-width: 100%; }

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset] .ta-donate-type,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset] .ta-donate-frequency,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset] .ta-donate-amounts,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset] .ta-donate-impact,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-width-preset] .ta-donate-custom-row {
  margin-left: auto;
  margin-right: auto;
}

/* Apply width preset to the main default-widget rows */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-type,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-frequency,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-impact,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-submit-row {
  width: 100%;
  max-width: var(--ta-control-max-width);
  box-sizing: border-box;
}

.ta-donate-widget[data-default-theme^="theme1"]:not([data-default-theme="legacy"]) {
  --ta-accent: #335402;
  --ta-accent-hover: #24330D;
  --ta-accent-contrast: #F4F0E6;
  --ta-label: #335402;
}
.ta-donate-widget[data-default-theme^="theme2"]:not([data-default-theme="legacy"]) {
  --ta-accent: #24330D;
  --ta-accent-hover: #335402;
  --ta-accent-contrast: #F4F0E6;
  --ta-label: #24330D;
}
.ta-donate-widget[data-default-theme^="theme3"]:not([data-default-theme="legacy"]) {
  --ta-accent: #BDBC1D;
  --ta-accent-hover: #D2F49E;
  --ta-accent-contrast: #24330D;
  --ta-label: #24330D;
}
.ta-donate-widget[data-default-theme^="theme4"]:not([data-default-theme="legacy"]) {
  --ta-accent: #D2F49E;
  --ta-accent-hover: #BDBC1D;
  --ta-accent-contrast: #24330D;
  --ta-label: #24330D;
}
.ta-donate-widget[data-default-theme^="theme5"]:not([data-default-theme="legacy"]) {
  --ta-accent: #4E2F1D;
  --ta-accent-hover: #3A2416;
  --ta-accent-contrast: #FFFFFF;
  --ta-label: #4E2F1D;
}
.ta-donate-widget[data-default-theme^="theme6"]:not([data-default-theme="legacy"]) {
  --ta-accent: #F4F0E6;
  --ta-accent-hover: #ECC996;
  --ta-accent-contrast: #24330D;
  --ta-label: #24330D;
}
.ta-donate-widget[data-default-theme^="theme7"]:not([data-default-theme="legacy"]) {
  --ta-accent: #FF8433;
  --ta-accent-hover: #FC4E00;
  --ta-accent-contrast: #FFFFFF;
  --ta-label: #FF8433;
}
.ta-donate-widget[data-default-theme^="theme8"]:not([data-default-theme="legacy"]) {
  --ta-accent: #ECC996;
  --ta-accent-hover: #FF8433;
  --ta-accent-contrast: #24330D;
  --ta-label: #24330D;
}
.ta-donate-widget[data-default-theme^="theme9"]:not([data-default-theme="legacy"]) {
  --ta-accent: #C7E3F6;
  --ta-accent-hover: #B1D7F2;
  --ta-accent-contrast: #24330D;
  --ta-label: #24330D;
}
.ta-donate-widget[data-default-theme^="theme10"]:not([data-default-theme="legacy"]) {
  --ta-accent: #FFF86D;
  --ta-accent-hover: #D2F49E;
  --ta-accent-contrast: #24330D;
  --ta-label: #24330D;
}

/* Border variants (requested) */
.ta-donate-widget[data-default-theme$="_blackborder"]:not([data-default-theme="legacy"]) {
  --ta-border: #000000;
}

/* Hide native radios visually within themed UI */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-option input[type="radio"] {
  display: none;
}

/* Type + frequency rows: segmented control */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-type,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-frequency {
  display: flex;
  border: 1px solid var(--ta-border);
  background: #ffffff;
  overflow: hidden;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-type .ta-donate-option,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-frequency .ta-donate-option {
  flex: 1;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-type .ta-donate-option span,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-frequency .ta-donate-option span {
  display: block;
  padding: 12px 24px;
  background-color: #ffffff;
  color: var(--ta-label);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
  width: 100%;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-type .ta-donate-option + .ta-donate-option span,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-frequency .ta-donate-option + .ta-donate-option span {
  border-left: 1px solid var(--ta-border);
}

/* Optional: only show the outer border (no internal dividers) */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-segment-dividers="outer_only"] .ta-donate-type .ta-donate-option + .ta-donate-option span,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-segment-dividers="outer_only"] .ta-donate-frequency .ta-donate-option + .ta-donate-option span {
  border-left: none;
}


.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-option input[type="radio"]:checked + span {
  background-color: var(--ta-accent);
  color: var(--ta-selected-text, var(--ta-accent-contrast));
}

/* Amount row: wrap (locked) */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: center;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts .ta-donate-option {
  flex: 0 0 auto;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts .ta-donate-option span {
  display: block;
  padding: 12px 18px;
  background-color: #ffffff;
  color: var(--ta-label);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
  border: 1px solid var(--ta-border);
}

/* Amount row: segmented style on desktop (matches type + frequency) */
@media (min-width: 768px) {
  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts {
    flex-wrap: nowrap;
    border: 1px solid var(--ta-border);
    background: #ffffff;
    overflow: hidden;
    justify-content: stretch;
  }

  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts .ta-donate-option {
    flex: 1;
  }

  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts .ta-donate-option span {
    border: none;
    width: 100%;
  }

  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts .ta-donate-option + .ta-donate-option span {
    border-left: 1px solid var(--ta-border);
  }

  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"])[data-segment-dividers="outer_only"] .ta-donate-amounts .ta-donate-option + .ta-donate-option span {
    border-left: none;
  }
}

/* Impact text: responsive-friendly max-width */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-impact {
  color: var(--ta-impact-color, var(--ta-label));
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  width: 100%;
  max-width: min(var(--ta-control-max-width), 52ch);
  margin: 0 auto;
}

/* Custom amount block */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 236px;
  width: 100%;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom-label {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ta-custom-label-color, var(--ta-label));
  font-size: 14px;
  text-align: center;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom {
  padding: 10px 12px;
  font-size: 16px;
  color: var(--ta-label);
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: textfield;
  width: 100%;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom::placeholder {
  color: var(--ta-label);
  opacity: 0.55;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom:focus {
  border-color: var(--ta-label);
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom::-webkit-outer-spin-button,
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-custom[type="number"] {
  -moz-appearance: textfield;
}

/* Submit */
.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-submit {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--ta-accent);
  color: var(--ta-button-text, var(--ta-accent-contrast));
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-submit:hover {
  background-color: var(--ta-accent-hover);
}

@media (max-width: 767px) {
  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-type .ta-donate-option span,
  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-frequency .ta-donate-option span {
    padding: 10px 14px;
  }

  .ta-donate-widget[data-default-theme]:not([data-default-theme="legacy"]) .ta-donate-amounts .ta-donate-option span {
    padding: 10px 14px;
  }
}


/* -----------------------------------------------------------
   Rep A (transparent_slider_split): stabilise horizontal layout by constraining
   impact text measure above 768px (side-by-side panes).
   Target: max readable width ~520px, stepped down across breakpoints.
----------------------------------------------------------- */

.ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact {
  max-width: 740px;
  width: 740px;
  box-sizing: border-box;
}

/* Step down the impact measure to keep wrapping consistent */
@media (max-width: 1200px) {
  .ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact { width: 620px; max-width: 620px; }
}
@media (max-width: 1100px) {
  .ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact { width: 540px; max-width: 540px; }
}
@media (max-width: 1000px) {
  .ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact { width: 400px; max-width: 400px; }
}
@media (max-width: 900px) {
  .ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact { width: 360px; max-width: 360px; }
}
@media (max-width: 820px) {
  .ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact { width: 320px; max-width: 320px; }
}

/* Below 769px the layout stacks; centre the text */
@media (max-width: 768px) {
  .ta-donate-widget.ta-donate--variant-a.donation-slider-minimal .donation-slider-minimal__impact {
    width: auto;
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.donation-slider-minimal__amount-bubble.is-dragging {
  cursor: grabbing;
}

input.donation-slider-minimal__custom-input {
    background: transparent !important;
    font-size: 1.5em !important;
    padding: 0 0 0 0;
    text-align: center;
    color: #ff8433 !important;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.6);
}
