.wisely-reservation {
	--wisely-res-border: #e6e6e6;
	--wisely-res-bg: #ffffff;
	--wisely-res-soft: #f8f8f8;
	--wisely-res-text: #212121;
	--wisely-res-accent: #111111;
	--wisely-res-muted: #666;
	background: var(--wisely-res-bg);
	border: 1px solid var(--wisely-res-border);
	border-radius: 12px;
	padding: 18px;
	color: var(--wisely-res-text);
}

.wisely-reservation,
.wisely-reservation * {
	box-sizing: border-box;
}

.wisely-reservation-form {
	display: grid;
	gap: 14px;
}

.wisely-res-step {
	display: none;
	border: 1px solid var(--wisely-res-border);
	border-radius: 10px;
	padding: 14px;
	background: #fff;
}

.wisely-res-step.is-active {
	display: block;
}

.wisely-res-step-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
	text-align: center;
	line-height: 1.3;
}

.wisely-res-people-grid {
	display: grid;
	grid-template-columns: repeat(8, 56px);
	gap: 10px;
	justify-content: center;
	max-width: 518px;
	margin: 0 auto;
}

.wisely-res-people-btn {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: 1px solid var(--wisely-res-border);
	background: #fff;
	color: var(--wisely-res-text);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	justify-self: center;
}

.wisely-res-people-btn.is-active {
	background: var(--wisely-res-accent);
	border-color: var(--wisely-res-accent);
	color: #fff;
}

.wisely-res-calendar-wrap {
	display: grid;
	gap: 10px;
	margin-bottom: 12px;
}

.wisely-res-calendar-head {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 8px;
}

.wisely-res-cal-nav {
	min-height: 34px;
	border: 1px solid var(--wisely-res-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.wisely-res-cal-month {
	text-align: center;
	font-size: 16px;
	font-weight: 700;
}

.wisely-res-cal-weekdays,
.wisely-res-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.wisely-res-cal-weekdays span {
	font-size: 12px;
	color: var(--wisely-res-muted);
	text-align: center;
}

.wisely-res-cal-empty {
	display: block;
	height: 40px;
}

.wisely-res-cal-day {
	min-height: 42px;
	border: 1px solid var(--wisely-res-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}

.wisely-res-cal-day.is-active {
	background: var(--wisely-res-accent);
	border-color: var(--wisely-res-accent);
	color: #fff;
}

.wisely-res-cal-day.is-disabled,
.wisely-res-cal-day:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.wisely-res-time-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	text-align: center;
}

.wisely-res-time-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.wisely-res-time-btn {
	min-height: 38px;
	border: 1px solid var(--wisely-res-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.wisely-res-time-btn.is-active {
	background: var(--wisely-res-accent);
	border-color: var(--wisely-res-accent);
	color: #fff;
}

.wisely-res-placeholder {
	padding: 10px;
	border: 1px dashed var(--wisely-res-border);
	border-radius: 8px;
	color: var(--wisely-res-muted);
	font-size: 13px;
}

.wisely-reservation-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.wisely-res-field {
	display: grid;
	gap: 6px;
}

.wisely-res-field label {
	font-size: 14px;
	font-weight: 600;
}

.wisely-reservation .wisely-res-field input[type="text"],
.wisely-reservation .wisely-res-field input[type="tel"],
.wisely-reservation .wisely-res-field input[type="email"] {
	width: 100%;
	min-height: 42px;
	padding: 8px 2px 6px;
	display: block;
	border: 0 !important;
	border-bottom: 1px solid #1f1f1f !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-size: 15px;
	box-sizing: border-box;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
}

.wisely-reservation .wisely-res-field input[type="text"]:focus,
.wisely-reservation .wisely-res-field input[type="tel"]:focus,
.wisely-reservation .wisely-res-field input[type="email"]:focus {
	outline: none;
	border-bottom-color: #000 !important;
}

.wisely-reservation .wisely-res-field input.is-invalid {
	border-bottom-color: #c62828 !important;
}

.wisely-reservation .wisely-res-field input::placeholder {
	color: #777;
	opacity: 1;
}

.wisely-res-submit {
	display: none;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--wisely-res-accent);
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
}

.wisely-res-submit.is-visible {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wisely-res-submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.wisely-res-message {
	min-height: 20px;
	font-size: 14px;
	color: var(--wisely-res-muted);
}

.wisely-res-message.is-error {
	color: #a10000;
}

.wisely-res-message.is-success {
	color: #1f7f39;
}

.wisely-res-thankyou {
	border: 1px solid var(--wisely-res-border);
	border-radius: 12px;
	padding: 22px;
	background: #fff;
	text-align: center;
}

.wisely-res-thankyou-title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
}

.wisely-res-thankyou-text {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: #1f7f39;
}

@media (max-width: 980px) {
	.wisely-reservation-grid {
		grid-template-columns: 1fr;
	}

	.wisely-res-people-grid {
		grid-template-columns: repeat(4, minmax(0, 56px));
		max-width: 100%;
	}

	.wisely-res-time-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.wisely-reservation {
		padding: 14px;
		border-radius: 10px;
	}

	.wisely-res-step {
		padding: 12px;
		border-radius: 10px;
	}

	.wisely-res-step-title {
		font-size: 20px;
		margin-bottom: 14px;
	}

	.wisely-res-cal-weekdays span {
		font-size: 11px;
	}

	.wisely-res-cal-day {
		min-height: 40px;
		font-size: 13px;
	}

	.wisely-res-time-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wisely-res-time-btn {
		min-height: 42px;
		font-size: 15px;
	}

	.wisely-res-field label {
		font-size: 15px;
	}

	.wisely-reservation .wisely-res-field input[type="text"],
	.wisely-reservation .wisely-res-field input[type="tel"],
	.wisely-reservation .wisely-res-field input[type="email"] {
		font-size: 16px;
		min-height: 44px;
	}

	.wisely-res-submit.is-visible {
		width: 100%;
		min-height: 46px;
		font-size: 17px;
	}

	.wisely-res-thankyou {
		padding: 18px;
	}

	.wisely-res-thankyou-title {
		font-size: 24px;
	}

	.wisely-res-thankyou-text {
		font-size: 17px;
	}
}

@media (max-width: 560px) {
	.wisely-res-people-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.wisely-res-people-btn {
		width: 100%;
		max-width: 56px;
		height: 56px;
	}

	.wisely-res-time-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wisely-res-cal-weekdays,
	.wisely-res-cal-grid {
		gap: 4px;
	}

	.wisely-res-cal-day {
		min-height: 38px;
	}

	.wisely-res-thankyou-title {
		font-size: 22px;
	}

	.wisely-res-thankyou-text {
		font-size: 16px;
	}
}

@media (max-width: 380px) {
	.wisely-res-step-title {
		font-size: 18px;
	}

	.wisely-res-people-btn {
		height: 52px;
		font-size: 17px;
	}

	.wisely-res-cal-nav {
		min-height: 32px;
		font-size: 20px;
	}

	.wisely-res-cal-month {
		font-size: 15px;
	}
}
