﻿

h1, h2, h3, h4, h5, h6 {
    display: inline;
    margin: 0 !important;
}

picture {
    display: block;
}
picture source{width:100%;}
picture img{width:100%;}

label {
    line-height: 1.25em !important;
    position: relative;
    width: 100%;
    text-overflow: ellipsis;
}

    label em {
        margin-right: 0.5em;
    }

/*input[disabled] + label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.25);
    z-index: 1;
    cursor: not-allowed;
}*/
input[data-disabled] + label{
    opacity: 0.5;
    cursor: default;
}

input.mandatory,
select.mandatory {
    border-color: #9c0006 !important;
    color: #9c0006;
    /*background-color: #ffc7ce;*/
    animation: pulse 1s 3 ease-in-out;
}
select.mandatory > option {
    border-color: initial;
    color: inherit;
    background-color: initial;
}
@keyframes pulse {
    from {
        box-shadow: 0 0 0px #9c0006;
    }
    to {
        box-shadow: 0 0 8px #9c0006;
    }
}

input[disabled] + label em {
    cursor: not-allowed;
}

section.main {
    width: 100%;
    padding: 0;
    margin: 0;
}

.main-content {
    max-width: 1024px;
    padding: 2em 1em 4em 1em;
    margin: 0 auto;
}

.store-locator-loading{position:relative;}
.store-locator-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    cursor: progress;
}
.store-locator-loading::after {
    content: "";
    position: absolute;
    top: 1em;
    left: 50%;
    width: 3em;
    height: 3em;
    border-radius: 3em;
    border-top: 4px solid #0033ff;
    border-left: 4px solid #0033ff;
    border-right: 4px solid transparent;
    /*border-bottom: 4px solid transparent;*/
    z-index: 2;
    animation: rotate 1s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.main-title {
    /*display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5em;*/
    padding-bottom: 1em;
}

    .main-title h1 {
        text-transform: uppercase;
        vertical-align: middle;
    }

.infoArea{display:inline;position:relative;vertical-align:top;}

.infoArea .info-button {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    line-height: 1em;
    text-align: center;
    border: 1px solid #000000;
    color: #000000;
    cursor: default;
}

    .infoArea .info-button > .disclaimer {
        display: none;
        font-weight: initial;
        min-width: 200px;
        max-width: 50vw;
        position: absolute;
        top: 75%;
        left: 75%;
        padding: 1em;
        border: 1px dotted #545454;
        border-radius: 0.5em;
        color: #545454;
        background-color: #fafafa;
        text-align: initial;
        z-index: 9;
    }

    .infoArea .info-button:hover > .disclaimer,
    .infoArea .info-button:focus > .disclaimer {
        display: inline-block;
    }

#Gallery {
    position: relative;
    width: 100vw;
}

    #Gallery #Carousel {
        white-space: nowrap;
    }

#Carousel .carousel-element {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    opacity: 0;
    transition: 500ms opacity ease-out;
    transition-delay: 250ms;
}

    #Carousel .carousel-element[data-carousel-status="active"] {
        position: relative;
        opacity: 1;
        transition-delay: 0ms;
        z-index: 1;
    }

    #Carousel .carousel-element picture source,
    #Carousel .carousel-element picture img {
        width: 100%;
    }

.carousel-button {
    font-size: 2em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 6px;
    line-height: 1em;
    background-color: rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.75);
    border-radius: 6px;
    border: 1px solid #767676;
    cursor: pointer;
    z-index: 99;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .carousel-button:hover, .carousel-button:focus {
        background-color: rgba(0,0,0,0.5);
        color: rgba(255,255,255,1);
    }

    .carousel-button:focus {
        outline: 1px solid #000000;
    }

    .carousel-button.prev {
        left: 1rem;
    }

    .carousel-button.next {
        right: 1em;
    }

#CarouselElements {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    z-index: 99;
    position: absolute;
    bottom: 1em;
    width: 100%;
}

    #CarouselElements .element {
        content: "";
        position: relative;
        width: 2em;
        height: 0.5em;
        border-radius: 6px;
        background-color: rgba(0,0,0,0.25);
        border: 1px solid #767676;
    }
        /*#CarouselElements .element::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            border-radius: 6px;
            background-color: rgba(224,224,224,0.75);
        }
        #CarouselElements .element.done {
            background-color: rgba(224,224,224,0.75);
        }
        #CarouselElements .element.active::before {
            width: 100%;
            transition: width 4s linear;
        }*/
        #CarouselElements .element.active {
            background-color: rgba(224, 224, 224, 0.75);
            transition: background-color 0.5s ease-in-out;
        }



/*.store-locator {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
}*/
.store-locator {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 1em;
}

    .store-locator.loading {
        opacity: 0.5;
        position: relative;
    }

        .store-locator.loading::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 1;
        }

    /*.store-locator .filter-area {
        flex-grow: 1;
        padding-right: 2em;
        width: calc(100% / 12 * 3);
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1em;
    }*/
    .store-locator .filter-area {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 1em;
    }
    .store-locator .filter-area > div {
        width: calc(25% - 1em);
    }

        .store-locator .filter-area select {
            border: 1px dotted #999;
            border-radius: 4px;
        }

        .store-locator .filter-area b {
            display: block;
            padding-bottom: 0.5em;
        }

        .store-locator .filter-area small {
            display: inline-block;
            padding: 0.5em;
            background-color: #fafafa;
            color: #545454;
            border: 1px dotted #767676;
        }

    /*.store-locator > section {
        flex-grow: 2;
        width: calc(100% / 12 * 9);
    }*/
    .store-locator > section {
        width: 100%;
        padding-top: 3em;
        border-top: 1px solid #ccc;
    }

#Retailers,
#EnsignList {
    padding-bottom: 2em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
}
#Retailers{padding-bottom:3em;}
.ensign {
    position: relative;
    padding: 1em !important;
    width: calc(25% - 1em) !important;
    border: 1px solid #cccccc !important;
    border-radius: 1em !important;
    text-align: center !important;
}
input[type=checkbox] + label.ensign {
    fill: initial;
}
input[type=checkbox]:checked + label.ensign {
    border-color: #0033ff !important;
}

.def-icon {
    position: absolute;
    top: 4px;
    right: 4px;
}

#Retailers.focus {
    padding: 2em 0;
    gap: 2em;
}
    #Retailers.focus .ensign {
        padding: 2em 1em !important;
        width: calc(25% - 2em) !important;
    }

#Ensigns {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1em;
    font-size: 12px;
}

.ensign-count {
    margin-left: 4px;
}

/*#Stores {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    justify-items: stretch;
    justify-content: center;
}*/
#Stores {
    display: flex;
    gap: 2em 1em;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}
/*#Stores .store-locator-store {
    width: calc(33.3% - 1em);
}*/
#Stores .store-locator-store {
    width: calc(25% - 1em);
}
.store-locator .store-locator-store {
    border: 1px solid #cccccc;
    border-radius: 1em;
    overflow: hidden;
    cursor: default;
}

    .store-locator .store-locator-store > img {
        width: 100%;
    }

    .store-locator .store-locator-store .content {
        padding: 1em;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow: hidden;
    }

        .store-locator .store-locator-store .content header {
            padding-bottom: 0.5em;
        }

            .store-locator .store-locator-store .content header > div {
                text-align: center;
            }

            .store-locator .store-locator-store .content header hr {
                margin: 0.5em 0 1em 0;
                width: calc(100% + 2em);
                transform: translateX(-1em);
                border-color: #cccccc;
            }

            .store-locator .store-locator-store .content header h2 {
                font-size: 1em;
                font-weight: bold;
            }

        .store-locator .store-locator-store .content section {
        }

        .store-locator .store-locator-store .content footer {
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-items: flex-start;
            padding-top: 1em;
            gap: 0.5em;
        }

            .store-locator .store-locator-store .content footer img {
                max-width: 1em;
                vertical-align: middle;
                /*margin-left: 2px;*/
            }
            .store-locator .store-locator-store .content footer a {
                color: inherit;
            }
            .store-locator .store-locator-store .content footer > * {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                align-items: center;
                gap: 4px;
            }

.store-locator .hidden {
    display: none;
}

@media screen and (max-width: 600px) {
    /*.main-title{padding-bottom:1em;}*/
    /*.store-locator {
        flex-direction: column;
        gap: 2em;
    }*/
        .store-locator .filter-area {
            width: 100%;
            flex-direction: row;
            flex-wrap: wrap;
            padding: 0;
        }

            .store-locator .filter-area > div {
                width: calc(50% - 1em);
            }

            .store-locator .filter-area :not(:nth-child(1)):not(:nth-child(2)) {
                max-width: unset;
                width: 100%;
            }

    .ensign{width:calc(50% - 1em) !important;}
    #Retailers.focus .ensign{width:calc(50% - 2em) !important;}

    #Ensigns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .store-locator > section {
        width: 100%;
    }

    /*#Stores {
        padding-top: 1em;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
    }*/
    #Stores {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    #Stores .store-locator-store {
        width: 100%;
    }
}
