﻿/* Front page blue tile navigation */

.vyed-horizontal-separator {
    border: 1px solid #b1b4b6;
}

.visual-vyed-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.visual-vyed-box {
    margin-bottom: 20px;
    display: flex;
    float: left;
}

@media (min-width: 924px) {
    .visual-vyed-box {
        width: 50%;
    }

    div.visual-vyed-box:first-child {
        padding-right: 10px;
    }

    div.visual-vyed-box:nth-child(n+2) {
        padding-left: 10px;
    }
}

@media (max-width: 924px) {
    .visual-vyed-box {
        width: 100%;
    }
}

.visual-vyed-box-content {
    display: grid;
    width: 100%;
    position: relative;
}

/* IE11 only */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .visual-vyed-box-content-link {
        height: 100%;
    }
}


.visual-vyed-box-content a {
    background-color: #005eb8;
    color: #ffffff;
    display: block;
    padding: 0.5em;
    text-decoration: none;
    overflow: hidden;
}

    .visual-vyed-box-content a:hover {
        background-color: #003d78;
    }

    .visual-vyed-box-content a:focus {
        background-color: #ffeb3b;
        color: #000000;
        box-shadow: 0 4px 0 0 #000000;
    }

        .visual-vyed-box-content a:focus h2 {
            color: #000000;
        }

        .visual-vyed-box-content a:focus p {
            color: #000000;
        }

    .visual-vyed-box-content a h2 {
        color: #ffffff;
        font-size: 24px;
        line-height: 26pt;
        margin-right: 0.75em;
    }

div.visual-vyed-box-content-leaf {
    box-shadow: 0 4px 0 0 #000000;
}

.visual-vyed-box-content-leaf h2 {
    text-decoration: underline;
}

.visual-vyed-box-content a p {
    color: #ffffff;
}

.visual-vyed-box-content-text {
    display: inline-block;
}

.visual-vyed-chevron {
    position: absolute;
    height: 0.75em;
    width: 0.75em;
    top: 1.25em;
    right: 1em;
    border-top: 3px solid;
    border-right: 3px solid;
    transform: rotate(45deg);
}

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

.app-pane__nav {
    background-color: #f3f2f1;
}

.app-nav {
    font-family: "GDS Transport", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.25;
    margin-left: -15px;
}

@media print {
    .app-nav {
        font-family: sans-serif;
    }
}

@media (min-width: 40.0625em) {
    .app-nav {
        font-size: 19px;
        font-size: 1.1875rem;
        line-height: 1.31579;
    }
}

@media print {
    .app-nav {
        font-size: 14pt;
        line-height: 1.15;
    }
}

.app-nav__list {
    display: flex;
    list-style: none;
    margin: 0 0 0px;
    padding: 0;
    white-space: nowrap;
}

@media (max-width: 40.0525em) {
    .app-nav__list {
        overflow-y: scroll;
    }
}

.app-nav__list-item {
    display: flex;
}

    .app-nav__list-item a,
    .app-nav__list-item a:link,
    .app-nav__list-item a:visited {
        border-bottom: 4px solid transparent;
        color: #1d70b8;
        display: block;
        font-weight: bold;
        padding: 13px;
        padding-bottom: 11px;
        text-decoration: none;
    }

        .app-nav__list-item a:hover {
            border-bottom-color: #5694ca;
        }

        .app-nav__list-item a:focus {
            position: relative;
            color: #0b0c0c;
            background-color: #ffdd00;
            border-bottom-color: #0b0c0c;
            box-shadow: none;
        }

.app-nav__list-item--selected a:link,
.app-nav__list-item--selected a:visited {
    border-bottom-color: #1d70b8;
    color: #1d70b8;
}

.app-nav__list-item--selected a:focus {
    position: relative;
    color: #0b0c0c;
    background-color: #ffdd00;
    border-bottom-color: #0b0c0c;
    box-shadow: none;
}

*:not(.govuk-tabs__list-item--selected) > a.govuk-tabs__tab {
    color: #0b0c0c !important;
    font-weight: normal;
}

/* PVA Chatbot styles */

#webchat {
    height: 100%;
    width: 100%;
}

.webchat__basic-transcript__scrollable::-webkit-scrollbar {
    width: 12px;
}

.webchat__basic-transcript__scrollable::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0);
}

.webchat__basic-transcript__scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.webchat__basic-transcript__scrollable::-webkit-scrollbar-thumb {
    background-color: lightgrey;
    border-radius: 20px;
    border: 3px solid lightgrey;
}

.webchat__suggested-actions__button {
    background: #f3f2f1 !important;
}

.webchat__suggested-actions__button:focus,
.webchat__suggested-actions__button:active {
    background: #FFDD00 !important;
}

.webchat__suggested-actions__button:hover {
    background: #dbdad9 !important;
    cursor: pointer !important;
}

.webchat__icon-button {
    display: none !important;
}

.webchat__send-box__main {
    display: none !important;
}

.webchat-container {
    height: 70vh;
    padding-bottom: 50px;
    margin-bottom: 24px;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (max-height: 575.98px) and (orientation: landscape) {
    #webchat {
        font-size: 14px;
    }

    .webchat-container {
        height: 500px;
    }

    .webchat__suggested-actions {
        height: 39px;
    }
}

@media only screen and (max-width : 375px) {
    #webchat {
        font-size: 14px;
    }

    .webchat-container {
        height: 500px;
    }

    .webchat__suggested-actions {
        height: 39px;
    }
}

/* Govify bubble links */

@media print {
    .webchat-container a {
        font-family: sans-serif
    }
}

.webchat-container a:focus {
    outline: 3px solid transparent;
    color: #0b0c0c;
    background-color: #fd0;
    box-shadow: 0 -2px #fd0,0 4px #0b0c0c;
    text-decoration: none
}

.webchat-container a:link {
    color: #1d70b8
}

.webchat-container a:visited {
    color: #4c2c92
}

.webchat-container a:hover {
    color: #003078
}

.webchat-container a:active {
    color: #0b0c0c
}

.webchat-container a:focus {
    color: #0b0c0c
}

@media print {
    [href^="/"].webchat-container a::after, [href^="http://"].webchat-container a::after, [href^="https://"].webchat-container a::after {
        content: " (" attr(href) ")";
        font-size: 90%;
        word-wrap: break-word
    }
}

.webchat-container a--muted:link, .webchat-container a--muted:visited, .webchat-container a--muted:hover, .webchat-container a--muted:active {
    color: #626a6e
}

.webchat-container a--muted:focus {
    color: #0b0c0c
}

.webchat-container a--text-colour:link, .webchat-container a--text-colour:visited, .webchat-container a--text-colour:hover, .webchat-container a--text-colour:active, .webchat-container a--text-colour:focus {
    color: #0b0c0c
}

@media print {
    .webchat-container a--text-colour:link, .webchat-container a--text-colour:visited, .webchat-container a--text-colour:hover, .webchat-container a--text-colour:active, .webchat-container a--text-colour:focus {
        color: #000
    }
}

.webchat-container a--no-visited-state:link {
    color: #1d70b8
}

.webchat-container a--no-visited-state:visited {
    color: #1d70b8
}

.webchat-container a--no-visited-state:hover {
    color: #003078
}

.webchat-container a--no-visited-state:active {
    color: #0b0c0c
}

.webchat-container a--no-visited-state:focus {
    color: #0b0c0c
}

.webchat__bubble__content,
.webchat__bubble__content * {
    font-size: 16px !important;
}

/* Prevent the dfe-frontend card heading from being pushed down (and
   appearing vertically centered) when a card has no description paragraph
   following it, e.g. on the virtual assistant portal home page */
.dfe-card-container h2:last-child {
    margin-top: 0;
}

/* Give all cards on the virtual assistant portal a consistent height,
   since CSS grid only stretches items within the same row and a card
   on its own row (e.g. the last one wrapping) would otherwise be shorter */
.dfe-card {
    min-height: 140px;
}

/* Mobile start over section */

@media screen and (max-width: 380px) {
    #ade-container {
        min-height: 700px;
    }
}