.timeBadge {
    font-size: smaller;
}

.badge-text {
    text-transform: uppercase;
}

.ellipsisOnShrink {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.img-thumbnail {
    border: unset;
}


#DetailsContainer {
    min-height: 400px;
}

#DetailsContent {
    padding: 1.7rem 4rem 0rem 0rem;
}

.grayText {
    color: #969696;
}

#AddressContent {
    margin-top: 0.3rem;
    margin-bottom: 0rem;
}

#RouteButton {
    margin-top: 1.1rem;
    font-size: 1.1rem;
}

#Landmark {
    margin-top: 1.2rem;
}

#AddressSeparator {
    margin-top: 1.3rem;
}

#SocialMediaContainer {
    padding-bottom: 2rem;
    padding-top: 1.5rem;
}

.openinghours > table > tbody > tr {
    line-height: 2.1em;
}

#OpeningHoursTable {
    margin-bottom: 3rem;
}

#AboutUs {
    white-space: pre-line;
    line-height: 1.6rem;
    margin-top: 2rem;
}

#TemporaryNotice {
    margin-top: 2rem;
}

.pharmacy-images {
    margin-top: 3rem;
}

#NewsPane {
    margin-top: 0.9rem;
}
/************** BADGE OPEN/CLOSED **************/

.badge-single {
    color: #FFFFFF;
    padding: 0.3em 0.5em;
    border-radius: 1em;
}

.badge-first {
    color: #FFFFFF;
    padding: 0.3em 0.5em;
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
}

.badge-second {
    padding: 0.3em;
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    color: #969696;
    background-color: #FFFFFF;
    border: 1px solid #969696;
    border-left: none;
}

.open {
    background-color: #87C857;
    border: 1px solid #87C857;
}

.duty {
    background-color: #4CA1EF;
    border: 1px solid #4CA1EF;
}

.break {
    background-color: #DF7146;
    border: 1px solid #DF7146;
}

.closed {
    background-color: #DF5346;
    border: 1px solid #DF5346;
}


.detailsIcon {
    padding-right: 0.4rem;
}
/************** TITLE **************/



@media (min-width: 768px) {
    .title {
        padding-right: calc(60px + 10px); /* image overlap + extra padding */
    }

    .timeBadge {
        font-size: unset;
    }

    #DesktopTitle {
        min-height: 140px;
    }
}

/************** HEADER IMAGE WIDTH **************/

.header-image {
    width: calc(100% + 20px);
    margin-left: 0px;
}

@media (min-width: 768px) {
    .header-image {
        width: calc(100% + 60px + 12px + 12px + 12px + 40px); /* width + left overlap + padding + padding + padding + right overlap */
        margin-left: calc(-60px - 12px - 12px); /* -left overlap - padding - padding */
    }
}



/************** OPENING HOURS **************/
.openinghours {
    padding-left: 0px;
    margin-top: 20px;
}


@media (min-width: 768px) { /*LG & XL & XXL*/
    .openinghours {
        margin-top: -200px;
    }
}

@media (min-width: 992px) { /*LG & XL & XXL*/
    .openinghours {
        margin-top: -240px;
    }
}

@media (min-width: 1200px) { /*LG & XL & XXL*/
    .openinghours {
        padding-left: 75px;
        margin-top: -180px;
    }
}

@media (min-width: 1300px) { /*LG & XL & XXL*/
    .openinghours {
        padding-left: 150px;
        margin-top: -140px;
    }
}

@media (min-width: 1400px) { /*LG & XL & XXL*/
    .openinghours {
        padding-left: 150px;
        margin-top: -120px;
    }
}

@media (min-width: 1530px) { /*LG & XL & XXL*/
    .openinghours {
        padding-left: 150px;
        margin-top: -80px;
    }
}

.openinghours > table tr th {
    text-align: left;
    padding: 3px;
    color: #969696;
    font-weight: normal;
}

.openinghours > table tr td {
    text-align: center;
    padding: 3px;
}

    .openinghours > table tr td:last-child {
        text-align: right;
    }


/************** PHARMACY IMAGES **************/

.pharmacy-images img { /* XS & SM */
    object-fit: cover;
    width: 130px;
    height: 130px;
}

@media (min-width: 768px) { /* MD & LG */
    .pharmacy-images img {
        width: 98px;
        height: 98px;
    }
}

@media (min-width: 1200px) { /* XL */
    .pharmacy-images img {
        width: 130px;
        height: 130px;
    }
}

@media (min-width: 1400px) { /*XXL*/
    .pharmacy-images img {
        width: 150px;
        height: 150px;
    }
}



/************** SERVICES **************/

.services {
    background-color: #62B4FF;
    background-image: url("../img/pills.svg");
    margin-top: 1rem;
    padding-top: 3em;
    padding-bottom: 5em;
}

    .services p {
        line-height: 2.5em;
    }

.service {
    color: #232323;
    background-color: #FFF;
    padding: 0.4em 1em;
    margin: 0.4em 0.2em;
    font-size: 1.1rem;
}

    .service .icon-check {
        color: #87C857;
    }





/************** TEAM **************/
#TeamTitle {
    margin-bottom: 1.8rem;
}

#TeamMemberModalDetails {
    padding: 50px 10px 10px 100px;
}

@media(min-width: 768px) {
    #TeamMemberModalDetails {
        padding: 100px;
    }
}

.team {
    background-color: #F0F0F0;
}

.teammember {
    background-color: #FFF;
    border-radius: 1rem;
    padding: 10px;
    height: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

    .teammember .function {
        display: block;
    }

    .teammember .action {
        display: none;
    }

    .teammember:hover .function {
        display: none;
    }

    .teammember:hover .action {
        display: block;
    }

.teammember-img {
    width: 100px;
    height: 100px;
    -webkit-border-radius: 50%;
    -webkit-background-clip: padding-box;
    -moz-border-radius: 50%;
    -moz-background-clip: padding;
    border-radius: 50%;
    background-size: cover;
    background-position: center center;
    background-clip: padding-box;
    margin: 10px auto;
}


#TeamModalImageNotFound {
    display: none;
    left: 25px;
    position: absolute;
}

#TeamModalImageSource {
    display: none;
    position: relative;
    border-radius: 80px;
    max-width: 150px;
    max-height: 150px;
}

#TeamModalImageContainer {
    position: absolute;
    top: 100px;
    left: calc(20% - 75px)
}

#TeamMemberModalDetailsContainer {
    position: absolute;
    left: 20%;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    width: 80%;
}

#TeamMemberModalBorder {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    background: lightgray;
}
/************** MAP **************/
#map {
    width: 100%;
    border-radius: 1rem;
}

.map-wrapper {
    margin-right: 0px;
    z-index: 1;
    position: relative;
}

@media (min-width: 768px) { /* >= MD */
    .map-wrapper {
        margin-right: -80px;
    }
}

#marker {
    background-image: url('../img/pin.svg');
    background-size: fit;
    background-position: center;
    background-repeat: no-repeat;
    width: 3em;
    height: 3em;
}

.leaflet-popup-content {
    width: unset !important;
}

.leaflet-popup-close-button {
    top: -0.75rem;
    right: -0.5rem;
    font-size: .6rem;
    border: none;
    background: none;
    color: grey;
}


@media (min-width: 768px) { /*MD & LG */
    #MapAddressContainer {
        justify-content: flex-end !important;
    }
}

.pharmacy-images > img {
    cursor: pointer;
}
