﻿/*****************************
	elocal.co.nz 'Base'
	started by M 2019-03-06
	last updated 2021-01-18

    this stylesheet is used for *all* pages,
    incl. custom-branded lookbooks & minisites

 *****************************

    note to future devs:
    if changes are made to this file, update XX.ContentVersion (referenced by layout pages) and re-compile
    this will force 'versioning' refresh of CSS in Chrome etc. instead of default caching behaviour

 *****************************/

*,
:before,
:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

footer, header {
    display: block;
    min-width: 320px;
    width: 100%;
}

iframe {
    display: block;
    margin: 0 auto;
}

.m-alert {
    border: 2px solid transparent;
    border-radius: .25rem;
    margin: 2rem 0;
    padding: 0.8rem 10px 0.5rem;
    text-align: center;
}

    .m-alert > * {
        vertical-align: top;
    }

    .m-alert p {
        color: inherit;
        font-size: 14px;
        line-height: 20px;
        margin: 0 0 0.5rem;
    }

    .m-alert li.m-navItem {
        font-size: 16px;
        line-height: 32px;
    }

.m-alert-danger {
    color: #b94a48;
    background-color: #f2dede;
    border-color: #eed3d7;
}

.m-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.m-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.m-alert-warning {
    color: #c09853;
    background-color: #fcf8e3;
    border-color: #fbeed5;
}

#m-Analytics {
    display: none !important;
}

#m-bb-address {
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
    margin: 0;
}

#m-bb-contact {
    display: block;
    margin-bottom: 0;
}


.m-bb-details-group {
    text-align: left;
    width: 100%;
    break-inside: avoid;
    position: relative;
    margin: 0 auto;
}

.m-bb-details-icon {
    display: inline-block;
    font-size: 0px;
    height: 24px;
    margin-right: 12px;
    width: 24px;
    position: absolute;
    top: 0;
    left: 0;
}

.m-bb-details-icon img {
    width: 100%;
}

.m-bb-details-item {
    display: inline-block;
    font-size: 15px;
    margin: 0 0 12px 0;
    text-align: left;
    padding-left: 36px;
    min-height: 24px;
    width: 100%;
}

#m-bb-map {
    padding-left: 32px;
    margin-bottom: 0.7rem;
}

#m-bb-map iframe {
    width: 100%;
    height: 255px;
}

#m-bb-title {
    font-family: 'Helvetica Neue', 'Liberation Sans', 'Arial', sans-serif;
    font-size: 21px;
    margin: 0 0 1.4rem;
}

.m-bolded {
    font-weight: 600 !important;
}

.m-normal {
    font-weight: 400 !important;
}

#m-checkViewerSupported {
    display: block;
    overflow: hidden;
    height: 0;
    width: 0;
}

#m-content {
    margin: -5px 0;
    width: 100%;
}

.m-content-hero-fullwidth {
    display: block;
    width: inherit;
    margin: 0 0 2rem;
}

.m-content-section {
    display: block;
    margin: 0 auto;
}

#m-content-inner {
    margin: 2rem 0 3rem;
}

#m-magazine-reader {
    border: none;
    display: block;
    width: 100%;
}

#m-magazine-reader-container {
    margin: 5px 0;
    padding: 0;
}

#m-feature-nav2 {
    margin-left: 10px;
    margin-right: 10px;
}

#m-mag-nav2 {
    margin-left: 5px;
    margin-right: 5px;
}

.m-nav-icon-a {
    display: inline-block;
    font-size: 16px;
    min-width: 32px;
    text-align: center;
    vertical-align: top;
}

.m-nav-icon {
    font-size: 1.5em; /* 16 * 1.5 = 24 */
    line-height: 1;
    margin: 4px auto;
}

.m-icon {
    display: inline-block;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 1em;
    vertical-align: top;
}

    .m-icon.bars {
        --colour: blue;
        width: 0.875em;
        background-image: url('Images/fa-5.10-bars-solid.svg');
    }

    .m-icon.envelope {
        width: 1em;
        background-image: url('Images/fa-5.10-envelope-regular.svg');   
    }

    .m-icon.facebook {
        width: 0.875em;
        background-image: url('Images/fa-5.10-facebook-square-brands.svg');
    }

    .m-icon.text {
        width: 1.125em;
        background-image: url('Images/fa-5.10-file-alt-regular.svg');
    }

    .m-icon.images {
        width: 1.125em;
        background-image: url('Images/fa-5.10-images-solid.svg');
    }

    .m-icon.linkedin {
        width: 0.875em;
        background-image: url('Images/fa-5.10-linkedin-brands.svg');
    }

    .m-icon.podcast {
        width: 1.125em; /* glyph width 0.875, but widened to match .images and .youtube */
        margin-right: 0.125em;
        background-image: url('Images/fa-5.10-podcast-solid.svg');
    }

    .m-icon.search {
        width: 1em;
        background-image: url('Images/fa-5.10-search-solid.svg');
    }

    .m-icon.share {
        width: 0.875em;
        background-image: url('Images/fa-5.10-share-alt-solid.svg');
    }

    .m-icon.twitter {
        width: 1em;
        background-image: url('Images/fa-5.10-twitter-brands.svg');
    }

    .m-icon.user-lock {
        width: 1.25em;
        height: 2em;
        background-image: url('Images/fa-5.10-user-lock-solid.svg');
    }

    .m-icon.youtube {
        width: 1.125em;
        background-image: url('Images/fa-5.10-youtube-brands.svg');
    }

.m-navItem {
    display: inline-block;
    vertical-align: bottom;
}

.m-responsive {
    display: block !important;
}

.m-smalltext {
    font-size: 80%;
}

h2 a .smalltext {
    font-size: 66.6666%;
}

.m-largetext {
    font-size: 120%;
}

/* toggle switch */

label.m-switch {
    position: relative;
    display: inline-block;
    font-size: 1.5em;
    margin: 0.333em 0;
    width: 1em;
    height: 1em;
}

input.m-switch {
    opacity: 0;
    margin: 0;
    width: 0;
    height: 0;
}

input:checked + .m-switch {
    background-color: #2196F3;
}

span.m-switch {
    border-radius: 16px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #aaaaaa;
    transition: .4s;
    transition: .4s;
}

span.m-switch::before {
    border-radius: 50%;
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    transition: .4s;
}

/* toggle slider */

label.m-slider {
    position: relative;
    display: inline-block;
    font-size: 1.5em;
    margin: 0.166667em 0;
    width: 1.666em;
    height: 1em;
    vertical-align: middle;
}

input.m-slider {
    opacity: 0;
    margin: 0;
    width: 0;
    height: 0;
}

input[disabled] + .m-slider {
    background-color: #aaa;
}

input:checked + .m-slider {
    /* background-color: rgb(33, 150, 243); */
    background-color: rgb(237, 28, 36);
}

input:checked + .m-slider:before {
    transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(16px);
}

span.m-slider {
    border-radius: 16px;
    position: absolute;
    cursor: pointer;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 1px;
    background-color: rgb(98, 72, 33);
    transition: .4s;
    transition: .4s;
}

span.m-slider::before {
    border-radius: 50%;
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    transition: .4s;
}