html, body {
    min-height: 100vh;
    margin: 0;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    #app > .min-h-screen, #app > .h-full {
        flex: 1 0 auto;
    }

#donation-component {
    max-height: 1000px;
}

.donation-panel-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.35) transparent;
}

input[type="number"] {
    appearance: textfield;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.custom-tooltip {
    visibility: hidden;
    max-width: 200px;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.subtext-html p:not(:last-of-type) {
    margin-bottom: 0.75em;
}

.premium-body p:not(:last-of-type) {
    margin-bottom: 0.75em;
}

.campaign-image {
    max-height: 200px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.background-style {
    /*background-size: inherit;
  background-position: top left;
  background-repeat: repeat-x;*/
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

/*@media (max-width: 768px) {
    .background-style {
        background-attachment: scroll;
        background-position: center top;
    }
}*/

/* Hide number input arrows – Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input arrows – Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* amount grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.preset-label-text {
    font-size: 0.8125rem;
    line-height: 1.25rem;
}

.amount-other {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .amount-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .amount-other {
        grid-column: auto;
    }
}

/* Stripe element containers — styled to match native inputs */
.stripe-element {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .stripe-element.StripeElement--focus {
        border-color: rgb(12, 74, 110);
        box-shadow: 0 0 0 2px rgba(12, 74, 110, 0.3);
        outline: none;
    }

    .stripe-element.StripeElement--invalid {
        border-color: #ef4444;
    }

/* preset pulse */
@keyframes preset-pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 50%, transparent);
    }

    60% {
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-primary) 0%, transparent);
    }

    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 0%, transparent);
    }
}

.preset-pulse {
    animation: preset-pulse 1.6s ease-out 2;
}

/* progress bar */
.progress-label--after {
    margin-left: 6px;
}

/* markdown image extensions for positioning */
.content-img {
    margin: 0 0 1em;
}

    .content-img img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .content-img.pos-left {
        float: left;
        margin-right: 1.5em;
    }

    .content-img.pos-right {
        float: right;
        margin-left: 1.5em;
    }

    .content-img.pos-center {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

        .content-img.pos-center img {
            margin-left: auto;
            margin-right: auto;
        }

    .content-img.size-small {
        max-width: 25%;
    }

    .content-img.size-medium {
        max-width: 50%;
    }

    .content-img.size-large {
        max-width: 75%;
    }

    .content-img.size-full {
        max-width: 100%;
    }

/* kill floats below a threshold */
@media (max-width: 600px) {
    .content-img.pos-left,
    .content-img.pos-right {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    .content-img.size-small,
    .content-img.size-medium,
    .content-img.size-large {
        max-width: 100%;
    }

    .content-img img {
        margin-left: auto;
        margin-right: auto;
    }
}