/**
 * Gymini Personal Training — page shortcode
 * Matches multi-step booking Date & Time layout (gold accent).
 */

.gpt-page {
	--gpt-gold: #e3aa2b;
	--gpt-gold-soft: rgba(227, 170, 43, 0.16);
	--gpt-ink: #0f172a;
	--gpt-muted: #64748b;
	--gpt-line: #e2e8f0;
	--gpt-wash: #f8fafc;
	--gpt-white: #ffffff;
	--gpt-danger: #b91c1c;
	--gpt-radius: 16px;
	font-family: "DM Sans", "Segoe UI", sans-serif;
	color: var(--gpt-ink);
	box-sizing: border-box;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
}

.gpt-page *,
.gpt-page *::before,
.gpt-page *::after {
	box-sizing: border-box;
}

.gpt-page__header {
	margin: 0 0 1.25rem;
	text-align: center;
}

.gpt-page__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.55rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--gpt-ink);
}

.gpt-page__subtitle {
	margin: 0 auto;
	max-width: 40rem;
	color: var(--gpt-muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

.gpt-page__notice {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #15803d;
	font-weight: 500;
}

.gpt-page__notice--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: var(--gpt-danger);
}

.gpt-page__notice--info {
	background: #fff8e8;
	border-color: #fde68a;
	color: var(--gpt-ink);
}

.gpt-page__notice a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.gpt-page__datetime {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 1rem;
	background: var(--gpt-wash);
	border: 1px solid var(--gpt-line);
	border-radius: var(--gpt-radius);
}

.gpt-page__calendar-card,
.gpt-page__times-card {
	background: var(--gpt-white);
	border: 1px solid var(--gpt-line);
	border-radius: 14px;
	padding: 1rem 1.1rem 1.15rem;
	height: 100%;
}

.gpt-page__cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.gpt-page__cal-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--gpt-ink);
}

.gpt-page__cal-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #94a3b8 !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	text-indent: 0 !important;
	line-height: 1 !important;
}

.gpt-page__cal-btn svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
}

.gpt-page #gpt-page-cal-prev {
	color: #b8c0cc !important;
}

.gpt-page #gpt-page-cal-next {
	color: #1e293b !important;
}

.gpt-page__cal-btn:hover,
.gpt-page__cal-btn:focus {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #0f172a !important;
}

.gpt-page__cal-weekdays,
.gpt-page__cal-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px 4px;
	width: 100%;
}

.gpt-page__cal-weekdays {
	margin-bottom: 10px;
	font-size: 0.78rem;
	font-weight: 500;
	color: #94a3b8;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
}

.gpt-page__cal-day {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	max-width: 38px;
	margin: 0 auto;
	padding: 0;
	border: none !important;
	border-radius: 999px;
	background: transparent !important;
	background-image: none !important;
	color: var(--gpt-ink);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none;
}

.gpt-page__cal-day.empty {
	visibility: hidden;
	pointer-events: none;
}

.gpt-page__cal-day.disabled,
.gpt-page__cal-day.unavailable,
.gpt-page__cal-day.week-full {
	color: #cbd5e1 !important;
	cursor: default;
	pointer-events: none;
	background: transparent !important;
	box-shadow: none !important;
}

.gpt-page__cal-day:not(.disabled):not(.empty):not(.week-full):hover {
	background: var(--gpt-gold-soft) !important;
}

.gpt-page__cal-day.selected {
	background: var(--gpt-gold) !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow: none !important;
}

.gpt-page__cal-day.has-booked,
.gpt-page__cal-day.has-selection,
.gpt-page__cal-day.has-slots {
	box-shadow: none !important;
}

.gpt-page__times-header {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.gpt-page__week-limit {
	margin: 0 0 0.75rem;
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	background: #fff8e8;
	border: 1px solid #fde68a;
	color: var(--gpt-ink);
	font-size: 0.85rem;
	font-weight: 650;
}

.gpt-page__week-limit.is-full {
	background: #fef2f2;
	border-color: #fecaca;
	color: var(--gpt-danger);
}

.gpt-page__times-scroll {
	max-height: 320px;
	overflow-y: auto;
	padding-right: 4px;
}

.gpt-page__times-grid {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.gpt-page__times-hint {
	margin: 0;
	color: var(--gpt-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.gpt-page__time-card {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	width: 100%;
	min-height: 56px;
	padding: 0.75rem 1rem;
	border: 1px solid #d7dee8 !important;
	border-radius: 10px !important;
	background: var(--gpt-white) !important;
	color: var(--gpt-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
}

.gpt-page__time-card:hover:not(.disabled):not(.unavailable) {
	border-color: var(--gpt-gold) !important;
	box-shadow: none !important;
}

.gpt-page__time-card.selected {
	border-color: var(--gpt-gold) !important;
	box-shadow: none !important;
	background: #fffdf7 !important;
}

.gpt-page__time-card .gpt-page__time-text {
	display: block;
	line-height: 1.2;
}

.gpt-page__time-card.disabled,
.gpt-page__time-card.unavailable {
	opacity: 1;
	cursor: not-allowed;
	pointer-events: none;
	background: #fff;
	border-color: #d7dee8;
	color: #9aa6b5;
}

.gpt-page__time-card.unavailable .gpt-page__time-text,
.gpt-page__time-card.disabled .gpt-page__time-text {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	color: #9aa6b5;
}

.gpt-page__time-card .gpt-page__slot-label {
	display: block;
	font-weight: 400;
	font-size: 0.82rem;
	line-height: 1.2;
	color: #9aa6b5;
	text-decoration: none;
}

.gpt-page__checkout {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.15rem;
	background: var(--gpt-white);
	border: 1px solid var(--gpt-line);
	border-radius: var(--gpt-radius);
	box-shadow: none !important;
}

.gpt-page__calendar-card,
.gpt-page__times-card,
.gpt-page__datetime {
	box-shadow: none !important;
}

.gpt-page__summary {
	flex: 1;
	min-width: 0;
}

.gpt-page__summary-empty {
	margin: 0;
	color: var(--gpt-muted);
}

.gpt-page__summary-list,
.gpt-page__summary-weeks {
	margin: 0.35rem 0 0.55rem;
	padding-left: 1.1rem;
	color: var(--gpt-ink);
	font-size: 0.92rem;
}

.gpt-page__summary-total {
	margin: 0.35rem 0 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.gpt-page__btn {
	appearance: none;
	flex-shrink: 0;
	border: none;
	border-radius: 10px;
	background: var(--gpt-gold);
	color: #111;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	padding: 0.85rem 1.4rem;
	cursor: pointer;
	min-width: 140px;
}

.gpt-page__btn:hover:not(:disabled) {
	background: #f0bc45;
}

.gpt-page__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-width: 820px) {
	.gpt-page__datetime {
		grid-template-columns: 1fr;
	}

	.gpt-page__times-scroll {
		max-height: 260px;
	}

	.gpt-page__checkout {
		flex-direction: column;
		align-items: stretch;
	}

	.gpt-page__btn {
		width: 100%;
	}
}
