/* Официальные SVG Sign in with Apple содержат отступы знака. Высота рисунка равна высоте кнопки. */
.hg-auth-card .nsl-container .nsl-container-buttons a.nsl-button-apple {
    --hg-apple-fill: #000;
    --hg-apple-text: #fff;
    --hg-apple-logo: url("apple-white.svg");
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 max(44px, 8%);
    border: 0;
    border-radius: 8px;
    background: var(--hg-apple-fill) var(--hg-apple-logo) 7px center / auto 48px no-repeat;
    color: var(--hg-apple-text);
    text-align: center;
    text-decoration: none;
}

.hg-auth-card .nsl-container .nsl-container-buttons
:is(a.nsl-button-apple, a[data-provider="google"] .nsl-button-label-container) {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Симметричные поля центрируют подпись; фирменные знаки стоят на общей оси. */
.hg-auth-card .nsl-container a[data-provider="google"] .nsl-button-google {
    position: relative;
    box-sizing: border-box;
    padding-inline: max(44px, 8%);
}

.hg-auth-card .nsl-container a[data-provider="google"] .nsl-button-svg-container {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 12px;
    padding: 0;
    transform: translateY(-50%);
}

.hg-auth-card .nsl-container a[data-provider="google"] .nsl-button-label-container {
    margin: 0;
    overflow: visible;
    padding: 0;
}

.hg-auth-card .nsl-container a[data-provider="google"] .nsl-button-label-container :is(b, strong) {
    font-weight: inherit;
}

html[data-theme="dark"] .hg-auth-card .nsl-container a.nsl-button-apple {
    --hg-apple-fill: #fff;
    --hg-apple-text: #000;
    --hg-apple-logo: url("apple-black.svg");
}

/* Плагин может добавить свой рисунок. Обе версии фирменного знака выбирает тема. */
.hg-auth-card a.nsl-button-apple > img {
    display: none;
}

.hg-auth-card .nsl-container .nsl-container-buttons
:is(a.nsl-button-apple, a[data-provider="google"]):focus-visible {
    outline: 3px solid var(--hg-red);
    outline-offset: 4px;
}

.hg-auth-card .nsl-container .hg-social-terms {
    margin: 8px 0 0;
    color: var(--hg-muted);
    text-align: start;
}

/* Nextend задаёт display:block и width:100% всем ссылкам в группе кнопок, включая ссылку внутри текста. */
.hg-auth-card .nsl-container .hg-social-terms a.hg-member-text-link {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
