.uoph-auth-overlay {
    position: fixed;
    z-index: 100200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgb(25 24 22 / 72%);
    box-sizing: border-box;
}

.uoph-auth-overlay[hidden] {
    display: none;
}

.uoph-auth-window {
    position: relative;
    inline-size: min(36rem, 100%);
    max-block-size: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    padding-block: clamp(2rem, 5vw, 4rem);
    padding-block-start: clamp(1rem, 2.5vw, 2rem);
    padding-block-end: clamp(2rem, calc(5vw - 1.25rem), 2.75rem);
    padding-inline: clamp(2rem, 5vw, 4rem);
    overflow-y: auto;
    border-radius: clamp(1.5rem, 3vw, 3rem);
    color: #191816;
    background: #fff;
    box-sizing: border-box;
}

.uoph-auth__close {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-end: 1rem;
    color: #191816 !important;
}

.uoph-auth__logo {
    display: block;
    flex: 0 0 auto;
    width: var(--uoph-brand-logo-inline-size);
    inline-size: var(--uoph-brand-logo-inline-size);
    height: auto !important;
    block-size: auto;
    max-width: none;
    max-inline-size: none;
    margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
    object-fit: contain;
    aspect-ratio: auto;
}

.uoph-auth__module {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    min-block-size: min(
        var(--uoph-auth-register-module-height, 0px),
        calc(100dvh - 9rem)
    );
}

.uoph-auth__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block-end: 2rem;
    border-block-end: 1px solid currentColor;
}

.uoph-auth-window .uoph-auth__tab {
    all: unset;
    padding: 0.875rem 0.5rem;
    border-block-end: 2px solid transparent;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

html body .uoph-auth-window button.uoph-auth__tab,
html body .uoph-auth-window button.uoph-auth__tab:hover,
html body .uoph-auth-window button.uoph-auth__tab:focus,
html body .uoph-auth-window button.uoph-auth__tab:focus-visible,
html body .uoph-auth-window button.uoph-auth__tab:active {
    border-color: transparent !important;
    border-block-end: 2px solid transparent !important;
    color: #191816 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body .uoph-auth-window button.uoph-auth__tab[aria-selected="true"],
html body .uoph-auth-window button.uoph-auth__tab[aria-selected="true"]:hover,
html body .uoph-auth-window button.uoph-auth__tab[aria-selected="true"]:focus,
html body .uoph-auth-window button.uoph-auth__tab[aria-selected="true"]:focus-visible,
html body .uoph-auth-window button.uoph-auth__tab[aria-selected="true"]:active {
    border-color: #191816 !important;
    color: #fff !important;
    background: #191816 !important;
    background-color: #191816 !important;
}

.uoph-auth__panel:not([hidden]) {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-block-size: auto;
    overflow: visible;
}

.uoph-auth__panel[hidden] {
    display: none;
}

.uoph-auth__form,
.uoph-auth__field {
    display: grid;
    gap: 0.5rem;
}

.uoph-auth__form {
    gap: 1.25rem;
}

.uoph-auth__field input:not([type="checkbox"]) {
    inline-size: 100%;
    min-block-size: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    font: inherit;
    box-sizing: border-box;
}

.uoph-auth__terms {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
}

.uoph-auth-window .uoph-auth__checkbox {
    display: inline-grid;
    place-content: center;
    flex: 0 0 auto;
    inline-size: 1.25rem;
    block-size: 1.25rem;
    margin: -0.1rem 0 0;
    padding: 0;
    border: 2px solid #191816;
    border-radius: 50%;
    color: #191816;
    background: #fff;
    background-color: #fff;
    background-image: none;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.uoph-auth-window .uoph-auth__checkbox::before {
    content: "";
    inline-size: 0.625rem;
    block-size: 0.375rem;
    border-block-end: 2px solid #fff;
    border-inline-start: 2px solid #fff;
    opacity: 0;
    transform: translateY(-0.0625rem) rotate(-45deg);
}

.uoph-auth-window .uoph-auth__checkbox:checked {
    border-color: #191816;
    background: #191816;
    background-color: #191816;
}

.uoph-auth-window .uoph-auth__checkbox:checked::before {
    opacity: 1;
}

.uoph-auth-window .uoph-auth__checkbox:focus,
.uoph-auth-window .uoph-auth__checkbox:focus-visible {
    border-color: #191816;
    outline: 2px solid #191816;
    outline-offset: 3px;
    box-shadow: none;
}

.uoph-auth__forgot,
.uoph-auth__terms a {
    color: inherit;
}

.uoph-auth__terms .uoph-auth__privacy-link {
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.uoph-auth__forgot {
    justify-self: start;
}

.uoph-auth-window button.uoph-auth__forgot {
    all: unset;
    justify-self: start;
    color: #191816;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.uoph-auth__tabs[hidden] {
    display: none !important;
}

.uoph-auth__password-panel {
    gap: 1.5rem;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-weight: 400;
    text-align: center;
}

.uoph-auth__password-title,
.uoph-auth__password-copy {
    margin: 0;
}

.uoph-auth__password-title {
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.uoph-auth__password-copy {
    line-height: 1.45;
}

.uoph-auth__password-panel .uoph-auth__field {
    text-align: start;
}

.uoph-auth__verification-panel {
    align-items: stretch;
}

.uoph-auth__verification-panel [hidden],
.uoph-auth__verification-resend[hidden] {
    display: none !important;
}

.uoph-auth-window button.uoph-auth__flow-link {
    all: unset;
    align-self: center;
    color: #191816;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.uoph-auth-window button.uoph-auth__flow-link:focus,
.uoph-auth-window button.uoph-auth__flow-link:focus-visible {
    outline: 2px solid #191816;
    outline-offset: 3px;
}

.uoph-auth__error {
    min-block-size: 1em;
    color: #a21d24;
    font-size: 0.8125rem;
}

.uoph-auth__error:empty {
    display: none;
}

.uoph-auth__error--general.is-confirmation {
    color: #191816;
}

.uoph-auth-window .uoph-btn--acquire {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: fit-content;
    margin: 0 auto;
    padding: 1rem 0.875rem;
    border: 2px solid #191816;
    border-radius: 999px;
    color: #191816;
    background: transparent;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.uoph-auth-window .uoph-btn--acquire:hover,
.uoph-auth-window .uoph-btn--acquire:focus,
.uoph-auth-window .uoph-btn--acquire:focus-visible,
.uoph-auth-window .uoph-btn--acquire:active {
    border-color: #191816;
    color: #191816;
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .uoph-auth-window .uoph-btn--acquire:hover {
        color: #fff;
        background: #191816;
    }
}

@media (min-width: 64rem) {
    .uoph-auth-window {
        padding-block-end: 2.25rem;
    }

    .uoph-auth__form {
        gap: 0.6875rem;
    }
}

.uoph-auth__customer-zone {
    display: contents;
}

.uoph-auth__customer-zone [hidden] {
    display: none !important;
}

.uoph-auth__customer-zone.is-authenticated {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.uoph-auth__customer-greeting {
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.uoph-auth__customer-zone [data-uoph-checkout-start-payment],
.uoph-auth__customer-status {
    grid-column: 1 / -1;
}

.uoph-auth__customer-status {
    color: #191816;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}
