/* Terms of Use / Privacy Policy consent line under the start button (ROOB-4346).
   Rendered by Html.StartConsent() (Helpers/StartConsentExtensions.cs).
   Loaded after the franchise theme CSS; a client's assessment.css (served later via /dynamiccss/)
   can override the color or spacing for a light background. Specificity (.jumbotron p.start-consent)
   beats the theme's generic "p" / ".jumbotron p" rules without relying on !important for color. */

/* The button's theme margin-bottom (70/50/30/20px) is replaced by the consent line's 12px offset;
   the original spacing below is carried by the consent line / "Powered by" rules further down. */
.start-button.start-button-consent {
    margin-bottom: 0 !important;
    vertical-align: top;
}

.jumbotron p.start-consent {
    display: block;
    max-width: 300px;
    margin: 12px auto 0 !important;
    padding: 0;
    font-family: proxima-nova, sans-serif;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: center;
    color: #FFFFFF;
    overflow-wrap: break-word;
}

/* Left-aligned layouts: text lines up with the (left-aligned) start button. */
.jumbotron p.start-consent.start-consent-left {
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
}

.jumbotron p.start-consent a,
.jumbotron p.start-consent a:hover,
.jumbotron p.start-consent a:visited {
    color: inherit;
    text-decoration: underline;
}

.jumbotron p.start-consent a:focus,
.jumbotron p.start-consent a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.start-consent .start-consent-break {
    display: none;
}

/* Existing "Powered by roobrik" line (views that have one) sits below the consent text. */
.start-consent + .roobrik-poweredby {
    display: block;
    margin-top: 32px;
}

/* Co-branded "Sponsored by" row that follows the consent text in left-aligned layouts. */
.start-consent-left + .row {
    margin-top: 20px !important;
}

/* Validation message directly below the consent text (StartC-Senior-Living) */
.start-consent + p.errorText {
    margin-top: 12px;
}

@media (min-width: 768px) {
    .jumbotron p.start-consent {
        max-width: 420px;
    }
    .jumbotron p.start-consent.start-consent-left {
        max-width: none;
    }
    .start-consent a {
        white-space: nowrap;
    }
    .start-consent .start-consent-break {
        display: inline;
    }
    .start-consent + .roobrik-poweredby {
        margin-top: 40px;
    }
}

/* Short / landscape viewports: keep the tighter spacing the themes use for the start button. */
@media (max-height: 599px) {
    .start-consent + .roobrik-poweredby {
        margin-top: 20px;
    }
}
