/**
 * Gabiza customer dashboard.
 *
 * Dedicated styles for the frontend customer account.
 * Loaded only on the Gabiza account page.
 */


/* =========================================================
   Account Page Width
   ========================================================= */

/*
 * frontend.css keeps general Gabiza frontend content narrower.
 * The customer dashboard needs more horizontal space,
 * especially on desktop.
 */
.gbz-front {
	max-width: 1360px;
}

.gbz-customer-dashboard {
	width: 100%;
	max-width: 1240px;

	margin: 0 auto;

	scroll-margin-top: 28px;
}


/* =========================================================
   Header
   ========================================================= */

.gbz-dashboard-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;

	gap: 32px;

	margin-bottom: 28px;
}

.gbz-dashboard-eyebrow {
	display: inline-flex;

	margin-bottom: 9px;

	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-header h1 {
	margin: 0 0 7px;

	font-size: clamp(34px, 4vw, 43px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;

	color: var(--gbz-text);
}

.gbz-dashboard-header p {
	margin: 0;

	font-size: 13px;
	line-height: 1.55;

	color: var(--gbz-muted);
}

.gbz-dashboard-header-actions {
	display: flex;
	align-items: center;

	gap: 10px;

	padding-top: 3px;
}

.gbz-dashboard-header-actions form {
	margin: 0;
}

.gbz-dashboard-book-button,
.gbz-dashboard-signout {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 7px;

	min-height: 44px;
	padding: 9px 16px;

	border-radius: 10px;

	font-size: 12px;
	font-weight: 700;
	line-height: 1;

	text-decoration: none !important;

	cursor: pointer;
}

.gbz-dashboard-book-button {
	border: 1px solid var(--gbz-primary, #6d5dfb);

	background: var(--gbz-primary, #6d5dfb);

	color: #fff !important;
}

.gbz-dashboard-book-button:hover {
	opacity: 0.93;
}

.gbz-dashboard-book-button .dashicons {
	width: 17px;
	height: 17px;

	font-size: 17px;
}

.gbz-dashboard-signout {
	border: 1px solid var(--gbz-border);

	background: #fff;

	color: var(--gbz-text);
}

.gbz-dashboard-signout:hover {
	border-color: var(--gbz-primary, #6d5dfb);

	color: var(--gbz-primary, #6d5dfb);
}


/* =========================================================
   Navigation
   ========================================================= */

.gbz-dashboard-nav {
	display: flex;
	align-items: center;

	gap: 6px;

	margin-bottom: 20px;
	padding: 6px;

	overflow-x: auto;

	border: 1px solid var(--gbz-border);
	border-radius: 13px;

	background: #fff;
}

.gbz-dashboard-nav-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 7px;

	flex: 1 0 auto;

	min-height: 46px;
	padding: 9px 16px;

	border-radius: 10px;

	font-size: 12px;
	font-weight: 700;

	text-decoration: none !important;

	color: var(--gbz-muted);

	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.gbz-dashboard-nav-item:hover {
	background: #f7f7fa;

	color: var(--gbz-text);
}

.gbz-dashboard-nav-item.is-active {
	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-nav-item .dashicons {
	width: 17px;
	height: 17px;

	font-size: 17px;
}


/* =========================================================
   Content
   ========================================================= */

.gbz-dashboard-content {
	min-width: 0;
}

.gbz-dashboard-panel {
	padding: 25px;

	border: 1px solid var(--gbz-border);
	border-radius: 16px;

	background: #fff;

	box-shadow:
		0 10px 30px rgba(26, 27, 36, 0.035);
}

.gbz-dashboard-panel + .gbz-dashboard-panel {
	margin-top: 18px;
}


/* =========================================================
   Panel Headings
   ========================================================= */

.gbz-dashboard-panel-heading,
.gbz-dashboard-page-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;

	gap: 24px;

	margin-bottom: 20px;
}

.gbz-dashboard-kicker {
	display: block;

	margin-bottom: 4px;

	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-panel-heading h2,
.gbz-dashboard-page-heading h2 {
	margin: 0;

	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;

	color: var(--gbz-text);
}

.gbz-dashboard-page-heading h2 {
	font-size: 21px;
}

.gbz-dashboard-page-heading p {
	max-width: 620px;

	margin: 5px 0 0;

	font-size: 12px;
	line-height: 1.5;

	color: var(--gbz-muted);
}

.gbz-dashboard-panel-heading > a {
	padding-top: 4px;

	font-size: 11px;
	font-weight: 700;

	text-decoration: none;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-panel-heading > a:hover {
	text-decoration: underline;
}


/* =========================================================
   Overview
   ========================================================= */

.gbz-dashboard-overview-grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1.9fr)
		minmax(240px, 0.72fr);

	gap: 18px;

	margin-bottom: 18px;
}

.gbz-dashboard-next-panel {
	min-width: 0;
}


/* =========================================================
   Statistics
   ========================================================= */

.gbz-dashboard-stats {
	display: flex;
	flex-direction: column;

	gap: 12px;
}

.gbz-dashboard-stat {
	display: flex;
	align-items: center;

	gap: 14px;

	min-height: 92px;
	padding: 15px;

	border: 1px solid var(--gbz-border);
	border-radius: 14px;

	background: #fff;
}

.gbz-dashboard-stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 48px;

	width: 48px;
	height: 48px;

	border-radius: 11px;

	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-stat-icon .dashicons {
	width: 22px;
	height: 22px;

	font-size: 22px;
}

.gbz-dashboard-stat > div:last-child {
	display: flex;
	flex-direction: column;

	gap: 3px;
}

.gbz-dashboard-stat strong {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.05;

	color: var(--gbz-text);
}

.gbz-dashboard-stat span {
	font-size: 11px;

	color: var(--gbz-muted);
}


/* =========================================================
   Featured Appointment
   ========================================================= */

.gbz-dashboard-featured-booking {
	display: grid;
	grid-template-columns:
		90px
		minmax(0, 1fr);

	gap: 20px;

	align-items: stretch;

	padding: 18px;

	border: 1px solid var(--gbz-border);
	border-radius: 14px;

	background: #fafafd;
}

.gbz-dashboard-featured-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-height: 116px;

	border-radius: 12px;

	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-featured-date span {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.gbz-dashboard-featured-date strong {
	margin: 2px 0;

	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

.gbz-dashboard-featured-date small {
	font-size: 10px;
	font-weight: 700;
}

.gbz-dashboard-featured-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	min-width: 0;
}

.gbz-dashboard-featured-main h3 {
	margin: 10px 0 7px;

	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;

	color: var(--gbz-text);
}

.gbz-dashboard-featured-meta {
	display: flex;
	flex-wrap: wrap;

	gap: 10px 18px;

	font-size: 11px;

	color: var(--gbz-muted);
}

.gbz-dashboard-featured-meta > span {
	display: inline-flex;
	align-items: center;

	gap: 5px;
}

.gbz-dashboard-featured-meta .dashicons {
	width: 15px;
	height: 15px;

	font-size: 15px;
}

.gbz-dashboard-featured-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;

	gap: 18px;

	width: 100%;

	margin-top: auto;
	padding-top: 13px;
}

.gbz-dashboard-featured-footer span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;

	color: var(--gbz-muted);
}

.gbz-dashboard-featured-footer strong {
	font-size: 15px;

	color: var(--gbz-text);
}


/* =========================================================
   Status Badges
   ========================================================= */

.gbz-dashboard-status {
	display: inline-flex;
	align-items: center;

	min-height: 25px;
	padding: 4px 9px;

	border-radius: 999px;

	font-size: 10px;
	font-weight: 800;
	line-height: 1;

	white-space: nowrap;
}

.gbz-dashboard-status.is-confirmed {
	background: color-mix(
		in srgb,
		var(--gbz-success) 10%,
		white
	);

	color: var(--gbz-success);
}

.gbz-dashboard-status.is-pending {
	background: #fff7df;

	color: #976800;
}

.gbz-dashboard-status.is-completed {
	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-status.is-cancelled {
	background: color-mix(
		in srgb,
		var(--gbz-danger) 8%,
		white
	);

	color: var(--gbz-danger);
}


/* =========================================================
   Account Information
   ========================================================= */

.gbz-dashboard-account-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));

	gap: 1px;

	overflow: hidden;

	border: 1px solid var(--gbz-border);
	border-radius: 12px;

	background: var(--gbz-border);
}

.gbz-dashboard-account-grid > div {
	display: flex;
	flex-direction: column;

	gap: 4px;

	padding: 15px 17px;

	background: #fafafd;
}

.gbz-dashboard-account-grid span {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;

	color: var(--gbz-muted);
}

.gbz-dashboard-account-grid strong {
	overflow-wrap: anywhere;

	font-size: 12px;

	color: var(--gbz-text);
}


/* =========================================================
   Booking List
   ========================================================= */

.gbz-dashboard-booking-list {
	display: flex;
	flex-direction: column;

	gap: 10px;
}

.gbz-dashboard-booking-row {
	display: grid;
	grid-template-columns:
		58px
		minmax(0, 1fr)
		auto;

	gap: 15px;
	align-items: center;

	padding: 14px;

	border: 1px solid var(--gbz-border);
	border-radius: 12px;

	background: #fafafd;
}

.gbz-dashboard-date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	width: 58px;
	height: 58px;

	border-radius: 11px;

	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-date-badge span {
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.gbz-dashboard-date-badge strong {
	font-size: 21px;
	line-height: 1;
}

.gbz-dashboard-booking-info {
	min-width: 0;
}

.gbz-dashboard-booking-title {
	display: flex;
	align-items: center;

	gap: 9px;

	margin-bottom: 7px;
}

.gbz-dashboard-booking-title > strong {
	overflow: hidden;

	font-size: 14px;

	text-overflow: ellipsis;
	white-space: nowrap;

	color: var(--gbz-text);
}

.gbz-dashboard-booking-meta {
	display: flex;
	flex-wrap: wrap;

	gap: 7px 16px;

	font-size: 10px;

	color: var(--gbz-muted);
}

.gbz-dashboard-booking-meta > span {
	display: inline-flex;
	align-items: center;

	gap: 4px;
}

.gbz-dashboard-booking-meta .dashicons {
	width: 13px;
	height: 13px;

	font-size: 13px;
}

.gbz-dashboard-booking-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;

	gap: 2px;

	padding-left: 10px;
}

.gbz-dashboard-booking-price span {
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;

	color: var(--gbz-muted);
}

.gbz-dashboard-booking-price strong {
	font-size: 13px;

	white-space: nowrap;

	color: var(--gbz-text);
}


/* =========================================================
   Buttons
   ========================================================= */

.gbz-dashboard-inline-button,
.gbz-dashboard-save-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 5px;

	min-height: 40px;
	padding: 8px 14px;

	border: 1px solid var(--gbz-primary, #6d5dfb);
	border-radius: 9px;

	background: var(--gbz-primary, #6d5dfb);

	cursor: pointer;

	font-size: 11px;
	font-weight: 700;
	line-height: 1;

	text-decoration: none !important;

	color: #fff !important;
}

.gbz-dashboard-inline-button:hover,
.gbz-dashboard-save-button:hover {
	opacity: 0.93;
}

.gbz-dashboard-inline-button .dashicons {
	width: 14px;
	height: 14px;

	font-size: 14px;
}


/* =========================================================
   Profile
   ========================================================= */

.gbz-dashboard-profile-form {
	display: flex;
	flex-direction: column;

	gap: 18px;

	max-width: 900px;
}

.gbz-dashboard-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));

	gap: 16px;
}

.gbz-dashboard-field {
	display: flex;
	flex-direction: column;

	gap: 7px;
}

.gbz-dashboard-field label {
	font-size: 12px;
	font-weight: 700;

	color: var(--gbz-text);
}

.gbz-dashboard-field input {
	width: 100%;
	min-height: 47px;

	margin: 0;
	padding: 10px 13px;

	border: 1px solid var(--gbz-border);
	border-radius: 10px;

	background: #fff;
	box-shadow: none;

	font-size: 13px;

	color: var(--gbz-text);

	outline: none;
}

.gbz-dashboard-field input:focus {
	border-color: var(--gbz-primary, #6d5dfb);

	box-shadow:
		0 0 0 3px var(--gbz-primary-soft);
}

.gbz-dashboard-field input[readonly] {
	background: #f7f7fa;

	color: var(--gbz-muted);
}

.gbz-dashboard-field small {
	font-size: 10px;
	line-height: 1.45;

	color: var(--gbz-muted);
}

.gbz-dashboard-profile-actions {
	display: flex;
	justify-content: flex-end;

	padding-top: 8px;
}

.gbz-dashboard-save-button {
	min-width: 150px;
}


/* =========================================================
   Empty State
   ========================================================= */

.gbz-dashboard-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-height: 220px;
	padding: 25px;

	text-align: center;
}

.gbz-dashboard-empty-next {
	min-height: 180px;
}

.gbz-dashboard-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 46px;
	height: 46px;

	margin-bottom: 11px;

	border-radius: 11px;

	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-empty-icon .dashicons {
	width: 21px;
	height: 21px;

	font-size: 21px;
}

.gbz-dashboard-empty strong {
	margin-bottom: 5px;

	font-size: 14px;

	color: var(--gbz-text);
}

.gbz-dashboard-empty p {
	max-width: 470px;

	margin: 0 0 14px;

	font-size: 11px;
	line-height: 1.5;

	color: var(--gbz-muted);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1050px) {

	.gbz-front {
		max-width: 100%;
	}

	.gbz-customer-dashboard {
		max-width: 100%;
	}

	.gbz-dashboard-overview-grid {
		grid-template-columns:
			minmax(0, 1.55fr)
			minmax(210px, 0.7fr);
	}
}


@media (max-width: 800px) {

	.gbz-dashboard-header {
		flex-direction: column;

		gap: 16px;
	}

	.gbz-dashboard-header-actions {
		width: 100%;
	}

	.gbz-dashboard-book-button {
		flex: 1;
	}

	.gbz-dashboard-overview-grid {
		grid-template-columns: 1fr;
	}

	.gbz-dashboard-stats {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.gbz-dashboard-stat {
		min-height: 78px;
	}

	.gbz-dashboard-account-grid {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 560px) {

	.gbz-dashboard-header {
		margin-bottom: 20px;
	}

	.gbz-dashboard-header h1 {
		font-size: 30px;
	}

	.gbz-dashboard-header-actions {
		display: grid;
		grid-template-columns: 1fr auto;
	}

	.gbz-dashboard-header-actions form {
		height: 100%;
	}

	.gbz-dashboard-signout {
		height: 100%;
	}

	.gbz-dashboard-nav {
		justify-content: flex-start;

		margin-bottom: 14px;
	}

	.gbz-dashboard-nav-item {
		flex: 0 0 auto;

		min-height: 40px;

		padding-left: 11px;
		padding-right: 11px;

		font-size: 10px;
	}

	.gbz-dashboard-nav-item .dashicons {
		display: none;
	}

	.gbz-dashboard-panel {
		padding: 16px;

		border-radius: 13px;
	}

	.gbz-dashboard-panel-heading,
	.gbz-dashboard-page-heading {
		margin-bottom: 15px;
	}

	.gbz-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.gbz-dashboard-stat {
		min-height: 66px;
	}

	.gbz-dashboard-featured-booking {
		grid-template-columns:
			64px
			minmax(0, 1fr);

		gap: 11px;

		padding: 12px;
	}

	.gbz-dashboard-featured-date {
		min-height: 88px;
	}

	.gbz-dashboard-featured-date strong {
		font-size: 25px;
	}

	.gbz-dashboard-featured-main h3 {
		font-size: 14px;
	}

	.gbz-dashboard-featured-meta {
		flex-direction: column;

		gap: 5px;
	}

	.gbz-dashboard-booking-row {
		grid-template-columns:
			48px
			minmax(0, 1fr);

		gap: 10px;

		padding: 11px;
	}

	.gbz-dashboard-date-badge {
		width: 48px;
		height: 48px;
	}

	.gbz-dashboard-booking-price {
		grid-column: 2;

		align-items: flex-start;

		padding-left: 0;
	}

	.gbz-dashboard-form-grid {
		grid-template-columns: 1fr;
	}

	.gbz-dashboard-profile-form {
		max-width: none;
	}

	.gbz-dashboard-profile-actions {
		justify-content: stretch;
	}

	.gbz-dashboard-save-button {
		width: 100%;
	}

	.gbz-dashboard-page-heading {
		flex-direction: column;

		gap: 11px;
	}

	.gbz-dashboard-page-heading
	.gbz-dashboard-inline-button {
		width: 100%;
	}
}