/* =============================================================================
   Kame Massage – Manage Booking
   Design language matches booking-widget.css
   ============================================================================= */

/* ── Container ────────────────────────────────────────────────────────────── */

.kame-manage-booking {
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
	color: #0c0b05;
}

/* ── View animation ───────────────────────────────────────────────────────── */

.kmb-view {
	animation: kmbFadeUp 0.3s ease both;
}
.kmb-view[hidden] { display: none; }

@keyframes kmbFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Title ────────────────────────────────────────────────────────────────── */

.kmb-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0c0b05;
	margin: 0 0 14px;
	line-height: 1.25;
}

/* ── Description ──────────────────────────────────────────────────────────── */

.kmb-desc {
	font-size: 14px;
	color: #777;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* ── Field / label / input ────────────────────────────────────────────────── */

.kmb-field {
	margin-bottom: 20px;
}

.kmb-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #444;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 7px;
}

.kmb-input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e6dfd3;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	color: #0c0b05;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.kmb-input:focus {
	outline: none;
	border-color: #B8915C;
	box-shadow: 0 0 0 3px rgba(252, 171, 16, 0.18);
}

/* ── Primary button ───────────────────────────────────────────────────────── */

.kmb-primary-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	background: #B8915C;
	color: #0c0b05;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.6px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, opacity 0.2s;
	text-align: center;
}
.kmb-primary-btn:hover:not(:disabled) {
	background: #D4B896;
}
.kmb-primary-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Danger button ────────────────────────────────────────────────────────── */

.kmb-danger-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	background: #e74c3c;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.6px;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	text-align: center;
}
.kmb-danger-btn:hover:not(:disabled) {
	background: #c0392b;
}
.kmb-danger-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Back button ──────────────────────────────────────────────────────────── */

.kmb-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #999;
	cursor: pointer;
	padding: 0;
	margin-top: 16px;
	transition: color 0.2s;
}
.kmb-back-btn:hover { color: #0c0b05; }

/* ── Error text ───────────────────────────────────────────────────────────── */

.kmb-error {
	background: #fdf2f2;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	color: #c0392b;
	margin-top: 16px;
}

/* ── No-times message ─────────────────────────────────────────────────────── */

.kmb-no-times {
	text-align: center;
	padding: 24px 20px;
	color: #999;
	font-style: italic;
	font-size: 14px;
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */

.kmb-spinner {
	text-align: center;
	padding: 48px 20px;
	color: #999;
	font-style: italic;
}

/* =============================================================================
   View: Details
   ============================================================================= */

.kmb-detail-list {
	background: #fff;
	border: 2px solid #e6dfd3;
	border-radius: 14px;
	padding: 8px 0;
	margin: 0 0 24px;
}

.kmb-detail-row {
	display: flex;
	align-items: baseline;
	padding: 12px 20px;
	border-bottom: 1px solid #f2ece3;
}
.kmb-detail-row:last-child { border-bottom: none; }

.kmb-detail-row dt {
	flex: 0 0 120px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #aaa;
}

.kmb-detail-row dd {
	flex: 1;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0c0b05;
	word-break: break-word;
}

/* Booking code value – monospace feel */
.kmb-detail-code {
	font-family: 'Courier New', Courier, monospace;
	letter-spacing: 1.5px;
	font-size: 16px !important;
	color: #B8915C !important;
}

/* ── Actions ──────────────────────────────────────────────────────────────── */

.kmb-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* =============================================================================
   View: Calendar  (mirrors .kbw-cal-* from booking-widget.css)
   ============================================================================= */

.kmb-calendar {
	max-width: 360px;
	margin: 0 auto 20px;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

.kmb-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #0c0b05;
}

.kmb-cal-month-label {
	font-size: 15px;
	font-weight: 700;
	color: #B8915C;
}

.kmb-cal-prev,
.kmb-cal-next {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px;
	transition: color 0.2s;
}
.kmb-cal-prev:hover,
.kmb-cal-next:hover {
	color: #B8915C;
}

.kmb-cal-days-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: #f7f2ea;
	padding: 8px 14px 6px;
}
.kmb-cal-day-name {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.kmb-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
	padding: 12px 14px 16px;
	min-height: 200px;
}

.kmb-cal-empty {
	/* occupies grid cell */
}

.kmb-cal-day {
	aspect-ratio: 1;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-family: inherit;
	background: none;
	color: #ccc;
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.kmb-cal-day--available {
	color: #0c0b05;
	font-weight: 700;
	background: rgba(252, 171, 16, 0.13);
	cursor: pointer;
}
.kmb-cal-day--available:hover,
.kmb-cal-day--available:focus-visible {
	background: #B8915C;
	color: #fff;
	transform: scale(1.12);
	outline: none;
}
.kmb-cal-day--past {
	color: #e0e0e0;
}
.kmb-cal-day--today {
	font-weight: 700;
}

/* =============================================================================
   View: Time slots  (mirrors .kbw-times-grid / .kbw-time-btn)
   ============================================================================= */

.kmb-times-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 460px;
	margin: 0 auto 20px;
}

.kmb-time-btn {
	padding: 11px 22px;
	border: 2px solid #e6dfd3;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #0c0b05;
	cursor: pointer;
	min-width: 84px;
	transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.kmb-time-btn:hover,
.kmb-time-btn:focus-visible {
	border-color: #B8915C;
	background: #B8915C;
	color: #fff;
	transform: translateY(-2px);
	outline: none;
}

/* =============================================================================
   View: Reschedule confirm
   ============================================================================= */

.kmb-reschedule-summary {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.kmb-old-booking,
.kmb-new-booking {
	flex: 1;
	background: #f7f2ea;
	border: 2px solid #e6dfd3;
	border-radius: 12px;
	padding: 16px 18px;
}

.kmb-new-booking {
	background: #fff8ec;
	border-color: #B8915C;
}

.kmb-summary-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #aaa;
	margin: 0 0 6px;
}

.kmb-old-datetime,
.kmb-new-datetime {
	font-size: 15px;
	font-weight: 700;
	color: #0c0b05;
	margin: 0;
	line-height: 1.4;
}

.kmb-arrow {
	flex: 0 0 auto;
	font-size: 22px;
	color: #B8915C;
	font-weight: 700;
	line-height: 1;
}

/* ── Button row ───────────────────────────────────────────────────────────── */

.kmb-btn-row {
	display: flex;
	align-items: center;
	gap: 16px;
}
.kmb-btn-row .kmb-primary-btn,
.kmb-btn-row .kmb-danger-btn {
	flex: 1;
}
.kmb-btn-row .kmb-back-btn {
	flex: 0 0 auto;
	margin-top: 0;
}

/* =============================================================================
   View: Success
   ============================================================================= */

.kmb-success-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: rgba(39, 174, 96, 0.12);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #27ae60;
}

.kmb-success-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #0c0b05;
	text-align: center;
	margin: 0 0 12px;
}

.kmb-success-msg {
	font-size: 15px;
	color: #777;
	text-align: center;
	margin: 0 0 24px;
	line-height: 1.6;
}

.kmb-new-code-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff8ec;
	border: 2px solid #B8915C;
	border-radius: 12px;
	padding: 16px 20px;
	font-size: 15px;
	color: #0c0b05;
	margin: 0 auto;
	max-width: 320px;
}
.kmb-new-code-wrap[hidden] { display: none; }

.kmb-new-code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #B8915C;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 520px) {
	.kmb-reschedule-summary {
		flex-direction: column;
		gap: 12px;
	}
	.kmb-arrow {
		transform: rotate(90deg);
	}
	.kmb-old-booking,
	.kmb-new-booking {
		width: 100%;
	}
	.kmb-btn-row {
		flex-wrap: wrap;
	}
	.kmb-btn-row .kmb-primary-btn,
	.kmb-btn-row .kmb-danger-btn {
		width: 100%;
	}
	.kmb-cal-grid {
		padding: 8px;
		gap: 2px;
	}
	.kmb-detail-row dt {
		flex: 0 0 90px;
	}
	.kmb-title {
		font-size: 1.15rem;
	}
}

.type-page {
    padding: 120px 0px 120px 0px;
}