@import "breakpoints";
@import "typography";
@import "overrides";

footer.footer-main, .newsletter-container {
    font-family: SFProDisplay-Light,-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 24px;
    text-rendering: initial;
    -webkit-font-smoothing: initial;
    -moz-osx-font-smoothing: initial;

&.section {
     padding-left: 24px;
     padding-right: 24px;
 }

.container, &.container {
@media (min-width: 576px) {
    max-width: 540px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    max-width: 720px;
}

@media (min-width: 992px) {
    max-width: 960px;
}

@media (min-width: 1200px) {
    max-width: 1140px;
}
}
}

footer.footer-main {
    margin-top: unset;
    padding-bottom: 16px;
    padding-top: 16px;

ul {
    margin-bottom: 16px;
}

.link {
    text-decoration: none;
}

.section {
    padding: 32px 24px 0;
}
}

// Temporary z-index fix for multiple #footers.
   .footer-z-index {
       position: relative;
       z-index: $uikit-zindex-tooltip;
   }

.footer-links, .links {
    list-style: none;
    padding: 0;
    flex: 1;
}

.uikit-link {
    font-size: 16px;
}

.footer-link, .link{
    margin-bottom: $uikit-spacing-medium;
}

.download-free-text {
    padding-top: 14px;
}

.footer-link--primary,
.footer-link--secondary,
.footer-link--tertiary,
.link--primary,
.link--secondary,
.link--tertiary {
    color: $uikit-white;
    font-weight: $lightFontWeight;
    text-decoration: none;
}

.footer-link--primary:hover,
.footer-link--secondary:hover,
.footer-link--tertiary:hover,
.link--primary:hover,
.link--secondary:hover,
.link--tertiary:hover {
    color: $uikit-white;
    opacity: 1;
    text-decoration: underline;
}
.footer-link--primary {
    font-size: 26px;
}

.footer-link--secondary {
    font-size: 16px;
}

.footer-link--tertiary {
    font-size: 13px;
    margin-right: $uikit-spacing-small;
}

.footer-link--social, .link--social {
    display: inline-block;
    margin-bottom: 0 !important;
}

.footer-link--main, .link-main{
    margin-bottom: $uikit-spacing-medium;
}

.footer-icon, .icon {
    width: 20px;
    height: 20px;
    margin-left: 7px;
    margin-right: 26px;
    padding: 0;
    float: initial;
}

.footer-app {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 24px;
    width: 100%;

&:hover {
     text-decoration: none;
 }
}

.footer-container {
    display: grid;
}

.uikit-text--small.footer-copyright {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

.footer-policies {
    letter-spacing: 0.41px;
    line-height: 35px;
    width: 430px;
}

.footer-socials {
    text-align: center;
}

.footer-upper {
    grid-template-columns: 25% 25% 25% 25%;
    margin-top: 69px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-lower {
    grid-template-columns: 50% 50%;
}

.tn-logo-web {
    float: right;
    margin-top: 14px;
}

.footer-link--title {
    margin-bottom: 34px;
}

.footer-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-top: 10px;
    margin-left: 65%;
    padding-left: 5%;
    width: 35%;
    height: 34px;
    border-radius: 17px;
    background-color: $uikit-primary;
    border: 2px solid #FFF;
    color: #FFF;
    background: url(/common/public/images/Arrow_Down.svg) no-repeat right;
}

.footer-dropdown:hover {
    cursor: pointer;
}

.link--primary {
    font-size: 20px;
}

.link--secondary {
    font-size: 14px;
}

.link--tertiary {
    font-size: 11px;
    margin-right: $uikit-spacing-small;
    white-space: nowrap;
}

.copyright-mobile {
    font-weight: 500;
    margin-bottom: 0;
}

.tn-logo-mobile {
    padding: 24px 0;
    box-sizing: content-box;
    height: 20px;
}

.sticky {
    position: fixed;
    bottom: 0;
}

#remove-bottom-padding {
    padding-bottom: 0;
}

.policies {
    margin-bottom: 26px;
}

.link--social {
    transform: scale(1.5);
}

.bigClickAreaFooterButtonRight {
    margin: -30px;
    margin-left: -25%;
    padding: 30px 30px 30px 25%;
}

.bigClickAreaFooterButtonLeft {
    margin: -30px;
    padding: 30px 25% 30px 30px;
    margin-right: -25%;
}

.bg-brand {
    background-color: $uikit-primary;
}

.newsletter-form {
    position: relative;
}

input[type="email"].newsletter-input {
    width: 100%;
    color: $uikit-white;
    background-color: $uikit-primary;
    outline: none;
    border:none;
    border-bottom: 1px solid $uikit-white;
    font-weight: 500;
    padding: 1px 1px 16px;
    -webkit-box-shadow: 0 0 0 30px $uikit-primary inset !important;
    font-size: 20px;
    border-radius: 0;
}

/*Change text in autofill textbox*/
input.newsletter-input:-webkit-autofill {
    -webkit-text-fill-color: $uikit-white !important;
}

.bg-brand--no-margin {
    background-color: $uikit-primary;
    margin-top: 0;
    padding-top: 10px;
}

input[type="email"].newsletter-input::placeholder {
    color: $uikit-white;
    opacity: .5;
}

#newsletter-error {
    color: $uikit-pink;
}

#newsletter-success {
    font: $uikit-size-subheading;
    color: $uikit-white;
    margin-top: 48px;
}

.newsletter-label {
    width: 100%;
    margin-bottom: 8px;
}

.newsletter-input-container {
    display: flex;
    margin-bottom: 16px;
}

@media screen and (max-width: 991px) {
    .newsletter-input-container {
        width: 100%;
        max-width: 650px;
        display: block;
    }
    .newsletter-input-container .button {
        width: 100%;
    }
}

#mce-responses {
    margin-bottom: 16px;
}

@media only screen and (min-width: 768px) {
    .footer-socials {
        margin-top: 64px;
    }
    .newsletter-container {
    .uikit-text--regular2 {
        font-size: 20px
    }
}
.uikit-button.newsletter-button {
    position: absolute;
    top: -5px;
    right: 0;
    min-width: 0;
    padding: 6px 12px;
    font-size: 15px;
}
}

@media only screen and (min-width: 576px) {
    footer.footer-main .section {
        padding-left: 0;
        padding-right: 0;
    }

    footer.footer-main .container {
        padding-left: 0;
        padding-right: 0;
    }

    input[type="email"].newsletter-input {
        font-size: 32px;
    }
    .newsletter-container.section {
        padding: 92px 0 20px;
        margin-left: auto;
        margin-right: auto;
    p {
        margin-bottom: 16px;
    }
}
}

body {
&.desktopApp {
.webOnly {
    display: none !important;
}
}
&.mobileApp {
.webOnly {
    display: none !important;
}
}
}

