.onix-guest-auth[hidden] {
    display: none !important;
}

.onix-guest-auth__alert[hidden],
.onix-guest-auth__verified[hidden],
.onix-guest-auth__field[hidden],
.onix-guest-auth__register-entry[hidden],
.onix-guest-auth__suggestions[hidden] {
    display: none !important;
}

.onix-guest-auth {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 10050;
}

.onix-guest-auth__backdrop {
    backdrop-filter: blur(18px) saturate(118%);
    background: rgba(10, 28, 48, .44);
    inset: 0;
    position: absolute;
}

.onix-guest-auth__dialog {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(247, 251, 245, .88)),
        rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(11, 34, 56, .28), inset 0 1px 0 rgba(255, 255, 255, .92);
    color: #0a2947;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    max-height: min(820px, calc(100vh - 48px));
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: 520px;
}

.onix-guest-auth__glow {
    background: radial-gradient(circle, rgba(112, 206, 0, .28) 0, rgba(112, 206, 0, 0) 68%);
    filter: blur(4px);
    height: 260px;
    pointer-events: none;
    position: absolute;
    right: -110px;
    top: -150px;
    width: 300px;
    z-index: -1;
}

.onix-guest-auth__header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(116, 140, 160, .18);
    display: grid;
    flex: 0 0 auto;
    gap: 14px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    padding: 26px 28px 20px;
}

.onix-guest-auth__header h2 {
    color: #092846;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 3px 0 0;
}

.onix-guest-auth__header > div {
    align-self: center;
}

.onix-guest-auth__eyebrow {
    color: #5db300;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.onix-guest-auth__back,
.onix-guest-auth__close {
    align-items: center;
    background: rgba(238, 244, 247, .7);
    border: 1px solid rgba(112, 137, 157, .18);
    border-radius: 12px;
    color: #31506b;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    width: 38px;
}

.onix-guest-auth__back:hover,
.onix-guest-auth__close:hover {
    background: #fff;
    border-color: rgba(99, 188, 0, .5);
    color: #4e9f00;
    transform: translateY(-1px);
}

.onix-guest-auth__back svg,
.onix-guest-auth__close svg {
    display: block;
    fill: none;
    height: 18px;
    margin: auto;
    pointer-events: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.onix-guest-auth__back[hidden] {
    visibility: hidden;
}

.onix-guest-auth__body {
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 26px 28px 30px;
    scrollbar-color: rgba(103, 180, 10, .48) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.onix-guest-auth__body::-webkit-scrollbar {
    width: 8px;
}

.onix-guest-auth__body::-webkit-scrollbar-thumb {
    background: rgba(103, 180, 10, .48);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.onix-guest-auth__body::-webkit-scrollbar-track {
    background: transparent;
}

.onix-guest-auth__view {
    display: none;
    gap: 18px;
}

.onix-guest-auth__view.is-active {
    animation: onixGuestAuthIn .24s ease both;
    display: grid;
}

.onix-guest-auth__lead {
    color: #617890;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 2px;
}

.onix-guest-auth__lead strong {
    color: #123653;
}

.onix-guest-auth__field {
    display: grid;
    gap: 7px;
    position: relative;
}

.onix-guest-auth__field > span:first-child {
    color: #48647c;
    font-size: 12px;
    font-weight: 650;
}

.onix-guest-auth__field input,
.onix-guest-auth__field textarea {
    appearance: none;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(132, 157, 176, .36);
    border-radius: 15px;
    box-shadow: inset 0 1px 1px rgba(27, 60, 85, .025), 0 7px 20px rgba(21, 58, 81, .025);
    color: #0d2d48;
    font: inherit;
    font-size: 16px;
    min-height: 54px;
    outline: none;
    padding: 14px 16px;
    resize: vertical;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.onix-guest-auth__field textarea {
    min-height: 74px;
}

.onix-guest-auth__field textarea[data-onix-auth-company-name] {
    line-height: 1.45;
    min-height: 54px;
    overflow: hidden;
}

.onix-guest-auth__field input:focus,
.onix-guest-auth__field textarea:focus {
    background: #fff;
    border-color: #70c900;
    box-shadow: 0 0 0 4px rgba(112, 201, 0, .11), 0 12px 28px rgba(36, 72, 94, .07);
}

.onix-guest-auth__field input[readonly],
.onix-guest-auth__field textarea[readonly] {
    background: rgba(224, 224, 224, .82);
    border-color: rgba(162, 174, 183, .5);
    box-shadow: none;
    color: #6b7278;
    cursor: default;
}

.onix-guest-auth__field input[readonly]:focus,
.onix-guest-auth__field textarea[readonly]:focus {
    background: rgba(224, 224, 224, .82);
    border-color: rgba(162, 174, 183, .5);
    box-shadow: none;
}

.onix-guest-auth__field textarea[readonly] {
    resize: none;
}

.onix-guest-auth__field small {
    color: #c53f36;
    font-size: 12px;
    line-height: 1.25;
}

.onix-guest-auth__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.onix-guest-auth__field.is-invalid input,
.onix-guest-auth__field.is-invalid textarea {
    border-color: #e05249;
    box-shadow: 0 0 0 4px rgba(224, 82, 73, .09);
}

.onix-guest-auth__primary,
.onix-guest-auth__secondary,
.onix-guest-auth__link {
    border-radius: 15px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    min-height: 52px;
    padding: 13px 20px;
    transition: box-shadow .2s ease, transform .2s ease, background .2s ease, border-color .2s ease;
}

.onix-guest-auth__primary {
    background: linear-gradient(135deg, #74cf00, #58b900);
    border: 1px solid rgba(84, 170, 0, .64);
    box-shadow: 0 12px 28px rgba(96, 190, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .34);
    color: #fff;
}

.onix-guest-auth__primary:hover {
    box-shadow: 0 16px 34px rgba(96, 190, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .4);
    transform: translateY(-2px);
}

.onix-guest-auth__secondary {
    background: rgba(235, 241, 244, .74);
    border: 1px solid rgba(126, 150, 169, .2);
    color: #193a55;
}

.onix-guest-auth__secondary:hover {
    background: #fff;
    border-color: rgba(104, 191, 0, .5);
    transform: translateY(-1px);
}

.onix-guest-auth__link {
    background: transparent;
    border: 0;
    color: #5aa800;
    min-height: 36px;
    padding: 4px 12px;
}

.onix-guest-auth__link:disabled {
    color: #91a0ad;
    cursor: default;
}

.onix-guest-auth__divider {
    align-items: center;
    color: #91a0ad;
    display: grid;
    font-size: 12px;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
}

.onix-guest-auth__divider::before,
.onix-guest-auth__divider::after {
    background: rgba(123, 147, 165, .2);
    content: '';
    height: 1px;
}

.onix-guest-auth__register-entry {
    display: grid;
    gap: 14px;
}

.onix-guest-auth__register-entry .onix-guest-auth__secondary {
    width: 100%;
}

.onix-guest-auth__alert {
    background: rgba(222, 68, 58, .08);
    border: 1px solid rgba(222, 68, 58, .2);
    border-radius: 13px;
    color: #a9332c;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.onix-guest-auth__code {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: .2em;
    text-align: center;
}

.onix-guest-auth__password-wrap {
    display: block;
    position: relative;
}

.onix-guest-auth__password-wrap input {
    padding-right: 50px;
}

.onix-guest-auth__password-wrap button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #6e8294;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 42px;
}

.onix-guest-auth__verified {
    align-items: center;
    background: rgba(112, 201, 0, .08);
    border: 1px solid rgba(112, 201, 0, .24);
    border-radius: 15px;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 34px 1fr;
    padding: 12px 14px;
}

.onix-guest-auth__verified > span {
    align-items: center;
    background: #6bc500;
    border-radius: 50%;
    color: #fff;
    display: flex;
    grid-row: 1 / 3;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.onix-guest-auth__verified strong {
    color: #163a54;
}

.onix-guest-auth__verified small {
    color: #5ba600;
    font-size: 11px;
}

.onix-guest-auth__note {
    color: #7d8f9e;
    font-size: 11px;
    line-height: 1.45;
    margin: -4px 0 0;
    text-align: center;
}

.onix-guest-auth__note a {
    color: #4f9400;
    text-decoration: underline;
    text-decoration-color: rgba(79, 148, 0, .34);
    text-underline-offset: 2px;
}

.onix-guest-auth__company-toggle {
    align-items: center;
    background: rgba(241, 247, 239, .72);
    border: 1px solid rgba(116, 167, 84, .24);
    border-radius: 16px;
    cursor: pointer;
    display: grid;
    gap: 13px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 12px 14px;
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.onix-guest-auth__company-toggle:hover {
    background: rgba(247, 252, 244, .96);
    border-color: rgba(102, 184, 0, .48);
    transform: translateY(-1px);
}

.onix-guest-auth__company-toggle > input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.onix-guest-auth__company-toggle-box {
    align-items: center;
    background: rgba(152, 170, 156, .34);
    border-radius: 999px;
    display: flex;
    height: 26px;
    padding: 3px;
    transition: background .22s ease, box-shadow .22s ease;
    width: 44px;
}

.onix-guest-auth__company-toggle-box > span {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(20, 55, 35, .22);
    height: 20px;
    transform: translateX(0);
    transition: transform .22s ease;
    width: 20px;
}

.onix-guest-auth__company-toggle > input:checked + .onix-guest-auth__company-toggle-box {
    background: linear-gradient(135deg, #75d100, #59b900);
    box-shadow: 0 7px 18px rgba(91, 183, 0, .24);
}

.onix-guest-auth__company-toggle > input:checked + .onix-guest-auth__company-toggle-box > span {
    transform: translateX(18px);
}

.onix-guest-auth__company-toggle > input:focus-visible + .onix-guest-auth__company-toggle-box {
    box-shadow: 0 0 0 4px rgba(112, 201, 0, .15);
}

.onix-guest-auth__company-toggle-copy {
    display: grid;
    gap: 2px;
}

.onix-guest-auth__company-toggle-copy strong {
    color: #173a54;
    font-size: 14px;
}

.onix-guest-auth__company-toggle-copy small {
    color: #7b8f9f;
    font-size: 11px;
}

.onix-guest-auth__company-inline {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .38s ease, opacity .25s ease, transform .32s ease;
}

.onix-guest-auth__company-inline.is-open {
    max-height: 680px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.onix-guest-auth__company-inline-inner {
    padding: 2px 1px 4px;
}

.onix-guest-auth__company-fields {
    display: grid;
    gap: 14px;
}

.onix-guest-auth__suggestions {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(121, 150, 171, .28);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(16, 46, 68, .18);
    left: 0;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 10072;
}

.onix-guest-auth__suggestion {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #173a54;
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    padding: 10px 11px;
    text-align: left;
    width: 100%;
}

.onix-guest-auth__suggestion:hover {
    background: rgba(111, 199, 0, .1);
}

.onix-guest-auth__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onix-guest-auth__busy {
    align-items: center;
    background: rgba(250, 253, 250, .64);
    backdrop-filter: blur(5px);
    display: flex;
    gap: 6px;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 5;
}

.onix-guest-auth__busy[hidden] {
    display: none !important;
}

.onix-guest-auth__busy span {
    animation: onixGuestAuthPulse .8s ease-in-out infinite alternate;
    background: #69c300;
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.onix-guest-auth__busy span:nth-child(2) { animation-delay: .14s; }
.onix-guest-auth__busy span:nth-child(3) { animation-delay: .28s; }

.onix-guest-auth-open {
    overflow: hidden;
}

.onix-guest-auth .suggestions-wrapper,
.onix-guest-auth .suggestions-suggestions {
    z-index: 10070 !important;
}

@keyframes onixGuestAuthIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes onixGuestAuthPulse {
    from { opacity: .35; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 620px) {
    .onix-guest-auth {
        align-items: flex-end;
        padding: 0;
    }

    .onix-guest-auth__dialog {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-radius: 24px 24px 0 0;
        max-height: calc(100dvh - 10px);
        width: 100%;
    }

    .onix-guest-auth__header {
        gap: 10px;
        padding: 20px 18px 16px;
    }

    .onix-guest-auth__header h2 {
        font-size: 23px;
    }

    .onix-guest-auth__body {
        padding: 20px 18px 28px;
    }

    .onix-guest-auth__grid {
        grid-template-columns: 1fr;
    }

    .onix-guest-auth__field input,
    .onix-guest-auth__field textarea {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onix-guest-auth *,
    .onix-guest-auth *::before,
    .onix-guest-auth *::after {
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
