/* ============ KONTENER GŁÓWNY ============ */
.wcpb-wrap {
	width: 100%;
	max-width: 900px;
	margin: 60px auto;
	font-family: inherit;
	color: #222;
	text-align: center;
}
.wcpb-main-title {
	font-size: 1.6rem;
	font-weight: 300;
	margin-bottom: 40px;
	color: #333;
}

/* ============ MAPA OPENLAYERS ============ */
.wcpb-map-container {
	margin-bottom: 50px;
	text-align: left;
}
.wcpb-map {
	height: 400px;
	width: 100%;
	border-radius: 12px;
	border: 1px solid #eaeaea;
	position: relative;
	overflow: hidden;
}
.wcpb-selected-showroom-info {
	display: none;
	margin-top: 20px;
	padding: 15px 20px;
	background: #f0f7ff;
	border-left: 4px solid #007eff;
	border-radius: 4px;
	text-align: left;
}
.wcpb-selected-showroom-info h4 {
	margin: 0 0 5px 0;
	color: #007eff;
	font-size: 16px;
}
.wcpb-selected-showroom-info p {
	margin: 0;
	font-size: 14px;
	color: #555;
}

/* ============ POPUP OVERLAY (OPENLAYERS) ============ */
.wcpb-ol-popup {
	position: absolute;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	padding: 24px;
	min-width: 260px;
	max-width: 300px;
	box-sizing: border-box;
	z-index: 10;
}
.wcpb-ol-popup::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #fff;
}
.wcpb-ol-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	color: #333;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}
.wcpb-popup-title {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	margin: 0 0 12px 0;
}
.wcpb-popup-address {
	font-size: 15px;
	color: #555;
	margin: 0 0 20px 0;
	line-height: 1.4;
}
.wcpb-popup-btn {
	background: #007eff !important;
	color: #fff !important;
	border: none !important;
	padding: 14px 20px !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	width: 100% !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
	font-family: inherit !important;
	box-sizing: border-box !important;
	display: block !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	text-align: center !important;
}
.wcpb-popup-btn:hover {
	background: #006bdf !important;
	color: #fff !important;
}

/* ============ KALENDARZ & GODZINY ============ */
.wcpb-booking-stage {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease;
}
.wcpb-booking-stage.active {
	display: block;
	opacity: 1;
}
.wcpb-top-stage {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 50px;
	max-width: 850px;
	margin: 0 auto 50px auto;
	align-items: flex-start;
	text-align: left;
}
.wcpb-cal-container {
	flex: 1;
	max-width: 450px;
	width: 100%;
}
.wcpb-cal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.wcpb-cal-month {
	font-size: 1.2rem;
	font-weight: 400;
	color: #333;
	text-transform: capitalize;
}
.wcpb-cal-btn {
	background: none;
	border: none;
	font-size: 20px;
	color: #333;
	cursor: pointer;
	padding: 5px 15px;
}
.wcpb-cal-btn:hover {
	color: #007eff;
}
.wcpb-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border-bottom: 1px solid #eaeaea;
	padding-bottom: 15px;
	margin-bottom: 20px;
	text-align: center;
}
.wcpb-cal-weekdays span {
	font-size: 14px;
	color: #555;
	font-weight: 500;
}
.wcpb-cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
}
.wcpb-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 300;
	color: #555;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.wcpb-day:hover:not(.disabled):not(.empty) {
	background: #f0f0f0;
	color: #000;
}
.wcpb-day.selected {
	background: #007eff !important;
	color: #ffffff !important;
	font-weight: 400;
}
.wcpb-day.disabled {
	color: #ddd;
	cursor: not-allowed;
	text-decoration: line-through;
}
.wcpb-day.empty {
	cursor: default;
}
.wcpb-time-container {
	flex: 0 0 260px;
	display: none;
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.wcpb-time-container.active {
	display: block;
	opacity: 1;
	transform: translateX(0);
}
.wcpb-date-label {
	font-size: 15px;
	font-weight: 400;
	color: #333;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eaeaea;
}
.wcpb-hours-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 350px;
	overflow-y: auto;
	padding-right: 10px;
}
.wcpb-hours-list::-webkit-scrollbar {
	width: 6px;
}
.wcpb-hours-list::-webkit-scrollbar-thumb {
	background: #dcdcdc;
	border-radius: 3px;
}
.wcpb-time-btn {
	display: block;
	width: 100%;
	padding: 14px;
	border: 1px solid rgba(0, 126, 255, 0.4);
	border-radius: 4px;
	background: #fff;
	color: #007eff;
	font-weight: 500;
	font-size: 15px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	box-sizing: border-box;
}
.wcpb-time-btn:hover {
	border-color: #007eff;
	border-width: 2px;
	padding: 13px;
}
.wcpb-time-btn.selected {
	background: #007eff;
	color: #ffffff;
	border-color: #007eff;
}
.wcpb-time-btn.booked {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
	pointer-events: none;
}

/* ============ FORMULARZ ============ */
.wcpb-bottom-stage {
	display: none;
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	border-top: 1px solid #eaeaea;
	padding-top: 50px;
	max-width: 850px;
	margin: 0 auto;
	text-align: left;
}
.wcpb-bottom-stage.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}
.wcpb-form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	margin-bottom: 15px;
}
.wcpb-input-group label {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #333;
	margin-bottom: 12px;
}
.wcpb-input-group input {
	width: 100%;
	background: #f7f7f7;
	border: 1px solid #f7f7f7;
	padding: 18px;
	font-size: 15px;
	color: #333;
	border-radius: 4px;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.3s;
}
.wcpb-input-group input:focus {
	border-color: #007eff;
	background: #fff;
}
.wcpb-submit-wrap {
	text-align: center;
	margin-top: 40px;
}
.wcpb-submit {
	background-color: #007eff !important;
	color: #ffffff !important;
	border: none !important;
	padding: 20px 60px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	transition: all 0.3s !important;
	display: inline-block !important;
}
.wcpb-submit:hover {
	background-color: #006bdf !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(0, 126, 255, 0.2) !important;
}
.wcpb-submit:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}
.wcpb-msg {
	margin-top: 30px;
	padding: 20px;
	font-size: 15px;
	border-radius: 4px;
	display: none;
	text-align: center;
}
.wcpb-msg.success {
	color: #155724;
	background: #d4edda;
	border: 1px solid #c3e6cb;
}
.wcpb-msg.error {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
	.wcpb-top-stage {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
	.wcpb-time-container {
		flex: none;
		width: 100%;
		max-width: 450px;
	}
	.wcpb-hours-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.wcpb-form-grid {
		grid-template-columns: 1fr;
	}
	.wcpb-submit {
		width: 100% !important;
		padding: 20px !important;
	}
}

.wcpb-appointment-notice {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: #5c5c5c;
	font-style: italic;
	line-height: 1.45;
}

.wcpb-min-hours-hint {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	color: #6b6b6b;
	line-height: 1.4;
}
