/**
 * EX-3479. Wrapper styles for the Salesforce form component.
 *
 * The form itself lives in an iframe inside a closed shadow root: Salesforce
 * gives it width:100% and drives its height by postMessage, so it is responsive
 * on its own and must not be constrained from here. All this file does is hold
 * the space while the form loads and keep the loader out of the way afterwards.
 */
.sf-form {
    position: relative;
    width: 100%;
    /* Roughly the height of the rendered form: the page does not jump when the
       iframe finally reports its size. */
    min-height: 420px;
}

.sf-form--ready {
    min-height: 0;
}

.sf-form__loader {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    color: #686868;
    font-size: 14px;
    text-align: center;
    gap: 10px;
}

.sf-form--ready .sf-form__loader {
    display: none;
}

.sf-form__spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 0, 0, .15);
    border-top-color: #686868;
    border-radius: 50%;
    animation: sf-form-spin 900ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .sf-form__spinner {
        animation: none;
    }
}

@keyframes sf-form-spin {
    to {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 767px) {
    .sf-form {
        min-height: 520px;
    }

    /* Repeated inside the media query: it has the same specificity as the rule
       above and comes later in the file, so without this a rendered form shorter
       than the placeholder would keep its reserved space on phones. */
    .sf-form--ready {
        min-height: 0;
    }
}
