.web-bleep-resource-selector {
	--web-bleep-accent: #ef6b5b;
	--web-bleep-accent-soft: rgba(239, 107, 91, .16);
	--web-bleep-border: #e7e7e7;
	width: min(100%, 520px);
	margin: 32px auto 28px;
	padding: 58px 28px 28px;
	position: relative;
	box-sizing: border-box;
	text-align: center;
	background: #fff;
	border: 1px solid var(--web-bleep-border);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
	overflow: visible;
}

/* Calendar-like top bar. */
.web-bleep-resource-selector::before {
	content: '';
	position: absolute;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 42px;
	border-radius: 16px 16px 0 0;
	background: var(--web-bleep-accent);
}

/* Two simple calendar binding rings. */
.web-bleep-resource-selector::after {
	content: '';
	position: absolute;
	top: 12px;
	left: 50%;
	width: 92px;
	height: 18px;
	transform: translateX(-50%);
	background:
		radial-gradient(circle at 12px 9px, #fff 0 5px, transparent 5.5px),
		radial-gradient(circle at 80px 9px, #fff 0 5px, transparent 5.5px);
	pointer-events: none;
}

.web-bleep-resource-selector.is-awaiting-selection {
	animation: web-bleep-selector-pulse 1.9s ease-in-out infinite;
}

@keyframes web-bleep-selector-pulse {
	0%, 100% {
		box-shadow: 0 10px 30px rgba(0, 0, 0, .07), 0 0 0 0 var(--web-bleep-accent-soft);
	}
	50% {
		box-shadow: 0 12px 34px rgba(0, 0, 0, .09), 0 0 0 10px rgba(239, 107, 91, 0);
	}
}

.web-bleep-resource-selector__heading {
	margin: 0 0 14px;
}

.web-bleep-resource-selector__label {
	display: block;
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	text-align: center;
}

.web-bleep-resource-selector__select {
	display: block;
	width: min(100%, 380px);
	max-width: 100%;
	min-height: 48px;
	margin: 0 auto;
	padding: 10px 42px 10px 14px;
	border: 1px solid #d6d6d6;
	border-radius: 9px;
	background-color: #fff;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.web-bleep-resource-selector__select:focus {
	outline: none;
	border-color: var(--web-bleep-accent);
	box-shadow: 0 0 0 3px var(--web-bleep-accent-soft);
}

.web-bleep-resource-selector.is-awaiting-selection .web-bleep-resource-selector__select {
	animation: web-bleep-select-breathe 1.9s ease-in-out infinite;
}

@keyframes web-bleep-select-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.012); }
}

.web-bleep-resource-selector__status {
	min-height: 0;
	margin: 10px 0 0;
	font-size: 14px;
}

.web-bleep-resource-selector__status:empty {
	display: none;
}

.web-bleep-resource-selector__status.is-loading {
	opacity: .7;
}

.web-bleep-resource-selector__status.is-error {
	color: #b42318;
}

.web-bleep-resource-selector__booking {
	position: relative;
	margin-top: 28px;
	text-align: initial;
}

.web-bleep-resource-selector__booking.is-loading {
	opacity: .55;
	pointer-events: none;
}

.web-bleep-resource-selector__object-name {
	margin: 0 0 14px;
	text-align: center;
}

.web-bleep-resource-selector__error {
	padding: 12px 14px;
	border: 1px solid #e5b8b8;
	color: #a00;
	background: #fff7f7;
}

/* An Elementor heading with exactly "Выберите дату" is marked by JS and
 * stays hidden until a resource is actually selected. */
.web-bleep-date-prompt[data-web-bleep-date-prompt-hidden="1"] {
	display: none !important;
}

@media (max-width: 767px) {
	.web-bleep-resource-selector {
		width: calc(100% - 24px);
		margin: 22px auto;
		padding: 54px 16px 20px;
		border-radius: 14px;
	}

	.web-bleep-resource-selector__select {
		width: 100%;
	}
}

/* The booking area is intentionally hidden until an object is selected. */
.web-bleep-resource-selector__booking[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.web-bleep-resource-selector.is-awaiting-selection,
	.web-bleep-resource-selector.is-awaiting-selection .web-bleep-resource-selector__select {
		animation: none;
	}
}


/* 5.2.06 — after selecting an object, the booking calendar must not inherit
 * the compact width of the selector card.  The selector itself remains
 * centered/compact, while the loaded booking area expands to the available
 * Elementor container width. */
.web-bleep-resource-selector:not(.is-awaiting-selection) {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.web-bleep-resource-selector:not(.is-awaiting-selection)::before,
.web-bleep-resource-selector:not(.is-awaiting-selection)::after {
	display: none;
}

.web-bleep-resource-selector:not(.is-awaiting-selection) > .web-bleep-resource-selector__label,
.web-bleep-resource-selector:not(.is-awaiting-selection) > .web-bleep-resource-selector__select,
.web-bleep-resource-selector:not(.is-awaiting-selection) > .web-bleep-resource-selector__status {
	width: min(100%, 520px);
	margin-left: auto;
	margin-right: auto;
}

.web-bleep-resource-selector:not(.is-awaiting-selection) > .web-bleep-resource-selector__booking {
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767px) {
	.web-bleep-resource-selector:not(.is-awaiting-selection) {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
}
