/* ==========================================================================
   Product Detail Redesign (Phase 1: chrome shell + hero strip + tab strip)
   --------------------------------------------------------------------------
   Visual restyle of /rentals/products/detail/{id}. Phase 1 introduces:
     - New header partial (back, breadcrumb, ID pill, action icons, ⋯ menu)
     - Hero metric strip (thumbnail + 6 tiles + Check availability + Book now)
     - New tab strip (7 tabs with badges + per-tab top-right action button)
     - Warning banner reskin (Inventory not configured / Pricing not configured)
   Phase 2-8 fill in tab body content. See docs/PRODUCT_DETAIL_REDESIGN_PLAN.md.
   All styles namespaced under .pd- to avoid collision with existing styles.
   ========================================================================== */

/* ----- Tokens (mirrors booking-detail.css / pos-redesign.css) ----- */
:root {
	--pd-navy: #003264;
	--pd-navy-700: #14457A;
	--pd-line: #eef0f4;
	--pd-line-strong: #dfe3e8;
	--pd-card-bg: #ffffff;
	--pd-page-bg: #f6f7f9;
	--pd-soft-bg: #f7f7f7;
	--pd-ink: #303233;
	--pd-ink-2: #444444;
	--pd-mute: #6d87a1;
	--pd-mute-2: #94a3b8;
	--pd-success: #16a34a;
	--pd-success-soft: #d8f1e4;
	--pd-warn: #d97706;
	--pd-warn-soft: #fff4e0;
	--pd-danger: #dc2626;
	--pd-danger-soft: #fde2dd;
	--pd-info: #00a3fa;
	--pd-info-soft: #bcdced;
	--pd-dash: #4a2fc9;
	--pd-dash-soft: #f4f0fe;
	--pd-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
	--pd-radius: 12px;
	--pd-radius-sm: 8px;
	--pd-radius-pill: 999px;
}

/* ----- Page shell ----- */
.pd-page {
	background: var(--pd-page-bg);
	min-height: 100%;
}

.pd-shell {
	padding: 24px 32px 12px;
	max-width: 1600px;
	margin: 0 auto;
}

@media (max-width: 991px) {
	.pd-shell {
		padding: 16px 16px 80px;
	}
}

/* ----- Header row -----
   Mirrors `.bd-header` from booking-detail.css. Breadcrumb sits inline with
   the title; right side hosts Ask Dash pill, copy/open icons, and ⋯ menu. */
.pd-header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px 32px;
	border-bottom: 1px solid var(--pd-line);
	background: var(--pd-card-bg);
}

.pd-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
}

.pd-breadcrumb {
	font-size: 13px;
	color: var(--pd-mute);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pd-breadcrumb a {
	color: var(--pd-mute);
	text-decoration: none;
}

.pd-breadcrumb a:hover {
	color: var(--pd-navy);
	text-decoration: underline;
}

.pd-breadcrumb .pd-breadcrumb-sep {
	color: var(--pd-mute-2);
}

.pd-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--pd-ink);
	line-height: 26px;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 480px;
}

.pd-id-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-pill);
	font-size: 12px;
	font-weight: 500;
	color: var(--pd-mute);
	background: var(--pd-card-bg);
	white-space: nowrap;
}

.pd-header-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pd-ask-dash-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: var(--pd-radius-pill);
	background: var(--pd-dash-soft);
	color: var(--pd-dash);
	font-size: 13px;
	font-weight: 500;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 120ms;
}

.pd-ask-dash-btn:hover {
	background: #ebe4fc;
}

.pd-ask-dash-btn .pd-hex {
	width: 14px;
	height: 14px;
	background: linear-gradient(135deg, #4a2fc9 0%, #6b4ef5 100%);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	display: inline-block;
}

.pd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--pd-radius-sm);
	background: var(--pd-card-bg);
	border: 1px solid var(--pd-line-strong);
	color: var(--pd-mute);
	cursor: pointer;
	transition: background 120ms, border-color 120ms;
}

.pd-icon-btn:hover {
	background: var(--pd-soft-bg);
	border-color: var(--pd-mute-2);
	color: var(--pd-ink);
}

.pd-icon-btn img {
	width: 16px;
	height: 16px;
}

/* WCAG 2.1 SC 2.5.5 (AAA) / SC 2.5.8 (AA) — minimum 44x44 touch target on
   handheld viewports. Desktop keeps the more compact 34x34 chrome. */
@media (max-width: 575px) {
	.pd-icon-btn { min-width: 44px; min-height: 44px; }
}

/* ----- ⋯ Menu dropdown ----- */
.pd-menu-wrap {
	position: relative;
}

.pd-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 220px;
	background: var(--pd-card-bg);
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-sm);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	padding: 6px 0;
	z-index: 1050;
}

.pd-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	font-size: 13px;
	color: var(--pd-ink);
	cursor: pointer;
	transition: background 80ms;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	text-decoration: none;
}

.pd-menu-item:hover {
	background: var(--pd-soft-bg);
	color: var(--pd-ink);
}

.pd-menu-item.danger {
	color: var(--pd-danger);
}

.pd-menu-item.danger:hover {
	background: var(--pd-danger-soft);
}

.pd-menu-item img,
.pd-menu-item i {
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	flex-shrink: 0;
}

.pd-menu-sep {
	height: 1px;
	background: var(--pd-line);
	margin: 4px 0;
}

/* ----- Warning banners (Inventory / Pricing not configured) ----- */
.pd-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--pd-radius-sm);
	background: var(--pd-warn-soft);
	border: 1px solid #f0c97f;
	color: #7a4a00;
	margin-bottom: 12px;
	font-size: 13px;
}

.pd-banner i {
	color: var(--pd-warn);
	flex-shrink: 0;
	margin-top: 2px;
}

.pd-banner strong {
	display: block;
	margin-bottom: 2px;
	color: #5a3700;
}

.pd-banner a {
	display: inline;
	color: var(--pd-navy);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.pd-banner a:hover {
	text-decoration: underline;
}

/* ----- Hero metric strip ----- */
.pd-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: var(--pd-card-bg);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	box-shadow: var(--pd-card-shadow);
	margin-bottom: 16px;
}

.pd-hero-thumb {
	width: 64px;
	height: 64px;
	border-radius: var(--pd-radius-sm);
	background: var(--pd-soft-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid var(--pd-line);
}

.pd-hero-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd-hero-thumb-placeholder {
	color: var(--pd-mute-2);
}

.pd-hero-tiles {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1 1 auto;
	flex-wrap: wrap;
	min-width: 0;
}

.pd-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pd-tile-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--pd-mute);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pd-tile-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-ink);
	line-height: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pd-tile-value .pd-tile-mute {
	font-weight: 500;
	color: var(--pd-mute);
	font-size: 12px;
}

.pd-tile-value a {
	color: var(--pd-navy);
	text-decoration: none;
	font-weight: 600;
}

.pd-tile-value a:hover {
	text-decoration: underline;
}

/* "as at HH:MM" disclaimer under point-in-time tiles (Inventory). */
.pd-tile-asof {
	font-size: 11px;
	color: var(--pd-mute);
	font-weight: 500;
	margin-top: 3px;
	white-space: nowrap;
}

/* Calendar icon on Check availability — uses existing site icon
   (calendar-v1.svg) for visual consistency with "Filter by date" pill on
   the bookings listing page. */
.pd-btn .pd-btn-icon-img {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: inline-block;
}

.pd-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pd-mute-2);
	margin-right: 6px;
	vertical-align: middle;
}

.pd-status-dot.active {
	background: var(--pd-success);
}

.pd-status-dot.disabled {
	background: var(--pd-mute-2);
}

.pd-status-dot.draft {
	background: var(--pd-warn);
}

/* Inventory bar (compact viz). */
.pd-inv-bar {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pd-inv-bar-track {
	width: 96px;
	height: 6px;
	background: var(--pd-line);
	border-radius: 3px;
	overflow: hidden;
	display: flex;
}

.pd-inv-bar-fill {
	height: 100%;
}

.pd-inv-bar-fill.avail {
	background: var(--pd-success);
}

.pd-inv-bar-fill.resv {
	background: var(--pd-warn);
}

.pd-inv-bar-fill.out {
	background: var(--pd-danger);
}

.pd-inv-bar-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--pd-ink);
	white-space: nowrap;
}

.pd-inv-bar-text .pd-tile-mute {
	font-weight: 500;
}

.pd-hero-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.pd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: var(--pd-radius-sm);
	font-size: 13px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 120ms, border-color 120ms;
	text-decoration: none;
	white-space: nowrap;
}

.pd-btn-primary {
	background: var(--pd-navy);
	color: #fff;
}

.pd-btn-primary:hover {
	background: var(--pd-navy-700);
	color: #fff;
}

.pd-btn-secondary {
	background: var(--pd-card-bg);
	color: var(--pd-ink);
	border-color: var(--pd-line-strong);
}

.pd-btn-secondary:hover {
	background: var(--pd-soft-bg);
	border-color: var(--pd-mute-2);
}

.pd-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

/* Inline-SVG button icons. Use stroke="currentColor" on the SVG so the icon
   inherits the button's text color — but secondary buttons get navy icons
   instead of dark gray to match the brand (per design feedback 2026-05-06). */
.pd-btn .pd-icon-svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: inline-block;
}

.pd-btn-secondary .pd-icon-svg {
	color: var(--pd-navy);
}

.pd-btn-primary .pd-icon-svg {
	color: #fff;
}

/* Header icon-button SVGs (copy / link / ⋯). Same trick — stroke
   currentColor + color from the button. */
.pd-icon-btn .pd-icon-svg {
	width: 16px;
	height: 16px;
	color: var(--pd-mute);
	flex-shrink: 0;
}

.pd-icon-btn:hover .pd-icon-svg {
	color: var(--pd-ink);
}

/* Banner icon stays orange (warning context). */
.pd-banner .pd-icon-svg {
	width: 18px;
	height: 18px;
	color: var(--pd-warn);
	flex-shrink: 0;
	margin-top: 1px;
}

/* ----- Tab strip ----- */
.pd-tabs-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--pd-line);
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.pd-tabs {
	display: flex;
	align-items: center;
	gap: 0;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.pd-tabs::-webkit-scrollbar {
	display: none;
}

.pd-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pd-mute);
	cursor: pointer;
	border: none;
	background: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
	transition: color 120ms, border-color 120ms;
}

.pd-tab:hover {
	color: var(--pd-ink);
}

.pd-tab.active {
	color: var(--pd-navy);
	border-bottom-color: var(--pd-navy);
	font-weight: 600;
}

.pd-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 18px;
	padding: 0 6px;
	border-radius: var(--pd-radius-pill);
	background: var(--pd-line);
	color: var(--pd-mute);
	font-size: 11px;
	font-weight: 600;
}

.pd-tab.active .pd-tab-badge {
	background: var(--pd-navy);
	color: #fff;
}

.pd-tab-badge.alert {
	background: var(--pd-danger);
	color: #fff;
}

.pd-tab.active .pd-tab-badge.alert {
	background: var(--pd-danger);
	color: #fff;
}

/* Hide Alpine x-show targets until Alpine hydrates so tab bodies
   don't flash on the wrong tab during initial render. */
[x-cloak] {
	display: none !important;
}

/* ============================================================
   Phase 2a — Details Tab card chrome (visual reskin only)
   --------------------------------------------------------------
   Two-column grid (~62/38) with reusable card primitives. Cards
   are read-only in 2a; inline-edit comes in 2b-2c. See
   docs/PRODUCT_DETAIL_REDESIGN_PLAN.md §8.
   ============================================================ */

.pd-details-grid {
	display: grid;
	grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
	gap: 16px;
	margin-top: 16px;
}

.pd-card {
	background: var(--pd-card-bg);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	box-shadow: var(--pd-card-shadow);
	overflow: hidden;
}

.pd-card + .pd-card {
	margin-top: 16px;
}

.pd-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--pd-line);
}

.pd-card-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-ink);
	display: flex;
	align-items: center;
	gap: 8px;
}

.pd-card-title-meta {
	font-size: 12px;
	font-weight: 400;
	color: var(--pd-mute);
}

.pd-card-body {
	padding: 18px;
}

.pd-card-body-tight {
	padding: 12px 18px;
}

/* Read-only label/value rows used inside Behaviors / Tracking cards. */
.pd-detail-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pd-line);
}

.pd-detail-row:last-child {
	border-bottom: none;
}

.pd-detail-row-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pd-detail-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--pd-ink);
}

.pd-detail-sublabel {
	font-size: 12px;
	color: var(--pd-mute);
}

.pd-detail-value {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.pd-detail-meta {
	margin-top: 6px;
	font-size: 12px;
	color: var(--pd-mute);
	line-height: 1.5;
}

.pd-detail-meta strong {
	color: var(--pd-ink-2);
	font-weight: 600;
}

/* iOS-style toggle switch used in the Behaviors card. The button is fully
   keyboard-focusable; on/off is driven by the .on class set from the server. */
.pd-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	background: #cbd5e1;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
	padding: 0;
}

.pd-switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
	transition: left 0.15s ease;
}

.pd-switch.on {
	background: var(--pd-navy);
}

.pd-switch.on::after {
	left: 18px;
}

.pd-switch:focus-visible {
	outline: 2px solid var(--pd-navy);
	outline-offset: 2px;
}

.pd-switch:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Segmented control for the Tracking card. */
.pd-segmented {
	display: inline-flex;
	background: var(--pd-soft-bg);
	border-radius: var(--pd-radius-sm);
	padding: 3px;
	gap: 2px;
}

.pd-segmented-btn {
	padding: 6px 14px;
	border-radius: 6px;
	background: transparent;
	border: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--pd-mute);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pd-segmented-btn:hover:not(.active):not(:disabled) {
	color: var(--pd-ink);
}

.pd-segmented-btn.active {
	background: #fff;
	color: var(--pd-navy);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pd-segmented-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pd-segmented-help {
	margin-top: 8px;
	font-size: 12px;
	color: var(--pd-mute);
	line-height: 1.5;
}

.pd-segmented-disabled-hint {
	margin-top: 8px;
	font-size: 12px;
	color: var(--pd-mute);
	font-style: italic;
}

/* Status pill matches existing status-active / status-disable colors but in
   the new card chrome's compact style. */
.pd-status {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: var(--pd-radius-pill);
	white-space: nowrap;
}

.pd-status.on {
	background: var(--pd-success-soft);
	color: var(--pd-success);
}

.pd-status.off {
	background: #eef0f4;
	color: var(--pd-mute);
}

.pd-status.warn {
	background: var(--pd-warn-soft);
	color: var(--pd-warn);
}

/* Description card — preserves the existing "See More / See Less" affordance. */
.pd-desc-block + .pd-desc-block {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--pd-line);
}

.pd-desc-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.pd-desc-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--pd-mute);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pd-desc-error {
	margin-top: 8px;
	font-size: 12px;
	color: var(--pd-danger);
}

.pd-desc-sublabel {
	font-size: 12px;
	font-weight: 500;
	color: var(--pd-mute);
	text-transform: none;
	letter-spacing: 0;
	margin-left: 6px;
}

.pd-desc-textarea {
	width: 100%;
	min-height: 60px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--pd-ink);
	background: #fff;
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-sm);
	resize: vertical;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-desc-textarea:focus {
	outline: none;
	border-color: var(--pd-navy);
	box-shadow: 0 0 0 3px rgba(0, 50, 100, 0.08);
}

.pd-desc-help {
	margin-top: 6px;
	font-size: 12px;
	color: var(--pd-mute);
}

/* Quill host inside the inline edit Description card. Height matches the
   modal's Quill so the visual feels familiar; toolbar inherits Quill's snow
   theme styles already loaded by detail.blade.php. */
.pd-quill-host {
	min-height: 160px;
	background: #fff;
}

.pd-quill-host .ql-toolbar.ql-snow,
.pd-quill-host + .ql-toolbar.ql-snow {
	border-top-left-radius: var(--pd-radius-sm);
	border-top-right-radius: var(--pd-radius-sm);
}

.pd-quill-host.ql-container.ql-snow {
	border-bottom-left-radius: var(--pd-radius-sm);
	border-bottom-right-radius: var(--pd-radius-sm);
	min-height: 160px;
}

.pd-quill-host .ql-editor {
	min-height: 160px;
	font-size: 14px;
	line-height: 1.55;
}

/* Save / Cancel row inside the Description card edit mode. */
.pd-desc-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--pd-line);
}

/* Phase 2d — Photos card 5-slot grid.
   Filled slot = image; "+ slot" = dashed upload trigger; empty = static
   placeholder. All slots are square via aspect-ratio so the grid stays
   visually balanced even when photos have varied aspect ratios. */
.pd-photo-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

.pd-photo-slot {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--pd-radius-sm);
	overflow: hidden;
	background: var(--pd-soft-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pd-photo-slot-filled img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pd-photo-slot-filled.is-default {
	box-shadow: inset 0 0 0 2px var(--pd-success);
}

.pd-photo-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 6px;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0) 60%);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.pd-photo-slot-filled:hover .pd-photo-overlay,
.pd-photo-slot-filled:focus-within .pd-photo-overlay {
	opacity: 1;
}

.pd-photo-slot-filled.is-default .pd-photo-overlay {
	opacity: 1;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 60%);
}

.pd-photo-action {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: rgba(15, 23, 42, 0.6);
	border: none;
	border-radius: var(--pd-radius-pill);
	cursor: pointer;
	transition: background 0.15s ease;
}

.pd-photo-action:hover {
	background: rgba(15, 23, 42, 0.8);
}

.pd-photo-action-static {
	background: var(--pd-success);
	cursor: default;
}

.pd-photo-action-static:hover {
	background: var(--pd-success);
}

.pd-photo-remove {
	width: 22px;
	height: 22px;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	color: #fff;
	background: rgba(220, 38, 38, 0.85);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.pd-photo-remove:hover {
	background: var(--pd-danger);
}

.pd-photo-slot-add {
	background: transparent;
	border: 2px dashed var(--pd-navy);
	color: var(--pd-navy);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
	padding: 0;
}

.pd-photo-slot-add:hover {
	background: rgba(0, 50, 100, 0.04);
}

.pd-photo-slot-add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pd-photo-add-icon {
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
}

.pd-photo-slot-empty {
	background: transparent;
	border: 1.5px dashed var(--pd-line-strong);
	color: var(--pd-line-strong);
}

.pd-photo-empty-icon {
	color: var(--pd-line-strong);
}

@media (max-width: 575px) {
	.pd-photo-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Card header action buttons — small ghost buttons that sit on the right of
   pd-card-header. Used for "Edit", "Manage", "Generate". */
.pd-card-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-sm);
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pd-mute);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pd-card-action:hover:not(:disabled) {
	background: var(--pd-soft-bg);
	color: var(--pd-navy);
	border-color: var(--pd-navy);
}

.pd-card-action:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pd-card-action-icon {
	width: 12px;
	height: 12px;
	color: currentColor;
}

.pd-card-action-ai .pd-ai-icon {
	font-size: 12px;
}

.pd-spinner {
	display: inline-block;
	width: 11px;
	height: 11px;
	border: 1.5px solid var(--pd-mute);
	border-top-color: transparent;
	border-radius: 50%;
	animation: pd-spin 0.6s linear infinite;
}

@keyframes pd-spin {
	to { transform: rotate(360deg); }
}

.pd-desc-body {
	font-size: 14px;
	line-height: 1.55;
	color: var(--pd-ink);
}

.pd-desc-body p:last-child {
	margin-bottom: 0;
}

.pd-desc-toggle {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--pd-navy);
	cursor: pointer;
}

.pd-desc-toggle:hover {
	color: var(--pd-navy-700);
}

.pd-desc-empty {
	color: var(--pd-mute);
	font-style: italic;
}

/* Photos card — reuses existing <x-images.display-images> underneath. */
.pd-photos-card .pd-card-body {
	padding: 16px 18px;
}

/* Custom Fields — flex grid of label/value pairs. */
.pd-cf-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.pd-cf-item {
	min-width: 150px;
}

.pd-cf-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--pd-mute);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.pd-cf-value {
	font-size: 14px;
	color: var(--pd-ink);
}

/* Barcodes card — partial emits pd-card-header + pd-card-body directly inside
   .pd-card. Inline-style rules keep the SVG preview hover-to-reveal download
   affordance. */
.pd-barcodes-help {
	font-size: 12px;
	color: var(--pd-mute);
	margin-bottom: 12px;
}

.pd-link {
	display: inline;
	color: var(--pd-navy);
	font-weight: 500;
	text-decoration: none;
}

.pd-link:hover {
	text-decoration: underline;
}

.pd-barcodes-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 8px 8px;
	text-align: center;
}

.pd-barcodes-empty-icon {
	width: 40px;
	height: 40px;
	opacity: 0.3;
}

.pd-barcodes-empty-text {
	margin: 0;
	font-size: 13px;
	color: var(--pd-mute);
}

.pd-barcodes-list {
	display: flex;
	flex-direction: column;
}

.pd-barcode-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
}

.pd-barcode-row.has-divider {
	border-bottom: 1px solid var(--pd-line);
}

.pd-barcode-row-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.pd-barcode-preview {
	position: relative;
	width: 56px;
	min-width: 56px;
	height: 56px;
	background: var(--pd-soft-bg);
	border-radius: var(--pd-radius-sm);
	overflow: hidden;
}

.pd-barcode-preview .barcode-preview {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pd-barcode-preview .barcode-download-btn {
	position: absolute;
	bottom: 2px;
	left: 2px;
	background: #fff;
	border-radius: 4px;
	padding: 1px;
	line-height: 0;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.pd-barcode-meta {
	min-width: 0;
}

.pd-barcode-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	font-weight: 600;
	color: var(--pd-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pd-barcode-type {
	font-size: 11px;
	color: var(--pd-mute);
	margin-top: 2px;
}

.pd-barcode-auto-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 600;
	background: #eef0f4;
	color: var(--pd-mute);
	border-radius: 4px;
}

.pd-barcode-actions {
	display: flex;
	gap: 0;
	flex-shrink: 0;
}

/* Barcode row action buttons — large hit-target with a near-flush icon so
   the visual gap between adjacent icons is small. Buttons are 40x40 with a
   24x24 icon (only 8px padding each side) and no extra margin between them,
   giving ~16px icon-to-icon. The earlier `.pd-icon-btn` at ~line 162
   (34x34 bordered card-action variant) is intentionally re-scoped here. */
.pd-barcode-actions .pd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	border-radius: var(--pd-radius-sm);
	cursor: pointer;
	transition: background 0.15s ease;
	padding: 0;
	color: var(--pd-mute);
}

.pd-barcode-actions .pd-icon-btn + .pd-icon-btn {
	margin-left: -10px;
}

.pd-barcode-actions .pd-icon-btn:hover {
	background: var(--pd-soft-bg);
}

.pd-barcode-actions .pd-icon-btn img {
	width: 24px;
	height: 24px;
}

/* ============================================================
   Phase 3-7 — Tab body shared primitives
   ============================================================ */

.pd-tab-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}

.pd-tab-body > .pd-card + .pd-card {
	margin-top: 0;
}

.pd-card-body-flat {
	padding: 0;
}

.pd-card-body-flat > * {
	margin: 0 !important;
}

/* Empty-state used when a tab requires a behavior to be enabled first
   (Variations off, Inventory off). Matches the design system "soft prompt". */
.pd-empty-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 32px 16px;
	text-align: center;
}

.pd-empty-tab-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--pd-ink);
}

.pd-empty-tab-desc {
	font-size: 13px;
	color: var(--pd-mute);
	max-width: 420px;
}

/* Narrow label-left / toggle-right row sitting inside an empty-tab block.
   Lets us show "Turn on this thing" without an entire centered button row. */
.pd-empty-tab-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 280px;
	margin-top: 4px;
	padding: 10px 14px;
	background: var(--pd-soft-bg);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius-sm);
	text-align: left;
}

.pd-empty-tab-toggle .pd-detail-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--pd-ink);
}

.pd-empty-inline {
	padding: 16px 4px;
	font-size: 13px;
	color: var(--pd-mute);
}

/* Chip primitive used by Variations + Embed segmented control. */
.pd-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	background: var(--pd-navy);
	color: #fff;
	border-radius: var(--pd-radius-pill);
}

.pd-chip.pd-chip-mute {
	background: var(--pd-soft-bg);
	color: var(--pd-ink-2);
	font-weight: 500;
}

.pd-chip.pd-chip-mute strong {
	color: var(--pd-navy);
	font-weight: 600;
}

.pd-chip-empty {
	font-size: 12px;
	color: var(--pd-mute);
	font-style: italic;
}

/* Phase 3a — Variation property rows */
.pd-variation-prop-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pd-line);
}

.pd-variation-prop-row:last-child {
	border-bottom: none;
}

.pd-variation-prop-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--pd-ink);
	min-width: 100px;
}

.pd-variation-prop-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.pd-variation-prop-actions {
	display: flex;
	gap: 0;
	flex-shrink: 0;
}

/* Variation property action buttons match the barcode-row pattern: 40x40 hit
   target, 24x24 icon, transparent background, slight overlap so the visual
   gap stays tight (~16px icon-to-icon). */
.pd-variation-prop-actions .pd-icon-btn {
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	border-radius: var(--pd-radius-sm);
	padding: 0;
	color: var(--pd-mute);
}

.pd-variation-prop-actions .pd-icon-btn + .pd-icon-btn {
	margin-left: -10px;
}

.pd-variation-prop-actions .pd-icon-btn:hover {
	background: var(--pd-soft-bg);
}

.pd-variation-prop-actions .pd-icon-btn img {
	width: 24px;
	height: 24px;
}

/* Phase 3a — Variation list rows */
.pd-variation-list {
	display: flex;
	flex-direction: column;
}

.pd-variation-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pd-line);
}

.pd-variation-row:last-child {
	border-bottom: none;
}

.pd-variation-row-main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}

.pd-variation-thumb {
	width: 44px;
	height: 44px;
	border-radius: var(--pd-radius-sm);
	background: var(--pd-soft-bg);
	color: var(--pd-mute-2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.pd-variation-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd-variation-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pd-variation-id-sku {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.pd-variation-sku {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	font-weight: 600;
	color: var(--pd-ink);
}

.pd-variation-id {
	font-size: 11px;
	color: var(--pd-mute);
}

.pd-variation-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.pd-variation-actions {
	display: flex;
	gap: 0;
	flex-shrink: 0;
}

.pd-variation-actions .pd-icon-btn {
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	border-radius: var(--pd-radius-sm);
	padding: 0;
	color: var(--pd-mute);
}

.pd-variation-actions .pd-icon-btn + .pd-icon-btn {
	margin-left: -10px;
}

.pd-variation-actions .pd-icon-btn:hover {
	background: var(--pd-soft-bg);
}

.pd-variation-actions .pd-icon-btn img {
	width: 24px;
	height: 24px;
}

/* Phase 7 — Embed tab */
.pd-embed-snippet {
	margin-top: 16px;
}

.pd-embed-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--pd-mute);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.pd-embed-textarea {
	width: 100%;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	color: var(--pd-ink-2);
	background: var(--pd-soft-bg);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius-sm);
	padding: 12px 110px 12px 14px;
	min-height: 70px;
	resize: vertical;
	line-height: 1.5;
}

.pd-embed-copy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-sm);
	font-size: 12px;
	font-weight: 500;
	color: var(--pd-navy);
	cursor: pointer;
	transition: background 0.15s ease;
}

.pd-embed-copy-btn:hover {
	background: var(--pd-soft-bg);
}

.pd-embed-copy-btn img {
	width: 12px;
	height: 12px;
}

.pd-embed-preview {
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	overflow: hidden;
	background: var(--pd-soft-bg);
	display: flex;
	justify-content: center;
}

.pd-embed-preview iframe {
	width: 100%;
	height: 700px;
	background: #fff;
	border: none;
	transition: max-width 0.2s ease;
}

.pd-embed-preview.is-mobile iframe {
	max-width: 390px;
	box-shadow: 0 0 0 1px var(--pd-line-strong);
}

/* Bookings card uses a flush body so the existing table reaches the edge. */
.pd-bookings-card .table-responsive,
.pd-bookings-card table {
	margin: 0;
}

/* ----- Mobile responsive ----- */
@media (max-width: 991px) {
	.pd-details-grid {
		grid-template-columns: 1fr;
	}

	.pd-header {
		padding: 12px 16px;
	}

	.pd-title {
		font-size: 17px;
		max-width: 100%;
	}

	.pd-hero {
		flex-direction: column;
		align-items: stretch;
	}

	.pd-hero-tiles {
		gap: 16px 24px;
	}

	.pd-hero-actions {
		width: 100%;
	}

	.pd-hero-actions .pd-btn {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 575px) {
	.pd-header {
		gap: 8px;
	}

	.pd-header-left {
		flex: 1 1 100%;
	}

	.pd-header-right {
		flex: 1 1 100%;
		justify-content: flex-end;
	}

	.pd-ask-dash-btn span:not(.pd-hex) {
		display: none;
	}

	.pd-tile-label {
		font-size: 10px;
	}
}

/* ===== Dash AI band collapsible toggle ===================================
   Insight panel is always shown (passive summary). The chevron sits inline
   to its right and only collapses the ask input + suggestion chips beneath.
   ========================================================================= */
.pd-dash-ai-band {
	margin-top: 0.5rem;
}

.pd-dash-ai-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.pd-dash-ai-insight {
	flex: 1;
	min-width: 0;
}

/* The insight panel's `.dash-card` carries `mb-3` (~16px). We want the
   chevron to sit visually centered on the panel's first content row, which
   sits roughly 10–12px down from the panel's top edge (panel padding). */
.pd-dash-ai-chevron {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: 4px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--pd-dash-soft);
	color: var(--pd-dash);
	cursor: pointer;
	transition: background 0.15s ease;
}

.pd-dash-ai-chevron:hover {
	background: #ebe4fb;
}

.pd-dash-ai-chevron:focus-visible {
	outline: 2px solid var(--pd-dash);
	outline-offset: 2px;
}

.pd-dash-ai-chevron svg {
	transition: transform 200ms ease;
}

/* ===== Product settings — inline value+unit field pair ===================
   Used by Buffer time and Rental period limits when their toggle is ON.
   Number input + dropdown side by side, matching the modal's field shape.
   ========================================================================= */
.pd-inline-fields-wrap {
	border-bottom: 1px solid var(--pd-line);
}

/* When the wrap holds a static "view" line, render it as a row with the
   summary on the left and the Edit pencil on the right. */
.pd-inline-static {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px 12px;
}

.pd-inline-static--block {
	padding: 8px 0 12px;
}

.pd-inline-static-summary {
	font-size: 13px;
	color: var(--pd-ink);
	font-weight: 500;
}

.pd-inline-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: transparent;
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-sm);
	color: var(--pd-mute);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pd-inline-edit-btn:hover {
	background: var(--pd-soft-bg);
	color: var(--pd-ink);
	border-color: var(--pd-mute-2);
}

.pd-inline-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 8px 16px 16px;
	margin-top: -4px;
}

/* When .pd-inline-fields lives inside .pd-inline-fields-wrap (the new
   view/edit container), the wrap already paints the bottom border so the
   inner grid shouldn't double it. */
.pd-inline-fields-wrap > .pd-inline-fields {
	border-bottom: none;
}

.pd-inline-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pd-inline-field-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--pd-ink);
	margin: 0;
}

.pd-inline-value-unit {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 6px;
}

.pd-inline-input {
	width: 100%;
	height: 36px;
	padding: 6px 10px;
	font-size: 14px;
	color: var(--pd-ink);
	background: #fff;
	border: 1px solid var(--pd-line-strong);
	border-radius: 6px;
	transition: border-color 0.15s ease;
}

.pd-inline-input:focus {
	outline: none;
	border-color: var(--pd-navy);
	box-shadow: 0 0 0 3px rgba(0, 50, 100, 0.1);
}

.pd-inline-input:disabled {
	background: #f7f7f7;
	cursor: not-allowed;
}

.pd-inline-unit-dropdown {
	position: relative;
}

.pd-inline-unit-button {
	width: 100%;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	font-size: 14px;
	color: var(--pd-ink);
	background: #fff;
	border: 1px solid var(--pd-line-strong);
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
}

.pd-inline-unit-button:hover:not(:disabled) {
	border-color: var(--pd-navy);
}

.pd-inline-unit-button:disabled {
	background: #f7f7f7;
	cursor: not-allowed;
	opacity: 0.6;
}

.pd-inline-unit-chevron {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.pd-inline-unit-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--pd-line-strong);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.pd-inline-unit-item {
	display: block;
	width: 100%;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--pd-ink);
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
}

.pd-inline-unit-item:hover {
	background: var(--pd-soft-bg);
}

/* Helper text shown beneath a toggle that's locked off because changing it
   would orphan dependent data (variations exist, inventory rows exist).

   The previous .pd-detail-row already paints a bottom border, so the hint
   needs to sit BELOW that line — generous top padding (12px) keeps a clear
   visual gap so the divider and text never read as overlapping. */
.pd-toggle-lock-hint {
	padding: 12px 16px 14px;
	font-size: 12px;
	color: var(--pd-mute);
	font-style: italic;
	line-height: 1.5;
}

/* ===== Inventory tracking — modal-style radio rows ======================= */
.pd-inventory-tracking-block {
	padding: 14px 16px 16px;
	border-top: 1px solid var(--pd-line);
}

.pd-inventory-tracking-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-ink);
	margin-bottom: 4px;
}

.pd-inventory-tracking-note {
	font-size: 12px;
	color: var(--pd-mute);
	margin-bottom: 10px;
}

.pd-radio-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	cursor: pointer;
}

.pd-radio-row + .pd-radio-row {
	border-top: 1px solid var(--pd-line);
}

.pd-radio-input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--pd-navy);
	cursor: pointer;
	flex-shrink: 0;
}

.pd-radio-input:disabled {
	cursor: not-allowed;
}

.pd-radio-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pd-radio-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-ink);
	line-height: 1.3;
}

.pd-radio-help {
	font-size: 12px;
	color: var(--pd-mute);
	line-height: 1.4;
}

/* ===== Additional customer information card ==============================
   The embedded content-blocks editor brings its own padding/styling. The
   surrounding .pd-card just provides the white box; remove default padding
   so the editor's `season-fields p-3` boundary visually owns the inside.
   ========================================================================= */
/* Inside the .pd-card the editor renders with wrapper=false, so its first
   block has no top margin — let the .pd-card-body padding own the spacing. */
.pd-cb-mount > .content-blocks-editor-body > div > .mt-4:first-child {
	margin-top: 0 !important;
}

/* ============================================================
   Phase 5 — Bookings tab filter strip
   White bar attached flush above the booking table inside the
   .pd-bookings-card. Reuses POS pill chrome (pos-pill,
   pos-pill-dropdown, pos-pill-button, pos-pill-menu) defined in
   pos-redesign.css so the styling matches the POS / Bookings page
   1:1. The filter strip needs no border on the bottom — the table
   underneath supplies its own top border.
   ============================================================ */
.pd-bookings-card .pd-bookings-filter-strip {
	background: #ffffff;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e7eb;
	overflow: visible;
}

.pd-bookings-card .pd-bookings-filter-strip .pos-filter-strip {
	margin-bottom: 0;
	flex-wrap: wrap;
	gap: 8px;
}

.pd-bookings-card .pd-bookings-filter-strip .pos-pill-menu {
	z-index: 50;
}

.pd-bookings-filter-spacer {
	flex: 1 1 auto;
	min-width: 0;
}

.pd-bookings-tag-search {
	padding: 6px 8px 8px 8px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 4px;
}

.pd-bookings-tag-search input {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 13px;
	color: #0f172a;
	outline: none;
}

.pd-bookings-tag-search input:focus {
	border-color: #003264;
}

.pd-bookings-active-filter {
	padding: 8px 16px 0 16px;
	font-size: 12px;
	color: #6b7280;
}

.pd-bookings-export-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--pos-pill-border, #DFE3E8);
	border-radius: 999px;
	padding: 0 14px;
	min-height: 36px;
	color: var(--pos-text, #003264);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.12s, background-color 0.12s;
}

.pd-bookings-export-btn:hover {
	border-color: var(--pos-text, #003264);
	background: var(--pos-pill-active-bg, #EBF0F5);
}

.pd-bookings-export-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pd-bookings-export-btn svg {
	stroke: currentColor;
	opacity: 0.8;
}

@media (max-width: 768px) {
	.pd-bookings-card .pd-bookings-filter-strip {
		padding: 10px 12px;
	}

	.pd-bookings-card .pd-bookings-filter-strip .pos-filter-strip {
		gap: 6px;
	}

	.pd-bookings-filter-spacer {
		display: none;
	}

	.pd-bookings-export-btn {
		margin-left: auto;
	}
}

/* ============================================================
   Phase 4 — Pricing tab (inline-edit)
   Two-column grid (left: editable price structure card with segmented
   Applies + Structure controls and base/schedule inputs; right: passive
   customer-view preview card). Stacks to a single column < 1024px.
   All inputs reuse the $form (ProductForm) — these classes only style
   the new tab chrome.
   ============================================================ */
.pd-pricing-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

/* Override the generic `.pd-card + .pd-card { margin-top: 16px }` stacking
   rule — inside the pricing grid the cards sit side-by-side, so the second
   card was being pushed 16px down past the first, breaking top alignment. */
.pd-pricing-grid > .pd-card {
	margin-top: 0;
}

@media (max-width: 1023px) {
	.pd-pricing-grid {
		grid-template-columns: 1fr;
	}
}

.pd-pricing-preview-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	color: #003264;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
}

.pd-pricing-preview-link:hover {
	background: rgba(0, 50, 100, 0.06);
}

.pd-pricing-preview-link svg {
	flex-shrink: 0;
}

.pd-pricing-segments {
	/* Inline-flex so each segment block (.pd-pricing-segment-block) sits at
	   its natural width — Applies + Structure controls hug their buttons
	   instead of stretching across the whole card body. Wrap on narrow
	   viewports rather than overflow. */
	display: inline-flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 20px;
}

/* ── Inline seasonal pricing editor ───────────────────────────────────
   Replaces the old "Edit seasons" modal launcher. See pricing-tab.blade. */
.pd-pricing-seasons-picker {
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fafbfc;
}

.pd-pricing-seasons-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin-top: 10px;
}

.pd-pricing-season-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #0f172a;
	cursor: pointer;
	user-select: none;
}

.pd-pricing-season-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
}

.pd-pricing-seasons-empty {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
}

.pd-pricing-seasons-empty a {
	display: inline;
	color: #003264;
	text-decoration: underline;
	font-size: inherit;
	font-weight: inherit;
}

.pd-pricing-season-block {
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.pd-pricing-season-block-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 10px;
}

.pd-pricing-segment-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pd-pricing-segment-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.pd-pricing-fields-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.pd-pricing-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.pd-pricing-field-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin: 0;
}

.pd-pricing-input {
	height: 38px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-pricing-input:focus {
	outline: none;
	border-color: #003264;
	box-shadow: 0 0 0 3px rgba(0, 50, 100, 0.1);
}

.pd-pricing-input:disabled {
	background: #f5f7fa;
	color: #6b7280;
	cursor: not-allowed;
}

.pd-pricing-input-prefix {
	position: relative;
	display: flex;
	align-items: stretch;
}

.pd-pricing-input-prefix-symbol {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	pointer-events: none;
	border-right: 1px solid #e5e7eb;
}

.pd-pricing-input-with-prefix {
	padding-left: 42px !important;
}

.pd-pricing-flat-pair {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 8px;
}

.pd-pricing-unit-select {
	width: 100%;
}

.pd-pricing-schedule-table {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pd-pricing-schedule-head,
.pd-pricing-schedule-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
	gap: 8px;
	align-items: center;
}

.pd-pricing-schedule-head {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	padding: 0 4px 4px;
}

.pd-pricing-row-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pd-pricing-row-remove:hover {
	background: rgba(220, 53, 69, 0.08);
}

.pd-pricing-add-link {
	margin-top: 6px;
	background: none;
	border: none;
	color: #003264;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 0;
	text-align: left;
	cursor: pointer;
	align-self: flex-start;
}

.pd-pricing-add-link:hover:not(:disabled) {
	text-decoration: underline;
}

.pd-pricing-add-link:disabled {
	color: #6b7280;
	cursor: not-allowed;
}

.pd-pricing-error {
	color: #dc3545;
	font-size: 12px;
	margin-top: 4px;
}

.pd-pricing-tier-table {
	margin-top: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.pd-pricing-tier-table-head,
.pd-pricing-tier-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	padding: 10px 14px;
	font-size: 13px;
}

.pd-pricing-tier-table-head {
	background: #f5f7fa;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.pd-pricing-tier-row + .pd-pricing-tier-row {
	border-top: 1px solid #e5e7eb;
}

.pd-pricing-addcharge {
	margin-top: 16px;
	padding: 12px 14px;
	background: #f5f7fa;
	border-radius: 8px;
}

.pd-pricing-addcharge-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #0f172a;
	margin: 0;
	cursor: pointer;
}

.pd-pricing-addcharge-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.pd-pricing-seasonal-block {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	margin-bottom: 20px;
	background: #f5f7fa;
	border-radius: 10px;
}

.pd-pricing-seasonal-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #003264;
}

.pd-pricing-seasonal-text {
	flex: 1;
	min-width: 0;
}

.pd-pricing-seasonal-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 2px;
}

.pd-pricing-seasonal-help {
	font-size: 12px;
	color: #6b7280;
}

.pd-pricing-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.pd-pricing-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 24px 0 18px;
}

.pd-pricing-extras-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.pd-pricing-extras-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pd-pricing-extras-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	background: #003264;
	color: #fff;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.pd-pricing-coming-soon {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff8e1;
	color: #b88600;
}

.pd-pricing-extras-empty {
	font-size: 13px;
	color: #6b7280;
	padding: 12px 0;
}

.pd-pricing-preview-card {
	position: sticky;
	top: 20px;
}

@media (max-width: 1023px) {
	.pd-pricing-preview-card {
		position: static;
	}
}

.pd-pricing-preview-inset {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
	background: #fff;
}

/* Inline pricing-calculator (replaces the standalone preview modal launcher
   on the Product Detail Pricing tab — see pricing-tab.blade.php). */
.pd-pricing-preview-calc {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fafbfc;
}

.pd-pricing-preview-calc-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin-bottom: 10px;
}

.pd-pricing-preview-calc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.pd-pricing-preview-calc-btn {
	width: 100%;
	margin-top: 4px;
}

.pd-pricing-preview-calc-result {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
	font-size: 13px;
}

.pd-pricing-preview-calc-meta {
	display: flex;
	justify-content: space-between;
	color: #6b7280;
	padding: 4px 0;
}

.pd-pricing-preview-calc-meta span:last-child {
	color: #0f172a;
	font-weight: 600;
}

.pd-pricing-preview-calc-breakdown {
	margin-top: 8px;
	padding: 10px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.pd-pricing-preview-calc-line {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	color: #374151;
}

.pd-pricing-preview-calc-total {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
	font-weight: 700;
	color: #0f172a;
}

.pd-pricing-preview-calc-errors {
	background: #fef3c7;
	border: 1px solid #fcd34d;
	color: #78350f;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
}

.pd-pricing-preview-name {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.pd-pricing-preview-desc {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 14px;
	line-height: 1.4;
}

.pd-pricing-preview-price {
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.1;
	margin-top: 4px;
}

.pd-pricing-preview-price.pd-pricing-preview-empty {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}

.pd-pricing-preview-price-unit {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}

.pd-pricing-preview-sub {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
	margin-bottom: 12px;
}

.pd-pricing-preview-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0;
}

.pd-pricing-preview-cta {
	width: 100%;
	margin-top: 14px;
	padding: 10px 16px;
	background: #003264;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: not-allowed;
	opacity: 0.85;
}

.pd-pricing-preview-sample {
	margin-top: 12px;
	font-size: 12px;
	font-style: italic;
	color: #6b7280;
	text-align: center;
	padding: 0 8px;
}

/* ============================================================
   Phase 8 — Quick Book modal (rebuilt)
   Single-product fast-path booking modal launched from the
   product detail header. Density and chrome match the POS
   pages — same pos-pill primitives, same fonts, same compact
   spacing. Only the qb-* classes are local to the modal.
   ============================================================ */
.qb-modal {
	display: flex;
	flex-direction: column;
	width: 540px;
	max-width: 100%;
	background: #fff;
	border-radius: 14px;
	overflow: visible;
}

.delete-modal-main:has(.qb-modal) .modal-dialog {
	max-width: 540px;
}

.qb-footer-link { white-space: nowrap; }
.qb-btn { white-space: nowrap; }

.qb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #eef0f4;
	gap: 12px;
}

.qb-header-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
	font-size: 16px;
	color: #0f172a;
	overflow: hidden;
}

.qb-header-prefix {
	font-weight: 600;
	color: #003264;
	flex: none;
}

.qb-header-sep { color: #cbd2db; flex: none; }

.qb-header-name {
	font-weight: 600;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.qb-close {
	flex: none;
	background: transparent;
	border: none;
	color: #6b7280;
	padding: 6px;
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.qb-close:hover { background: #f3f4f6; color: #003264; }

.qb-body {
	padding: 14px 20px 4px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.qb-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.qb-field { min-width: 0; }

.qb-label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8b94a3;
	margin: 0 0 6px;
}

.qb-section { display: flex; flex-direction: column; }

/* ─── Date+time pill (replaces the old qb-pill 2-input row) ─ */
.qb-datepill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 38px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #DFE3E8;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #0f172a;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.qb-datepill:hover { border-color: #b8c1cc; }

.qb-datepill svg { color: #6b7280; flex: none; }
.qb-datepill-label { flex: 1 1 auto; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-datepill-chev { color: #6b7280; opacity: 0.7; }

.qb-datepop {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 1000;
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
	padding: 12px;
	width: 280px;
	max-width: calc(100vw - 32px);
}

.qb-field { position: relative; z-index: 5; }
.qb-field:has(.qb-datepop[style*="display: block"]),
.qb-field:has(.qb-datepop:not([style*="display: none"])) { z-index: 1001; }

.qb-datepop-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.qb-datepop-row:last-child { margin-bottom: 0; }

.qb-datepop-sub {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8b94a3;
}

.qb-datepop-date {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #e5e9ef;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	color: #0f172a;
}

.qb-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 6px;
	max-height: 180px;
	overflow-y: auto;
	padding-right: 2px;
}

.qb-time-chip {
	padding: 6px 8px;
	background: #f6f7f9;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: 12.5px;
	color: #0f172a;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s;
	white-space: nowrap;
	text-align: center;
}

.qb-time-chip:hover { background: #eef2f7; }

.qb-time-chip.is-selected {
	background: #003264;
	border-color: #003264;
	color: #fff;
	font-weight: 600;
}

/* ─── Pickup location ────────────────────────────────────── */
.qb-loc-pill { display: inline-flex; max-width: 320px; align-self: flex-start; }
.qb-loc-pill .pos-pill-button {
	min-width: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.qb-loc-readonly {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	background: #f6f7f9;
	border: 1px solid #e5e9ef;
	border-radius: 999px;
	font-size: 13px;
	color: #0f172a;
	max-width: 320px;
	align-self: flex-start;
}

.qb-loc-readonly span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.qb-section { display: flex; flex-direction: column; }

.qb-input,
.qb-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #e5e9ef;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	color: #0f172a;
}

.qb-input:focus,
.qb-select:focus { outline: 2px solid #003264; outline-offset: -1px; border-color: #003264; }

.qb-select-narrow { width: 90px; flex: none; }

/* ─── Variation chip row — compact, single-row preferred ── */
.qb-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.qb-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #DFE3E8;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
	font-size: 12.5px;
	color: #0f172a;
	line-height: 1.25;
}

.qb-chip:hover:not(.qb-chip-disabled):not(.qb-chip-selected) {
	background: #f6f7f9;
	border-color: #b8c1cc;
}

.qb-chip-label { font-weight: 600; font-size: 13px; }

.qb-chip-avail {
	font-size: 10.5px;
	color: #8b94a3;
	font-weight: 500;
}

.qb-chip-selected {
	background: #003264;
	border-color: #003264;
	color: #fff;
}

.qb-chip-selected .qb-chip-avail { color: rgba(255,255,255,0.85); }

.qb-chip-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f3f4f6;
	color: #8b94a3;
}

.qb-chip-low {
	background: #fff8e1;
	border-color: #f8d775;
}

.qb-chip-low .qb-chip-avail { color: #b88600; font-weight: 600; }

/* Low + selected: keep the amber low-stock signal but darken so white text reads.
   Without this override, .qb-chip-selected sets color:#fff while .qb-chip-low's
   light amber background stays, giving unreadable white-on-yellow. */
.qb-chip-selected.qb-chip-low {
	background: #b88600;
	border-color: #a17500;
	color: #fff;
}

.qb-chip-selected.qb-chip-low .qb-chip-avail { color: rgba(255,255,255,0.95); }

/* ─── Customer typeahead ────────────────────────────────── */
.qb-customer-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.qb-customer-search-icon {
	position: absolute;
	left: 12px;
	color: #8b94a3;
	pointer-events: none;
}

.qb-customer-search-input {
	width: 100%;
	padding: 9px 12px 9px 34px;
	border: 1px solid #DFE3E8;
	border-radius: 10px;
	background: #fff;
	font-size: 13.5px;
	color: #0f172a;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.qb-customer-search-input:focus {
	outline: none;
	border-color: #003264;
	box-shadow: 0 0 0 3px rgba(0, 50, 100, 0.08);
}

.qb-customer-search-input::placeholder { color: #8b94a3; }

.qb-customer-hint {
	margin-top: 6px;
	font-size: 11.5px;
	color: #8b94a3;
}

.qb-customer-panel {
	margin-top: 6px;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.qb-customer-results {
	max-height: 200px;
	overflow-y: auto;
}

.qb-customer-item {
	display: flex;
	flex-direction: column;
	width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
}

.qb-customer-item:last-child { border-bottom: none; }
.qb-customer-item:hover { background: #f6f7f9; }
.qb-customer-item strong { font-size: 13px; color: #0f172a; font-weight: 600; }
.qb-customer-item small { font-size: 11.5px; color: #6b7280; margin-top: 1px; }

.qb-customer-add-cta {
	display: block;
	width: 100%;
	background: transparent;
	border: none;
	border-top: 1px solid #f3f4f6;
	padding: 14px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #003264;
	text-align: center;
	cursor: pointer;
}

.qb-customer-add-cta:hover { background: #f6f7f9; }

.qb-customer-selected {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	background: #eef4fb;
	border: 1px solid #cfddef;
	border-radius: 10px;
}

.qb-customer-selected-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #003264;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.qb-customer-selected-info span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.qb-customer-clear {
	flex: none;
	background: transparent;
	border: none;
	color: #6b7280;
	padding: 4px;
	cursor: pointer;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.qb-customer-clear:hover { background: rgba(0,0,0,0.05); color: #003264; }

.qb-inline-customer {
	padding: 10px 12px 12px;
	background: #f8fafc;
	border-top: 1px solid #eef0f4;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.qb-inline-customer .qb-btn-secondary { align-self: flex-start; }

.qb-inline-customer-hint {
	font-size: 11.5px;
	color: #6b7280;
}

.qb-inline-customer-hint strong { color: #003264; }

.qb-inline-row {
	display: flex;
	gap: 6px;
}

.qb-inline-row .qb-input { flex: 1 1 0; min-width: 0; }

.qb-inline-customer-help {
	color: #6b7280;
	font-size: 11px;
}

/* ─── Notice rows ──────────────────────────────────────── */
.qb-notice {
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 12.5px;
	line-height: 1.4;
}

.qb-notice-warn {
	background: #fff8e1;
	border: 1px solid #f8d775;
	color: #4a3500;
}

.qb-notice-warn a { color: #003264; font-weight: 600; }

.qb-notice-info {
	background: #eef4fb;
	border: 1px solid #cfddef;
	color: #003264;
}

/* ─── Estimated total card ─────────────────────────────── */
.qb-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid;
	margin-top: 2px;
	gap: 10px;
}

.qb-total-ok {
	background: #f0fbf4;
	border-color: #d1ecdb;
}

.qb-total-bad {
	background: #f3f4f6;
	border-color: #e5e9ef;
}

.qb-total-left { min-width: 0; flex: 1 1 auto; }

.qb-total-amount {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.1;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.qb-total-duration {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
}

.qb-total-sub {
	font-size: 11.5px;
	color: #6b7280;
	margin-top: 3px;
}

.qb-pill-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex: none;
}

.qb-pill-status-ok { background: #047857; color: #fff; }
.qb-pill-status-bad { background: #b91c1c; color: #fff; }

/* ─── Footer ───────────────────────────────────────────── */
.qb-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 16px;
	gap: 12px;
	border-top: 1px solid #eef0f4;
	background: #fafbfc;
}

.qb-footer-link {
	font-size: 12.5px;
	color: #003264;
	font-weight: 500;
	text-decoration: none;
	font-style: italic;
}

.qb-footer-link:hover { text-decoration: underline; }

.qb-footer-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.qb-btn {
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}

.qb-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.qb-btn-ghost {
	background: transparent;
	color: #6b7280;
	border-color: #e5e9ef;
}

.qb-btn-ghost:hover:not(:disabled) {
	background: #f6f7f9;
	color: #003264;
}

.qb-btn-primary {
	background: #003264;
	color: #fff;
	border-color: #003264;
}

.qb-btn-primary:hover:not(:disabled) {
	background: #002852;
}

.qb-btn-secondary {
	background: #fff;
	color: #003264;
	border-color: #003264;
	padding: 8px 14px;
	font-size: 13px;
}

.qb-btn-secondary:hover:not(:disabled) {
	background: #f6f7f9;
}

/* ─── Header CTA — "+ Book now" pill ───────────────────── */
.pd-book-now-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #003264;
	color: #fff;
	border: 1px solid #003264;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-right: 8px;
	transition: background 0.15s;
}

.pd-book-now-btn:hover { background: #002852; }

.pd-book-now-btn svg {
	stroke: currentColor;
	stroke-width: 2;
}

/* ─── Responsive — collapse two-up to single column ──── */
@media (max-width: 540px) {
	.qb-modal { width: 100%; border-radius: 0; }
	.qb-row { grid-template-columns: 1fr; }
	.qb-footer { flex-direction: column; align-items: stretch; }
	.qb-footer-link { text-align: center; }
	.qb-footer-actions { justify-content: stretch; }
	.qb-footer-actions .qb-btn { flex: 1 1 0; }
}

/* ============================================================
   Variation property typeahead (add/edit variation modal)
   Suggests existing values used by other variations of the same
   product so users don't accidentally create a new "red" chip
   alongside an existing "Red". Server-side normalization in
   ProductVariationForm::save()/update() coerces casing to match.
   ============================================================ */
.pd-variation-input-wrap {
	position: relative;
}

.pd-variation-suggest {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--pd-line-strong);
	border-radius: var(--pd-radius-sm);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
	max-height: 240px;
	overflow-y: auto;
}

.pd-variation-suggest-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--pd-ink);
	cursor: pointer;
	transition: background 80ms;
}

.pd-variation-suggest-item:hover {
	background: var(--pd-soft-bg);
}

.pd-variation-suggest-hint {
	font-size: 11px;
	color: var(--pd-mute);
	font-style: italic;
}

/* ----- Store Inventory unified stock table -----
   Used in resources/views/store/products/inventoryTable.blade.php for the
   merged Stock card (variation + location sub-rows). Status-pill colors
   chosen to meet WCAG AA (≥4.5:1) at 11px/600. */

.pd-inv-stock-card { margin-bottom: 16px; }
.pd-inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-inv-table thead th { font-size: 11px; font-weight: 500; color: #6E88A2; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 14px; border-bottom: 1px solid #eef0f4; text-align: left; white-space: nowrap; }
.pd-inv-table thead th.t-num { text-align: right; }
.pd-inv-table tbody td { font-size: 13px; padding: 10px 14px; border-bottom: 1px solid #eef0f4; vertical-align: middle; color: #303233; }
.pd-inv-table tbody td.t-num { text-align: right; }
.pd-inv-table tbody td.t-action { width: 1%; white-space: nowrap; }
.pd-inv-table tbody tr:last-child td { border-bottom: none; }
.pd-inv-table tr.is-sub td { background: #fafbfc; padding-top: 7px; padding-bottom: 7px; color: #4b5563; }
.pd-inv-table tr.is-sub td:first-child { padding-left: 36px; }
.pd-inv-loc-cell { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.pd-inv-loc-cell svg { color: #6E88A2; flex: 0 0 auto; }
.pd-inv-var-name { font-weight: 600; }
.pd-inv-var-sku { font-size: 11px; color: #6E88A2; margin-top: 2px; }
.pd-inv-qty-val { font-weight: 600; min-width: 18px; }
.pd-inv-adjust-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid #dfe3e8; background: transparent; border-radius: 6px; color: #6E88A2; cursor: pointer; transition: background 120ms, color 120ms, border-color 120ms; }
.pd-inv-adjust-btn:hover { background: #f7f7f7; color: #1f2937; border-color: #c7ccd2; }
.pd-inv-adjust-glyph { font-size: 13px; font-weight: 600; line-height: 1; }
.inv-status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.inv-status-pill.ok { background: #dcfce7; color: #166534; }
.inv-status-pill.low { background: #fef3c7; color: #854d0e; }
.inv-status-pill.out { background: #fee2e2; color: #991b1b; }
.pd-inv-bc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: transparent; border: 0; color: #303233; cursor: pointer; font-size: 12px; border-radius: 6px; }
.pd-inv-bc-btn:hover { background: #f7f7f7; }
.pd-inv-bc-btn-add { color: #6E88A2; }

/* WCAG SC 2.5.5 (AAA) / SC 2.5.8 (AA) — bump action buttons to 44x44 on
   handheld viewports while keeping the compact 24x24 chrome at desktop. */
@media (max-width: 575px) {
	.pd-inv-adjust-btn { min-width: 44px; min-height: 44px; }
	.pd-inv-bc-btn { min-height: 44px; padding: 8px 12px; }
}
