/* Submission receipts and inline feedback on the public IFR forms. */
.ifr-outcome {
    --ifr-outcome-logo: url("../../images/ifr-logo.png");
    display: block;
    width: 100%;
    min-width: 0;
    margin: 1rem 0;
    padding: 0;
    border: 1px solid #d4dae1;
    background: #fff;
    color: #191c27;
    text-align: left;
    overflow-wrap: anywhere;
    scroll-margin-block: 6rem;
}
.ifr-outcome[data-brand="league"] { --ifr-outcome-logo: url("../../images/events/logo-league.png"); }
.ifr-outcome[data-brand="beach-fest"] { --ifr-outcome-logo: url("../../images/events/logo-beach-fest.png"); }
.ifr-outcome[data-brand="padel"] { --ifr-outcome-logo: url("../../images/events/logo-padel.png"); }
.ifr-outcome[data-brand="champions"] { --ifr-outcome-logo: url("../../images/events/logo-champions.png"); }
.ifr-outcome[data-brand="fast-five"] { --ifr-outcome-logo: url("../../images/events/logo-fast-five.svg"); }
.ifr-outcome[data-brand="padel-royale"] { --ifr-outcome-logo: url("../../images/events/logo-padel-royale.svg"); }
.ifr-outcome__mast {
    position: relative;
    display: grid;
    grid-template-columns: 3.4rem minmax(0,1fr);
    align-content: center;
    align-items: center;
    column-gap: 1rem;
    padding: clamp(1rem, 3vw, 1.65rem);
    color: #fff;
    background: #191d28;
    text-align: left;
}
.ifr-outcome__mast::before {
    content: "";
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: 3.4rem;
    background: var(--ifr-outcome-logo) no-repeat center / contain;
}
.ifr-outcome__mast::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.75rem;
    height: .2rem;
    background: #ffdf70;
}
.ifr-outcome__context { color: #e0e5eb; font-size: .875rem; font-weight: 700; line-height: 1.4; }
.ifr-outcome__heading {
    display: block;
    color: #fff;
    font-size: clamp(1.45rem, 3.2vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.13;
}
.ifr-outcome__detail { display: grid; gap: .9rem; padding: clamp(1rem, 3vw, 1.65rem); }
.ifr-outcome__body { display: block; color: #344050; font-size: 1rem; line-height: 1.55; font-weight: 400; }
.ifr-outcome__facts { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.ifr-outcome__fact { display: grid; min-width: 0; max-width: 100%; gap: .12rem; }
.ifr-outcome__label { color: #555f6d; font-size: .875rem; }
.ifr-outcome__value { color: #202532; font-size: 1rem; font-weight: 800; }
.ifr-outcome button.ifr-outcome__again, .beach-success.ifr-outcome > a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    width: auto; margin: 0 0 1rem clamp(1rem, 3vw, 1.65rem); padding: .45rem .15rem;
    border: 0; background: transparent; color: #202532; text-decoration: underline;
    text-underline-offset: .2em; font: inherit; font-weight: 800; cursor: pointer;
}
.beach-success.ifr-outcome > a.beach-private-link { padding-inline: .9rem; background: #ffdf70; text-decoration: none; }
.ifr-outcome :focus-visible { outline: 3px solid #1562a3; outline-offset: 3px; }
:is(#ifr-contact-form,#ifr-kit-form).ifr-outcome-form-complete > :not(.ifr-outcome) { display: none; }
:is(#ifr-contact-form,#ifr-kit-form) .ifr-outcome,
.lf-registration [data-lf-status].ifr-outcome, .beach-form [data-beach-success].ifr-outcome {
    padding: 0; margin: 0; border: 1px solid #d4dae1; background: #fff; color: #191c27;
}
.lf-registration [data-lf-status].ifr-outcome { margin-block: 1rem; }
.contact-form-panel:has(.ifr-outcome-form-complete) > :is(h2,.contact-form-intro) { display: none; }
:is(#contact-status,#kit-status)[data-state="error"], .lf-registration [data-lf-status].lf-error,
.beach-form [data-beach-error]:not([hidden]), [data-beach-state][data-state]:not([hidden]),
.lf-registration .lf-gate, .lf-registration .lf-complete, .lf-registration [data-lf-empty],
.lf-registration .lf-deadline, .lf-registration .lf-private-availability, .lf-registration .lf-edit-notice:not(:empty),
.vm-availability [data-inventory-label][data-state="unavailable"] {
    border-inline-start: .22rem solid #e7bd3f; padding: .85rem 1rem; background: #f3f4f4; color: #242a34;
}
:is(#contact-status,#kit-status)[data-state="error"], .lf-registration [data-lf-status].lf-error,
.beach-form [data-beach-error]:not([hidden]), [data-beach-state][data-state="error"]:not([hidden]) {
    border-inline-start-color: #a3382c; color: #70281f; background: #fcf4f1;
}
.ifr-newsletter [data-ifr-newsletter] .ifr-p1-message:not(:empty) {
    display: block; margin-block: .75rem 0; border-inline-start: .22rem solid #ffdf70;
    padding: .7rem .9rem; background: #272c39; color: #fff; font-size: .94rem; line-height: 1.5;
}
.ifr-newsletter [data-ifr-newsletter] .ifr-p1-message.is-error { border-inline-start-color: #ef9a86; }
.ifr-outcome[hidden] { display: none; }
@media (max-width: 34rem) {
    .ifr-outcome__mast { grid-template-columns: 2.8rem minmax(0,1fr); gap: 0 .65rem; }
    .ifr-outcome__mast::before { height: 2.8rem; }
    .ifr-outcome__facts { gap: .7rem 1rem; }
}

.vm-footer .vm-download-outcome:empty { display: none; }
.vm-footer .vm-download-outcome:not(:empty) {
    flex-basis: 100%; padding: .65rem .85rem; border-inline-start: .22rem solid #e7bd3f;
    background: #f3f4f4; color: #242a34; font-size: .94rem;
}
.vm-footer .vm-download-outcome[data-state="error"] { border-inline-start-color: #a3382c; }
