/* --- Stripe Dynamic Donations UI --- */
.sdd-wrap {
  box-sizing: border-box;
}
.sdd-wrap * {
  box-sizing: border-box;
}

/* Card */
.sdd-wrap.sdd-dark {
  max-width: 850px;
  margin: 0 auto;
  padding: 28px;
/*
  border-radius: 18px;
  background: #00A0DF;
  color: #ffffff;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  */
}

/* Title */
.sdd-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Sections */
/*
.sdd-section {
  margin: 18px 0;
}
*/

.sdd-label {
  font-size: 15px;
  opacity: .78;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Segmented (Frequency) */
.sdd-seg {
  display: flex;
  gap: 0;
  border-radius: 40px;
  overflow: hidden;
  /*
  border: 1px solid #2a2a2a;
  */
  background: #575756;
}

/* If too many buttons, allow wrap neatly */
@media (max-width: 640px) {
  .sdd-seg {
    flex-wrap: wrap;
    overflow: visible;
    background: transparent;
    border: 0;
    gap: 10px;
  }
}

.sdd-seg-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 12px;
  font-weight: 900;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, background .15s ease;
}

/* Divider lines (desktop segmented look) */
.sdd-seg-btn + .sdd-seg-btn {
  border-left: 1px solid #2a2a2a;
}
@media (max-width: 640px) {
  .sdd-seg-btn + .sdd-seg-btn {
    border-left: 0;
  }
  .sdd-seg-btn {
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: #575756;
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
  }
}

.sdd-seg-btn.is-active {
  background: #3DAE2B;
  color: #141414;
}
.sdd-seg-btn:active {
  transform: scale(0.99);
}

/* Amounts segmented (like Frequency) */
.sdd-amounts {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-radius: 40px;
  overflow: hidden;
  background: #575756;
  margin-bottom: 12px;
}

/* Amount button base */
.sdd-amt-btn {
  flex: 1;
  min-width: 120px;
  padding: 16px 14px;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font-weight: 900;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, background .15s ease;
}

/* Inner dividers (desktop segmented look) */
.sdd-amt-btn + .sdd-amt-btn {
  border-left: 1px solid #2a2a2a;
}

/* Active */
.sdd-amt-btn.is-active {
  background: #3DAE2B;
  color: #141414;
}
.sdd-amt-btn:active {
  transform: scale(0.99);
}

/* Custom amount button: slightly wider + left aligned */
.sdd-custom-btn {
  flex: 1.5;
  text-align: left;
  padding-left: 18px;
}

/* Mobile: wrap into neat tiles (like seg) */
@media (max-width: 860px) {
  .sdd-amounts {
    flex-wrap: wrap;
    overflow: visible;
    background: transparent;
    gap: 10px;
  }

  .sdd-amt-btn + .sdd-amt-btn {
    border-left: 0;
  }

  .sdd-amt-btn {
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: #575756;
    min-width: 0;
    flex: 1 1 calc(33.33% - 10px);
  }

  .sdd-custom-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .sdd-amt-btn {
    flex: 1 1 calc(50% - 10px);
  }
}

/* Inputs */
.sdd-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 40px;
  border: 1px solid #2a2a2a;
  background: #ffffff;
  color: #000000;
  margin-bottom: 10px;
  outline: none;
  font-weight: 600;
}
.sdd-input::placeholder {
  color: rgba(113, 99, 99, 0.5);
}
.sdd-input:focus {
  border-color: #4a4a4a;
}

/* Donate button */
.sdd-donate-btn {
  width: 100%;
  padding: 18px 16px;
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 1000;
  font-size: 22px;
  background: #3DAE2B;
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(10,127,63,.25);
  transition: filter .15s ease, transform .05s ease;
}
.sdd-donate-btn:hover {
  filter: brightness(1.06);
}
.sdd-donate-btn:active {
  transform: scale(0.995);
}
.sdd-donate-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  box-shadow: none;
}

/* Error message */
.sdd-msg {
  margin-top: 12px;
  color: #ff6b6b;
  font-weight: 700;
}


/*===============================toggle===============================*/
/* --- Anonymous toggle switch --- 
.sdd-anon-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 0 0 12px;
}
  */

.sdd-anon-row{
  margin: 0 0 12px;
}

/* Make text + toggle sit next to each other */
.sdd-anon-label{
  display: inline-flex;
  align-items: center;
  gap: 12px;        /* controls distance between text and toggle */
  cursor: pointer;
  font-weight: 800;
  user-select: none;
}

.sdd-anon-text{
  opacity: .9;
}

.sdd-anon-text{
  font-weight:800;
  opacity:.9;
}

/* Toggle wrapper */
.sdd-toggle{
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

/* Hide the actual checkbox but keep it accessible */
.sdd-toggle input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Track */
.sdd-toggle-ui{
  width: 54px;
  height: 32px;
  background: #575756;
  border: 1px solid #575756;
  border-radius: 999px;
  position: relative;
  transition: background .18s ease, border-color .18s ease, filter .18s ease;
  display: inline-block;
}

/* Knob */
.sdd-toggle-ui::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  transition: left .18s ease, transform .18s ease;
}

/* ON state */
.sdd-toggle input:checked + .sdd-toggle-ui{
  background: #3DAE2B;
  border-color: #3DAE2B;
}

.sdd-toggle input:checked + .sdd-toggle-ui::after{
  left: 26px;
}

/* Focus ring for keyboard users 
.sdd-toggle input:focus + .sdd-toggle-ui{
  outline: 2px solid rgba(242,181,51,.55);
  outline-offset: 2px;
}
*/