/* Optional extra tweaks */
.btn {
  background: #a4b6fd;
  color: #f6f6f6
}


/* === Extracted from index.html on 2025-10-19 15:36 === */
html {
  scroll-behavior: smooth
}

.tooltip .tip {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 10px);
  background: #1a370b;
  color: #f6f6f6;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: .18s;
  white-space: nowrap;
  z-index: 20
}

.tooltip .tip::after {
  content: "";
  position: absolute;
  inset-inline-end: 12px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #1a370b
}

.tooltip:hover .tip {
  opacity: 1;
  visibility: visible
}

.pill {
  display: inline-block;
  border: 1px solid #1a370b;
  border-radius: .75rem;
  padding: .5rem .75rem;
  font-weight: 700;
  cursor: pointer
}

.pill.sel {
  background: #a4b6fd;
  color: #f6f6f6;
  border-color: #a4b6fd
}

.icon-wrap svg {
  width: 64px;
  height: 64px
}

#freqToggle button {
  border: none;
}

/* Clickability hardening */
#callModal {
  pointer-events: none;
}

#callModal.flex {
  pointer-events: auto;
}

#callModal.hidden {
  display: none !important;
}

.tooltip .tip {
  pointer-events: none;
}

main {
  position: relative;
  z-index: 0;
}

.pill,
button,
[role="button"] {
  pointer-events: auto;
}

/* Splide slider polish */
.splide__arrow {
  opacity: 1;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  color: #1a370b !important;
  transition: all 0.2s ease;
}

.splide__arrow:hover {
  background: #f8fafc !important;
  transform: scale(1.05);
}

.splide__arrow--prev {
  left: -1rem;
}

.splide__arrow--next {
  right: -1rem;
}

/* Edge fade (desktop) */
.slider-fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
}

.slider-fade.start {
  inset-inline-start: 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.slider-fade.end {
  inset-inline-end: 0;
  background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

/* Decision meters */
.meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .5rem;
}

.meter {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: #4b5563;
}

.meter .dots {
  display: inline-flex;
  gap: 4px;
}

.meter .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #1a370b;
}

.meter .dot.on {
  background: #a4b6fd;
}

.badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: .2rem .45rem;
  border-radius: .5rem;
}

/* === Requested tweaks === */
/* meters vertical + orange dots */
.meters {
  display: flex !important;
  flex-direction: column !important;
  gap: .5rem !important;
  margin-top: .5rem;
}

.meter .dot.on {
  background: #f59e0b !important;
}

/* amber-500 */
/* ensure equal-height cards and bottom-aligned add button */
#cardsTrack>.card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#cardsTrack>.card .add-wrap {
  margin-top: auto !important;
}

/* hide any edge-fade overlays completely */
.slider-fade,
.splide__pagination {
  display: none !important;
}

/* FAQ video embed fallback when Tailwind isn't present */
.faq-video-card {
  overflow: hidden;
  background: #000;
}

.faq-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.faq-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* A4 preview proportions + decorative border */
#certificatePreview {
  position: relative;
  aspect-ratio: 210 / 297;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 0;
  background-image: url("frame.png");
  background-size: contain;
  background-repeat: no-repeat;
  padding: 0;
  margin-top: auto;
}

#certificatePreview[data-template="memorial"]::after {
  border-color: rgba(3, 105, 216, 0.5);
}

#certificatePreview .certificate-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  margin: 0rem 1rem;
  padding: 1.25rem;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.certificate-inner {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent;
  flex: 1;
  min-height: 0;
}

#certificatePreview .certificate-frame {
  display: flex;
  flex-direction: column;
}

.certificate-footer-logo {
  margin-top: auto;
  padding-bottom: 1.5rem;
}


.corner-tl {
  top: -2px;
  left: -2px;
}

.corner-tr {
  top: -2px;
  right: -2px;
}

.corner-bl {
  bottom: -2px;
  left: -2px;
}

.corner-br {
  bottom: -2px;
  right: -2px;
}

.certificate-logo {
  width: 200px;
  max-width: 80%;
  display: block;
  margin: 0 auto 0.25rem;
}

.certificate-date {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

#certTitle {
  font-size: 2.5rem;
  color: #008596;
  line-height: 1.1;
  margin: 0.25rem 0;
}

#certName {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
}

#certSubtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

#certSubline {
  font-size: 1rem;
  color: #111111;
  font-weight: 700;
  text-align: center;
  white-space: pre-line;
}

#certificatePreview .text-slate-500 {
  color: #000000 !important;
}

.certificate-message {
  min-height: 1.5rem;
  margin-top: 0;
}

.certificate-amount {
  min-height: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.certificate-footer-logo {
  width: 220px;
  max-width: 80%;
  display: block;
  background: transparent;
}

.certificate-footer {
  margin-top: auto;
  padding: 0 2rem 0.5rem;
  display: flex;
  justify-content: center;
}

.cert-tab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: transparent;
}

#certControlsTabs {
  background: #d7deeb;
  padding-right: 0;
  padding-bottom: 0;
}

.cert-tab-pills .cert-tab-pill {
  position: relative;
  border: none;
  border-radius: 14px 14px 0 0;
  padding: 0.75rem 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #4338ca;
  background: #ffc800;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 140px;
  text-align: center;
}

.cert-tab-pill:hover {
  background: #fffef7;
  color: #312e81;
}

.cert-tab-pill.active {
  background: #fffef7;
  color: #1e1b4b;
  box-shadow: none;
  margin-bottom: 0;
  z-index: 1;
  transform: none;
  border: none;
}

#certTemplateDescription {
  background: #fffef7;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #0369d8;
}

#certControlsMain .cert-amount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

#certControlsMain .cert-amount-row label {
  font-size: 0.85rem;
  color: #475569;
}

#certAmountInput {
  background: #ffc800 !important;
  background-color: #ffc800 !important;
  color: #1e1b4b;
  border: none;
  border-radius: 9999px;
  font-weight: 800;
  text-align: center;
  width: min(11ch, 100%);
  min-width: 8ch;
  max-width: 200px;
  padding: 0.75rem 1.5rem;
}

#certAmountInput::placeholder {
  color: #1e1b4b;
  opacity: 0.75;
}

#certControlsMain input,
#certControlsMain select,
#certControlsMain textarea {
  background: #ffffff !important;
  color: #000000;
  border: 1px solid #000000;
}

#certControlsMain #certAmountInput {
  background: #ffc800 !important;
  background-color: #ffc800 !important;
}

#dedMsg {
  min-height: 140px;
  resize: vertical;
}

*,
::before,
::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #f6f6f6;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #f6f6f6;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */
*,
::after,
::before {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #1a370b
}

::after,
::before {
  --tw-content: ''
}

:host,
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent
}

body {
  margin: 0;
  line-height: inherit
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit
}

a {
  color: inherit;
  text-decoration: inherit
}

b,
strong {
  font-weight: bolder
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em
}

small {
  font-size: 80%
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sub {
  bottom: -.25em
}

sup {
  top: -.5em
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0
}

button,
select {
  text-transform: none
}

button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none
}

:-moz-focusring {
  outline: auto
}

:-moz-ui-invalid {
  box-shadow: none
}

progress {
  vertical-align: baseline
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px
}

::-webkit-search-decoration {
  -webkit-appearance: none
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit
}

summary {
  display: list-item
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0
}

fieldset {
  margin: 0;
  padding: 0
}

legend {
  padding: 0
}

menu,
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0
}

dialog {
  padding: 0
}

textarea {
  resize: vertical
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af
}

[role=button],
button {
  cursor: pointer
}

:disabled {
  cursor: default
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle
}

img,
video {
  max-width: 100%;
  height: auto
}

[hidden]:where(:not([hidden=until-found])) {
  display: none
}

.fixed {
  position: fixed
}

.absolute {
  position: absolute
}

.relative {
  position: relative
}

.sticky {
  position: sticky
}

.inset-0 {
  inset: 0px
}

.-end-4 {
  inset-inline-end: -1rem
}

.-start-4 {
  inset-inline-start: -1rem
}

.right-2 {
  right: 0.5rem
}

.top-0 {
  top: 0px
}

.top-1\/2 {
  top: 50%
}

.top-2 {
  top: 0.5rem
}

.z-10 {
  z-index: 10
}

.z-20 {
  z-index: 20
}

.z-50 {
  z-index: 50
}

.mx-auto {
  margin-left: auto;
  margin-right: auto
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem
}

.mb-1 {
  margin-bottom: 0.25rem
}

.mb-2 {
  margin-bottom: 0.5rem
}

.mb-3 {
  margin-bottom: 0.75rem
}

.mb-4 {
  margin-bottom: 1rem
}

.mb-6 {
  margin-bottom: 1.5rem
}

.ms-2 {
  margin-inline-start: 0.5rem
}

.mt-1 {
  margin-top: 0.25rem
}

.mt-2 {
  margin-top: 0.5rem
}

.mt-3 {
  margin-top: 0.75rem
}

.mt-4 {
  margin-top: 1rem
}

.mt-6 {
  margin-top: 1.5rem
}

.mt-auto {
  margin-top: auto
}

.block {
  display: block
}

.flex {
  display: flex
}

.inline-flex {
  display: inline-flex
}

.grid {
  display: grid
}

.hidden {
  display: none
}

.aspect-\[16\/9\] {
  aspect-ratio: 16/9
}

.h-10 {
  height: 2.5rem
}

.h-14 {
  height: 3.5rem
}

.h-2 {
  height: 0.5rem
}

.h-8 {
  height: 2rem
}

.h-9 {
  height: 2.25rem
}

.h-full {
  height: 100%
}

.h-px {
  height: 1px
}

.w-10 {
  width: 2.5rem
}

.w-14 {
  width: 3.5rem
}

.w-2 {
  width: 0.5rem
}

.w-8 {
  width: 2rem
}

.w-9 {
  width: 2.25rem
}

.w-\[280px\] {
  width: 280px
}

.w-full {
  width: 100%
}

.min-w-\[120px\] {
  min-width: 120px
}

.max-w-6xl {
  max-width: 72rem
}

.max-w-md {
  max-width: 28rem
}

.flex-none {
  flex: none
}

.grow {
  flex-grow: 1
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

.snap-x {
  scroll-snap-type: x var(--tw-scroll-snap-strictness)
}

.snap-mandatory {
  --tw-scroll-snap-strictness: mandatory
}

.snap-start {
  scroll-snap-align: start
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr))
}

.flex-col {
  flex-direction: column
}

.flex-wrap {
  flex-wrap: wrap
}

.place-content-center {
  place-content: center
}

.items-start {
  align-items: flex-start
}

.items-end {
  align-items: flex-end
}

.items-center {
  align-items: center
}

.justify-center {
  justify-content: center
}

.justify-between {
  justify-content: space-between
}

.gap-2 {
  gap: 0.5rem
}

.gap-3 {
  gap: 0.75rem
}

.gap-4 {
  gap: 1rem
}

.gap-5 {
  gap: 1.25rem
}

.gap-6 {
  gap: 1.5rem
}

.gap-8 {
  gap: 2rem
}

.space-y-1> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))
}

.space-y-2> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse))
}

.space-y-3> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse))
}

.space-y-5> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse))
}

.overflow-hidden {
  overflow: hidden
}

.overflow-x-auto {
  overflow-x: auto
}

.scroll-smooth {
  scroll-behavior: smooth
}

.whitespace-normal {
  white-space: normal
}

.break-words {
  overflow-wrap: break-word
}

.rounded-2xl {
  border-radius: 1rem
}

.rounded-full {
  border-radius: 9999px
}

.rounded-lg {
  border-radius: 0.5rem
}

.rounded-xl {
  border-radius: 0.75rem
}

.border {
  border-width: 0px
}

.border-2 {
  border-width: 1px
}

.border-dashed {
  border-style: dashed
}

.border-slate-200 {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1))
}

.border-white\/30 {
  border-color: rgb(255 255 255 / 0.3)
}

.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6)
}

.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1))
}

.bg-indigo-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1))
}

.bg-indigo-700 {
  --tw-bg-opacity: 1;
  background-color: #0369D8
}

.bg-slate-100 {
  --tw-bg-opacity: 1;
  background-color: #d7deeb
}

.bg-slate-200 {
  --tw-bg-opacity: 1;
  background-color: #d7deeb
}

.bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: #fffef7
}

.bg-white\/10 {
  background-color: rgb(254 251 236 / 0.1)
}

.bg-white\/90 {
  background-color: rgb(254 251 236 / 0.9)
}

.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1))
}

.p-4 {
  padding: 1rem
}

.p-5 {
  padding: 1.25rem
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem
}

.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem
}

.pb-2 {
  padding-bottom: 0.5rem
}

.pt-0 {
  padding-top: 0px
}

.text-center {
  text-align: center
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem
}

.font-black {
  font-weight: 900
}

.font-bold {
  font-weight: 700
}

.font-extrabold {
  font-weight: 800
}

.font-semibold {
  font-weight: 600
}

.leading-6 {
  line-height: 1.5rem
}

.leading-none {
  line-height: 1
}

.leading-snug {
  line-height: 1.375
}

.leading-tight {
  line-height: 1.25
}

.text-indigo-700 {
  --tw-text-opacity: 1;
  color: #0369D8
}

.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1))
}

.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1))
}

.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1))
}

.text-slate-900 {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1))
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1))
}

.text-yellow-900 {
  --tw-text-opacity: 1;
  color: rgb(113 63 18 / var(--tw-text-opacity, 1))
}

.underline {
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}

.hover\:text-indigo-700:hover {
  --tw-text-opacity: 1;
  color: #0369D8
}

.hover\:shadow-xl:hover {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

@media (max-width: 767px) {
  .splide__pagination {
    bottom: -1.5rem;
  }

  .certificate-inner {
    padding: 1rem;
    gap: 0.35rem;
  }

  #certTitle {
    font-size: 1rem;
  }

  #certName {
    font-size: 1.5rem;
  }

  #certSubtitle,
  #certSubline {
    font-size: 0.8rem;
  }

  #hero-donation-box {
    order: -1;
  }

  .cert-tab-pills .cert-tab-pill {
    min-width: 120px;
    padding: 0.75rem 1rem
  }
}

@media (min-width: 640px) {
  .sm\:hidden {
    display: none
  }

  .sm\:w-\[320px\] {
    width: 320px
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (min-width: 768px) {
  .md\:col-span-3 {
    grid-column: span 3 / span 3
  }

  .md\:col-span-7 {
    grid-column: span 7 / span 7
  }

  .md\:flex {
    display: flex
  }

  .md\:w-\[360px\] {
    width: 360px
  }

  .md\:grid-cols-10 {
    grid-template-columns: repeat(10, minmax(0, 1fr))
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1
  }

  .md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem
  }

  .mobile-nav,
  #mobileMenuBtn {
    display: none !important;
  }
}

@media (max-width: 768px) {

  /* Stack hero content on mobile */
  #donation-page-main section:first-child>.grid {
    grid-template-columns: 1fr;
  }

  /* Freq toggle: ensure it doesn't overflow */
  #freqToggle {
    max-width: 100%;
  }

  #freqToggle button {
    min-width: 90px;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
  }

  /* Impact boxes: stack on very small screens */
  .grid.grid-cols-1.sm\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  /* Donation box padding tighter */
  .rounded-2xl.shadow-2xl .p-5 {
    padding: 1rem;
  }

  /* Hero heading size down */
  h1.text-3xl {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  /* Certificate section: stack */
  #dedication .grid {
    grid-template-columns: 1fr;
  }

  /* About section: stack */
  #about .grid {
    grid-template-columns: 1fr;
  }

  /* FAQ section: stack */
  #faq .grid {
    grid-template-columns: 1fr;
  }

  /* Why section: stack */
  #why .grid {
    grid-template-columns: 1fr;
  }
}


/* === Accessibility focus styles (2025-10-19 15:38) === */

.bg-indigo-700:focus-visible,
.bg-indigo-800:focus-visible,
.bg-black:focus-visible {
  outline-color: #f6f6f6;
}


/* === Slider + cards requests === */
#cardsTrack,
.splide__track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#cardsTrack::-webkit-scrollbar,
.splide__track::-webkit-scrollbar {
  display: none;
}

.meters {
  display: none !important;
}

#cardsTrack .card h3,
.splide__list h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.75rem;
  min-height: calc(1.75rem * 2);
}


/* === Visual refresh: warm palette & typography === */
/* === Shakuf-style palette === */
:root {
  --brand: #FF5F00;
  /* צהוב חם */
  --brand-ink: #1a370b;
  /* טקסט על צהוב */
  --ink-1: #0b1220;
  /* טקסט ראשי */
  --ink-2: #334155;
  /* טקסט משני */
  --paper: #f6f6f6;
  --tint: #fff6bf;
  /* רקע צהבהב רך */
  --line: #e6eaf0;
}

/* רקע כללי חם */
body {
  font-family: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Open Sans", sans-serif;
  color: var(--ink-1);
  background:
    radial-gradient(1100px 700px at 80% -10%, var(--tint) 0%, rgba(255, 241, 118, 0) 45%),
    linear-gradient(180deg, #fffef7 0%, #f6f6f6 65%);
}

/* כותרת עליונה עם קו מותג */
header {
  background: rgba(254, 251, 236, .96);
  border-bottom: 0px solid var(--brand)
}

/* כפתור ראשי – צהוב בטוח */
.btn,
.bg-indigo-700 {
  background: var(--brand) !important;
  color: var(--brand-ink) !important;
  border: 1px solid #ffcc00;
}

.btn:hover,
.bg-indigo-700:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* קפסולות סכומים */
.pill {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: .6rem .85rem;
  font-weight: 800;
  background: #f6f6f6
}

.pill.sel {
  background: #FF5F00 !important;
  color: var(--brand-ink);
  border-color: #ffcc00;
}

/* כרטיסי הסליידר */
.card {
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #f6f6f6;
}

.card:hover {
  transform: translateY(-2px);
}

.card .head {
  border-bottom: 2px solid var(--line)
}

.card .icon-wrap {
  background: var(--tint)
}

.card .price {
  white-space: nowrap;
  direction: ltr;
  font-weight: 900;
  color: #1a370b
}

.splide__arrows--rtl .splide__arrow--next {
  left: -2em;
}

.splide__arrows--rtl .splide__arrow--prev {
  right: -2em;
}

/* שמירות פונקציונליות קיימות (כבר אצלך): */
#cardsTrack,
.splide__track {
  scrollbar-width: none;
  -ms-overflow-style: none
}

#cardsTrack::-webkit-scrollbar,
.splide__track::-webkit-scrollbar {
  display: none
}

#cardsTrack .card h3,
.splide__list .card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.75rem;
  min-height: calc(1.75rem * 2)
}

body {
  background: radial-gradient(1200px 800px at 70% -10%, var(--bg-2), transparent 40%),
    linear-gradient(180deg, var(--bg-1), #f6f6f6);
  color: var(--ink-1);
}

h1,
h2,
h3 {
  letter-spacing: -0.01em
}

h1 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6)
}

section>.max-w-6xl {
  scroll-margin-top: 80px
}

.bg-indigo-700 {
  background-image: linear-gradient(180deg, #5b4ce7, var(--brand-1))
}

.bg-indigo-700:hover {
  filter: brightness(1.03);
}

.card,
.rounded-xl,
.rounded-2xl {
  border-color: #d7deeb
}

.card:hover {
  transform: translateY(-1px)
}

.card .price {
  white-space: nowrap;
  direction: ltr
}

.text-slate-800 {
  color: var(--ink-2)
}

.pill.sel {
  background: var(--brand-1);
  border-color: var(--brand-1);
  color: #f6f6f6
}

header,
.border-b-2 {
  border-bottom: 1px solid #d7deeb;
}

/* === APPENDED: Warm, Trustworthy Premium Theme (2025-10-19) === */
/* Keeps Tailwind + existing helpers intact, only refines look & feel. */

:root {
  --brand: #FF5F00;
  /* warm gold */
  --brand-ink: #1a370b;
  /* ink on gold */
  --ink-1: #0b1220;
  /* primary text */
  --ink-2: #334155;
  /* secondary text */
  --paper: #f6f6f6;
  --tint: #fff6bf;
  /* soft yellow background tint */
  --line: #e6eaf0;
}

/* Global typography & background */
html {
  scroll-behavior: smooth
}

body {
  font-family: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Open Sans", sans-serif;
  color: var(--ink-1);
  background:
    radial-gradient(1100px 700px at 80% -10%, var(--tint) 0%, rgba(255, 241, 118, 0) 45%),
    linear-gradient(180deg, #fffef7 0%, #f6f6f6 65%);
}

/* Header with brand underline */
header {
  background: #fffef7;
  border-bottom: 0px solid var(--brand)
}

/* Primary buttons: warm gold, accessible focus */
.btn,
.bg-indigo-700 {
  background: var(--brand) !important;
  color: var(--brand-ink) !important;
  border: 0px solid #ffcc00;
}

.btn:hover,
.bg-indigo-700:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.bg-indigo-700:focus-visible {
  outline-color: #f6f6f6
}

/* Amount capsules */
.pill {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: .6rem .85rem;
  font-weight: 800;
  background: #f6f6f6
}

.pill.sel {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: #ffcc00;
}

/* Cards (slider) */
.card {
  border: 0px solid var(--line);
  border-radius: 20px;
  background: #f6f6f6;
}

.card:hover {
  transform: translateY(-2px);
}

.card .head {
  border-bottom: 2px solid #d7deeb
}

.card .icon-wrap {
  background: var(--tint)
}

.card .price {
  white-space: nowrap;
  direction: ltr;
  font-weight: 900;
  color: #1a370b
}

/* Slider arrows */
.splide__arrow {
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: #1a370b !important;
}

/* Section rhythm & minor polish */
section>.max-w-6xl {
  scroll-margin-top: 80px
}

h1,
h2,
h3 {
  letter-spacing: -0.01em
}

.text-slate-800 {
  color: var(--ink-2)
}

/* Keep slider scrollbars hidden (re-asserted) */
#cardsTrack,
.splide__track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#cardsTrack::-webkit-scrollbar,
.splide__track::-webkit-scrollbar {
  display: none;
}

#cardsTrack>.card,
.splide__slide>.card,
.splide__slide .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tooltips remain non-blocking */
.tooltip .tip {
  pointer-events: none;
}


/* === Hover: add button turns yellow background (per request) === */
.add-wrap .btn:hover,
.add-wrap .btn.btn-primary:hover {
  background: #FFC800 !important;
  /* amber-400 */
  color: #1a370b !important;
  /* slate-900 for contrast */
  border-color: #FFC800 !important;
  /* amber-300 */
}


/* === Slider add button: small & subtle === */
.add-wrap .btn,
.add-wrap .btn.btn-primary {
  font-weight: 800;
  font-size: 0.875rem;
  /* text-sm */
  padding: 0.5rem 0.75rem;
  /* py-2 px-3 */
  border-radius: 0.75rem;
  /* rounded-xl */
  background: #ffcc00 !important;
  color: #1a370b !important;
  /* slate-900 */
  border: 0px solid #1a370b !important;
  /* slate-200 */
}

.add-wrap .btn:hover,
.add-wrap .btn.btn-primary:hover {
  background: #FF5F00 !important;
  /* amber-400 */
  color: #fffef7 !important;
}

.add-wrap .btn:focus-visible {
  outline: 0px solid #1a370b;
  outline-offset: 0px;
}


/* === Palette Override (Locallista) — {'bg_main': '#f6f6f6', 'bg_second': '#FFC800', 'text': '#1a370b', 'accent': '#a4b6fd'} === */
:root {
  --color-bg-main: #f6f6f6;
  --color-bg-second: #FFC800;
  --color-text: #1a370b;
  --color-accent: #a4b6fd;
  --color-border: #1a370b1F;
  /* ~12% alpha if supported */
}

html,
body {
  background: var(--color-bg-main) !important;
  color: var(--color-text) !important;
}

/* Buttons & pills */
.btn,
.btn-primary,
button,
.pill.sel,
.pill:hover {
  background: #fffef7;
  color: var(--color-text) !important;
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
button:hover {
  background: var(--color-bg-second) !important;
  color: var(--color-text) !important;
}

.pill {
  background: transparent !important;
  color: var(--color-text) !important;
  border-color: var(--color-text) !important;
}

/* Inputs */
input,
select,
textarea {
  background: var(--color-bg-main) !important;
  color: var(--color-text) !important;
  border-color: var(--color-text) !important;
}

.tooltip .tip {
  background: var(--color-text) !important;
  color: var(--color-bg-main) !important;
  border-color: var(--color-text) !important;
}

.tooltip .tip::after {
  border-top-color: var(--color-text) !important;
}

/* Alternating sections that used to be tinted — use second background */
.section-alt,
.bg-accent,
.bg-alt {
  background: var(--color-bg-second) !important;
  color: var(--color-text) !important;
}

/* Cards */
.card,
.price-card,
.panel {
  background: #fffef7;
  color: var(--color-text) !important;
}

/* Header/footer banners */
header,
footer {

  color: var(--color-text) !important;
}



/* === OVERRIDES: Remove all shadows globally === */
.shadow,
.shadow-lg,
.shadow-xl,
.shadow-2xl,
.hover\:shadow-xl:hover,
.card,
.rounded-xl,
.rounded-2xl,
.rounded-lg,
.panel,
.price-card,
button,
.btn,
.pill,
header,
footer,
.tooltip .tip {
  box-shadow: none !important;
}

* {
  --tw-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: none !important;
}


/* === OVERRIDES: Orange primary buttons text color === */
.btn,
.bg-indigo-700 {
  color: #fffef7 !important;
}


/* === OVERRIDES: Donation box container outer line/shadow removed === */
#donation,
#donationBox,
.donation,
.donation-box,
.price-card.donation,
.panel.donation {
  border: 0 !important;
  box-shadow: none !important;
}



/* === OVERRIDES: Pill non-selected === */
.pill {
  border: none !important;
  background: #FFC800 !important;
  color: #1a370b !important;
}

.pill:hover {
  background: #FF5F00 !important;
  color: #d7deeb !important;
  border: none !important;
}


/* === OVERRIDES: Pill selected / hover === */
.pill.sel,
.pill:active,
.pill:hover.sel {
  border: none !important;
  color: #fffef7 !important;
}


/* === OVERRIDES: Remove border color for rounded-2xl shadow-2xl bg-white border-2 border-slate-200 === */
.rounded-2xl.shadow-2xl.bg-white.border-2.border-slate-200 {
  border-color: transparent !important;
}



/* === OVERRIDES: #moreWays — remove background and border === */
#moreWays {
  background: transparent !important;
  border: none !important;
  white-space: normal;
}


/* === OVERRIDES: dashed rounded block border color === */
.border-2.border-dashed.rounded-2xl.p-4.text-center.bg-white {
  border-color: #d7deeb !important;
}


/* === OVERRIDES: header row border tweak === */
.p-5.border-b-2.border-slate-200.flex.items-center.justify-between {
  border: none !important;
  border-bottom: 1px dashed #d7deeb !important;
}


/* === OVERRIDES: green accents === */
.bg-emerald-500 {
  background-color: #00A165 !important;
}

.text-emerald-500 {
  color: #00A165 !important;
}

.border-emerald-500 {
  border-color: #00A165 !important;
}

/* dot helpers sometimes use .dot or .status-dot */
.dot.green,
.status-dot.green,
.dot.success,
.status-dot.success {
  background-color: #00A165 !important;
}


/* === OVERRIDES: Secure transaction tooltip === */
#secureTransaction.tooltip .tip,
.secure-transaction.tooltip .tip,
.tooltip.secure .tip,
#secureTransaction .tip,
.secure-transaction .tip {
  background: #00A165 !important;
  border-color: #00A165 !important;
  color: #ffffff !important;
}

#secureTransaction .tip::after,
.secure-transaction .tip::after,
.tooltip.secure .tip::after {
  border-top-color: #00A165 !important;
}

.rounded-xl img {
  border-radius: 20px;
}

/* --- Fix illustration scaling inside "why" section --- */
.illustration {
  position: relative;
}

.illustration img {
  position: static !important;
  width: 100%;
  height: auto;
  object-fit: contain !important;
  /* keep full image visible */
  display: block;
  margin: 0 auto;
}

.illustration {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Why-section illustrations: make thumbs shallower and fit --- */
.illustration {
  position: relative;
  aspect-ratio: 16 / 9;
  /* shallower than 4:3 */
  max-height: 170px;
  /* keeps box tight on desktop */
  overflow: hidden;
}

/* Mobile can tolerate a touch more height */
@media (max-width: 639.98px) {
  .illustration {
    max-height: 190px;
  }
}

.illustration img {
  position: static !important;
  /* cancel absolute from HTML */
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  /* no cropping */
  display: block;
  border-radius: 1rem;
  /* match wrapper rounding */
}

.font-extrabold.text-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

#faq {
  background-color: #fffef7;
}

footer {
  background-color: #00A165 !important;
  color: #fffef7 !important;
}

/* FAQ individual question background */
#faq details {
  background-color: #FFC800;
  border-radius: 12px;
  /* keeps the rounded look */
  padding: 1rem;
  /* some inner spacing */
  margin-bottom: 1rem;
  /* space between questions */
}

/* Optional: style summary text inside */
#faq details summary {
  font-weight: 700;
  cursor: pointer;
}

/* === Mobile hamburger menu === */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text, #1a370b);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 3px 0;
}

/* Animate to X when open */
#mobileMenuBtn.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobileMenuBtn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobileMenuBtn.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fffef7;
  padding: 0 1rem;
  border-top: 1px solid #d7deeb;
}

.mobile-nav.open {
  max-height: 400px;
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text, #1a370b);
  border-bottom: 1px solid #e6eaf0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #FF5F00;
}


/* === Mobile responsive: prevent overflow === */
html,
body {
  overflow-x: hidden;
}

#donation-page-main {
  overflow-x: hidden;
}

/* Grid children should not overflow */
#donation-page-main .grid>* {
  min-width: 0;
}


/* === Summary Table Styles === */
.summary-table-header {
  display: grid;
  grid-template-columns: 1.2fr 100px 70px 30px;
  gap: 8px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 8px;
}

/* Align price header with price content */
.summary-table-header span:nth-child(3) {
  text-align: right;
}

/* Center qty header with qty controls */
.summary-table-header span:nth-child(2) {
  text-align: center;
}

.summary-table-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-table-row {
  display: grid;
  grid-template-columns: 1.2fr 100px 70px 30px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.summary-table-row:hover {
  border-color: #cbd5e1;
  background-color: #fbfcfd;
}

.summary-cell-title {
  color: #1e293b;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-cell-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #00A165;
  color: #fff;
  border-color: #00A165;
}

.qty-num {
  font-weight: 700;
  color: #0f172a;
  min-width: 14px;
  text-align: center;
}

.summary-cell-price {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  direction: ltr;
}

.summary-cell-remove {
  display: flex;
  justify-content: flex-end;
}

.remove-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.15rem;
  border-radius: 50%;
  transition: all 0.2s;
  cursor: pointer;
}

.remove-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* === Loader / Spinner === */
.summary-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00A165;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 639px) {
  .summary-table-header {
    grid-template-columns: 1fr 85px 65px 25px;
    font-size: 0.75rem;
    padding: 6px 8px;
    gap: 4px;
  }

  .summary-table-row {
    grid-template-columns: 1fr 85px 65px 25px;
    padding: 8px;
    font-size: 0.85rem;
    gap: 4px;
  }

  .qty-btn {
    width: 22px;
    height: 22px;
  }
}

/* Validation Error Styles */
.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* Certificate Design Selector */
.cert-design-option {
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.cert-design-option:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.cert-design-option.active {
  opacity: 1;
}

#certAmountPreview {
  color: #008596;
}

.cert-design-option img {
  border: 2px solid #e2e8f0;
  max-width: 50px;
  border-radius: 0px;
}

.cert-design-option.active img {
  border: 2px solid #4338ca;
  /* Indigo-700 */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}