.hlg {
    --hlg-gap: 16px;
    display: grid;
    background: #ffffff;
    color: #111111;
}

.hlg [hidden] {
    display: none !important;
}

.hlg__media {
    display: none;
}

.hlg__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hlg__content {
    min-width: 0;
    padding: 32px 24px 24px;
}

.hlg__title {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.15;
}

.hlg__subtitle {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.hlg__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 24px;
    border-bottom: 1px solid #dcdcdc;
}

.hlg__tab {
    margin: 0 0 -1px;
    padding: 12px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #6b6b6b;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.hlg__tab[aria-selected="true"] {
    border-bottom-color: currentColor;
    color: #111111;
}

.hlg-form {
    display: flex;
    flex-direction: column;
    gap: var(--hlg-gap);
    margin: 0;
}

.hlg-form wc-order-attribution-inputs {
    display: none;
}

.hlg-form__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hlg-gap);
}

.hlg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.hlg-field__label {
    font-size: 14px;
    font-weight: 600;
}

.hlg-field__input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #8a8a8a;
    border-radius: 2px;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 16px;
}

.hlg-field__input[aria-invalid="true"] {
    border-color: #b3261e;
}

.hlg-field__hint {
    font-size: 13px;
    color: #6b6b6b;
}

.hlg-password {
    position: relative;
    display: block;
}

.hlg-password .hlg-field__input {
    padding-right: 48px;
}

.hlg-password .hlg-field__input::-ms-reveal {
    display: none;
}

.hlg-password__toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #6b6b6b;
    cursor: pointer;
}

.hlg-password__toggle .hlg-icon--eye-off,
.hlg-password__toggle[aria-pressed="true"] .hlg-icon--eye {
    display: none;
}

.hlg-password__toggle[aria-pressed="true"] .hlg-icon--eye-off {
    display: block;
}

.hlg-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.hlg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
}

.hlg-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.hlg-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.hlg-form__actions {
    margin: 4px 0 0;
}

.hlg-form__submit {
    width: 100%;
}

.hlg-form__switch,
.hlg-form__text {
    margin: 0;
    font-size: 14px;
    color: #4a4a4a;
}

.hlg-form__switch {
    text-align: center;
}

.hlg__panel--lostpw .hlg-form__text {
    margin-bottom: var(--hlg-gap);
}

.hlg-form__notice:empty {
    display: none;
}

.hlg-form__notice {
    padding: 12px 14px;
    border-left: 3px solid #b3261e;
    background: #fbeaea;
    color: #8c1d18;
    font-size: 14px;
}

.hlg-form__notice.is-success,
.hlg-form__done {
    border-left: 3px solid #1e7a3c;
    background: #e8f5ec;
    color: #1e5e32;
}

.hlg-form__done {
    margin: 0;
    padding: 12px 14px;
    font-size: 14px;
}

.hlg-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.hlg-popup {
    width: 100%;
    max-width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    background: #ffffff;
    overflow: auto;
}

.hlg-popup:has(.hlg--media) {
    max-width: min(820px, calc(100vw - 32px));
}

.hlg-popup::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

html.hlg-popup-open {
    overflow: hidden;
}

.hlg-popup__panel {
    position: relative;
}

.hlg-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    cursor: pointer;
}

.hlg--page {
    max-width: 480px;
    margin: 0 auto;
}

.hlg--page.hlg--media {
    max-width: 920px;
}

@media (min-width: 768px) {
    .hlg--media {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .hlg--media .hlg__media {
        position: relative;
        display: block;
    }

    .hlg--media .hlg__media > * {
        position: absolute;
        inset: 0;
    }

    .hlg__content {
        padding: 40px 40px 32px;
    }
}
