/* Brand colors (--brand-* variables from the layout) and dashboard-wide layout tweaks */

/* One neutral grey scale: the website CSS's blue-tinted slate greys are re-pointed at the ui-* greys */
:root {
    --heading-font-color: #222222;
    --body-font-color: #555555;
    --link-font-color: #222222;
    --footer-bg: #f4f4f4;
    --footer-line: #e3e3e3;
}
#footer,
#footer::before,
.section-stripe,
.section-stripe::before,
.section-stripe::after {
    background-color: var(--footer-bg);
}
#footer,
.foot-last-link a,
#footer-unwired-link {
    color: var(--ui-subtle, #737373);
}
.footer-stripe-container-dashboard,
.top-footer {
    border-color: var(--footer-line);
}
#hamburger span,
#hamburger span::before,
#hamburger span::after {
    background-color: #222222;
}

.dashboard-content a,
.dashboard-content a:hover {
    color: var(--brand-primary-alt, #ff5c5c);
}

div .errorMessage {
    color: #e74c3c;
    margin-top: 5px;
}

/* ---- Signed-in pages ---- */

.signed-in .price-inner-banner {
    background-color: #fafafa;
}

.signed-in #header {
    background: var(--brand-tint, #fff4f4);
}

#header .header-account summary {
    align-items: center;
    color: var(--heading-font-color, #222222);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 1px;
    padding: 10px 0;
    white-space: nowrap;
}
#header .header-account summary::before {
    background-color: currentColor;
    content: "";
    flex: 0 0 auto;
    height: 18px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='5.5' r='2.75'/%3E%3Cpath d='M2.75 13.75c.6-2.6 2.75-4 5.25-4s4.65 1.4 5.25 4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='5.5' r='2.75'/%3E%3Cpath d='M2.75 13.75c.6-2.6 2.75-4 5.25-4s4.65 1.4 5.25 4'/%3E%3C/svg%3E") center / contain no-repeat;
    width: 18px;
}
#header .header-account-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
#header .header-account summary:hover {
    color: var(--brand-primary, #ff4747);
}
#header .header-account .ui-menu {
    letter-spacing: 0;
    max-width: 300px;
    min-width: 220px;
}
#header .header-account-who {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 2px;
    padding: 6px 10px 4px;
}
#header .header-account-who strong {
    color: var(--ui-ink, #222222);
    overflow-wrap: anywhere;
}
#header .header-account-who span {
    color: var(--ui-muted, #555555);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Footer ---- */
/* Straight footer at the bottom of a full-height page; .footer-spacer takes up the slack */

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer-spacer {
    flex: 1 0 160px;
}

#wrapper > #footer {
    margin-top: 0;
    position: relative;
    z-index: 2;
}

#footer::before,
.footer-container::before {
    content: none;
    display: none;
}

#footer {
    border-top: 1px solid var(--footer-line);
}

#footer .footer-stripe-container {
    border-top: 0;
    padding-top: 0;
}

#footer .footer-stripe-container .last-footer {
    margin-top: 0;
    padding: 22px 0;
}

.footer-container::after {
    content: none;
    display: none;
}

.signed-in #wrapper {
    background-color: #fafafa;
}

.signed-in .footer-spacer {
    flex-basis: 48px;
}

.inner-banner::after {
    content: none;
    display: none;
}

body:not(.signed-in) #wrapper {
    background-color: var(--brand-tint, #fff4f4);
}

/* Widgets rendered after #wrapper sit on the footer colour, not a white strip */
body {
    background-color: var(--footer-bg);
}

.signed-in #footer {
    border-top-color: #e3e3e3;
}

.signed-in #footer .last-footer {
    margin-top: 0;
    padding: 22px 0;
}

.last-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    justify-content: space-between;
}

.foot-legal {
    align-items: center;
    color: var(--ui-subtle, #737373);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px 14px;
}

.foot-legal a,
.foot-legal #footer-unwired-link {
    color: var(--ui-subtle, #737373);
}

.foot-legal a:hover {
    color: var(--ui-ink, #222222);
}

.last-footer .foot-last-link a {
    color: var(--ui-ink, #222222);
    font-size: 13.5px;
    font-weight: 400;
}

.last-footer .foot-last-link a:hover {
    color: var(--brand-primary, #ff4747);
}

/* Help launcher (fixed iframe) sits above the footer on desktop so the links can stay right-aligned */
@media (min-width: 768px) {
    #launcher-frame {
        bottom: 84px !important;
    }
}
@media (max-width: 767px) {
    .last-footer {
        justify-content: center;
        text-align: center;
    }
    .foot-legal {
        justify-content: center;
    }
    .signed-in #footer .last-footer {
        padding-bottom: 90px;
    }
}
