/**
 * Стили фронтенда
 */

.qrb-booking-calendar {
	max-width: 800px;
	margin: 20px 0;
	background: #1A1A1A;
	border: 2px solid #222222;
	border-radius: 4px;
	padding: 20px;
	color: #fff;
}

.qrb-room-title,
.qrb-product-title {
	margin-bottom: 20px;
	font-size: 24px;
	color: #fff;
}

.qrb-calendar-wrapper {
	background: #1A1A1A;
	border: 2px solid #222222;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.qrb-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.qrb-calendar-nav {
	background: #E85C00;
	color: #fff;
	border: 2px solid #E85C00;
	padding: 8px 15px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s;
}

.qrb-calendar-nav:hover {
	background: #ff6d1a;
	border-color: #ff6d1a;
}

.qrb-calendar-nav:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.qrb-calendar-month-year {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
}

.qrb-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin-bottom: 10px;
	font-weight: bold;
	text-align: center;
	color: #fff;
}

.qrb-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.qrb-calendar-day {
	padding: 10px;
	text-align: center;
	border: 2px solid #222222;
	border-radius: 3px;
	cursor: pointer;
	background: #1A1A1A;
	color: #fff;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.qrb-calendar-day:hover:not(.disabled):not(.booked) {
	background: #2a2a2a;
	border-color: #E85C00;
}

.qrb-calendar-day.selected {
	background: #E85C00;
	color: #fff;
	border-color: #E85C00;
}

.qrb-calendar-day.disabled {
	background: #1A1A1A;
	color: #666;
	cursor: not-allowed;
	opacity: 0.5;
	border-color: #333;
}

/* Стили для полностью забронированных дат */
.qrb-calendar-day.booked {
	background: #1A1A1A;
	color: #666;
	cursor: not-allowed;
	opacity: 0.7;
	border-color: #333;
}

.qrb-calendar-day.booked:hover {
	background: #1A1A1A;
	border-color: #333;
}

.qrb-calendar-day.other-month {
	color: #666;
}

.qrb-time-slots-wrapper {
	margin-top: 20px;
	padding: 20px;
	background: #1A1A1A;
	border: 2px solid #222222;
	border-radius: 4px;
}

.qrb-selected-date {
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
}

.qrb-time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
}

.qrb-time-slot {
	padding: 12px;
	text-align: center;
	border: 2px solid #222222;
	border-radius: 4px;
	background: #1A1A1A;
	color: #fff;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s;
}

.qrb-time-slot:hover:not(.disabled) {
	background: #E85C00;
	border-color: #E85C00;
	color: #fff;
}

.qrb-time-slot.disabled {
	border-color: #333;
	color: #666;
	cursor: not-allowed;
	opacity: 0.5;
	background: #1A1A1A;
}

.qrb-time-slot.selected {
	background: #E85C00;
	border-color: #E85C00;
	color: #fff;
}

.qrb-loading {
	text-align: center;
	padding: 20px;
	color: #fff;
}

.qrb-messages {
	margin-top: 15px;
}

.qrb-message {
	padding: 10px 15px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.qrb-message.success {
	background: rgba(40, 167, 69, 0.2);
	color: #4ade80;
	border: 2px solid #28a745;
}

.qrb-message.error {
	background: rgba(220, 53, 69, 0.2);
	color: #ff6b6b;
	border: 2px solid #dc3545;
}

/* Стили для модального окна */
.qrb-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qrb-modal {
	background: #1A1A1A;
	border: 2px solid #222222;
	border-radius: 8px;
	padding: 30px;
	max-width: 400px;
	width: 90%;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	animation: qrb-modal-fade-in 0.3s ease-out;
	color: #fff;
}

@keyframes qrb-modal-fade-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.qrb-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.qrb-modal-close:hover {
	color: #E85C00;
}

.qrb-modal-content {
	text-align: center;
}

.qrb-modal-message {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 20px;
	color: #fff;
}

.qrb-modal-cart-link {
	display: inline-block;
	padding: 12px 24px;
	background: #E85C00;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: background 0.3s;
	border: 2px solid #E85C00;
}

.qrb-modal-cart-link:hover {
	background: #ff6d1a;
	border-color: #ff6d1a;
	color: #fff;
}

