/*
 * Theme variables.
 * These are the defaults used when the corresponding option is not configured
 * in Prenotazioni > Impostazioni > Personalizzazioni > Stile.
 * The standalone page overrides only the variables the admin actually set.
 */
:root {
	/* Header */
	--wprb-header-gradient-start: #ffb100;
	--wprb-header-gradient-end: #5cb85c;
	--wprb-title-color: #ffffff;

	/* Booking steps bar */
	--wprb-step-current-bg: rgba(255, 255, 255, 0.9);
	--wprb-step-current-text: #333333;
	--wprb-step-completed-bg: rgba(255, 255, 255, 0.4);
	--wprb-step-completed-text: #ffffff;
	--wprb-step-pending-bg: rgba(255, 255, 255, 0.2);
	--wprb-step-pending-text: rgba(255, 255, 255, 0.7);
	--wprb-step-check-bg: #28a745;

	/* Selectable elements: dates, people, services, hours, rooms, tables */
	--wprb-primary-color: #169e4f;
	--wprb-bg-primary-color: #f5b016;

	/* Content area */
	--wprb-widget-bg: #ffffff;
	--wprb-text-color: #333333;

	/* Submit button */
	--wprb-complete-btn-bg: #333333;
	--wprb-complete-btn-text: #ffffff;

	/* Tables: set from Tavoli > Impostazioni Colore Tavoli */
	--wprb-table-bg: #ffffff;
	--wprb-table-text: #333333;
}

/* Base of the booking page: layout and size come from wprb-standalone.css */
#wprb-booking-modal {
	background-color: var(--wprb-widget-bg);
	color: var(--wprb-text-color);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.42857143;
	word-wrap: normal;
}

/* Ensure all text elements are dark on white background */
#wprb-booking-modal p,
#wprb-booking-modal label,
#wprb-booking-modal input[type="text"],
#wprb-booking-modal input[type="email"],
#wprb-booking-modal input[type="tel"],
#wprb-booking-modal textarea,
#wprb-booking-modal select,
#wprb-booking-modal h1,
#wprb-booking-modal h3,
#wprb-booking-modal h4,
#wprb-booking-modal h5,
#wprb-booking-modal h6 {
	color: var(--wprb-text-color) !important;
	background-color: transparent !important;
}

.wprb-widget-title h2 {
	color: var(--wprb-title-color) !important;
	background-color: transparent !important;
}

#wprb-booking-modal .header-bar {
	background: linear-gradient(135deg, var(--wprb-header-gradient-start) 0%, var(--wprb-header-gradient-end) 100%);
}

#wprb-booking-modal h2 {
	text-align: center;
	margin: 0;
	padding: 5px 0 25px;
	font-size: 2em;
	-webkit-border-radius: 8px 8px 0 0;
	-moz-border-radius: 8px 8px 0 0;
	-o-border-radius: 8px 8px 0 0;
	-ms-border-radius: 8px 8px 0 0;
	border-radius: 8px 8px 0 0;
	line-height: 1;
}

#wprb-booking-modal .header-bar {
	display: block;
	min-height: 100px;
	padding: 10px;
}

#wprb-booking-modal ul {
	list-style: none;
	margin: 0;
	padding: 10px 0;
}

/* Header steps container */
#wprb-booking-modal .header-bar_steps {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

#wprb-booking-modal .header-bar_steps li {
	flex: 0 0 auto;
	text-align: center;
	position: relative;
	margin: 0 5px;
	padding: 0 5px;
	white-space: nowrap;
	font-size: 13px;
	min-width: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#wprb-booking-modal .header-bar_steps li .value {
	font-size: 11px;
	text-transform: lowercase;
}

@media (max-width: 768px) {
	#wprb-booking-modal .header-bar_steps li {
		margin: 0 5px;
		font-size: 11px;
		min-width: 50px;
	}

	#wprb-booking-modal .header-bar_steps li .value {
		font-size: 9px;
		min-width: 60px;
	}

	#wprb-booking-modal .header-bar_steps li span {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	#wprb-booking-modal .header-bar_steps li {
		margin: 0 2px;
		font-size: 10px;
	}

	#wprb-booking-modal .header-bar_steps li span {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
}

/* Compatibility for old styles */
#wprb-booking-modal ul li {
	float: none;
	width: auto;
}

/* Header steps labels */
#wprb-booking-modal .header-bar_steps li>div {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

#wprb-booking-modal .header-bar_steps li .value {
	display: inline-block;
	color: inherit;
	white-space: nowrap;
}

.header-bar_steps li:first-child::before {
	content: "";
	display: none;
}

@media (max-width: 480px) {
	.header-bar_steps li::before {
		left: -5px;
		width: 5px;
	}
}

#wprb-booking-modal .header-bar_steps li>span:first-child {
	text-align: center;
	width: 44px;
	margin-bottom: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

#wprb-booking-modal ul li i {
	font-size: 20px;
	line-height: 1;
	display: block;
}

#wprb-booking-modal ul li {
	font-size: 13px;
	text-transform: capitalize;
}

/* Force header steps to stay on one line */
#wprb-booking-modal .header-bar_steps {
	min-height: 50px;
}

/* Ensure step label text doesn't wrap */
#wprb-booking-modal .header-bar_steps li {
	text-overflow: ellipsis;
}

/* Special handling for value with number */
#wprb-booking-modal .header-bar_steps li .value {
	white-space: nowrap;
	min-width: 10px;
}

/* Step progression states */
#wprb-booking-modal .header-bar_steps li.current {
	background: var(--wprb-step-current-bg);
	color: var(--wprb-step-current-text);
	font-weight: 600;
	transform: scale(1.02);
	transition: all 0.3s ease;
}

#wprb-booking-modal .header-bar_steps li.completed {
	background: var(--wprb-step-completed-bg);
	color: var(--wprb-step-completed-text);
	cursor: pointer;
}

/* Future steps (active but not completed/current) - not clickable */
#wprb-booking-modal .header-bar_steps li.active:not(.completed):not(.current) {
	cursor: not-allowed !important;
	opacity: 0.5;
	pointer-events: none;
}

/* Ensure only completed and current steps are clickable */
#wprb-booking-modal .header-bar_steps li {
	cursor: default;
	transition: all 0.2s ease;
}

#wprb-booking-modal .header-bar_steps li.completed,
#wprb-booking-modal .header-bar_steps li.current {
	cursor: pointer;
	pointer-events: auto;
}

/* Hover effect only for clickable steps */
#wprb-booking-modal .header-bar_steps li.completed:hover,
#wprb-booking-modal .header-bar_steps li.current:hover {
	transform: scale(1.05);
	filter: brightness(1.08);
}

/* Visual feedback for non-clickable future steps */
#wprb-booking-modal .header-bar_steps li.active:not(.completed):not(.current):hover {
	transform: none;
	background: inherit;
}

/* Disabled state after booking completion */
#wprb-booking-modal .header-bar_steps li.disabled {
	cursor: default !important;
	pointer-events: none !important;
	opacity: 0.6;
}

#wprb-booking-modal .header-bar_steps li.disabled:hover {
	transform: none !important;
}

#wprb-booking-modal .header-bar_steps li.completed::after {
	content: "✓";
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--wprb-step-check-bg);
	color: white;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.booking-step {
	display: none;
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	color: var(--wprb-text-color);
	position: relative;
}

.booking-step.active {
	display: block;
	opacity: 1;
	transform: translateX(0);
	color: var(--wprb-text-color);
}

/* Ensure complete step form is visible when active */
.booking-step.booking-complete.active {
	min-height: 300px;
}

p.wprb-step-description {
	text-align: center;
	font-weight: bold;
	color: var(--wprb-text-color);
}

#wprb-booking-modal ul.booking-people_numbers {
	margin: 0;
	padding: 0 0 2rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	justify-items: center;
}

#wprb-booking-modal ul.booking-people_numbers li {
	width: auto;
	margin-left: 0;
	display: inline-flex;
	align-items: center;
}

.people .value {
	display: inline;
	padding-right: 2px;
}

.booking-people_numbers__number input[type="button"] {
	width: 80px;
	height: 40px;
	padding: 0;
	color: #000;
	background-color: #fff;
	border-radius: 5px;
	border: 1px dotted var(--wprb-primary-color);
	font-size: 15px;
	font-weight: bold;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.booking-people_numbers__number input[type="button"]:hover,
.booking-people_numbers__number input[type="button"].active {
	border: 2px solid var(--wprb-primary-color);
	text-decoration: none;
	transform: scale(1.1);
	color: var(--wprb-primary-color);
	background-color: var(--wprb-bg-primary-color);
}

.booking-people_numbers__number.active::after {
	border-top: 5px solid #fff;
}

.booking-date {
	text-align: center;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #d7d7d7;
}

.booking-date .datepicker {
	margin: 0 auto;
}

.booking-hours {
	text-align: center;
}

.booking-hours ul {
	min-height: 100px;
	overflow-y: auto;
	overflow-x: hidden;
}


.booking-hours ul li {
	width: 25%;
	text-align: center;
}

#wprb-reservation input:not([type="checkbox"]) {
	border: 1px solid #cdcdcd;
	outline: none;
	box-shadow: none;
	width: 100%;
	height: 40px;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #fff;
	border-radius: 2px;
	font-size: 14px;
	text-align: left;
	color: #212121;
	margin-bottom: 10px;
}

#wprb-reservation input[type="checkbox"] {
	margin-right: 5px;
}
/*
#wprb-reservation input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	-o-appearance: none;
	appearance: none;
	position: relative;
	border: 1px solid #cdcdcd;
	box-shadow: none;
	width: 15px;
	height: 15px;
	overflow: hidden;
	margin: 0 6px 0 0;
	padding: 0;
	cursor: pointer;
	top: 3px;
	background-color: #fff;
}

#wprb-reservation input[type="checkbox"]:checked {
	background-color: var(--wprb-primary-color);
}

#wprb-reservation input[type="checkbox"]:checked:after {
	content: "✔";
	color: white;
	position: relative;
	top: -5px;
	left: 1px;
	border: 0;
	transform: none;
	display: block;
	width: 15px;
	height: 15px;
	overflow: hidden;
	text-align: left;
}

#wprb-reservation input[type="checkbox"]:checked:before {
	content: "";
}*/

label[for="policy-field"] {
	display: block;
	margin: 20px 0;
	color: #898989;
	font-size: 12px;
	padding-left: 15px;
	text-indent: -15px;
}

label[for="policy-field"] a {
	color: #666;
	text-decoration: none;
}

#wprb-reservation input.error,
#wprb-reservation select.error {
	border: 1px solid red;
}

#wprb-reservation button[type="submit"]:disabled {
	opacity: 0.4;
}

#wprb-reservation button[type="submit"]:disabled:hover {
	opacity: 0.4;
	cursor: not-allowed;
}

#wprb-reservation button[type="submit"] {
	background-color: var(--wprb-complete-btn-bg);
	color: var(--wprb-complete-btn-text);
	font-size: 14px;
	text-transform: uppercase;
	opacity: 0.8;
	cursor: pointer;
	height: auto;
	text-align: center;
	border-radius: 5px;
	font-weight: 600;
	padding-top: 10px;
	padding-bottom: 10px;
	width: 100%;
	height: 40px;
}

#wprb-reservation button[type="submit"]:hover {
	opacity: 1;
}

#wprb-reservation input::placeholder,
#wprb-reservation textarea::placeholder {
	color: #cacaca;
}

#wprb-reservation textarea {
	margin-bottom: 5px;
	font-size: 14px;
	width: 100%;
	border: 1px solid #ccc;
}

.wprb-confirmation-email {
	color: #888;
	display: block;
	margin: 1.5rem 0;
}

/* Confirmation step - booking-end */
.booking-end {
	text-align: center;
	padding: 10px 20px 20px;
}

.booking-end .wprb-confirm-icon .fa-check-circle {
	font-size: 300%;
	color: var(--wprb-primary-color);
	margin-bottom: 0.5rem;
}

.booking-end .wprb-confirm-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #222;
}

.booking-end .wprb-confirm-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0 auto 24px;
	max-width: 380px;
	line-height: 1.5;
}

.booking-end .wprb-confirm-email-link {
	color: #333;
	text-decoration: underline;
	font-weight: 500;
}

.booking-end .wprb-confirm-summary {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 0 auto 20px;
	max-width: 380px;
	text-align: left;
}

.booking-end .wprb-confirm-summary-row {
	display: flex;
	align-items: center;
	padding: 10px 0;
}

.booking-end .wprb-confirm-summary-row:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.booking-end .wprb-confirm-summary-icon {
	width: 32px;
	flex-shrink: 0;
	font-size: 16px;
	color: #888;
	text-align: center;
}

.booking-end .wprb-confirm-summary-value {
	font-size: 15px;
	font-weight: 500;
	color: #222;
}

.booking-end .wprb-confirm-spam-notice {
	font-size: 12px;
	color: #999;
	margin: 0 auto 24px;
	max-width: 380px;
	line-height: 1.4;
}

.booking-end .booking-end-actions {
	margin-top: 0;
	text-align: center;
}

.booking-end .wprb-new-reservation-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	background-color: var(--wprb-primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.booking-end .wprb-new-reservation-btn:hover {
	background-color: #e6a014;
}

.booking-end-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

/* Desktop styles */
@media screen and (min-width: 768px) {
	.booking-table-selection {
		display: flex;
		gap: 20px;
		margin-top: 20px;
	}

	.table-layout-canvas-container {
		flex: 1;
		position: relative;
	}

	.table-info-panel {
		width: 300px;
		padding: 15px;
		background: #f5f5f5;
		border-radius: 5px;
	}
}

/* Table selection step styles */
.booking-table {
	display: none;
}

.booking-table.active {
	display: block;
}

.room-selector {
	margin-bottom: 20px;
}

.room-selector select {
	width: 100%;
	padding: 10px;
	border: 1px solid #cdcdcd;
	border-radius: 4px;
	font-size: 14px;
}

.table-layout-canvas-container {
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden;
	position: relative;
	background: #fff;
}

#table-selection-canvas {
	display: block;
	cursor: grab;
}

#table-selection-canvas:active {
	cursor: grabbing;
}

.table-info-panel h4 {
	margin-top: 0;
}

.table-details {
	margin-top: 15px;
}

.table-status {
	padding: 5px 10px;
	border-radius: 4px;
	display: inline-block;
	font-weight: bold;
}

.table-status.available {
	background: #4CAF50;
	color: white;
}

.table-status.occupied {
	background: #f44336;
	color: white;
}

.select-table-btn {
	width: 100%;
	padding: 10px;
	margin-top: 15px;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
}

.select-table-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Mobile optimizations */
@media screen and (max-width: 767px) {
	.booking-table-selection {
		flex-direction: column;
	}

	.table-info-panel {
		width: 100%;
		margin-top: 20px;
	}
}

/*Outside the steps now: it carries the width the step container used to give it*/
#wprb-avvertenze-widget {
	width: 100%;
	max-width: 700px;
	margin: 20px auto 0;
}

#wprb-avvertenze-widget ul {
	list-style: initial;
	margin: initial;
	padding: 0px 20px;
}

#wprb-avvertenze-widget ul li {
	font-size: initial;
	text-transform: initial;
	float: initial;
	width: initial;
	text-align: initial;
	position: initial;
	margin: initial;
}

#wprb-avvertenze-widget h5 {
	margin-top: 20px;
	margin-bottom: 0px;
}

#wprb-avvertenze-widget ol {
	margin: 0em 1em;
}

#wprb-avvertenze-widget ol li {
	margin-top: 10px;
}

/* ALLERGIES SECTION */
.wprb-allergies-section {
	margin: 15px 0;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 5px;
}

.wprb-allergies-toggle {
	display: block;
	cursor: pointer;
	font-weight: bold;
	margin-bottom: 10px;
}

.wprb-allergies-toggle input[type="checkbox"] {
	margin-right: 8px;
}

.wprb-allergies-list {
	margin-top: 15px;
}

.wprb-allergies-label {
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
}

.wprb-allergy-item {
	display: block;
	margin: 8px 0;
	padding: 5px 0;
	cursor: pointer;
}

.wprb-allergy-item input[type="checkbox"] {
	margin-right: 8px;
}

/* END ALLERGIES SECTION */

/* SUBMIT LOADER STYLES */
#wprb-submit-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Button spinner styles */
.wprb-complete-reservation .spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: button-spin 0.6s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
}

@keyframes button-spin {
	to {
		transform: rotate(360deg);
	}
}

.wprb-complete-reservation:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.submit-loader-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 300px;
	width: 90%;
}

.submit-loader-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid var(--wprb-primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.submit-loader-content p {
	margin: 0;
	color: #333;
	font-weight: bold;
}

/* ENHANCED PRO TABLE LAYOUT STYLES */
.pro-table-selection-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* Table info panel moved to top with inline layout */
.table-info-panel-top {
	background: #fff;
	border: 1px solid #dee2e6;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	padding: 14px 18px;
	margin-bottom: 0;
}

.table-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
}

.table-info-panel-top h4 {
	margin: 0;
	font-size: 16px;
	color: #212529;
}

/* What the colours on the map mean */
.table-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: #6c757d;
}

.table-legend li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.table-legend li::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 3px;
	flex-shrink: 0;
}

.table-legend .is-free::before {
	background: #4CAF50;
}

.table-legend .is-unfit::before {
	background: #FF9800;
}

.table-legend .is-booked::before {
	background: #f44336;
}

/* Shown only when nothing in the room can take the party */
.table-none-fit {
	display: none;
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fff8e1;
	border: 1px solid #ffe0a3;
	color: #8a5a00;
	font-size: 13px;
	line-height: 1.4;
}

.table-details-inline {
	width: 100%;
}

/*
 * The chosen table, as one flat row inside the card: it used to be a second
 * bordered grey box nested in the first one, with the values floating in a
 * rigid three column grid.
 */
.table-info-inline {
	display: none;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e9ecef;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

/*
 * Shown by the script once a table is picked. It used to be matched on the
 * inline style, but the markup writes "display:none;" with no space while the
 * selector looked for "display: none" with one: the :not() was always true, so
 * the panel stayed open with Tavolo, Posti and Stato empty. On a phone that is
 * 271px of nothing above the map, which started below the fold because of it.
 */
.table-info-inline.is-visible {
	display: flex;
}

.table-info-inline span {
	white-space: nowrap;
	font-size: 14px;
}

.table-info-inline span strong {
	color: #6c757d;
	font-weight: 500;
}

.table-info-inline .table-name,
.table-info-inline .table-seats {
	color: #212529;
	font-weight: 600;
}

/* The state reads as a pill, in the same colours the map uses */
.table-info-inline .table-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #e8f5e9;
	color: #2e7d32;
}

.table-info-inline .table-status.occupied {
	background: #fdecea;
	color: #c62828;
}

.table-info-inline .select-table-btn {
	/*The base rule for this button is a full width block: here it sits in a row*/
	width: auto;
	margin-top: 0;
	margin-left: auto;
	background: #28a745;
	color: #fff;
	border: none;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.table-info-inline .select-table-btn:hover:not(:disabled) {
	background: #218838;
}

.table-info-inline .select-table-btn:disabled {
	background: #adb5bd;
	cursor: not-allowed;
}

/* Enhanced canvas container */
.table-layout-canvas-container-enhanced {
	position: relative;
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 0 0 8px 8px;
	border-top: none;
	overflow: hidden;
}


/* Enhanced canvas wrapper */
.canvas-wrapper-enhanced {
	width: 100%;
	height: 500px;
	/* Increased from default */
	position: relative;
	overflow: hidden;
}

.canvas-wrapper-enhanced canvas {
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
}

.canvas-wrapper-enhanced canvas.panning {
	cursor: grabbing;
}

/* Zoom controls sitting over the map */
.wprb-canvas-controls {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wprb-canvas-control {
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: var(--wprb-text-color);
	background: var(--wprb-widget-bg);
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.wprb-canvas-control:hover,
.wprb-canvas-control:focus {
	color: var(--wprb-primary-color);
	border-color: var(--wprb-primary-color);
	outline: none;
}

.wprb-canvas-control:active {
	transform: translateY(1px);
}

/* Fingers need a bigger target than a mouse pointer */
@media (max-width: 768px) {
	.wprb-canvas-control {
		width: 44px;
		height: 44px;
		font-size: 20px;
	}
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
	.table-info-inline {
		gap: 10px 14px;
	}
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {

	/*The button takes its own full-width row, as the only thing to tap here*/
	.table-info-inline {
		gap: 8px 14px;
	}

	.table-info-inline .select-table-btn {
		margin-left: 0;
		flex: 1 1 100%;
	}

	.canvas-wrapper-enhanced {
		height: 400px;
	}

}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
	.canvas-wrapper-enhanced canvas {
		touch-action: pan-x pan-y pinch-zoom;
	}

}

/* BASIC PLAN TABLE STYLES */
.basic-table-button {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 15px;
	margin: 8px;
	border: 2px solid #4CAF50;
	background: var(--wprb-table-bg);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-height: 120px;
}

.basic-table-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.basic-table-button.selected {
	border-color: #2196F3;
	background: #e3f2fd;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.basic-table-button.occupied {
	border-color: #f44336;
	background: #ffebee;
	cursor: not-allowed;
	opacity: 0.6;
}

.basic-table-button.occupied:hover {
	transform: none;
	box-shadow: none;
}

.basic-table-button.insufficient-seats {
	border-color: #ff9800;
	background: #fff3e0;
	cursor: not-allowed;
	opacity: 0.3;
}

.basic-table-button.insufficient-seats:hover {
	transform: none;
	box-shadow: none;
}

.basic-table-name {
	font-weight: bold;
	font-size: 16px;
	color: var(--wprb-table-text);
	text-align: center;
	margin-bottom: 8px;
}

.basic-table-info {
	font-size: 12px;
	color: var(--wprb-table-text);
	opacity: 0.75;
	text-align: center;
	line-height: 1.4;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.basic-table-status {
	font-size: 11px;
	font-weight: bold;
	text-align: center;
	padding: 4px 8px;
	border-radius: 12px;
	margin-top: 8px;
}

.basic-table-button .basic-table-status {
	background: #4CAF50 !important;
	color: white !important;
}

.basic-table-button.occupied .basic-table-status {
	background: #f44336 !important;
	color: white !important;
}

.basic-table-button.insufficient-seats .basic-table-status {
	background: #ff9800 !important;
	color: white !important;
}

.basic-table-button.selected .basic-table-status {
	background: #2196F3 !important;
	color: white !important;
}

/* Basic table selection container */
.table-basic-selection {
	width: 100%;
}

/* Grid layout for basic tables */
.basic-tables-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	padding: 20px;
}

/* Service selection buttons base styles */
.service-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.service-select-btn {
	transition: all 0.2s ease;
	padding: 15px 20px;
	font-size:18px;
	cursor: pointer;
	margin-bottom: 10px;
	display: block;
	width: 100%;
	color: #000;
	background-color: #fff;
	border-radius: 5px;
	border: 1px dotted var(--wprb-primary-color);
}

.service-select-btn:hover,
.service-select-btn.active {
	border: 2px solid var(--wprb-primary-color);
	color: var(--wprb-primary-color);
	background-color: var(--wprb-bg-primary-color);
}

@media (max-width: 768px) {
	.basic-tables-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		padding: 15px;
	}

	.basic-table-button {
		min-height: 100px;
		padding: 12px;
	}
}

/* Receipt modal styles */
#wprb-receipt-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.wprb-receipt-modal-content {
	background: white;
	padding: 25px;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wprb-receipt-modal-content h3 {
	margin-top: 0;
	color: #23282d;
	font-size: 18px;
	border-bottom: 1px solid #e1e1e1;
	padding-bottom: 10px;
}

.wprb-receipt-form-group {
	margin-bottom: 20px;
}

.wprb-receipt-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #23282d;
}

.wprb-receipt-form-group input[type="file"],
.wprb-receipt-form-group input[type="number"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.wprb-receipt-form-group input[type="file"]:focus,
.wprb-receipt-form-group input[type="number"]:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.wprb-receipt-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid #e1e1e1;
}

.wprb-receipt-modal-buttons .button {
	padding: 8px 16px;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

#wprb-save-receipt {
	background: #0073aa;
	border-color: #0073aa;
	color: white;
}

#wprb-save-receipt:hover:not(:disabled) {
	background: #005a87;
	border-color: #005a87;
}

#wprb-save-receipt:disabled {
	background: #a0a5aa;
	border-color: #a0a5aa;
	cursor: not-allowed;
}

/* END SUBMIT LOADER STYLES */

.table-additional-fields,
.table-additional-fields:focus,
.table-additional-fields:focus-visible,
.table-additional-fields:hover {
	border: none !important;
	font-size: 17px !important;
	outline: none !important;
	padding-left: 0px;
	padding-top: 10px;
}

.selected-table-info {
	margin-top: 10px;
}

#wprb-booking-modal .booking-step.booking-people,
#wprb-booking-modal .booking-step.booking-hours {
	max-width: 300px !important;
}

@media (max-width: 480px) {
	#wprb-booking-modal h2 {
		padding: 0px 0 5px;
		font-size: 1.3em;
	}
}

/*
 * Why a booking was refused, or why the hours could not be listed.
 * Id selectors and !important: the generic text rules above force colours.
 */
#wprb-booking-modal .wprb-form-error,
#wprb-booking-modal .booking-hours .wprb-error {
	margin: 15px 0;
	padding: 12px 15px;
	border-left: 4px solid #d63638;
	border-radius: 4px;
	background-color: #fcf0f1 !important;
	color: #8a2424 !important;
	text-align: left;
}

#wprb-booking-modal .wprb-form-error strong {
	display: block;
	margin-bottom: 4px;
}

#wprb-booking-modal .wprb-form-error p {
	margin: 0;
	color: #8a2424 !important;
}


/*
 * The notice that names the service a link preselected.
 *
 * An information panel, not a warning: it sits above the step the page opens on
 * and says what was already chosen, so nobody wonders why the booking starts
 * from the date. The script removes it as soon as the customer picks another
 * service, because from that moment it would describe the wrong one.
 */
.wprb-preselected-service {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid #b6dcf0;
	border-left: 4px solid #2196f3;
	border-radius: 6px;
	background: #eaf6fd;
	color: #0b4a6f;
	font-size: 14px;
	line-height: 1.4;
}

.wprb-preselected-service i {
	flex: 0 0 auto;
	font-size: 18px;
	color: #2196f3;
}
