/* Professional donation cart drawer + checkout helpers */

.ou-cart-badge {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.35rem;
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #381830;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.3rem;
  line-height: 1;
  box-shadow: 0 0 0 2px #381830;
}

.ou-mini-cart__overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.35s;
}
.ou-mini-cart__overlay--show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.ou-mini-cart {
  --ou-cart-off: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 96;
  width: min(420px, 100vw);
  transform: translate3d(var(--ou-cart-off), 0, 0);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
  visibility: hidden;
  will-change: transform;
  backface-visibility: hidden;
}
html[dir="rtl"] .ou-mini-cart {
  --ou-cart-off: -100%;
}
.ou-mini-cart--show {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
}
body.ou-mini-cart-open {
  overflow: hidden;
}

.ou-mini-cart__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
}
html[dir="rtl"] .ou-mini-cart__shell {
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
}

.ou-mini-cart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid #eef2f7;
}
.ou-mini-cart__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
}
.ou-mini-cart__head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}
.ou-mini-cart__close {
  border: 0;
  background: #f3f4f6;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
}
.ou-mini-cart__close:hover { background: #e5e7eb; color: #111827; }

.ou-mini-cart__body {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1.1rem 1rem;
}

.ou-mini-cart__error {
  margin: 0.25rem 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #fecaca;
  border-radius: 0.65rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
  line-height: 1.45;
}

.ou-mini-cart__empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.ou-mini-cart__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  color: #381830;
}
.ou-mini-cart__empty h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.ou-mini-cart__empty p {
  margin: 0 0 1.25rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ou-mini-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ou-mini-cart__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #eef2f7;
  border-radius: 0.9rem;
  background: #fafbfc;
}
.ou-mini-cart__item-title {
  display: block;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.35;
}
.ou-mini-cart__item-title:hover { color: #381830; }
.ou-mini-cart__item-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}
.ou-mini-cart__remove {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.ou-mini-cart__remove:hover { color: #dc2626; }

.ou-mini-cart__foot {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid #eef2f7;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ou-mini-cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  color: #374151;
  font-size: 0.95rem;
}
.ou-mini-cart__total strong {
  font-size: 1.2rem;
  color: #111827;
}

.ou-mini-cart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.7rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ou-mini-cart__btn--primary {
  background: #381830;
  color: #fff;
}
.ou-mini-cart__btn--primary:hover { background: #2a1530; color: #fff; }
.ou-mini-cart__btn--ghost {
  background: #fff;
  color: #381830;
  border: 1px solid #e5e7eb;
}
.ou-mini-cart__btn--ghost:hover { border-color: #381830; }

.ou-cart-toast {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  background: #111827;
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}
.ou-cart-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Cart / checkout page */
.ou-donate-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.ou-donate-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 600;
}
.ou-donate-steps__num {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.8rem;
}
.ou-donate-steps__item.is-active { color: #381830; }
.ou-donate-steps__item.is-active .ou-donate-steps__num {
  background: #381830;
  color: #fff;
}
.ou-donate-steps__item.is-done { color: #059669; }
.ou-donate-steps__item.is-done .ou-donate-steps__num {
  background: #d1fae5;
  color: #047857;
}
.ou-donate-steps__sep {
  width: 1.5rem;
  height: 1px;
  background: #d1d5db;
}

.ou-checkout-method {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ou-checkout-method:has(input:checked) {
  border-color: #381830;
  background: #faf7fa;
  box-shadow: 0 0 0 1px #381830;
}

@media (max-width: 640px) {
  .ou-mini-cart { width: 100vw; }
}

/* Home / appeals cards — breathing room for Donate + carousel arrows */
#appeals .ou-appeal-card__cta,
#appeals-list .ou-appeal-card__cta {
  margin-top: 1.5rem !important;
}
#appeals .ou-home-appeals-desktop .flex.items-center {
  gap: 1.25rem;
}
#appeals .ou-home-appeals-desktop button[aria-label="previous"],
#appeals .ou-home-appeals-desktop button[aria-label="next"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0;
}
