.hd-donation {
    --hd-orange: #ef7f32;
    --hd-border: #ddd;
    --hd-text: #172033;
    max-width: 520px;
    margin: 2rem auto;
    color: var(--hd-text);
    font-family: inherit;
}

.hd-donation * {
    box-sizing: border-box;
}

.hd-donation__form {
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    padding: 28px;
}

.hd-donation h2 {
    text-align: center;
    font-size: 27px;
    margin: 0 0 10px;
}

.hd-donation__intro {
    text-align: center;
    color: #68707c;
    margin: 0 0 25px;
}

.hd-donation input[type=text],
.hd-donation input[type=email],
.hd-donation input[type=tel],
.hd-donation input[type=number] {
    width: 100%;
    min-height: 48px;
    margin: 0 0 12px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--hd-border);
    border-radius: 9px;
    font: inherit;
}

.hd-donation fieldset {
    padding: 0;
    border: 0;
    margin: 18px 0;
}

.hd-donation legend {
    margin-bottom: 9px;
    color: #7e8793;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hd-tabs,
.hd-method__options,
.hd-amounts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hd-tabs input,
.hd-method__options input,
.hd-amounts__grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hd-tabs span,
.hd-method__options span,
.hd-amounts__grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--hd-border);
    font-weight: 700;
    cursor: pointer;
}

.hd-tabs label:first-child span,
.hd-method__options label:first-child span {
    border-radius: 9px 0 0 9px;
}

.hd-tabs label:last-child span,
.hd-method__options label:last-child span {
    border-radius: 0 9px 9px 0;
}

.hd-method__options--single {
    grid-template-columns: 1fr;
}

.hd-method__options.hd-method__options--single label span {
    border-radius: 9px;
}

.hd-tabs input:checked + span,
.hd-method__options input:checked + span {
    background: var(--hd-orange);
    border-color: var(--hd-orange);
    color: #fff;
}

.hd-donation [data-blik-code]:not([hidden]) {
    display: block;
    margin-top: 16px;
}

.hd-amounts__grid {
    gap: 10px;
}

.hd-amounts__grid span {
    border-radius: 9px;
    color: var(--hd-orange);
}

.hd-amounts__grid input:checked + span {
    outline: 2px solid var(--hd-orange);
    background: #fff7f1;
}

.hd-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid var(--hd-border);
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.45;
}

.hd-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
}

.hd-check span {
    flex: 1;
    text-align: left;
}

.hd-check a {
    color: #d85d0d;
}

.hd-donation__footer {
    margin: 25px -28px -28px;
    padding: 24px 28px;
    background: transparent;
}

.hd-donation button,
.hd-status__button {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 9px;
    background: #9f9f9f;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hd-donation button:not(:disabled) {
    background: var(--hd-orange);
}

.hd-donation button:disabled {
    cursor: wait;
}

.hd-donation__footer .hd-check {
    margin-top: 15px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hd-donation__message {
    min-height: 22px;
    margin-top: 14px;
    color: #b42318;
    font-weight: 600;
}

.hd-honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.hd-standalone-page {
    background: #f1f1f1;
}

.hd-status {
    max-width: 620px;
    margin: 10vh auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    font-family: system-ui, sans-serif;
}

.hd-status h1 {
    color: #172033;
}

.hd-status__link {
    color: #d85d0d;
}

.hd-status__button {
    max-width: 320px;
    background: #d85d0d;
}

.hd-status__loader {
    width: 34px;
    height: 34px;
    margin: 25px auto;
    border: 4px solid #eee;
    border-top-color: #d85d0d;
    border-radius: 50%;
    animation: hd-spin 1s linear infinite;
}

.hd-error {
    color: #b42318;
}

@keyframes hd-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 560px) {
    .hd-donation__form {
        padding: 20px;
    }

    .hd-donation__footer {
        margin: 22px -20px -20px;
        padding: 20px;
    }

    .hd-status {
        margin: 20px;
        padding: 25px;
    }
}

.hd-status__input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 13px 15px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    color: #111b35;
    font: inherit;
}
