﻿html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    width: 100%;
}

app {
    position: relative;
    display: flex;
    /*flex-direction: column;*/
}

.mud-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.content {
    margin-top: 2px; /* Horizontal menu height + pt-3 */
    display: flex;
    flex-direction: column;
}

.content-horizontal {
    padding-top: calc(36px + 12px); /* Horizontal menu height + pt-3 */
}

.title {
    display: flex;
    flex: 0 1 auto;
    justify-content: end;
    align-content: center;
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-dark) !important;
    flex-wrap: wrap;
    flex-direction: column;
}

.banner {
    display: flex;
    flex: 0 1 auto; /* don't grow */
    position: relative;
    width: 100%;
    height: 40%;
    padding-top: 40%;
    /*overflow: hidden;*/
    justify-content: center;
    align-content: start; /* center for text on image */
    flex-wrap: wrap;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-color: var(--mud-palette-primary-lighten);
}

    .banner img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rounded-lg-wof {
    border-radius: 12px;
}

.content-filter-wrapper {
    display: flex;
    flex: 0 1 auto; /* don't grow */
    flex-direction: column;
    background-color: var(--mud-palette-primary-lighten);
}

    .content-filter-wrapper > div {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 0;
    }

.content-main-wrapper {
    display: flex;
    flex: 1 1 auto; /* grow */
}

    .content-main-wrapper > div {
        display: flex;
        justify-content: center;
        align-items: start;
        padding: 1rem 0;
    }

footer > p {
    margin: 0 !important;
    font-size: 0.85rem !important;
}

#copy {
    padding-right: 3px;
}

.wof-row {
    margin-bottom: 20px;
}

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-muted {
    color: var(--mud-palette-text-disabled) !important;
}

.no-wrap {
    white-space: nowrap;
}

.hide-overflow {
    overflow: hidden;
}

.pointer {
    cursor: pointer;
}

.boldish {
    font-weight: 500;
}

.boldish-light {
    font-weight: 400;
}

.wof-filter-field {
    cursor: pointer;
    margin-top: 4px !important;
}

    .wof-filter-field > div > div.mud-input:not(.mud-disabled) {
        background-color: #FFFFFF;
        cursor: pointer;
    }

        .wof-filter-field > div > div.mud-input > div.mud-input-slot {
            text-overflow: ellipsis;
            overflow-x: hidden;
            white-space: nowrap;
        }

/* when you need to ellipsis inside a flex-box parent, use this on the parent(s) and wof-ellipsis on the child */
/* every flex-box parent should have this class until a block-element, and the block should most likely have overflow: hidden. */
.wof-ellipsis-flex-wrapper {
    min-width: 0;
}

.wof-ellipsis {
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
}

/* Horizontal top menu */
.wof-horizontal-menu {
    width: 100%;
    position: fixed;
    z-index: var(--mud-zindex-appbar);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    /*background-color: var(--mud-palette-drawer-background);*/
    /*color: var(--mud-palette-drawer-text);*/
}

.wof-tabs-fullwidth.mud-tabs {
    width: 100%;
}

    .wof-tabs-fullwidth.mud-tabs > .mud-tabs-toolbar > .mud-tabs-toolbar-inner {
        min-height: 40px;
    }

        .wof-tabs-fullwidth.mud-tabs > .mud-tabs-toolbar > .mud-tabs-toolbar-inner > .mud-tabs-scroll-button {
            display: none;
        }

    .wof-tabs-fullwidth.mud-tabs .mud-tabs-toolbar-wrapper {
        width: 100%;
        transform: translateX(0) !important;
    }

        .wof-tabs-fullwidth.mud-tabs .mud-tabs-toolbar-wrapper > div.d-inline-block {
            flex: 1 1 0% !important;
        }

    .wof-tabs-fullwidth .mud-tab {
        padding: 0 12px;
        min-height: 40px;
    }

.dialog-popup-selector {
    border-radius: 12px;
}

    .dialog-popup-selector.mud-dialog-width-xs {
        max-width: 460px;
    }

    .dialog-popup-selector .dialog-popup-selector-title {
    }

        .dialog-popup-selector .dialog-popup-selector-title > .mud-button-close {
            top: 4px;
            right: 4px;
            padding: 8px;
        }

    .dialog-popup-selector .dialog-popup-selector-content {
        padding-top: 0 !important;
    }

.wof-expansionpanel-compact.mud-expansion-panels {
    border-radius: unset;
}

.wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel-header {
    padding: 0;
}

    .wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel-header > .mud-expand-panel-text {
        min-height: 48px;
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }

    .wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel-header > svg.mud-expand-panel-icon {
        min-height: 48px;
    }

        .wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel-header > .mud-expand-panel-text > .clickable {
            min-height: 48px;
            display: flex;
            align-items: center;
            margin-right: 5px;
            min-width: 0;
        }

.wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel:first-of-type {
    border-top: 1px solid var(--mud-palette-lines-default);
}

    .wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel {
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }

    .wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel:hover {
        background-color: var(--mud-palette-primary-lighten);
    }

    .wof-expansionpanel-compact.mud-expansion-panels .mud-expand-panel.mud-panel-expanded {
        margin: 0;
    }

    .wof-expansionpanel-compact.mud-expansion-panels .mud-collapse-container.mud-collapse-entered {
        background-color: var(--mud-palette-surface);
        border-radius: 10px;
        margin-bottom: 8px;
        padding: 16px 10px;
    }

.wof-expansionpanel-compact .list-image-container {
    width: 70px;
    min-height: 70px;
    max-height: 100px;
    display: flex;
    align-self: stretch;
}

    .wof-expansionpanel-compact .list-image-container img, .wof-expansionpanel-compact .list-image-container svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        color: var(--mud-palette-lines-default);
    }

.mud-navmenu.horizontal {
    width: 100%;
}

    .mud-navmenu.horizontal > .mud-nav-item {
        margin-right: 1rem;
    }

        .mud-navmenu.horizontal > .mud-nav-item:last-child {
            margin-right: 0;
        }

        .mud-navmenu.horizontal > .mud-nav-item > .mud-nav-link {
            padding: 2px 14px;
            margin-top: 2px;
            margin-bottom: 2px;
        }

            .mud-navmenu.horizontal > .mud-nav-item > .mud-nav-link > .mud-nav-link-text {
                margin-left: 0;
                margin-inline-start: 0;
            }

/* Clinic, service- & practitioner cards */
.wof-service-card {
    width: 100%;
    height: 8rem;
    max-height: 150px;
    background: rgb(255,255,255);
    overflow: hidden;
    /*background: radial-gradient(circle, rgba(255,255,255,1) 80%, var(--mud-palette-secondary-lighten) 100%);*/
}

    .wof-service-card.treatment {
        width: 100%;
        min-height: 180px !important;
        max-height: initial;
        background: rgb(255,255,255);
        /*background: radial-gradient(circle, rgba(255,255,255,1) 80%, var(--mud-palette-secondary-lighten) 100%);*/
    }

    .wof-service-card > .mud-card-content > .description {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .wof-service-card:hover, .wof-service-card:focus, .wof-service-card:active, .wof-service-card.selected {
        background: radial-gradient(circle, rgba(255,255,255,1) 50%, var(--mud-palette-primary-lighten) 100%);
        border-color: var(--mud-palette-primary);
        transition: box-shadow 300ms cubic-bezier(.4,0,.2,1) 0ms;
    }

    .wof-service-card img {
        width: auto;
        max-width: 150px;
        height: 60px;
        align-self: center;
    }

.wof-practitioner-card {
    width: 100%;
    background: rgb(255,255,255);
}

    .wof-practitioner-card:hover, .wof-practitioner-card:focus, .wof-practitioner-card:active, .wof-practitioner-card.selected {
        background: radial-gradient(circle, rgba(255,255,255,1) 50%, var(--mud-palette-primary-lighten) 100%);
        border-color: var(--mud-palette-primary);
        transition: box-shadow 300ms cubic-bezier(.4,0,.2,1) 0ms;
    }

/* Drawer overrides */
.mud-navmenu.mud-navmenu-default .mud-nav-link:focus:not(.mud-nav-link-disabled),
.mud-navmenu.mud-navmenu-default .mud-nav-link:hover:not(.mud-nav-link-disabled),
.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: var(--mud-palette-primary-text) !important;
}

.mud-nav-link {
    padding: 8px 16px 8px 16px;
    margin: 5px;
    border-radius: 5px;
    font-weight: 300;
}

    .mud-nav-link > .mud-nav-link-text {
        width: 100%;
        font-size: 15px;
        text-align: center;
        margin-left: 0;
        margin-inline-start: 0;
    }

        .mud-nav-link > .mud-nav-link-text > img,
        .mud-drawer-header img {
            vertical-align: middle;
            border-style: none;
            height: 22px;
            margin-right: 10px;
            margin-bottom: 5px;
        }

.mud-drawer-header {
    padding: 8px 16px 12px 8px;
    align-items: center;
    justify-content: center;
}

.or-mud-checkbox-dense .mud-icon-button {
    padding-left: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.or-mud-checkbox-dense .mud-icon-button:hover, .or-mud-checkbox-dense .mud-icon-button:focus-visible {
    background-color: transparent;
}

.wof-bordered-box {
    display: inline-block;
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
    border-radius: var(--mud-default-borderradius);
    transition: box-shadow 300ms cubic-bezier(.4,0,.2,1) 0ms;
}

hr.wof-service-card-break-row {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    border: 0;
}

hr.wof-spacer {
    height: 0;
    border: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
    width: 100%;
}

a.wof-link {
    color: var(--mud-palette-primary) !important;
    text-decoration: underline !important;
    font-weight: 300;
}

    a.wof-link:hover {
        color: var(--mud-palette-secondary) !important;
    }

.wof-infobox {
    border: 1px solid var(--mud-palette-lines-default);
    padding: 16px !important;
    color: var(--mud-palette-text-primary);
    background-color: var(--mud-palette-primary-lighten);
    border-radius: var(--mud-default-borderradius);
    transition: box-shadow 300ms cubic-bezier(.4,0,.2,1) 0ms;
    margin: 15px 0;
}

    .wof-infobox.dense {
        padding: 8px !important;
        margin: 0;
    }

.wof-text-huge{
    font-size: 1.3rem;
}

.wof-text-big{
    font-size: 1.25rem;
}

.wof-text-small {
    font-size: 0.85rem;
}

.wof-text-tiny {
    font-size: 0.7rem;
}

.wof-button-tiny {
    font-size: .7125rem !important;
    padding: 2px 6px !important;
    line-height: 1.5 !important;
    border: 1px solid var(--mud-palette-dark-lighten);
    color: var(--mud-palette-dark-lighten);
}

.wof-navmenu-header {
    border-bottom: 1px solid var(--mud-palette-drawer-text);
}

    .wof-navmenu-header > .wof-navmenu-header-label {
        position: relative;
        top: 0.3rem;
        left: 0;
        font-size: 0.7rem;
        color: var(--mud-palette-text-secondary);
    }

.wof-booking-step {
    padding: 0;
    background-color: var(--mud-palette-grey-lighter);
    height: 5px;
}

    .wof-booking-step.active {
        background-color: var(--mud-palette-secondary) !important;
    }

.wof-responsive-calendar {
    width: 100%;
}

.header-border {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    width: 250px;
    display: inline-block;
    vertical-align: middle;
}

.d-xxs {
    display: flex;
    flex-direction: row;
}

.wof-responsive-map {
    height: 50vh;
    width: 70vw;
    max-height: 60vh;
    max-width: 80vw;
    min-height: 300px;
    min-width: 250px;
}
.rounded-map > div {
    border-radius: 7px;
}

.campaign-icon {
    background-color: var(--mud-palette-primary);
    color: white;
    border-radius: 4px;
    padding: 4px;
    font-weight: 500;
    font-size: 0.65rem;
    line-height: 1;
    width: fit-content;
}

.mud-dialog-width-full {
    width: calc(100% - 8px);
}


.wof-top-container {
    height: 100%;
    max-height: 100%;
}

.wof-top-container > a {
    font-size: 0.9em;
}

.top-title {
    margin-top: -7px;
}

.top-logo {
    max-width: 150px;
    margin-top: -7px;
    display: flex;
    align-items: center;
    height: 100%; /* Ensures it follows the container height */
    max-height: 100%; /* Prevents it from exceeding container */
    padding: 10px 0;
}

    .top-logo.mud-icon-button:hover {
        background-color: inherit;
    }

    .top-logo img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        display: block;
        object-fit: contain;
    }

.top-link {
    margin-top: -5px;
}

.top-link:not(:last-of-type) {
    margin-right: 4px;
}

.top-hamburger {
    margin-left: 0;
    margin-top: -8px;
}

.hide-xxs {
    display: none;
}

.wof-responsive-calendar {
    width: 300px;
}

.wof-avatar-big {
    width: 3rem;
    height: 3rem;
}

/* -------------- Oddly speced - kind of desktop-first. Use the mobile-first fallthrough below instead -------------------- */
@media screen and (max-width: 960px) {
    .wof-service-card { /* double the height since grid will collapse/stack  */
        height: auto;
        max-height: 300px;
        min-height: 5rem;
    }
}

/* -------------- Min with fall-through / Mobile-first -------------------- */
/* XXS - custom */
@media screen and (min-width: 360px) {

    .hide-xxs {
    }

    .wof-responsive-calendar {
        width: 100%;
    }

    .mud-dialog-width-full {
        width: calc(100% - 16px);
    }

    .content-filter-wrapper > div {
        padding: 0.75rem 0 0 0;
    }

    .top-title {
        margin-top: -8px;
    }

    .top-logo {
        max-width: 170px;
        margin-top: -8px;
    }

    .top-link:not(:last-of-type) {
        margin-right: 12px;
    }

    .top-hamburger {
        margin-left: 4px;
    }
}

/* XS */
@media screen and (min-width: 599px) {
    .wof-responsive-map {
        height: 50vh;
        width: 60vw;
        max-height: 60vh;
        max-width: 80vw;
        min-height: 300px;
        min-width: 350px;
    }

    .wof-avatar-big {
        width: 4rem;
        height: 4rem;
    }

    .banner {
        padding-top: 35%;
        height: 35%;
    }

    .mud-dialog-width-full {
        width: calc(100% - 32px);
    }

    .content-filter-wrapper > div {
        padding: 1.5rem 0 0 0;
    }

    .wof-top-container > a {
        font-size: initial;
    }

    .top-title {
        margin-top: -6px;
    }

    .top-logo {
        max-width: 220px;
        margin-top: -6px;
    }

    .top-link {
        margin-top: 0;
    }

    .top-link:not(:last-of-type) {
        margin-right: 16px;
    }

    .top-hamburger {
        margin-left: 16px;
        margin-top: 0;
    }
}

/* SM */
@media screen and (min-width: 959px) {
    .wof-responsive-map {
        height: 50vh;
        width: 60vw;
        max-height: 450px;
        max-width: 600px;
        min-height: 350px;
        min-width: 450px;
    }

    .banner {
        padding-top: 26%;
        height: 26%;
    }

    .mud-dialog-width-full {
        width: calc(100% - 64px);
    }

    .content-filter-wrapper > div {
        padding: 2rem 0 0 0;
    }

    .top-title {
        margin-top: -5px;
    }

    .top-logo {
        margin-top: -5px;
        max-width: none;
    }

    .top-link:not(:last-of-type) {
        margin-right: 20px;
    }

    .top-hamburger {
        margin-left: 16px;
    }
}

/* MD */
@media screen and (min-width: 1279px) {
    .wof-responsive-map {
        height: auto;
        width: auto;
        max-height: 600px;
        max-width: 800px;
        min-height: 450px;
        min-width: 600px;
    }

    .banner {
        padding-top: 23%;
        height: 23%;
    }

    .top-logo, .top-title {
    }
}

/* LG */
@media screen and (min-width: 1919px) {
    .banner {
        height: 20%;
        padding-top: 20%;
    }
}