/* Viewer Shell */
#chart-viewer-wrapper {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    width: 100vw;
    max-width: none;
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
    max-height: none;
    margin: 0;
    padding: 0;
    background: #fdfdfd;
    text-align: center;
    overflow: scroll;
    z-index: 1000000;
    display: none;
    color: #111;
    font-family: Arial, sans-serif;
    line-height: 1.4;
    color-scheme: light;
}

/* Theme Safety */
#chart-viewer-wrapper h1,
#chart-viewer-wrapper h2,
#chart-viewer-wrapper h3,
#chart-viewer-wrapper h4,
#chart-viewer-wrapper h5,
#chart-viewer-wrapper h6,
#chart-viewer-wrapper p,
#chart-viewer-wrapper li,
#chart-viewer-wrapper label,
#chart-viewer-wrapper em,
#chart-viewer-wrapper strong,
#chart-viewer-wrapper .desc,
#chart-viewer-wrapper .close,
#chart-viewer-wrapper .controls span,
#chart-viewer-wrapper #loading-overlay .loading-content,
#chart-viewer-wrapper #chart-viewer-selection-quantity-overlay .chart-viewer-selection-quantity {
    color: #111;
}

#chart-view {
    user-select: none;
}

#chart-viewer-wrapper.chart-availability-pending #fooevents-seating-charts-canvas {
	opacity: 0.35;
	pointer-events: none;
}

#chart-availability-notice {
	margin: 1em;
	padding: 1em;
	background: #fff;
	color: #333;
	border: 1px solid #ddd;
}

#chart-availability-notice p {
	margin: 0 0 0.5em;
}

#chart-availability-notice[hidden],
#chart-availability-retry[hidden] {
	display: none;
}

#fooevents-seating-charts-canvas {
    position: absolute;
    z-index: 1;
    transform-origin: 50% 50%;
    cursor: default;
    overflow: hidden;
    font-family: Arial, sans-serif !important;
}

#loading-overlay {
    display: none;
    position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	bottom: 0;
    left: 0;
    width: 100%;
	height: auto;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

#loading-overlay.loading-visible {
    display: flex;
}

#loading-overlay .loading-content {
    margin: auto;
    width: 300px;
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .06);
}

#loading-overlay .loading-content p {
    margin: 1em 0 0;
    padding: 0;
}

#chart-viewer-selection-quantity-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(199, 199, 199, 0.8);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chart-viewer-selection-quantity-overlay p {
    margin: 0.5em 0 1.5em 0;
    padding: 0;
}

#chart-viewer-selection-quantity-overlay .chart-viewer-selection-quantity {
    margin: auto;
    width: 400px;
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .06);
}

/* Global Controls */
.close {
    display: block;
    position: absolute;
    top: 15px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 22px;
    line-height: 30px;
    cursor: pointer;
    z-index: 11;
}

.controls {
    position: fixed;
    top: 50px;
    right: 400px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    padding: 0;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
}

.controls .plus {
    border-bottom: 1px solid #d0d7de;
}

.controls .plus,
.controls .minus {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
}

/* Sidebar */
#chart-viewer-sidebar {
    background: #fff;
    text-align: left;
    font-size: 14px;
    padding-bottom: 80px;
}

#chart-viewer-event-details {
    padding: 1.5em;
    text-align: left;
    border-bottom: 1px solid #d0d7de;
}

#chart-viewer-event-details h2 {
    font-size: 20px;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

#chart-viewer-event-details p {
    font-size: 14px;
    padding: 0;
    margin: 0;
}

#chart-viewer-mobile-selected-booking {
    display: none;
    font-size: 1em;
}

#chart-viewer-mobile-selected-booking.is-hidden {
    display: none;
}

h3.chart-viewer-heading {
    border-bottom: 1px solid #d0d7de;
    padding: 1em 1.5em;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

h3.chart-viewer-heading.chart-viewer-selection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5em;
}

.chart-viewer-selection-actions {
	display: inline-flex;
	align-items: center;
	gap: .7em;
}

#chart-viewer-wrapper .chart-viewer-clear-selection {
	appearance: none;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

#chart-viewer-wrapper .chart-viewer-clear-selection:hover,
#chart-viewer-wrapper .chart-viewer-clear-selection:focus {
	background: transparent;
	text-decoration: none;
}

#chart-viewer-wrapper .chart-viewer-clear-selection[hidden] {
	display: none;
}

#chart-viewer-sidebar ul {
    list-style: none;
    padding: .5em 0;
    margin: 0;
    border-bottom: 1px solid #d0d7de;
}

#chart-viewer-sidebar ul li {
    list-style: none;
    padding: .5em 1.5em;
    margin: 0;
}

.chart-viewer-booking-dates {
    padding: 0;
    max-height: 300px;
    overflow-y: scroll;
    border-bottom: 1px solid #d0d7de;
    background: #f9f9f9; 
}

.chart-viewer-booking-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5em;
}

h3.chart-viewer-heading.chart-viewer-booking-month-nav {
    position: relative;
}

.chart-viewer-booking-month-label {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
}

.chart-viewer-booking-month-controls {
    display: inline-flex;
    align-items: center;
    gap: .35em;
}

.chart-viewer-sidebar-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #d0d7de;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.chart-viewer-sidebar-control-button[disabled],
.chart-viewer-sidebar-control-button[aria-disabled="true"] {
    opacity: 0.4;
    cursor: default;
}

.chart-viewer-selection-quantity-inline {
    display: inline-flex;
    align-items: center;
    gap: .35em;
}

.chart-viewer-selection-quantity-inline .ticket-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2ch;
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
}

.chart-viewer-selection-quantity-inline .chart-viewer-sidebar-control-button {
    width: 30px;
    height: 30px;
}

.chart-viewer-selection-quantity-inline .chart-viewer-sidebar-control-button.disabled {
    opacity: 0.4;
    cursor: default;
}

.chart-viewer-selection ul {
    margin:1em
}

.chart-viewer-booking-dates .chart-viewer-subheading {
    font-weight: bold;
}

#chart-viewer-sidebar .chart-viewer-booking-dates ul {
    border-bottom: 0;
    margin: 0;
    padding: 0;
}

.chart-viewer-booking-dates ul {
    border: 0;
}

#chart-viewer-sidebar .chart-viewer-booking-dates ul li {
    padding: 0;
    border: 0;
}

#chart-viewer-sidebar .chart-viewer-booking-dates ul li.chart-viewer-booking-date-row {
    display: grid;
    grid-template-columns: minmax(78px, 88px) 1fr;
    align-items: stretch;
    border-bottom: 1px solid #d0d7de;
}

#chart-viewer-sidebar .chart-viewer-booking-dates ul li.chart-viewer-booking-date-row.chart-viewer-booking-date-row-last-visible {
    border-bottom: 0;
}

.chart-viewer-booking-date-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: .1em;
    padding: .65em .75em;
    background: #fff;
    border-right: 1px solid #d0d7de;
    line-height: 1.2;
}

.chart-viewer-booking-date-column .chart-viewer-booking-date-day {
    font-weight: 300;
}

.chart-viewer-booking-date-column .chart-viewer-booking-date-value {
    color: #111;
    font-weight: 600;
}

.chart-viewer-booking-slots-column {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    padding: .65em .75em .3em;
}

.chart-viewer-booking-dates ul li a.chart-viewer-booking-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .02s, color .2s;
    cursor: pointer;
    border-radius: 5px;
    padding: .4em .9em;
    margin: 0 .4em .5em 0;
    font-size:1.1em;
}

.chart-viewer-booking-dates ul li a.chart-viewer-booking-slot:not(.selected) {
    border: 1px solid #d0d7de !important;
    color: #111 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    background: #fff !important;
}

.chart-viewer-booking-dates ul li a.chart-viewer-booking-slot:not(.selected):hover {
    background: #f6f8fa;
    border-color: #c3cbd3;
}

#chart-viewer-sidebar .chart-viewer-booking-dates ul li.chart-viewer-booking-date-row.chart-viewer-booking-month-hidden {
    display: none;
}

.chart-viewer-variations {
    padding: 0;
    text-align: left;
}

.chart-viewer-variations label {
    display: inline;
}

#chart-viewer-sidebar .chart-viewer-selection-quantity {
    padding: 1em .5em 1.4em 1.5em;
    border-bottom: 1px solid #d0d7de;
    background: #f9f9f9;
}

.chart-viewer-selection-quantity .ticket-plus,
.chart-viewer-selection-quantity .ticket-minus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d7de;
    color: #111;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    background: #fff;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .02s, color .2s;
    cursor: pointer;
    border-radius: 5px;
    padding: .6em .9em;
    margin: 0;
}

.chart-viewer-selection-quantity .ticket-plus.disabled,
.chart-viewer-selection-quantity .ticket-minus.disabled {
    opacity: 0.3;
}

.chart-viewer-selection-quantity .ticket-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.7em;
    padding: 0 .5em 0;
}

.chart-viewer-selection-quantity .desc {
    font-style: italic;
    margin-left: .5em;
    font-size: 1em;
}

#chart-viewer-sidebar .chart-viewer-selection ul li:not(.tip) {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: auto;
    margin: 1em 1.5em;
    padding: .6em .75em;
    border: 1px solid #d0d7de;
    border-left-width: 5px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

#chart-viewer-sidebar .chart-viewer-selection ul li:not(.tip):not(.standing-item) {
    padding-right: 2.2em;
}

#chart-viewer-sidebar .chart-viewer-selection ul li.standing-item {
    padding-right: 5.4em;
}

#chart-viewer-sidebar .chart-viewer-selection ul {
    background: #f9f9f9;
}

#chart-viewer-sidebar .chart-viewer-variations ul {
    background: #f9f9f9;
}

.standing-minus,
.standing-plus {
    position: absolute;
    top: calc(.7em + 2px);
    transform: none;
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #d0d7de;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.standing-minus {
    right: 4.4em;
}

.standing-plus {
    right: 2.6em;
}

.selection-variation {
    display: block;
    margin-top: 8px;
    margin-left: 0;
    color: #6a737d;
    font-size: 12px;
    line-height: 1.3;
}

.selection-variation-text {
    display: inline;
}

.chart-viewer-selection .selection-variation-select {
    margin-top: 4px;
    margin-bottom: 2px;
    width: 100%;
    max-width: 100%;
    color: #111;
    font-size: 12px !important;
    line-height: 1.3 !important;
    height: auto;
    padding: 6px 30px 6px 10px;
    box-sizing: border-box;
}

#chart-viewer-sidebar .chart-viewer-selection ul li:not(.tip):not(.standing-item) .selection-variation-select {
    width: calc(100% + 1.45em);
    max-width: calc(100% + 1.45em);
}

.chart-viewer-selection .selection-variation-select option {
    font-size: 12px !important;
}

.trash-icon {
    position: absolute;
    top: calc(.7em + 2px);
    right: calc(.85em + 2px);
    transform: none;
    cursor: pointer;
    font-size: 1.05em;
}

.standing-item .trash-icon {
    right: .85em;
}

.chart-viewer-buy {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 380px;
    height: auto;
    margin: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-left: 1px solid #d0d7de;
    text-align: center;
    z-index: 9999;
    display: none;
}

.chart-viewer-buy button {
    width: 100%;
}

.chart-viewer-buy .chart-viewer-buy-inner {
    padding: 1em;
}

/* Chart Elements */
.item-group {
    position: absolute;
    transform-origin: center;
    font-family: Arial, sans-serif !important;
}

.item-group.seated .chair,
.item-group.table .chair {
    position: absolute;
}

.item-group.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    border: none;
}

.item-group.icon i {
    pointer-events: none;
}

.item-group.standing {
    background-color: rgba(56, 88, 233, 1);
    cursor: pointer;
    border: 0;
}

.item-group.static-shape,
.item-group.table {
    background-color: rgba(178, 178, 178, 1);
}

.item-group.line {
    background-color: transparent !important;
    border: none !important;
    pointer-events: none;
}

.item-group.line svg,
.item-group.line path {
    pointer-events: none;
}

.item-group.line svg {
    overflow: visible;
}

.item-group.static-shape.circle,
.item-group.table.circle,
.item-group.circle {
    border-radius: 50%;
}

.item-group.text-label {
    background-color: #ffffff;
    border: none;
    color: #000;
    white-space: nowrap;
    cursor: default;
    pointer-events: none;
    font-family: Arial, sans-serif !important;
}

.item-group.polygon {
    background-color: transparent !important;
    border: none !important;
    pointer-events: none;
}

.item-group.polygon svg {
    pointer-events: none;
}

.item-group.polygon polygon {
    pointer-events: all;
}

.item-group.standing.polygon polygon {
    stroke-width: 1px;
    stroke-opacity: 0;
}

.item-group.unavailable:not(.polygon) {
	border-color: #d8d8d8 !important;
	border-color: color-mix(in srgb, var(--fooevents-item-color, #3858e9) 30%, #d8d8d8) !important;
	background-color: #ececef !important;
	background-color: color-mix(in srgb, var(--fooevents-item-color, #3858e9) 22%, #f2f2f2) !important;
	opacity: 1 !important;
}

.item-group.standing.polygon.unavailable polygon {
	fill: #ececef !important;
	fill: color-mix(in srgb, var(--fooevents-item-color, #3858e9) 22%, #f2f2f2) !important;
	opacity: 1 !important;
}

.item-group.blocked:not(.polygon) {
    background: repeating-linear-gradient(45deg, red, red 2px, transparent 2px, transparent 4px) !important;
    opacity: 0.5;
}

.item-group.standing.selected:not(.polygon) {
    border: 3px solid var(--selection-color, #000000) !important;
}

.standing.polygon.selected polygon,
.item-group.standing.polygon.selected polygon {
    stroke: var(--selection-color, #000000) !important;
    stroke-width: 3px !important;
    stroke-opacity: 1 !important;
}

.item-group.standing:not(.blocked):not(.unavailable) {
    cursor: pointer;
}

.item-group.standing.blocked,
.item-group.standing.unavailable {
    cursor: default;
}

/* Chairs */
.chair {
    position: relative;
}

.chair.chairs {
    background: #ececef;
    border-top: none;
    border-radius: 2px 2px 5px 5px;
    box-sizing: border-box;
}

.chair.circles {
    border-radius: 50%;
    background-color: #ececef;
    box-sizing: border-box;
}

.chair.squares {
    border-radius: 3px;
    background-color: #ececef;
    box-sizing: border-box;
}

.chair.parking {
    background: transparent;
    border: 3px solid #d0d7de;
    border-bottom: none;
    box-sizing: border-box;
}

.chair.hide-chair {
    background: transparent !important;
    display: none;
}

.chair.hide-chair span.seat-number {
    display: none;
}

.chair.block-chair,
.chair.pre-blocked,
.chair.unavailable {
	position: relative;
	border-color: #d8d8d8 !important;
	border-color: color-mix(in srgb, var(--fooevents-item-color, #3858e9) 30%, #d8d8d8) !important;
	background-color: #ececef !important;
	background-color: color-mix(in srgb, var(--fooevents-item-color, #3858e9) 22%, #f2f2f2) !important;
	opacity: 1 !important;
}

.chair.reserved-temp {
	position: relative;
	opacity: 0.4 !important;
}

.chair.block-chair::after,
.chair.pre-blocked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: red;
    transform: translateY(-50%) rotate(var(--fooevents-chair-counter-rotation, 0deg)) rotate(-45deg);
}

.chair.block-chair span.seat-number,
.chair.pre-blocked span.seat-number,
.chair.unavailable span.seat-number,
.chair.reserved-temp span.seat-number {
    display: none;
}

.chair.selected {
    background-color: var(--selection-color, #000000) !important;
    border-color: var(--selection-color, #000000) !important;
}

.chair.selected .seat-number {
    display: none;
    color: var(--selection-number-color, #ffffff);
}

.chair.selected::before {
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--fooevents-chair-counter-rotation, 0deg));
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 60%;
    color: var(--selection-number-color, #ffffff);
    z-index: 2;
    pointer-events: none;
}

.chair:not(.block-chair):not(.unavailable):not(.pre-blocked) {
    cursor: pointer;
}

.chair.block-chair,
.chair.unavailable,
.chair.pre-blocked {
    cursor: default;
}

.seat-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--fooevents-chair-counter-rotation, 0deg));
    font-size: 10px;
    pointer-events: none;
    font-family: Arial, sans-serif !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.row-label {
    position: absolute;
    font-weight: bold;
    font-size: 11px;
    pointer-events: none;
    line-height: 1 !important;
    transform: translateY(-50%);
    font-family: Arial, sans-serif !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    display: inline !important;
    width: auto !important;
    word-break: normal !important;
}

.row-label.left {
	right: var(--fooevents-row-label-offset, 100%) !important;
    text-align: right !important;
    padding-right: 10px !important;
}

.row-label.right {
	left: var(--fooevents-row-label-offset, 100%) !important;
    text-align: left !important;
    padding-left: 10px !important;
}

/* Responsive */
@media (min-width: 791px) {
    #chart-viewer-sidebar {
        position: fixed;
        top: var(--wp-admin--admin-bar--height, 0px);
        right: 0;
        bottom: 0;
        width: 380px;
        overflow-y: auto;
        border-left: 1px solid #d0d7de;
        z-index: 9999;
    }

    .chart-viewer-sections {
        display: block;
    }

    .chart-viewer-mobile-menu {
        display: none;
    }

    #chart-view {
        margin-right: 365px;
        min-height: 100%;
        position: relative;
        overflow: hidden;
        text-align: center;
    }

    #loading-overlay {
        right: 365px;
        width: auto;
    }
}

@media (max-width: 790px) {
    #wpadminbar {
        position: fixed;
    }

    #chart-view {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        text-align: center;
        padding: 1em 0 !important;
    }

    #loading-overlay {
        background: #fff;
    }

    #loading-overlay .loading-content {
        box-shadow: none;
    }

    #chart-viewer-selection-quantity-overlay {
        background: #fff;
    }

    #chart-viewer-selection-quantity-overlay .chart-viewer-selection-quantity {
        width: 100%;
        background: #fff;
        box-shadow: none;
    }

    .controls {
        top: auto;
        right: auto;
        left: 50%;
        bottom: env(safe-area-inset-bottom, 0px);
        transform: translateX(-50%);
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
    }

    .controls .plus {
        border-bottom: 0;
    }

    .controls .minus {
        border-right: 1px solid #d0d7de;
    }

    .controls .plus,
    .controls .minus {
        display: block;
        float: right;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    #chart-viewer-sidebar {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
        padding: 0;
        z-index: 999999;
    }

    .chart-viewer-sections {
        display: none;
        padding-bottom: 60px;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-panel-open {
        background: #fff;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-panel-open #chart-view,
    #chart-viewer-wrapper.chart-viewer-mobile-panel-open .controls {
        display: none;
    }

    .chart-viewer-sections.chart-viewer-mobile-view-selection .chart-viewer-booking-month-nav,
    .chart-viewer-sections.chart-viewer-mobile-view-selection .chart-viewer-booking-dates {
        display: none;
    }

    .chart-viewer-sections.chart-viewer-mobile-view-booking .chart-viewer-selection,
    .chart-viewer-sections.chart-viewer-mobile-view-booking .chart-viewer-variations {
        display: none;
    }

    .chart-viewer-booking-dates {
        max-height: none;
        overflow-y: visible;
    }

    .chart-viewer-buy {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: #fff;
        border-left: 0;
    }

    .chart-viewer-mobile-menu {
        display: block;
    }

    #chart-viewer-event-details {
        padding-right: 40px;
    }

    #chart-viewer-event-details p:not(.chart-viewer-mobile-selected-booking) {
        display: none;
    }

    #chart-viewer-event-details p.chart-viewer-mobile-selected-booking {
        display: block;
        margin-top: .45em;
    }

    #chart-viewer-event-details p.chart-viewer-mobile-selected-booking.is-hidden {
        display: none;
    }

    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-toggle,
    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-mobile-back {
        margin-top: 1em;
        margin-right: .2em;
        border: 1px solid #d0d7de !important;
        background: #fff !important;
        background-color: #fff !important;
        color: #111 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-toggle:hover,
    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-toggle:focus,
    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-toggle:active,
    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-mobile-back:hover,
    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-mobile-back:focus,
    #chart-viewer-wrapper .chart-viewer-mobile-menu .chart-viewer-mobile-back:active {
        border-color: #d0d7de !important;
        background: #fff !important;
        background-color: #fff !important;
        color: #111 !important;
    }

    #chart-viewer-wrapper .chart-viewer-mobile-back {
        display: none !important;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-awaiting-group-size .chart-viewer-date {
        display: none;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-awaiting-group-size .chart-viewer-selection-toggle {
        display: none;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-awaiting-group-size .chart-viewer-mobile-back {
        display: none !important;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-panel-open .chart-viewer-toggle {
        display: none;
    }

    #chart-viewer-wrapper.chart-viewer-mobile-panel-open .chart-viewer-mobile-back {
        display: inline-block !important;
    }

    .chart-viewer-date {
        margin-right: 0;        
    }

    .chart-viewer-toggle i,
    .chart-viewer-mobile-back i {
        margin-right: .5em;
    }

    .chart-viewer-mobile-total {
        display: inline-flex;
        align-items: center;
        margin-left: .35em;
        font-style: italic;
    }

    .chart-viewer-mobile-total.is-hidden {
        display: none;
    }
}
