/* ── Basket bar ──────────────────────────────────────────────────────── */
#shar-basket-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1a1a1a;
	color: #fff;
	padding: 0.85rem 1.25rem;
	z-index: 9999;
	display: none;
	flex-direction: column;
	gap: 0.5rem;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
#shar-basket-bar.is-visible { display: flex; }

@media (min-width: 640px) {
	#shar-basket-bar {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}
	#shar-basket-book { margin-left: auto; flex-shrink: 0; }
}

#shar-basket-summary {
	font-size: 0.9rem;
	font-weight: 600;
	display: flex;
	gap: 0.4rem;
	align-items: center;
}
#shar-basket-total { color: #aaa; font-weight: 400; }

#shar-basket-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	flex: 1;
}
.shar-chip {
	background: rgba(255,255,255,0.12);
	border-radius: 999px;
	padding: 0.2rem 0.6rem 0.2rem 0.8rem;
	font-size: 0.78rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}
.shar-chip button {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	opacity: 0.7;
}
.shar-chip button:hover { opacity: 1; }

/* Book Now button state when added */
[data-shar-book].is-added {
	opacity: 0.7;
	background: #555 !important;
}

/* ── Modal overlay ───────────────────────────────────────────────────── */
#shar-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}
#shar-modal-overlay.is-open {
	display: flex;
}

@media (min-width: 600px) {
	#shar-modal-overlay {
		align-items: center;
		padding: 1.5rem;
	}
}

/* ── Modal panel ─────────────────────────────────────────────────────── */
#shar-modal {
	background: #fff;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 16px 16px 0 0;
	padding: 3rem 1.75rem 2.5rem;
	position: relative;
	animation: shar-slide-up 0.28s ease;
}
@media (min-width: 600px) {
	#shar-modal {
		border-radius: 12px;
		animation: shar-fade-in 0.2s ease;
	}
}

@keyframes shar-slide-up {
	from { transform: translateY(60px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}
@keyframes shar-fade-in {
	from { opacity: 0; transform: scale(0.97); }
	to   { opacity: 1; transform: scale(1); }
}

/* ── Close button ────────────────────────────────────────────────────── */
#shar-modal-close {
	position: absolute;
	top: 0.3rem;
	right: 0.6rem;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #fff0f0;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c00;
}
#shar-modal-close:hover { background: #ffd9d9; color: #900; }
#shar-modal-close .shar-close-x {
	position: relative;
	top: -1px;
}

/* ── Step dots ───────────────────────────────────────────────────────── */
.shar-steps-nav {
	display: flex;
	align-items: center;
	gap: 0;
	margin-bottom: 1.75rem;
}
.shar-step-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e8e8e8;
	color: #999;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}
.shar-step-dot.active {
	background: #1a1a1a;
	color: #fff;
}
.shar-step-line {
	flex: 1;
	height: 2px;
	background: #e8e8e8;
	margin: 0 4px;
}

/* ── Modal typography ────────────────────────────────────────────────── */
.shar-modal-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
}
.shar-modal-service-name {
	color: #666;
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
}
.shar-label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.35rem;
}
.shar-hint {
	color: #888;
	font-size: 0.85rem;
	font-style: italic;
	margin: 0.5rem 0;
}

/* ── Date input ──────────────────────────────────────────────────────── */
.shar-input[type="date"],
.shar-input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: none;
	border-bottom: 2px solid #e0e0e0;
	border-radius: 0;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
	background: transparent;
	transition: border-color 0.15s;
}
.shar-input:focus {
	outline: none;
	border-bottom-color: #1a1a1a;
}

/* ── Time slots ──────────────────────────────────────────────────────── */
#shar-slots-wrap { margin-top: 1.25rem; }
.shar-slots-label {
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.6rem;
}
#shar-slots-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}
.shar-slot-btn {
	padding: 0.45rem 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9rem;
	font-family: inherit;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.shar-slot-btn:hover { border-color: #1a1a1a; }
.shar-slot-btn.selected {
	border-color: #1a1a1a;
	background: #1a1a1a;
	color: #fff;
}

/* ── Summary pill ────────────────────────────────────────────────────── */
.shar-summary-pill {
	background: #f5f5f5;
	border-radius: 6px;
	padding: 0.65rem 1rem;
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	margin-bottom: 1.25rem;
}
.shar-dot { color: #bbb; }

/* ── Form ────────────────────────────────────────────────────────────── */
.shar-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}
@media (max-width: 420px) {
	.shar-form-row { grid-template-columns: 1fr; }
}
.shar-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.85rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.shar-modal-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.shar-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1.5rem;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.2s, opacity 0.2s;
	text-decoration: none;
}
.shar-btn-primary {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}
.shar-btn-primary:hover { opacity: 0.85; }
.shar-btn-primary:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; }
.shar-btn-ghost {
	background: transparent;
	color: #555;
	border-color: #ccc;
}
.shar-btn-ghost:hover { border-color: #1a1a1a; color: #1a1a1a; }

/* ── Modal service chips ─────────────────────────────────────────────── */
.shar-services-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}
.shar-modal-chip {
	background: #f0f0f0;
	border-radius: 999px;
	padding: 0.25rem 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
}

/* ── Error message ───────────────────────────────────────────────────── */
.shar-error-msg {
	background: #fff3f3;
	border: 1px solid #f5c6c6;
	color: #c00;
	border-radius: 6px;
	padding: 0.65rem 0.9rem;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

/* ── Square card container ───────────────────────────────────────────── */
#shar-card-container {
	min-height: 90px;
	margin-top: 1rem;
}

/* ── Success state ───────────────────────────────────────────────────── */
.shar-success {
	text-align: center;
	padding: 2rem 1rem;
}
.shar-success-icon {
	width: 56px;
	height: 56px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 50%;
	font-size: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}
.shar-success h2 { margin: 0 0 0.5rem; }
.shar-success p  { color: #555; margin: 0; }

/* ── Processing spinner ──────────────────────────────────────────────── */
.shar-processing {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 3rem 1rem;
	color: #555;
}
.shar-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e0e0e0;
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: shar-spin 0.8s linear infinite;
}
@keyframes shar-spin {
	to { transform: rotate(360deg); }
}
