.hidden {
    display: none;
}

:root {
    --bg-color: #f2f2f7;
    --bg-color2: rgb(242, 242, 247);
}


/* Categories: */

section#book-footer {
    position: fixed;
    width: 100%;
    height: 5rem;
    background-color: #eeeeee;
    bottom: 0;
    left: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-end;
}

#container {
    padding-bottom: 5rem !important;
}

#book-footer .btn {
    margin-left: auto;
    margin-right: 5.5rem;
    cursor: pointer;
    background-color: #fb646f;
    border-color: #fb646f;
}

.btn-book-now span.total.inactive{
    display: none;
}

.btn-book-now.disabled {
    pointer-events: none;
}

#container-bg {
    width: 100vw;
    background-color: #303952;
    height: 7rem;
    position: absolute;
    z-index: -10000;
    top: 0;
}

.categories-container {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;

    background-color: white;
    border-radius: 100rem;
    border: 1px solid var(--bg-color);

    padding: 0.5rem;
    padding-top: 1.2rem;
}

.service_categories.horizontal {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    grid-auto-rows: 50px;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 90%;
}

.service_categories.horizontal .category {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;

    white-space: nowrap;
    margin: 0 1rem;
}

#services_region .service_categories .category {
    position: relative;

    padding: .25rem 1rem;
    margin-bottom: .5rem;
    background-color: transparent;
    border-radius: 0.5rem;

    font-size: 1rem;
    user-select: none;

    transition: all 150ms cubic-bezier(0, 0.79, 1, 1);
}

#services_region .service_categories .category.selected {
    background-color: var(--bg-color);
}

#services_region .service_categories .category:not(.selected) {
    cursor: pointer;
}

#services_region .service_categories .category:not(.selected):hover {
    background-color: var(--bg-color);
}

#services_region .service_categories .category.selected {
    cursor: default;
}

#services_region .service_categories .category .counter {
    position: absolute;
    right: .25rem;
    border-radius: 100rem;
    background-color: white;
    padding: .1rem;
    font-size: 0.8rem;
}


/* Services: */

#services_region .category_services .category .service {
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--bg-color);
    margin-bottom: 2rem;
    box-sizing: border-box;
    padding-top: 1rem;
}


#services_region .category_services .category .service * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#services_region .category_services .category .service .service-title {
    display: flex;
    flex-flow: column;
    margin-left: 2.5rem;
    position: relative;
    font-size: 1rem;
}

#services_region .category_services .category .service .service-subtitle {
    opacity: .5;
    font-size: 1rem;
}

#services_region .category_services .category .service .service-description {
    margin-left: auto;
    width: 90%;
    display: block;
}

#services_region .category_services .category .service .service-price{
    position: absolute;
    right: 10px;
    top: 5px;
}


/* the custom service tickbox */


/* The tickbox-container */

.tickbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Hide the browser's default radio button */

.tickbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}


/* Create a custom radio button */

.cs-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}


/* On mouse-over, add a grey background color */

.tickbox-container:hover input~.cs-checkmark {
    background-color: #ccc;
}


/* When the radio button is checked, add a blue background */

.tickbox-container input:checked~.cs-checkmark {
    background-color: #2196F3;
}


/* Create the indicator (the dot/circle - hidden when not checked) */

.cs-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}


/* Show the indicator (dot/circle) when checked */

.tickbox-container input:checked~.cs-checkmark:after {
    display: block;
}


/* Style the indicator (dot/circle) */

.tickbox-container .cs-checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}


/* Scroll Bar */

/* width */
#services_region ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

/* Track */
#services_region ::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
#services_region ::-webkit-scrollbar-thumb {
    background: var(--bg-color);
    border-radius: 1000rem;
}

/* Handle on hover */
#services_region ::-webkit-scrollbar-thumb:hover {
    background: #e2e2e6;
}


/* Bottom Left Bill from Order Screen */

#receipt {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 5rem;
    right:  1rem;
    z-index: 0;
    background-color: white;
    width: 438px;
    padding: 1rem;
    border-left: 1px solid var(--bg-color2);
    border-right: 1px solid var(--bg-color2);
    border-top: 1px solid var(--bg-color2);
    box-shadow: 0 -5px 17px -15px black;

    transition: all 150ms cubic-bezier(0.42, 0, 0.71, 1.01);
}

#receipt.hidden-receipt {
    bottom: -7rem;
}

#receipt .receipt-title {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--bg-color2);
    width: 100%;
    text-align: center;
}

#receipt .bill-item-list {
    text-align: left;
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;

    font-size: 1rem !important;
}

#receipt .bill-item {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #525252;
}

#receipt .bill-item span {
    display: contents;
}

#receipt .bill-item-price {
    text-align: right;
    font-weight: 600;
    white-space: nowrap !important;
    width: 20%
}

#receipt .bill-item-title {
    width: 80%
}

#receipt .bill-item {
}

#receipt .bill-item:not(:last-child) {
    border-bottom:  1px solid #dddddd;
    margin-bottom:  0.5rem;
    padding-bottom: 0.5rem;
}

.bill-item-close {
    font-size: .75rem;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: .5rem;
    opacity: .8;
}

/* Discounts */
.discount-display {
    position: absolute;
    right: 0.7rem;
    top: -1rem;
    text-align: right;
    font-weight: 600;
    color: #fb646f;
    font-size: 0.8rem;
}