:root {
  --ds-bg: #f9fafb;
  --ds-border: #e5e7eb;
  --ds-accent: #ba2e0c;
  --ds-accent-dark: #9a2509;
  --ds-text-main: #1a1a1a;
  --ds-text-muted: #6b7280;
  --ds-radius: 10px;
  --ds-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.donation-sidebar-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.donation-sidebar-overlay.open {
  display: flex;
}

.donation-sidebar-wrapper,
.donation-sidebar-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.donation-sidebar-wrapper {
  width: 100%;
  background: #ffffff;
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow);
  padding: 20px 18px;
  border: 1px solid var(--ds-border);
  position: relative;
}

.donation-sidebar-overlay .donation-sidebar-wrapper {
  width: 50vw;
  max-width: 480px;
  min-width: 320px;
  height: 100%;
  border-radius: var(--ds-radius) 0 0 var(--ds-radius);
  border-left: none;
}

.donation-sidebar-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #4b5563;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.ds-header {
  margin-bottom: 18px;
}

.ds-main-heading {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-text-main);
  margin-bottom: 6px;
}

.ds-org {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ds-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-text-main);
  line-height: 1.3;
}

.ds-interval-tabs {
  display: flex;
  gap: 0;
  margin: 18px 0 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 4px;
}

.ds-interval-tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  color: var(--ds-text-muted);
  border-radius: 6px;
  transition: all 0.2s;
}

.ds-interval-tab:hover {
  background: #f3f4f6;
}

.ds-interval-tab.active {
  background: var(--ds-accent);
  color: #ffffff;
}

.ds-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ds-amount-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 15px;
  color: var(--ds-text-main);
  text-align: center;
}

.ds-amount-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.ds-amount-btn.active {
  background: #4b5563;
  color: #ffffff;
  border-color: #4b5563;
}

.ds-custom-amount-wrapper {
  margin-bottom: 18px;
}

.ds-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-main);
  margin-bottom: 8px;
}

.ds-custom-amount-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.ds-custom-amount-input-group:focus-within {
  border-color: var(--ds-accent);
}

.ds-currency-symbol {
  padding: 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-text-muted);
  background: #ffffff;
}

.ds-custom-amount-input {
  flex: 1;
  border: none;
  padding: 10px 14px 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-text-main);
  background: transparent;
}

.ds-custom-amount-input:focus {
  outline: none;
}

.ds-custom-amount-input::placeholder {
  color: #d1d5db;
}

.ds-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ds-text-main);
  background: #ffffff;
}

.ds-select:focus {
  outline: none;
  border-color: var(--ds-accent);
  box-shadow: 0 0 0 3px rgba(186, 46, 12, 0.12);
}

.ds-error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.ds-support-text {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-top: 4px;
}

.ds-donate-btn {
  background: var(--ds-accent);
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ds-donate-btn:hover {
  background: var(--ds-accent-dark);
}

.ds-donate-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .donation-sidebar-wrapper {
    padding: 18px 14px;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .ds-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-title {
    font-size: 18px;
  }
}

