﻿/*  
    All of the below css is taken from the govuk main website https://www.gov.uk
    The only changes are:
        - the id "global-cookie-message" was replaced with the relevant id "ofgem-cookies"
        - margin-top set to zero for .gem-c-cookie-banner__message
        - font-family for all elements changed to: "proxima-nova", Arial, sans-serif; (from "nta", Arial, sans-serif;)
        - ".cookie_banner__heading" class added, and set to have all the same styles and appear in all the same places as ".gem-c-cookie-banner__message", 
                except for ".gem-c-cookie-banner#ofgem-cookies .cookie-banner__heading" (font weight 700 instead of 400)
        - Removed style: ".gem-c-cookie-banner#ofgem-cookies p { margin: 0 }"
        - Adds flexbox styling to ".gem-c-cookie-banner__buttons" and it's child divs, ".gem-c-cookie-banner__button"
        - Changes ".gem-c-button" height to 100%, to avoid different button heights due to text wrapping
*/

/* General gem-c-button styles */

.gem-c-button {
    margin-bottom: 0;
    height: 100%;
}

.gem-c-button--bottom-margin {
    margin-bottom: 15px
}

@media (min-width: 641px) {
    .gem-c-button--bottom-margin {
        margin-bottom: 45px
    }
}

.gem-c-button--inline {
    display: block;
    width: 100%;
    margin-bottom: 5px;
}

@media (min-width: 48.0625em) {
    .gem-c-button--inline {
        display: inline-block;
        width: auto;
        vertical-align: baseline;
        margin-right: 10px
    }
}

.gem-c-button__info-text {
    color: #0b0c0c;
    font-family: "proxima-nova", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.1428571429;
    display: block;
    max-width: 14em;
    margin-top: .5em
}

@media print {
    .gem-c-button__info-text {
        color: #000000
    }
}

@media print {
    .gem-c-button__info-text {
        font-family: "proxima nova", sans-serif
    }
}

@media (min-width: 40.0625em) {
    .gem-c-button__info-text {
        font-size: 16px;
        line-height: 1.25
    }
}

@media print {
    .gem-c-button__info-text {
        font-size: 14pt;
        line-height: 1.2
    }
}

.gem-c-button--secondary {
    padding: 8px 10px;
    border-color: #00823b;
    color: #00823b;
    background-color: #ffffff;
    box-shadow: none
}

    .gem-c-button--secondary:link, .gem-c-button--secondary:visited, .gem-c-button--secondary:active, .gem-c-button--secondary:focus {
        color: #00823b;
        background-color: #ffffff;
        text-decoration: none
    }

        .gem-c-button--secondary:link:focus {
            color: #00823b
        }

    .gem-c-button--secondary:hover {
        border-color: #00692f;
        color: #00692f;
        background-color: #f8f8f8;
        text-decoration: none
    }

    .gem-c-button--secondary:before {
        content: none
    }

.gem-c-button--secondary-quiet {
    padding: 8px 10px;
    border-color: #6f777b;
    color: #6f777b;
    background-color: #ffffff;
    box-shadow: none
}

    .gem-c-button--secondary-quiet:link, .gem-c-button--secondary-quiet:visited, .gem-c-button--secondary-quiet:active, .gem-c-button--secondary-quiet:focus {
        color: #6f777b;
        background-color: #ffffff;
        text-decoration: none
    }

        .gem-c-button--secondary-quiet:link:focus {
            color: #6f777b
        }

    .gem-c-button--secondary-quiet:hover {
        border-color: #636a6e;
        color: #636a6e;
        background-color: #f8f8f8;
        text-decoration: none
    }

    .gem-c-button--secondary-quiet:before {
        content: none
    }

.gem-c-button--secondary, .gem-c-button--secondary-quiet {
    padding-top: 10px;
    padding-bottom: 7px
}

/* gem-c-cookie-styles */

.js-enabled .gem-c-cookie-banner {
    display: none
}


.gem-c-cookie-banner {
    font-family: "proxima-nova", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.1428571429;
    padding: 10px 0;
    background-color: #ffffff;
    border: 2px solid #0b0c0c;
    position: relative;
    z-index: 999;
}

@media print {
    .gem-c-cookie-banner {
        font-family: "proxima nova", sans-serif
    }
}

@media (min-width: 40.0625em) {
    .gem-c-cookie-banner {
        font-size: 16px;
        line-height: 1.25
    }
}

@media print {
    .gem-c-cookie-banner {
        font-size: 14pt;
        line-height: 1.2
    }
}

.gem-c-cookie-banner__message {
    display: block;
    margin-bottom: 5px;
    margin-top: 0;
    /*padding-right: 20px;*/
    padding-bottom: 10px;
    color: #00823b;
    text-align: center;
}

.cookie-banner__heading {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    margin-top: 0;
    padding-right: 20px;
    padding-bottom: 10px;
    color: #00823b;
    text-align: center;
}

.gem-c-cookie-banner__buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.gem-c-cookie-banner__buttons:after {
    content: "";
    display: block;
    clear: both
}

.gem-c-cookie-banner__button {
    width: auto;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 10px;
}

/*@media (min-width: 20em) and (max-width: 48.0525em) {
    .gem-c-cookie-banner__button.gem-c-cookie-banner__button-accept {
        float: left;
        width: 49%
    }

    .js-enabled .gem-c-cookie-banner__button.gem-c-cookie-banner__button-settings {
        float: right;
        width: 49%
    }
}*/

@media (min-width: 48.0625em) {
    .gem-c-cookie-banner__button {
        width: auto
    }
}

@media (max-width: 28.4375em) {
    .gem-c-cookie-banner__button {
        width: 100%
    }
}

.gem-c-cookie-banner__button-accept {
    display: none
}

.js-enabled .gem-c-cookie-banner__button-accept {
    display: inline-block
}

.gem-c-cookie-banner__confirmation {
    display: none;
    position: relative;
    padding: 5px
}

.gem-c-cookie-banner__confirmation-message, .gem-c-cookie-banner__hide-button {
    display: block
}

@media (min-width: 48.0625em) {
    .gem-c-cookie-banner__confirmation-message, .gem-c-cookie-banner__hide-button {
        display: inline-block
    }
}

.gem-c-cookie-banner__confirmation-message {
    margin-right: 20px
}

@media (min-width: 48.0625em) {
    .gem-c-cookie-banner__confirmation-message {
        max-width: 90%
    }
}

.gem-c-cookie-banner__hide-button {
    font-family: "proxima-nova", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    outline: 0;
    border: 0;
    background: none;
    text-decoration: underline;
    color: #005ea5;
    padding: 0;
    margin-top: 10px
}

@media print {
    .gem-c-cookie-banner__hide-button {
        font-family: "proxima nova", sans-serif
    }
}

@media (min-width: 40.0625em) {
    .gem-c-cookie-banner__hide-button {
        font-size: 19px;
        line-height: 1.3157894737
    }
}

@media print {
    .gem-c-cookie-banner__hide-button {
        font-size: 14pt;
        line-height: 1.15
    }
}

.gem-c-cookie-banner__hide-button:hover {
    color: #2b8cc4;
    cursor: pointer
}

@media (min-width: 48.0625em) {
    .gem-c-cookie-banner__hide-button {
        margin-top: 0;
        position: absolute;
        right: 5px
    }
}

.gem-c-cookie-banner#ofgem-cookies {
    background-color: #ffffff;
    padding: 20px 0 10px 0;
    box-sizing: border-box
}

    .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__message, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__buttons, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation-message {
        font-family: "proxima-nova", Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.25
    }

    .gem-c-cookie-banner#ofgem-cookies .cookie-banner__heading {
        font-family: "proxima-nova", Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.25
    }

@media print {
    .gem-c-cookie-banner#ofgem-cookies .cookie-banner__heading, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__message, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__buttons, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation-message {
        font-family: "proxima nova", sans-serif
    }
}

@media (min-width: 40.0625em) {
    .gem-c-cookie-banner#ofgem-cookies .cookie-banner__heading, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__message, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__buttons, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation-message {
        font-size: 19px;
        line-height: 1.3157894737
    }
}

@media print {
    .gem-c-cookie-banner#ofgem-cookies .cookie-banner__heading, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__message, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__buttons, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation, .gem-c-cookie-banner#ofgem-cookies .gem-c-cookie-banner__confirmation-message {
        font-size: 14pt;
        line-height: 1.15
    }
}

.cookie-settings__form-wrapper {
    display: none
}

.js-enabled .cookie-settings__form-wrapper {
    display: block
}

.js-enabled .cookie-settings__no-js {
    display: none
}

.cookie-settings__confirmation {
    font-family: "proxima-nova", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    display: none
}

@media print {
    .cookie-settings__confirmation {
        font-family: "proxima nova", sans-serif
    }
}

@media (min-width: 40.0625em) {
    .cookie-settings__confirmation {
        font-size: 19px;
        line-height: 1.3157894737
    }
}

@media print {
    .cookie-settings__confirmation {
        font-size: 14pt;
        line-height: 1.15
    }
}

.cookie-settings__gov-services {
    margin-top: 50px
}

