/**
 * Gabiza customer booking management.
 */


/* =========================================================
   Account Anchor
   ========================================================= */

#gabiza-account {
	scroll-margin-top: 28px;
}


/* =========================================================
   Booking List Action
   ========================================================= */

.gbz-dashboard-booking-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	margin-top: 5px;

	font-size: 10px;
	font-weight: 700;

	text-decoration: none !important;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-booking-link:hover {
	text-decoration: underline !important;
}


/* =========================================================
   Featured Booking Action
   ========================================================= */

.gbz-dashboard-featured-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;

	gap: 4px;
}

.gbz-dashboard-featured-side > a {
	font-size: 9px;
	font-weight: 700;

	text-decoration: none !important;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-dashboard-featured-side > a:hover {
	text-decoration: underline !important;
}


/* =========================================================
   Booking Details
   ========================================================= */

.gbz-booking-details-panel {
	overflow: hidden;
}

.gbz-booking-details-top {
	margin-bottom: 18px;
}

.gbz-booking-details-back {
	display: inline-flex;
	align-items: center;

	gap: 5px;

	font-size: 11px;
	font-weight: 700;

	text-decoration: none !important;

	color: var(--gbz-muted);
}

.gbz-booking-details-back:hover {
	color: var(--gbz-primary, #6d5dfb);
}

.gbz-booking-details-back .dashicons {
	width: 15px;
	height: 15px;

	font-size: 15px;
}

.gbz-booking-details-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;

	gap: 30px;

	padding: 22px;

	border: 1px solid var(--gbz-border);
	border-radius: 14px;

	background: #fafafd;
}

.gbz-booking-details-hero h2 {
	margin: 9px 0 4px;

	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;

	color: var(--gbz-text);
}

.gbz-booking-details-hero p {
	margin: 0;

	font-size: 11px;

	color: var(--gbz-muted);
}

.gbz-booking-details-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;

	gap: 2px;

	flex: 0 0 auto;
}

.gbz-booking-details-price span {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;

	color: var(--gbz-muted);
}

.gbz-booking-details-price strong {
	font-size: 21px;

	color: var(--gbz-text);
}

.gbz-booking-details-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));

	gap: 10px;

	margin-top: 14px;
}

.gbz-booking-details-grid > div {
	display: flex;
	align-items: center;

	gap: 11px;

	min-width: 0;
	padding: 14px;

	border: 1px solid var(--gbz-border);
	border-radius: 12px;

	background: #fff;
}

.gbz-booking-details-grid > div > .dashicons {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 36px;

	width: 36px;
	height: 36px;

	border-radius: 9px;

	background: var(--gbz-primary-soft);

	font-size: 17px;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-booking-details-grid > div > div {
	display: flex;
	flex-direction: column;

	gap: 2px;

	min-width: 0;
}

.gbz-booking-details-grid small {
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;

	color: var(--gbz-muted);
}

.gbz-booking-details-grid strong {
	overflow-wrap: anywhere;

	font-size: 11px;

	color: var(--gbz-text);
}

.gbz-booking-details-note {
	margin-top: 14px;
	padding: 14px 16px;

	border: 1px solid var(--gbz-border);
	border-radius: 11px;

	background: #fafafd;
}

.gbz-booking-details-note > span {
	display: block;

	margin-bottom: 5px;

	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;

	color: var(--gbz-muted);
}

.gbz-booking-details-note p {
	margin: 0;

	font-size: 11px;
	line-height: 1.55;

	color: var(--gbz-text);
}


/* =========================================================
   Booking Details Actions
   ========================================================= */

.gbz-booking-details-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;

	gap: 12px;

	margin-top: 20px;
	padding-top: 18px;

	border-top: 1px solid var(--gbz-border);
}

.gbz-booking-primary-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	gap: 9px;
}

.gbz-booking-reschedule-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: #fff;

	font-size: 10px;
	font-weight: 700;

	text-decoration: none !important;

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-booking-reschedule-button:hover {
	background: var(--gbz-primary-soft);
}

.gbz-booking-reschedule-button .dashicons {
	width: 14px;
	height: 14px;

	font-size: 14px;
}

.gbz-booking-danger-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 40px;
	padding: 8px 14px;

	border: 1px solid
		color-mix(
			in srgb,
			var(--gbz-danger) 35%,
			var(--gbz-border)
		);

	border-radius: 9px;

	background: #fff;

	font-size: 10px;
	font-weight: 700;

	text-decoration: none !important;

	color: var(--gbz-danger);
}

.gbz-booking-danger-link:hover {
	border-color: var(--gbz-danger);

	background:
		color-mix(
			in srgb,
			var(--gbz-danger) 5%,
			white
		);
}


/* =========================================================
   Reschedule
   ========================================================= */

.gbz-reschedule-heading {
	max-width: 720px;

	margin-bottom: 20px;
}

.gbz-reschedule-heading h2 {
	margin: 4px 0 6px;

	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;

	color: var(--gbz-text);
}

.gbz-reschedule-heading p {
	margin: 0;

	font-size: 11px;
	line-height: 1.6;

	color: var(--gbz-muted);
}


/* Current Appointment */

.gbz-reschedule-current {
	display: flex;
	align-items: center;

	gap: 13px;

	margin-bottom: 18px;
	padding: 15px 17px;

	border: 1px solid var(--gbz-border);
	border-radius: 12px;

	background: #fafafd;
}

.gbz-reschedule-current-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 42px;

	width: 42px;
	height: 42px;

	border-radius: 10px;

	background: var(--gbz-primary-soft);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-reschedule-current-icon .dashicons {
	width: 19px;
	height: 19px;

	font-size: 19px;
}

.gbz-reschedule-current > div:last-child {
	display: flex;
	flex-direction: column;

	gap: 2px;

	min-width: 0;
}

.gbz-reschedule-current small {
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;

	color: var(--gbz-muted);
}

.gbz-reschedule-current strong {
	font-size: 13px;

	color: var(--gbz-text);
}

.gbz-reschedule-current span {
	font-size: 10px;
	line-height: 1.5;

	color: var(--gbz-muted);
}


/* Steps */

.gbz-reschedule-step {
	padding: 18px;

	border: 1px solid var(--gbz-border);
	border-radius: 13px;

	background: #fff;
}

.gbz-reschedule-step + .gbz-reschedule-step {
	margin-top: 12px;
}

.gbz-reschedule-step-heading {
	display: flex;
	align-items: center;

	gap: 11px;

	margin-bottom: 15px;
}

.gbz-reschedule-step-heading > span {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 31px;

	width: 31px;
	height: 31px;

	border-radius: 50%;

	background: var(--gbz-primary, #6d5dfb);

	font-size: 11px;
	font-weight: 800;

	color: #fff;
}

.gbz-reschedule-step-heading > div {
	display: flex;
	flex-direction: column;

	gap: 1px;
}

.gbz-reschedule-step-heading strong {
	font-size: 13px;

	color: var(--gbz-text);
}

.gbz-reschedule-step-heading small {
	font-size: 9px;
	line-height: 1.45;

	color: var(--gbz-muted);
}


/* Date */

.gbz-reschedule-date-form {
	display: flex;
	align-items: center;

	gap: 9px;

	max-width: 520px;
}

.gbz-reschedule-date-form input[type="date"] {
	flex: 1;

	min-width: 0;
	min-height: 42px;
	padding: 8px 12px;

	border: 1px solid var(--gbz-border);
	border-radius: 9px;

	background: #fff;

	font-size: 11px;

	color: var(--gbz-text);

	outline: none;
}

.gbz-reschedule-date-form input[type="date"]:focus {
	border-color: var(--gbz-primary, #6d5dfb);

	box-shadow:
		0 0 0 3px var(--gbz-primary-soft);
}

.gbz-reschedule-date-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 8px 14px;

	border: 1px solid var(--gbz-border);
	border-radius: 9px;

	background: #fafafd;

	font-size: 10px;
	font-weight: 700;

	color: var(--gbz-text);

	cursor: pointer;
}

.gbz-reschedule-date-form button:hover {
	border-color: var(--gbz-primary, #6d5dfb);

	color: var(--gbz-primary, #6d5dfb);
}


/* Slots */

.gbz-reschedule-slots {
	display: grid;
	grid-template-columns:
		repeat(
			auto-fill,
			minmax(82px, 1fr)
		);

	gap: 8px;
}

.gbz-reschedule-slot {
	position: relative;

	display: block;

	margin: 0;

	cursor: pointer;
}

.gbz-reschedule-slot input {
	position: absolute;

	width: 1px;
	height: 1px;

	opacity: 0;
	pointer-events: none;
}

.gbz-reschedule-slot > span {
	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 7px 9px;

	border: 1px solid var(--gbz-border);
	border-radius: 9px;

	background: #fff;

	font-size: 11px;
	font-weight: 700;

	color: var(--gbz-text);

	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.gbz-reschedule-slot:hover > span {
	border-color: var(--gbz-primary, #6d5dfb);

	color: var(--gbz-primary, #6d5dfb);
}

.gbz-reschedule-slot input:checked + span {
	border-color: var(--gbz-primary, #6d5dfb);

	background: var(--gbz-primary, #6d5dfb);

	box-shadow:
		0 5px 14px
		color-mix(
			in srgb,
			var(--gbz-primary, #6d5dfb) 20%,
			transparent
		);

	color: #fff;
}


/* Confirmation */

.gbz-reschedule-confirm {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	margin-top: 17px;
	padding-top: 16px;

	border-top: 1px solid var(--gbz-border);
}

.gbz-reschedule-confirm > div {
	display: flex;
	flex-direction: column;

	gap: 2px;
}

.gbz-reschedule-confirm strong {
	font-size: 11px;

	color: var(--gbz-text);
}

.gbz-reschedule-confirm span {
	font-size: 9px;
	line-height: 1.45;

	color: var(--gbz-muted);
}

.gbz-reschedule-confirm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	min-height: 42px;
	padding: 9px 16px;

	border: 1px solid var(--gbz-primary, #6d5dfb);
	border-radius: 9px;

	background: var(--gbz-primary, #6d5dfb);

	font-size: 10px;
	font-weight: 700;

	color: #fff;

	cursor: pointer;
}

.gbz-reschedule-confirm-button:hover {
	opacity: 0.93;
}


/* Messages */

.gbz-reschedule-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 3px;

	min-height: 100px;
	padding: 18px;

	border: 1px dashed var(--gbz-border);
	border-radius: 11px;

	background: #fafafd;

	text-align: center;

	font-size: 10px;

	color: var(--gbz-muted);
}

.gbz-reschedule-message strong {
	font-size: 12px;

	color: var(--gbz-text);
}

.gbz-reschedule-message.is-error {
	border-style: solid;

	background:
		color-mix(
			in srgb,
			var(--gbz-danger) 5%,
			white
		);

	color: var(--gbz-danger);
}


/* =========================================================
   Cancel Confirmation
   ========================================================= */

.gbz-cancel-confirmation {
	max-width: 620px;

	margin: 20px auto;
	padding: 12px 0;

	text-align: center;
}

.gbz-cancel-confirmation-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 58px;
	height: 58px;

	margin: 0 auto 14px;

	border-radius: 15px;

	background:
		color-mix(
			in srgb,
			var(--gbz-danger) 8%,
			white
		);

	color: var(--gbz-danger);
}

.gbz-cancel-confirmation-icon .dashicons {
	width: 27px;
	height: 27px;

	font-size: 27px;
}

.gbz-cancel-confirmation h2 {
	margin: 4px 0 8px;

	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.025em;

	color: var(--gbz-text);
}

.gbz-cancel-confirmation > p {
	max-width: 520px;

	margin: 0 auto;

	font-size: 12px;
	line-height: 1.6;

	color: var(--gbz-muted);
}

.gbz-cancel-booking-summary {
	display: flex;
	flex-direction: column;

	gap: 3px;

	margin: 20px 0;
	padding: 14px 18px;

	border: 1px solid var(--gbz-border);
	border-radius: 11px;

	background: #fafafd;
}

.gbz-cancel-booking-summary strong {
	font-size: 13px;

	color: var(--gbz-text);
}

.gbz-cancel-booking-summary span {
	font-size: 10px;

	color: var(--gbz-muted);
}

.gbz-cancel-confirmation-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;

	gap: 10px;
}

.gbz-cancel-confirmation-actions form {
	margin: 0;
}

.gbz-booking-danger-button,
.gbz-booking-keep-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 9px 15px;

	border-radius: 9px;

	font-size: 10px;
	font-weight: 700;

	text-decoration: none !important;

	cursor: pointer;
}

.gbz-booking-danger-button {
	border: 1px solid var(--gbz-danger);

	background: var(--gbz-danger);

	color: #fff;
}

.gbz-booking-danger-button:hover {
	opacity: 0.92;
}

.gbz-booking-keep-button {
	border: 1px solid var(--gbz-border);

	background: #fff;

	color: var(--gbz-text);
}

.gbz-booking-keep-button:hover {
	border-color: var(--gbz-primary, #6d5dfb);

	color: var(--gbz-primary, #6d5dfb);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

	.gbz-booking-details-grid {
		grid-template-columns:
			repeat(
				2,
				minmax(0, 1fr)
			);
	}
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 560px) {

	.gbz-dashboard-featured-side {
		align-items: flex-start;
	}

	.gbz-booking-details-hero {
		flex-direction: column;
		align-items: flex-start;

		padding: 16px;
	}

	.gbz-booking-details-price {
		align-items: flex-start;
	}

	.gbz-booking-details-grid {
		grid-template-columns: 1fr;
	}

	.gbz-booking-details-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.gbz-booking-primary-actions {
		flex-direction: column;
		align-items: stretch;

		width: 100%;
	}

	.gbz-booking-details-actions
	.gbz-dashboard-inline-button,
	.gbz-booking-reschedule-button,
	.gbz-booking-danger-link {
		width: 100%;
	}

	.gbz-reschedule-current {
		align-items: flex-start;
	}

	.gbz-reschedule-date-form {
		flex-direction: column;
		align-items: stretch;

		max-width: none;
	}

	.gbz-reschedule-date-form button {
		width: 100%;
	}

	.gbz-reschedule-slots {
		grid-template-columns:
			repeat(
				3,
				minmax(0, 1fr)
			);
	}

	.gbz-reschedule-confirm {
		flex-direction: column;
		align-items: stretch;
	}

	.gbz-reschedule-confirm-button {
		width: 100%;
	}

	.gbz-cancel-confirmation-actions {
		flex-direction: column;
	}

	.gbz-cancel-confirmation-actions form,
	.gbz-booking-danger-button,
	.gbz-booking-keep-button {
		width: 100%;
	}
}