/* Basic reset & variables */
.ibm-plugin-wrapper {
	all: initial;
	* {
		all: unset;
	}
}

.ibm-booker-wrapper *,
.ibm-pricelist-wrapper * {
	box-sizing: border-box;
}

.ibm-booker-wrapper select.ibm-select,
.ibm-booker-wrapper .ibm-select {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;

	margin: 0 !important;
	border-radius: 999px !important;
	border: 1px solid #ddd !important;
	background: #fff !important;
	box-shadow: none !important;
	outline: none !important;

	height: 44px !important;
	min-height: 44px !important;
	padding: 0 40px 0 14px !important;
	font-size: 14px !important;
	line-height: 1.2 !important;

	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}

.ibm-booker-wrapper .ibm-select-wrapper {
	position: relative;
	width: 100% !important;
	display: block !important;
}

@media (max-width: 600px) {
	.ibm-booker-wrapper select.ibm-select,
	.ibm-booker-wrapper .ibm-select {
		height: 40px !important;
		min-height: 40px !important;
		font-size: 13px !important;
	}
}

.ibm-booker-wrapper .nice-select.ibm-select {
	display: none !important;
}

.ibm-alert {
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 12px;
	font-size: 14px;
}
.ibm-alert-error {
	background: #ffe1e1;
	color: #7a0a0a;
	border: 1px solid #e6b1b1;
}

.ibm-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 24px;
	align-items: start;
	padding-bottom: 50px;
}
@media (max-width: 900px) {
	.ibm-grid {
		grid-template-columns: 1fr;
	}
}

.ibm-title {
	font-size: 48px;
	line-height: 1.05;
	margin: 0 0 8px;
	font-weight: 700;
}
.ibm-text {
	white-space: pre-wrap;
	color: #333;
	font-size: 16px;
	margin-bottom: 16px;
}

.ibm-card {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	border: 1px solid #eee;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ibm-selects {
	display: grid;
	grid-template-columns: 24px 1fr;
	column-gap: 12px;
	margin-bottom: 14px;
	align-items: start;
}
.ibm-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	width: 100%;
	border-radius: 12px;
	border: 1px solid #d7d7d7;
	background-color: #fff;

	padding: 10px 2.5rem 10px 0.9rem;
	font-size: 0.95rem;
	line-height: 1.4;
	cursor: pointer;
}
.ibm-select::-ms-expand {
	display: none;
}
.ibm-select:focus {
	outline: none;
	border-color: var(--ibm-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ibm-primary) 25%, transparent);
}

.ibm-select-wrapper {
	position: relative;
	width: 100%;
	display: block;
}

.ibm-select-wrapper::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1rem;
	width: 8px;
	height: 8px;
	border-right: 2px solid #555;
	border-bottom: 2px solid #555;
	transform: translateY(-50%) rotate(45deg);
	pointer-events: none;
}

.ibm-select option {
	padding: 6px 10px;
	font-size: 0.95rem;
}

.ibm-select option:checked {
	background-color: var(--ibm-primary);
	color: #fff;
}

.ibm-timeline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	justify-content: flex-start;
}
.ibm-timeline .dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: inline-block;
	border: 2px solid var(--ibm-primary);
	background: #fff;
	opacity: 0.35;
	transition: 0.2s;
}
.ibm-timeline .bar {
	height: 2px;
	width: 40px;
	background: var(--ibm-primary);
	opacity: 0.35;
}
.ibm-timeline .active {
	opacity: 1;
	background: var(--ibm-primary);
}

.ibm-calendar {
	border-top: 1px solid #eee;
	padding-top: 12px;
}
.ibm-cal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.ibm-range-label {
	font-size: 14px;
	color: #333;
}

.ibm-days {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 700px) {
	.ibm-days {
		grid-template-columns: repeat(2, 1fr);
	}
}
.ibm-day {
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 8px;
}
.ibm-day .d-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.ibm-day .d-weekday {
	font-weight: 600;
	font-size: 14px;
	text-transform: none;
}

.ibm-day .d-date {
	font-weight: 400;
	font-size: 12px;
	opacity: 0.85;
}
.ibm-slots {
	display: grid;
	gap: 5px;
	max-height: 160px;
	overflow: hidden;
	transition: max-height 0.25s ease;
}
.ibm-slots.expanded {
	max-height: 2000px;
}
.ibm-slot {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--ibm-primary);
	color: var(--ibm-primary);
	border-radius: 10px;
	padding: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
}
.ibm-slot:hover {
	filter: brightness(0.95);
}
.ibm-slot.selected {
	background: var(--ibm-secondary);
	border-color: var(--ibm-secondary);
	color: #fff;
}

.ibm-skel {
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
	animation: ibm-s 1.2s infinite;
	background-size: 200% 100%;
}
@keyframes ibm-s {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 200% 0;
	}
}

.ibm-availability {
	margin-top: 12px;
}

.ibm-alert-availability {
	background-color: var(--ibm-secondary);
	color: #fff;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.ibm-alert-availability::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #fff;
	margin-right: 8px;
	font-weight: 700;
}

.ibm-alert-availability .ibm-alert-title {
	font-weight: 600;
	margin-bottom: 4px;
	display: inline-block;
}

.ibm-alert-availability .ibm-alert-body {
	font-weight: 400;
}

.ibm-more {
	text-align: center;
	margin-top: 8px;
}
.ibm-more-btn {
	border: none !important;
	background: none !important;
	background-color: transparent !important;
	color: var(--ibm-primary) !important;
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
}

.ibm-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 12px;
}
.ibm-branding {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: start;
	margin-top: 0.25rem;
}

.ibm-branding a,
.ibm-branding a:visited {
	color: inherit;
	text-decoration: none;
	display: flex;
}

.ibm-branding a:hover,
.ibm-branding a:focus,
.ibm-branding a:active {
	color: inherit;
	text-decoration: none;
}
.ibm-branding small {
	opacity: 0.7;
	font-size: 0.85rem;
}
.ibm-branding-logo {
	height: 24px !important;
	display: block;
	padding-left: 8px;
}
.ibm-book-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 12px;
	background: var(--ibm-primary);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.ibm-book-btn:hover {
	filter: brightness(0.95);
}

.ibm-reviews {
	position: relative;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 16px;
	margin-top: 10px;
	overflow: visible;
	margin-left: 20px;
	margin-right: 20px;
}
.ibm-reviews-track {
	display: flex;
	gap: 12px;
	transition: transform 0.35s ease;
}
.ibm-review {
	min-width: 100%;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.ibm-reviews-viewport {
	overflow: hidden;
	width: 100%;
}
.ibm-rev-dots {
	position: absolute;
	bottom: -18px;
	left: 50%;
	transform: translateX(-50%);
}
.ibm-ava {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ddd;
	flex: 0 0 44px;
}
.ibm-rev-body {
	font-size: 14px;
	color: #333;
}
.ibm-rev-name {
	font-weight: 600;
	margin-bottom: 2px;
}

.ibm-rev-prev,
.ibm-rev-next {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: var(--ibm-secondary) !important;
	background: transparent !important;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 40px;
}

.ibm-rev-prev:hover,
.ibm-rev-next:hover {
	filter: brightness(0.92);
}

.ibm-nav {
	background: var(--ibm-secondary) !important;
	color: #fff !important;
	border: 1px solid var(--ibm-secondary) !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
	line-height: 1 !important;
	padding: 0 !important;
}

.ibm-rev-prev {
	left: -34px !important;
}
.ibm-rev-next {
	right: -34px !important;
}

.ibm-error {
	color: #7a0a0a;
	background: #ffe1e1;
	border: 1px solid #e6b1b1;
	border-radius: 10px;
	padding: 8px;
	margin-top: 8px;
}

/* Vertical timeline left of selects */
.ibm-timeline {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}
.ibm-timeline .bar {
	width: 2px;
	height: 28px;
	opacity: 0.35;
}
.ibm-select-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}

.ibm-booker-wrapper .ibm-selects {
	display: grid !important;
	column-gap: 12px !important;
	align-items: start !important;
}
.ibm-booker-wrapper .ibm-selects > .ibm-timeline {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 10px !important;
	margin-top: 6px !important;
}
.ibm-booker-wrapper .ibm-selects > .ibm-timeline .bar {
	width: 2px !important;
	height: 28px !important;
	background: var(--ibm-primary) !important;
	opacity: 0.35 !important;
}
.ibm-booker-wrapper .ibm-selects > .ibm-select-col {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

.ibm-booker-wrapper .ibm-calendar .ibm-nav {
	background: var(--ibm-secondary) !important;
	color: #fff !important;
	border: 1px solid var(--ibm-secondary) !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
	line-height: 1 !important;
	padding: 0 !important;
	font-size: 26px;
}
.ibm-booker-wrapper .ibm-calendar .ibm-nav:hover {
	filter: brightness(0.92) !important;
}

/* Empty day placeholder (dash) */
.ibm-slot-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	border-radius: 10px;
	border: 1px dashed #ddd;
	color: #bbb;
	font-size: 14px;
}

/* Modal */
.ibm-modal {
	position: relative;
}
.ibm-modal[hidden] {
	display: none;
}
.ibm-modal .ibm-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 99998;
}
.ibm-modal .ibm-modal-card {
	position: fixed;
	z-index: 99999;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 16px;
	padding: 18px 16px;
	width: min(420px, 90vw);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.ibm-modal-title {
	font-weight: 700;
	margin-bottom: 6px;
}
.ibm-modal-text {
	color: #333;
	margin-bottom: 12px;
}
.ibm-modal-close {
	background: var(--ibm-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	cursor: pointer;
}
.ibm-more-btn {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.ibm-more-btn::after {
	content: "";
	border: 5px solid transparent;
	border-top-color: #333;
	display: inline-block;
}

/* Reviews carousel */
.ibm-rev-stars {
	display: flex;
	gap: 4px;
	margin: 4px 0 6px;
}
.ibm-star {
	width: 16px;
	height: 16px;
	display: inline-block;
	position: relative;
}
.ibm-star svg {
	width: 100%;
	height: 100%;
}
.ibm-star .fill {
	fill: var(--ibm-secondary);
}
.ibm-star .empty {
	fill: none;
	stroke: var(--ibm-secondary);
	stroke-width: 1.4;
}
.ibm-rev-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 10px;
}
.ibm-rev-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #cfcfcf;
}
.ibm-rev-dot.active {
	background: #333;
}

.ibm-ava {
	overflow: hidden;
}
.ibm-ava img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
}

/* --- ENFORCED COLOR BINDINGS --- */
.ibm-booker-wrapper .ibm-book-btn {
	background: var(--ibm-primary) !important;
	color: #fff !important;
}
.ibm-booker-wrapper .ibm-slot {
	border: 1px solid var(--ibm-primary) !important;
	color: var(--ibm-primary) !important;
}
.ibm-booker-wrapper .ibm-slot.selected {
	background: var(--ibm-secondary) !important;
	color: #fff !important;
	border-color: var(--ibm-secondary) !important;
}
.ibm-booker-wrapper .ibm-calendar .ibm-nav {
	background: var(--ibm-secondary) !important;
	border-color: var(--ibm-secondary) !important;
	color: #fff !important;
}
.ibm-booker-wrapper .ibm-timeline .dot.active {
	background: var(--ibm-primary) !important;
	border-color: var(--ibm-primary) !important;
}
.ibm-booker-wrapper .ibm-timeline .bar {
	background: var(--ibm-primary) !important;
}

/* === PREZZARIO ===================================================== */

.ibm-pricelist-wrapper {
	font-size: 14px;
	--ibm-card-bg: #fff;
	--ibm-card-border: #e3e3e3;
	--ibm-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);

	--ibm-pricelist-primary: #39a4aa;
	--ibm-pricelist-secondary: #fa8d2b;
}

.ibm-pricelist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 700px) {
	.ibm-pricelist {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ibm-pricelist-item {
	background: var(--ibm-card-bg);
	border-radius: 18px;
	border: 1px solid var(--ibm-card-border);
	padding: 14px 16px;
	box-shadow: var(--ibm-card-shadow);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ibm-pricelist-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ibm-pricelist-main {
	min-width: 0;
}

.ibm-pricelist-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

.ibm-pricelist-description {
	font-size: 13px;
	line-height: 1.4;
	opacity: 0.85;
}

.ibm-pricelist-price {
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	color: var(--ibm-pricelist-primary) !important;
	margin-left: 8px;
}

.ibm-pricelist-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.ibm-pricelist-pill {
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.ibm-pricelist-pill-secondary {
	background: rgba(250, 141, 43, 0.07);
	border-color: var(--ibm-pricelist-secondary);
	color: var(--ibm-pricelist-secondary);
}

.ibm-pricelist-skeleton {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 700px) {
	.ibm-pricelist-skeleton {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ibm-pricelist-skel-line {
	height: 70px;
	border-radius: 16px;
	background: linear-gradient(90deg, #f2f2f2 0%, #e6e6e6 50%, #f2f2f2 100%);
	background-size: 200% 100%;
	animation: ibm-pricelist-shimmer 1.2s infinite;
}

@keyframes ibm-pricelist-shimmer {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.ibm-pricelist-empty {
	padding: 10px 14px;
	font-size: 14px;
	color: #777;
	border-radius: 14px;
	border: 1px dashed #ddd;
}
