
.bookaby-button {
    opacity: 1 !important;
    background: #fff;
    border: 1px solid #222;
    outline:none;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    height: 30px;
    width: 130px;
    border-radius: 15px;
    overflow: hidden;
    text-indent: -300px;
    position: relative;
}
.bookaby-button:before {
    content: "";
    display: block;
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 15px;
    right: 15px;
    background: url('https://bookaby.co.uk/sites/default/files/book-now-button-text.png') center center no-repeat;
    background-size: contain;
}
.bookaby-button:hover {
    background: #EAF6FF;
}
.bookaby-button:active {
    opacity: 0.8 !important;
}

.bookaby-iframe {
    border: none;
    width: 100%;
    height: 550px;
    display: block !important; /* override initial display: none to prevent FOUC */
}

.bookaby-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
}
.bookaby-modal.show {
    display: block;
}

.bookaby-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    overflow: visible;

    width: 90%;
    height: 80%;
    max-width: 800px;
    min-height: 300px;
}
.bookaby-modal-content .bookaby-modal-close-button {
    cursor: pointer; /* safari needs it to be here */
}
.bookaby-modal-content .bookaby-modal-close-button:before {
    display: block;
    content: "×";
    font-size: 40px;
    color: #fff;
    position: absolute;
    right: 0;
    top: -45px;
    font-family: 'Lucida Sans Unicode', 'Sans-Serif';
    font-weight: normal;
    line-height: 1;
}

.bookaby-modal-content .bookaby-modal-iframe-wrap {
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    background: #fff;
}
.bookaby-modal-content .bookaby-iframe {
    height: 100% !important;
}


/* embedded listings */
ul.bookaby-listings {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.2em;
}
ul.bookaby-listings li {
    margin: 0 0 2em;
    padding: 0;
    list-style: none;
}
ul.bookaby-listings li.bookaby-listing-hidden {
    display: none !important;
}
ul.bookaby-listings li.bookaby-offers {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    padding: 1.5em;
    color: #000;
    text-align: center;
}
ul.bookaby-listings li.bookaby-offers:before {
    content: 'OFFER';
    display: block;
    font-weight: bold;
    margin-bottom: 0.1em;
}
ul.bookaby-listings h3 {
    margin: 0 0 0.5em;
    padding: 0;
}
ul.bookaby-listings .bookaby-session-type {
    display: none;
}
ul.bookaby-listings .bookaby-price {
    font-size: 1.1em;
    margin: 0.5em 0;
    line-height: 1em;
}
ul.bookaby-listings .bookaby-was-price {
    display: block;
    font-size: 0.7em;
    opacity: 0.6;
}
ul.bookaby-listings .bookaby-session-date {
    font-size: 1.1em;
}
ul.bookaby-listings .bookaby-session-duration {
    opacity: 0.8;
}
ul.bookaby-listings .bookaby-session-venue {
    margin: 0.5em 0;
}
ul.bookaby-listings table {
    width: 100%;
    table-layout: fixed;
    border: none;
    margin: 0.5em 0;
}
ul.bookaby-listings table tr {
    border: none;
}
ul.bookaby-listings table th,
ul.bookaby-listings table td {
    margin: 0;
    vertical-align: top;
    font-weight: normal;
    text-align: left;
    font-size: 0.8em;
    border: none;
}
@media only screen and (max-width: 450px) {
    ul.bookaby-listings table th,
    ul.bookaby-listings table td {
        display: block;
    }
}
ul.bookaby-listings table th {
    padding: 0 0 0.3em;
    width: 140px;
}
ul.bookaby-listings table td {
    padding: 0 0 0.3em 1em;
}
ul.bookaby-listings .bookaby-badges > div {
    display: inline-block;
    margin: 0.5em 0.5em 0.1em 0;
    border-radius: 3px;
    color: #fff;
    font-size: 0.7em;
    padding: 0.1em 0.5em;
}
ul.bookaby-listings .bookaby-badges > div.bookaby-trial-badge { background: #ed0694; }
ul.bookaby-listings .bookaby-badges > div.bookaby-drop-in-badge { background: #5080ed; }
ul.bookaby-listings .bookaby-badges > div.bookaby-started-badge { background: #ffc409; }
ul.bookaby-listings .bookaby-badges > div.bookaby-offers-badge { background: #275c73; }
ul.bookaby-listings .bookaby-badges > div.bookaby-block-booking-offers-badge { background: #275c73; }
ul.bookaby-listings .bookaby-badges > div.bookaby-fully-booked-badge { background: #eb445a; }
ul.bookaby-listings .bookaby-badges > div.bookaby-waiting-list-badge { background: #ffc409; }
ul.bookaby-listings .bookaby-badges > div.bookaby-booking-password-badge { background: #222428; }
ul.bookaby-listings .bookaby-button {
    margin: 0.7em 0 0;
}

.bookaby-listing-filters {
    display: block;
    margin: 0 0 15px;
}
.bookaby-listing-filters select {
    margin: 3px 3px 3px 0;
    display: inline;
    width: auto;
    max-width: 200px;
    min-height: 30px;
}


/* Calendar */

:root {
    --bookaby-calendar-highlight: #eb1164;
    --bookaby-calendar-highlight-contrast: #fff;
    --bookaby-calendar-border-colour: #ddd;
}

.bookaby-calendar-container {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

table.bookaby-calendar {
    width: 100%;
    table-layout: fixed;
    margin-top: 20px;
}
table.bookaby-calendar tbody {
    border-left: 1px solid var(--bookaby-calendar-border-colour);
}
table.bookaby-calendar th {
    width: 14.28%;
    text-align: center;
    font-weight: normal;
    color: #888;
    border-bottom: 1px solid #9e9e9e;
    padding: 5px 0;
    font-size: 0.8em;
}
table.bookaby-calendar td {
    padding: 0 2px;
    height: 60px;
    vertical-align: top;
    border-right: 1px solid var(--bookaby-calendar-border-colour);
    border-bottom: 1px solid var(--bookaby-calendar-border-colour);
}
@media (min-width: 700px) {
    table.bookaby-calendar td {
        height: 100px;
    }
}
table.bookaby-calendar .bookaby-day-date {
    text-align: center;
    font-weight: normal;
    color: #888;
    padding: 5px 0;
    font-size: 0.8em;
}
table.bookaby-calendar td.bookaby-calendar-day-today .bookaby-day-date {
    color: var(--bookaby-calendar-highlight);
}
table.bookaby-calendar th.bookaby-calendar-day-weekend,
table.bookaby-calendar td.bookaby-calendar-day-weekend .bookaby-day-date {
    font-weight: bold;
}
.bookaby-calendar-session {
    cursor: pointer;
    padding: 5px 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    font-size: 0.8em;
    line-height: 1em;
    margin-bottom: 5px;
    background: #ededed;
    color: #555;
    border-top: 5px solid transparent;
}
.bookaby-calendar-session:hover {
    background: var(--bookaby-calendar-highlight);
    color: var(--bookaby-calendar-highlight-contrast);
}
.bookaby-calendar-session strong {
    display: block;
}
.bookaby-calendar-session.bookaby-fully-booked {
    position: relative;
}
@media only screen and (min-width: 900px) {
    .bookaby-calendar-session.bookaby-fully-booked:after {
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 9px;
        content: 'Fully Booked';
        background: #eda500;
        color: #fff;
        padding: 1px 5px;
        border-radius: 5px;
    }
}
.bookaby-calendar-session.bookaby-calendar-hidden {
    display: none !important;
}

@media (min-width: 700px) {
    .bookaby-calendar-session {
        font-size: 0.9em;
        line-height: 1.2em;
        border-top: none;
        border-left: 5px solid transparent;
        padding-left: 5px;
    }
}

.bookaby-calendar-month {
    font-size: 2em;
    display: inline-block;
}

.bookaby-calendar-filters {
    display: inline-block;
    top: -4px;
    position: relative;
    margin-right: 20px; /* same as .bookaby-calendar-month-nav */
}
.bookaby-calendar-filters select {
    margin: 3px 3px 3px 0;
    display: inline;
    width: auto;
    max-width: 200px;
    min-height: 30px;
}

.bookaby-calendar-month-nav {
    display: inline-block;
    margin-right: 20px; /* same as .bookaby-calendar-filters */
}
.bookaby-calendar-next,
.bookaby-calendar-prev {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 30px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.bookaby-calendar-chevron:before {
    border-style: solid;
    border-width: 4px 4px 0 0;
    border-radius: 3px;
    border-color: #555;
    content: '';
    display: inline-block;
    height: 14px;
    width: 14px;
    position: relative;
    top: 13px;
    transform: rotate(-45deg);
    vertical-align: top;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.bookaby-calendar-chevron.bookaby-calendar-chevron-left:before {
    left: 2px;
    transform: rotate(-135deg);
}
.bookaby-calendar-chevron.bookaby-calendar-chevron-right:before {
    left: -3px;
    transform: rotate(45deg);
}


.bookaby-calendar-prev:hover,
.bookaby-calendar-next:hover {
    background: var(--bookaby-calendar-highlight);
    color: var(--bookaby-calendar-highlight-contrast);
}

.bookaby-calendar-prev:hover .bookaby-calendar-chevron:before,
.bookaby-calendar-next:hover .bookaby-calendar-chevron:before {
    border-color: var(--bookaby-calendar-highlight-contrast);
}

/* accordion */

.bookaby-grouped-list .bookaby-group-item {
    width: 100%;
    overflow: hidden;
}

.bookaby-grouped-list .bookaby-group-item label {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    background: #ddd;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transform-origin: center;
    margin-bottom: 5px;
}
.bookaby-grouped-list .bookaby-group-item label:hover {
    opacity: 0.9;
}
.bookaby-grouped-list .bookaby-group-item label::after {
    content: "\276F";
    /*width: 1em;
    height: 1em;*/
    text-align: center;
    transition: all .35s;

 }
.bookaby-grouped-list .bookaby-group-item .bookaby-listings {
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s;
    opacity: 0;
    padding: 0 1em;
}
.bookaby-grouped-list .bookaby-group-item .bookaby-listings .bookaby-session h3 {
    display: none;
}
.bookaby-grouped-list .bookaby-group-item .bookaby-listings .bookaby-session .bookaby-session-date {
    font-size: 1.3em;
    line-height: 1.3em;
}
.bookaby-grouped-list .bookaby-group-item input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.bookaby-grouped-list .bookaby-group-item input:checked + label {
    background: #c9c9c9;
}
.bookaby-grouped-list .bookaby-group-item input:checked + label::after {
    transform: rotate(90deg);
}
.bookaby-grouped-list .bookaby-group-item input:checked ~ .bookaby-listings {
    display: block;
    opacity: 1;
    max-height: unset;
    padding: 1em;
}
