.tg-form {
    color: #172938;
    background: #fff;
    margin: 0 auto;
    width: 100%;
    font-size: 1rem;
    line-height: 1.55;
}

.tg-form [hidden] {
    display: none!important;
}

.tg-form h2,.tg-form h3 {
    margin: 0 0 .6rem;
    color: #152835;
}

.tg-top,.tg-options,.tg-methods,.tg-langs {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.tg-top {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tg-grid {
    display: grid;
    grid-template-columns: minmax(0,1.8fr) minmax(13rem,1fr);
    gap: clamp(1rem,3vw,2.4rem);
    align-items: start;
}

.tg-form fieldset {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    min-width: 0;
}

.tg-form legend,.tg-form>label,.tg-grid label:not(.tg-chip) {
    font-weight: 600;
}

.tg-form legend {
    padding: 0 0 .35rem;
}

.tg-form label:not(.tg-chip) {
    display: block;
    margin: .65rem 0;
}

.tg-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.tg-form select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: .4rem .65rem;
    background: white;
    border: 1px solid #718590;
    border-radius: .35rem;
    color: #172938;
    font: inherit;
}

.tg-chip {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.tg-chip input {
    position: absolute;
    opacity: 0;
}

.tg-chip>span,.tg-langs button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .24rem .77rem;
    border: 1px solid #78909c;
    border-radius: .4rem;
    color: #173548;
    background: white;
    box-sizing: border-box;
    font: inherit;
}

.tg-chip input:checked+span,.tg-langs [aria-pressed=true] {
    background: #183c70;
    color: #fff;
    border-color: #183c70;
}

.tg-chip input:focus-visible+span,.tg-form :focus-visible {
    outline: 3px solid #c33b15;
    outline-offset: 3px;
}

.tg-summary {
    background: #edf4fb;
    border-top: 4px solid #1d5489;
    border-radius: .4rem;
    padding: 1rem 1.15rem;
    position: sticky;
    top: 1rem;
}

.tg-summary p {
    margin: .5rem 0;
}

.tg-amount {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.tg-form details {
    padding: .5rem 0;
}

.tg-form summary {
    cursor: pointer;
    font-weight: 600;
}

.tg-consent {
    display: flex!important;
    align-items: flex-start;
    gap: .5rem;
}

.tg-consent input {
    margin-top: .3rem;
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
}

.tg-methods {
    margin: 1rem 0;
    align-items: stretch;
}

.tg-methods>button,.tg-wallet,.tg-form [data-bank-ref] {
    flex: 1 1 9rem;
    min-height: 48px;
}

.tg-methods button,.tg-form [data-bank-ref] {
    border: 0;
    border-radius: .4rem;
    padding: .5rem .85rem;
    color: white;
    background: #163b75;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tg-methods [data-method=card] {
    background: #b03030;
}

.tg-methods [data-method=revolut] {
    background: #171523;
}

.tg-wallet {
    position: relative;
    min-width: 135px;
}

.tg-wallet .tg-wallet-placeholder {
    width: 100%;
    height: 100%;
    background: #e8ebee;
    color: #52606b;
    cursor: default;
}

.tg-wallet-mount {
    width: 100%;
}

.tg-muted,.tg-form [data-bank-schedule] {
    color: #475b67;
}

.tg-form [data-error] {
    color: #9e1d23;
    font-weight: 600;
}

.tg-form [data-error]:empty {
    display: none;
}

.tg-test {
    background: #fff3c9;
    padding: .35rem .65rem;
}

.tg-form #tg-bank {
    padding: 1rem;
    border: 1px solid #aebcc5;
    border-radius: .45rem;
}

.tg-form #tg-bank dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .24rem .8rem;
}

.tg-form #tg-bank dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.tg-form [data-reference] {
    overflow-wrap: anywhere;
    font-weight: bold;
}

.tg-form button:disabled {
    opacity: .72;
}

.giving-online:has(.tg-form) {
    max-width: none;
}

.giving-body>.give-unified {
    grid-column: 1/-1;
    width: 100%;
    box-sizing: border-box;
}

@media(max-width:700px) {
    .tg-grid {
        grid-template-columns: 1fr;
        gap: .9rem;
    }
    .tg-summary {
        position: static;
    }
    .tg-methods>* {
        min-width: 135px;
    }
    .tg-top h2 {
        font-size: 1.4rem;
    }
}

