@font-face {
    font-family: "OpenAI Sans";
    src: url("https://cdn.openai.com/common/fonts/openai-sans-variable/OpenAISansVariableVF.woff2")
        format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: var(--font-family);
    background-color: var(--page-background-color);
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
}

.oai-wrapper {
    padding: 40px 16px 0 16px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.oai-header {
    display: flex;
    justify-content: center;
}

.oai-wordmark {
    height: 32px;
    width: auto;
    margin-bottom: 8px;
}

@media screen and (min-width: 450px) {
    .oai-wrapper {
        padding-top: 15vh;
    }

    .oai-wordmark {
       height: 48px;
    }
}


@media (min-width: 800px) {
    .oai-wordmark {
        position: fixed;
        top: 8px;
        left: 8px;
    }
}

.oai-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e80;
    padding: 12px 0 24px;
    flex: 0 0 auto;
    margin-top: auto;
}

.oai-footer a {
    color: var(--primary-color);
    margin: 0 10px;
}

._widget-auto-layout main._widget {
    flex: 1 0 auto;
    min-height: 0;
    padding-top: 0;
}

.af-step-id-step_n7ER {
    display: none;
}

.omni-input-container {
    background-color: #fff;
    padding: 0 40px 40px;
    border-radius: var(--input-border-radius);
    box-shadow: none;
    width: 320px;
    box-sizing: content-box;
    flex-shrink: 0
}

.omni-input-wrapper {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: content-box
}

.omni-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-or-phone-input-container {
    position: relative;
}

.email-or-phone-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--input-background-color, #fff);
    border: 1px solid var(--email-or-phone-input-border-color);
    border-radius: var(--input-border-radius);
    box-sizing: border-box;
    color: var(--email-or-phone-input-text-color);
    font-family: inherit;
    font-size: 16px;
    height: var(--email-or-phone-input-height);
    line-height: 1.1;
    outline: none;
    padding-block: 1px;
    padding-inline: 2px;
    padding: 0 var(--email-or-phone-input-x-padding);
    transition: box-shadow .2s ease-in-out, border-color .2s ease-in-out;
    width: 100%;
    text-rendering: auto;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    margin: 0
}

.email-or-phone-input:focus,
.email-or-phone-input:valid {
    border: 1px solid var(--base-focus-color, #10a37f);
    outline: none
}

.email-or-phone-input:focus-within {
    box-shadow: 1px var(--base-focus-color, #10a37f);
}

.email-or-phone-input:focus + .email-or-phone-label {
    font-size: 14px;
    top: 0;
    left: 10px;
    color: var(--base-focus-color, #10a37f);
    background-color: var(--input-background-color, #fff);
}

.email-or-phone-input.error {
    border: 1px solid #d00e17
}

.email-or-phone-input.error + .email-or-phone-label {
    color: #d00e17
}

.email-or-phone-label.filled {
    font-size: 14px;
    top: 0;
    left: 10px;
}

.email-or-phone-label {
    position: absolute;
    top: 26px;
    left: 16px;
    background-color: var(--input-background-color, #fff);
    color: #6f7780;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    max-width: 90%;
    overflow: hidden;
    pointer-events: none;
    padding: 1px 6px;
    text-overflow: ellipsis;
    transform: translateY(-50%);
    transform-origin: 0;
    transition: transform .15s ease-in-out,
    top .15s ease-in-out,
    padding .15s ease-in-out;
    white-space: nowrap;
    z-index: 1
}

.invalid-input-error {
    color: #d00e17;
    display: none;
    margin: 4px 0 12px;
    font-size: 12px
}

.invalid-input-error.visible {
    display: flex;
}

.country-code-selector {
    height: calc(var(--email-or-phone-input-height) - 2px);
    position: absolute;
    color: var(--email-or-phone-input-text-color);
    border: none;
    top: 1px;
    left: 0;
    background: none;
    width: var(--country-code-selector-width);
    box-sizing: border-box;
    font-size: 16px;
    padding: 0 0 0 16px;
    text-align: end;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: start;
    cursor: pointer;
}

.country-code-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1;
    border-radius: var(--input-border-radius);
    box-shadow: 0 8px 32px 0 #00000033;
}

.hidden {
    display: none !important;
}

.country-code-option-item {
    padding: 8px 16px;
    white-space: nowrap;
    text-align: start;
    display: flex;
    cursor: pointer;
    font-size: 14px;
}

.country-code-option-item:hover {
    background-color: #f0f0f0;
}

.country-code-option-item-emoji {
    margin-right: 8px;
}

.country-code-option-item-code {
    width: 60px;
}

.country-code-option-item-name {
    white-space: nowrap;
    color: #0d0d0d;
    margin-right: 4px;
}

.country-code-selection {
    display: flex;
    align-items: center;
}

.country-code-selection__code {
    flex: 1;
    white-space: nowrap;
}

.country-code-selection__emoji {
    margin-right: 8px;
}

.country-code-selection__chevron {
    margin-left: 4px;
    width: 12px;
    height: 12px;
    color: #b9b9b9;
}

#country-code-selector {
    font-family: inherit;
}

#country-code-selector option {
    font-family: inherit;
}

#country-code-selector::after {
    content: var(--display-text);
}

.continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 52px;
    width: 100%;
    background-color: #10a37f;
    color: #fff;
    margin: 24px 0 0;
    border-radius: var(--button-border-radius);
    padding: 4px 16px;
    font: inherit;
    border-width: 0;
    cursor: pointer;
    font-size: 16px;
}

.continue-btn:hover, .af-button:hover {
    box-shadow: inset 0 0 0 150px #0000001a
}

main *:has(> header) {
    min-height: unset !important;
}

main header {
    padding-top: 0 !important;
}

main header > img:first-of-type {
    display: none;
}

main > section, main > section > div:first-child {
    box-shadow: none;
}

main header > h1 {
    font-weight: 500 !important;
    font-size: 32px !important;
    letter-spacing: -0.02em;
    margin-top: 0 !important;
}

main a {
    font-weight: normal !important;
}

.ulp-alternate-action {
    text-align: center;
}

button[type="submit"] {
    font-family: var(--font-family);
}

button[name="action"][value="pick-country-code"] {
    display: none;
}

.input-wrapper._input-wrapper ._input-container-phone_number {
    display: none;
}

.af-component.af-block.af-blockType-rich_text h1 {
    font-weight: bold !important;
    font-size: 32px !important;
    text-align: center;
}

.af-component.af-block.af-blockType-rich_text p {
    text-align: center;
}

.af-component.af-block.af-componentId-next_button_BtEe.af-blockType-next_button {
    margin-bottom: 0;
}

.af-component button[type="button"] {
    border-radius: var(--input-border-radius);
    box-shadow: none;
}

.af-button.af-previousButton {
    font-size: 14px;
}

#af_uid_401 {
    border-radius: var(--input-border-radius);
    border: 1px solid var(--email-or-phone-input-border-color);
}

/* Class to remove hover effect */
.no-hover {
    pointer-events: none;
}

.cg-branding {
    --font-family: "OpenAI Sans", -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
    --primary-color: #000;
    --primary-color-no-override: #000;
    --action-primary-color: #000;
    --link-color: #3E68FF;
    --base-focus-color: #3E68FF;
    --success-color: #3E68FF;
    --input-border-radius: 9999px;
    --button-border-radius: 9999px;
    --border-radius-form-elements: 9999px;
    --page-background-color: #F9F9F9;
    --widget-background-color: var(--page-background-color);
    --input-background-color: var(--page-background-color);
    --input-border-color: rgba(0, 0, 0, 0.15);
}

.cg-branding h1 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
}

.cg-branding button[type="submit"]:hover {
    background-color: var(--hover-color);
    box-shadow: none;
}

.cg-branding button[type="submit"]:active {
    opacity: 0.8;
}

.cg-branding button[type="submit"]:focus-visible {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 2px, var(--focus-ring-color) 0px 0px 0px 4px, rgba(0, 0, 0, 0) 0px 0px 0px 0px !important;
}

.cg-branding button[data-action-button-primary] {
    --focus-ring-color: rgb(155, 155, 155);
    --hover-color: rgb(33, 33, 33);
    background-color: rgb(13, 13, 13);
    color: #FFF;
}

.cg-branding button[data-action-button-secondary] {
    --focus-ring-color: rgb(155, 155, 155);
    --hover-color: #ececec;
    border-color: rgba(0, 0, 0, 0.15);
    background-color: var(--page-background-color);
}

.cg-branding main header > h1 {
    font-weight: 500 !important;
    font-size: 32px !important;
    line-height: 40px !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.02em;
}

.cg-branding button[value="back-action"] {
    --focus-ring-color: rgb(155, 155, 155);
    --hover-color: #ececec;
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 0;
}

.country-code-selector-new {
    position: relative;
}

.country-code-dropdown-new {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--input-background-color, #fff);
    border: 1px solid var(--email-or-phone-input-border-color);
    border-radius: var(--input-border-radius);
    box-sizing: border-box;
    color: var(--email-or-phone-input-text-color);
    font-family: inherit;
    font-size: 16px;
    height: var(--email-or-phone-input-height);
    line-height: 1.1;
    outline: none;
    padding: 0 var(--email-or-phone-input-x-padding);
    transition: box-shadow .2s ease-in-out, border-color .2s ease-in-out;
    width: 100%;
    text-rendering: auto;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    margin: 0;
    position: relative;
}

.country-code-dropdown-new:focus {
    border: 1px solid var(--base-focus-color, #10a37f) !important;
    outline: none
}

.country-code-display {
    position: absolute;
    height: 100%;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #6f7780;
    padding: 0 16px;
}

.country-code-dropdown-new-caret {
    --size: 12px;
    position: absolute;
    right: var(--email-or-phone-input-x-padding);
    top: calc(50% - (var(--size) / 2) + 1px);  /* 1px to look slightly more centered  */
    font-size: var(--size);
}

.or-divider {
    width: 100%;
    display: flex;
    flex-direction: row;
    text-transform: uppercase;
    border: none;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    padding: 24px 0 0 0;
    color: #2d333a;

    span {
        flex: 0.2 0 auto;
        text-align: center;
        margin: 0;
    }
}

.or-divider:before,
.or-divider:after {
    content: "";
    flex: 1 0 auto;
    border-bottom: 1px solid var(--email-or-phone-input-border-color);
    height: .5rem;
    margin: 0;
}

.sso-container {
    margin-top: 24px;
    display: flex;
    width: 100%;
}

.sso-button {
    display: flex;
    position: relative;
    padding: 0 8px 0 52px;
    background: #fff;
    align-items: center;
    width: 100%;
    font-size: 16px;
    height: 52px;
    border: var(--social-button-border-width) solid var(--social-button-border-color);
    border-radius: var(--input-border-radius);
    color: var(--email-or-phone-input-text-color);
    cursor: pointer;
    outline: 0;
    transition: box-shadow .15s ease-in-out, background-color .15s ease-in-out;
    margin-bottom: 8px;

    .sso-icon {
        position: absolute;
        left: 26px;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);

        img {
            width: 22px;
            height: 22px;
            margin-top: 3px;
        }
    }

    span {
        text-align: left;
    }
}

.sso-button:hover {
    box-shadow: inset 0 0 0 150px rgba(0, 0, 0, .1);
}

.cg-branding {
    .sso-button:focus-visible {
        box-shadow: rgb(255, 255, 255) 0px 0px 0px 2px, var(--focus-ring-color) 0px 0px 0px 4px, rgba(0, 0, 0, 0) 0px 0px 0px 0px !important;
    }
}

.sso-button:focus {
    outline: none;
    background-color: rgba(0, 123, 173, .15);
    background-color: var(--transparency-focus-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 173, .15);
    box-shadow: 0 0 0 4px var(--transparency-focus-color);
}

.display-contents {
    display: contents;
}

.input-legend {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.header-subtext {
    font-size: 14px;
    font-size: var(--lg-font-size);
    color: #6f7780;
    color: var(--gray-dark);
    text-align: center;
    margin: 8px 0 0 0 !important;
}
