.xiip {
    background: var(--purple);
    position: sticky;
    top: 0;
    z-index: 998;
}

.xiip::after {
    content: "The VIP Wimbledon Experience";
    display: block;
    background-color: var(--darkgold);
    color:#fff;
    font-size: .7rem;
    text-align: center;
    padding: 0.2rem;
    line-height: 1rem;
}

.xiip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

@media (width > 1000px) {
    .xiip .container {
        padding: 0 0 0 2rem;
    }
}

.xiip .container > a:nth-of-type(1) {
    display: none;
}

.xiip .container > a:nth-of-type(1) img {
    height:40px;
}

.xiip .container > a:nth-of-type(2) img {
    height:42px;
    margin:.5rem 0;
}

.xiip .container nav li::before {
    content: none;
}

.xiip .container > div {
    display: flex;
    align-items: center;
}

.xiip .container > div > #nav-trigger-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:12px;
}

.xiip .container > div > #nav-trigger-wrapper > a {
    display:flex;
    align-items: center;
    justify-content: center;
}

.xiip .container > div > #nav-trigger-wrapper > a:hover,
.xiip .container > div > #nav-trigger-wrapper > a:focus-visible {
    background-color: rgba(255,255,255,0.2);
}

.xiip .container > div > #nav-trigger-wrapper > a img {
    height: 32px;
}

.xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(2) img,
.xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(3) img {
    height: 26px;
}

.xiip nav ul li a {
    padding: 1rem;
    text-decoration:none;
    color: var(--white);
    text-align:left;
}

.xiip nav ul li a:hover,
.xiip nav ul li a:focus-visible {
    color: var(--white) !important;
    background-color: rgba(255,255,255,0.2);
}

.xiip nav > ul > li > a:has(+ ul)::after {
    display: inline-block;
    content: "";
    transform: rotate(270deg);
    margin-left: .5rem;
    background-image: url(/ui/images/icon-chevron-white.svg);
    background-repeat: no-repeat;
    background-position: center center;
    height:9px;
    width:14px;
}

.xiip .icon {
    width:30px;
    height:30px;
}

.xiip .nav-trigger.icon .line-item {
    stroke: var(--white);
}

.xiip nav.open {
    background-color: var(--v-dark-purple);
    top: 88px;
    left:0;
}

.xiip nav.open ul {
    justify-content: flex-start;
}

.xiip nav.open ul li ul.open {
    background-color: var(--purple);
    padding:1rem 0 0;
}

.xiip nav.open ul li ul.open li a.back {
    color: var(--white);
}

.xiip nav.open ul li ul.open li a.back::before {
    display: inline-block;
    content: "";
    transform: rotate(90deg);
    margin-right: .5rem;
    background-image: url(/ui/images/icon-chevron-white.svg);
    background-repeat: no-repeat;
    background-position: center center;
    height:9px;
    width:14px;
}
html:has(nav.open),
body:has(nav.open) {
    margin: 0; height: 100%; overflow: hidden
}

#xiip-nav .svg--dashboard {
    width: 18px;
    height: 18px;
    margin-bottom:3px;
}

#xiip-nav .svg--dashboard .line-item {
    stroke: var(--white);
    stroke-width: 8px;
}

@media (min-width: 1000px) {

    .xiip {
        padding-left: var(--space);
        padding-right: var(--space);
    }

    .xiip::after {
        content:none;
    }

    .xiip .container > a:nth-of-type(1) {
        display: block;
    }

    .xiip .container > a:nth-of-type(2) {
        display:none;
    }

    .xiip nav > ul {
        height: 100%;
    }

    .xiip nav ul li a {
        background-color: transparent;
        font-size: 1rem;
        line-height:100%;
        display: block;
        height: 100%;
    }

    .xiip nav ul li ul {
        width:fit-content;
        min-width:300px;
        border-bottom: 6px solid var(--green);
        padding:.5rem 0;
        background-color: rgba(34, 25, 52, .95);
    }

    .xiip nav ul li ul li a {
        padding: .5rem 2rem;
        line-height:1.5rem;
    }

    .is-logged-in .xiip nav > ul > li > a[href="/dashboard"] {
        background-color: var(--green);
        color: var(--white) !important;
    }

    .xiip nav ul li:last-of-type ul {
        right:0;
        left:auto;
    }

    .xiip .container > div {
        display: flex;
        align-items: stretch;
    }

    .xiip .container > div > #nav-trigger-wrapper {
        gap: 0;
    }

    .xiip .container > div > #nav-trigger-wrapper > a img {
        height: 25px;
    }

    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(1) {
        display:none;
    }
    
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(2) img,
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(3) img,
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(4) img {
        height: 20px;
    }
    
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(2),
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(3),
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(4) {
        padding:1rem;
        display: flex;
        flex:1;
        border-left:1px solid rgba(255,255,255,0.3);
    }

    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(2):hover,
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(3):hover,
    .xiip .container > div > #nav-trigger-wrapper > a:nth-of-type(4):hover {
        background-color: rgba(255,255,255,0.1);
    }

    .xiip .container > div > #nav-trigger-wrapper > a:last-of-type {
        display:flex;
        border-right:1px solid rgba(255,255,255,0.3);
    }

    .xiip nav > ul > li > a::after {
        transform: rotate(0deg);
    }
}