/*
 * Elite Class Rides approved shared header
 * Version 3.0.0
 *
 * Built directly from Jonny's approved WYSIWYG source.
 */

:root {
    --ecr-brand-blue: #0D4F8B;
    --ecr-brand-blue-hover: #0A416F;
    --ecr-brand-blue-dark: #08365E;
    --ecr-white: #FFFFFF;
    --ecr-page-background: #FFFFFF;
    --ecr-text: #666666;
    --ecr-border: #CED4DA;
    --ecr-font-family: Tahoma, Arial, Helvetica, sans-serif;
    --ecr-header-height: 135px;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    color: var(--ecr-text);
    background: var(--ecr-page-background);
    font-family: var(--ecr-font-family);
    font-size: 14px;
    font-weight: 400;
}

.ecr-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    transform: translateY(-160%);
    padding: 10px 14px;
    color: var(--ecr-white);
    background: var(--ecr-brand-blue-dark);
    text-decoration: none;
}

.ecr-skip-link:focus {
    transform: translateY(0);
}

/* =========================================================
   APPROVED GENERIC HEADER
   ========================================================= */

.ecr-approved-header {
    width: 100%;
    height: var(--ecr-header-height);
    min-height: var(--ecr-header-height);
    margin: 0;
    padding: 0;
    color: var(--ecr-white);
    background: var(--ecr-brand-blue);
    border: 0;
    border-radius: 0;
    position: relative;
    z-index: 1000;
}

.ecr-approved-header__inner {
    width: 100%;
    height: 135px;
    position: relative;
    margin: 0 auto;
}

.ecr-approved-header__logo-link {
    width: 170px;
    height: 78px;
    position: absolute;
    left: 20px;
    top: 27px;
    display: block;
    border: 0;
    text-decoration: none;
}

.ecr-approved-header__logo {
    width: 170px;
    height: 78px;
    display: block;
    object-fit: contain;
    border: 0;
}

.ecr-approved-header__main-icons {
    height: 22px;
    position: absolute;
    top: 56px;
    right: 104px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ecr-approved-header__account {
    height: 22px;
    position: absolute;
    top: 56px;
    right: 39px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ecr-approved-header__icon-link,
.ecr-approved-header__icon-button {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ecr-white);
    background: transparent;
    border: 0;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.ecr-approved-header__icon-link img,
.ecr-approved-header__icon-button img {
    width: 22px;
    height: 22px;
    display: block;
    border: 0;
    pointer-events: none;
}

.ecr-approved-header__icon-link:hover,
.ecr-approved-header__icon-link:focus-visible,
.ecr-approved-header__icon-button:hover,
.ecr-approved-header__icon-button:focus-visible,
.ecr-approved-header__icon-link.is-current {
    outline: 1px solid rgba(255, 255, 255, 0.90);
    outline-offset: 2px;
}

.ecr-approved-header__dropdown {
    min-width: 170px;
    padding: 6px 0;
    position: absolute;
    top: 31px;
    right: 0;
    color: var(--ecr-text);
    background: var(--ecr-white);
    border: 1px solid #D7E0E8;
    border-radius: 4px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    z-index: 2000;
}

.ecr-approved-header__dropdown a {
    display: block;
    padding: 9px 13px;
    color: var(--ecr-text);
    background: var(--ecr-white);
    text-decoration: none;
    white-space: nowrap;
}

.ecr-approved-header__dropdown a:hover,
.ecr-approved-header__dropdown a:focus-visible {
    color: var(--ecr-white);
    background: var(--ecr-brand-blue);
    outline: none;
}

/* =========================================================
   SHARED SITE-WIDE BLUE BARS
   ========================================================= */

.ecr-blue-bar,
.ecr-page-bar,
.ecr-section-bar,
.ecr-form-header,
.ecr-modal-header,
.ecr-table-header,
[data-ecr-blue-bar] {
    margin: 0;
    padding: 11px 14px;
    color: var(--ecr-white);
    background: var(--ecr-brand-blue);
    border: 1px solid var(--ecr-brand-blue);
    border-radius: 0;
    font-family: var(--ecr-font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.ecr-btn-primary,
button.ecr-btn-primary,
a.ecr-btn-primary,
input.ecr-btn-primary {
    min-height: 42px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ecr-white);
    background: var(--ecr-brand-blue);
    border: 1px solid var(--ecr-brand-blue);
    border-radius: 0;
    font-family: var(--ecr-font-family);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.ecr-btn-primary:hover,
.ecr-btn-primary:focus-visible {
    color: var(--ecr-white);
    background: var(--ecr-brand-blue-hover);
    border-color: var(--ecr-brand-blue-hover);
    outline: none;
}

.ecr-page-shell {
    width: min(calc(100% - 32px), 1480px);
    margin: 24px auto;
}

/* =========================================================
   RESPONSIVE HEADER
   ========================================================= */

@media (max-width: 620px) {
    :root {
        --ecr-header-height: 108px;
    }

    .ecr-approved-header,
    .ecr-approved-header__inner {
        height: 108px;
        min-height: 108px;
    }

    .ecr-approved-header__logo-link {
        width: 135px;
        height: 62px;
        left: 14px;
        top: 23px;
    }

    .ecr-approved-header__logo {
        width: 135px;
        height: 62px;
    }

    .ecr-approved-header__main-icons {
        top: 43px;
        right: 78px;
        gap: 3px;
    }

    .ecr-approved-header__account {
        top: 43px;
        right: 12px;
        gap: 2px;
    }
}

@media (max-width: 410px) {
    .ecr-approved-header__logo-link {
        width: 116px;
        height: 54px;
        left: 10px;
        top: 27px;
    }

    .ecr-approved-header__logo {
        width: 116px;
        height: 54px;
    }

    .ecr-approved-header__main-icons {
        right: 70px;
        gap: 1px;
    }

    .ecr-approved-header__account {
        right: 8px;
        gap: 1px;
    }

    .ecr-approved-header__icon-link,
    .ecr-approved-header__icon-button,
    .ecr-approved-header__icon-link img,
    .ecr-approved-header__icon-button img {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecr-skip-link {
        transition: none;
    }
}
