.booking-services-wrapper,
.booking-services-dashboard-wrapper {
	font-family: 'Philosopher', 'Helvetica Neue', Arial, sans-serif;
	color: #333;
	border: 1px solid #dfe4ea;
	border-radius: 12px;
	padding: 24px;
	background: #fff;
	box-shadow: 0 15px 40px rgba(16, 37, 35, 0.08);
	margin-bottom: 40px;
}

.booking-services-progress {
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	gap: 8px;
}

.booking-services-progress li {
	flex: 1;
	text-align: center;
	padding: 12px 8px;
	background: #ececec;
	border-radius: 24px;
	font-weight: 600;
	color: #808080;
}

.booking-services-progress li.active,
.booking-services-progress li.completed {
	background: #2b403d;
	color: #fff;
}

.booking-services-step {
	display: none;
}

.booking-services-step.active {
	display: block;
}

.booking-services-field-group {
	margin-bottom: 16px;
}

.booking-services-field-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.booking-services-field-group input,
.booking-services-field-group select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #cfd8dc;
	font-size: 15px;
}

.booking-services-availability-item input[type="date"],
.booking-services-availability-item select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #cfd8dc;
	font-size: 14px;
	background: #fff;
}

.booking-services-inline {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.booking-services-inline > .booking-services-field-group {
	flex: 1 1 calc(50% - 8px);
	min-width: 0;
}

.booking-services-availability-row {
	display: flex;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.booking-services-availability-item {
	flex: 0 0 auto;
}

.booking-services-availability-item:first-child {
	flex: 0 0 300px;
	min-width: 300px;
}

.booking-services-availability-item:nth-child(3),
.booking-services-availability-item:nth-child(4) {
	flex: 0 0 140px;
	min-width: 120px;
}

.booking-services-availability-item label {
	color: #2b403d;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

.booking-services-weekdays-wrapper {
	flex: 1;
	min-width: 300px;
	display: flex;
	flex-direction: column;
}

.booking-services-weekdays {
	display: flex;
	gap: 14px;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
}

.booking-services-weekday-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	margin: 0;
	position: relative;
	flex-shrink: 0;
}

.booking-services-weekday-btn input[type="checkbox"] {
	display: none;
}

.booking-services-weekday-label {
	display: block;
	color: #2b403d;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	position: relative;
	line-height: 1.2;
	text-align: center;
	padding-top: 27px;
}

.booking-services-weekday-label::before {
	content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #2b403d;
    background: #fff;
    transition: all 0.2s 
ease;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.booking-services-weekday-btn input[type="checkbox"]:checked + .booking-services-weekday-label::before {
	background: #2b403d;
	border-color: #2b403d;
}

.booking-services-weekday-btn input[type="checkbox"]:checked + .booking-services-weekday-label::after {
    content: '✓';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 22px;
    pointer-events: none;
    z-index: 1;
    width: 36px;
    text-align: center;
}

.booking-services-actions {
	margin-top: 24px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.booking-services-btn {
	background: #2b403d;
	color: #fff;
	border: none;
	padding: 12px 32px;
	font-size: 16px;
	border-radius: 8px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: opacity 0.2s ease;
}

.booking-services-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.booking-services-btn:hover:not([disabled]) {
	opacity: 0.85;
}

.booking-services-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.booking-services-time-grid .booking-services-slot-column {
	border-radius: 10px;
	overflow: hidden;
	background: #f7f9fb;
	border: 1px solid #dfe4ea;
}

.booking-services-slot-column h4 {
	margin: 0;
	color: #fff;
	background: #2b403d;
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.booking-services-slot {
	display: flex;
	align-items: center;
	padding: 4px 8px;
	margin: 0;
}

.booking-services-slot input[type="radio"] {
	accent-color: #2b403d;
	margin-right: 8px;
}

.booking-services-slot-pill {
	display: block;
	width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #dfe4ea;
	background: #fff;
	font-size: 14px;
	transition: all 0.15s ease;
}

.booking-services-slot:not(.unavailable):hover .booking-services-slot-pill {
	border-color: #2b403d;
	box-shadow: 0 0 0 1px rgba(43, 64, 61, 0.3);
}

.booking-services-slot input[type="radio"]:checked + .booking-services-slot-pill {
	border-color: #2b403d;
	box-shadow: 0 0 0 1px rgba(43, 64, 61, 0.4);
}

.booking-services-slot-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 11px;
	text-transform: uppercase;
	background: #f0f0f0;
	color: #777;
}

.booking-services-slot.unavailable {
	opacity: 0.4;
	pointer-events: none;
}

.booking-services-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	margin-bottom: 12px;
}

.booking-services-packages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.booking-services-package-card {
	border: 2px solid #dfe4ea;
	border-radius: 12px;
	padding: 20px;
	display: block;
	cursor: pointer;
	background: #fff;
	transition: all 0.3s ease;
	position: relative;
}

.booking-services-package-card:hover {
	border-color: #2b403d;
	box-shadow: 0 4px 12px rgba(43, 64, 61, 0.1);
	transform: translateY(-2px);
}

.booking-services-package-card input {
	display: none;
}

.booking-services-package-card .booking-services-package-body {
	position: relative;
	padding-left: 0;
}

.booking-services-package-card .booking-services-package-body h4 {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
}

.booking-services-package-card .booking-services-package-body strong {
	display: block;
	margin: 0 0 12px 0;
	font-size: 24px;
	font-weight: 700;
	color: #2b403d;
}

.booking-services-package-card .booking-services-package-body p {
	margin: 0 0 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.booking-services-package-card .booking-services-pill {
	position: absolute;
	top: -33px;
    right: 11px;
	background: #f0f0f0;
	color: #666;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.booking-services-package-card.selected {
	border-color: #2b403d;
	background: #f7f9fb;
	box-shadow: 0 0 0 3px rgba(43, 64, 61, 0.1);
}

.booking-services-package-card.selected .booking-services-pill {
	background: #2b403d;
	color: #fff;
}

.booking-services-package-card.selected:hover {
	border-color: #2b403d;
	transform: translateY(-2px);
}

.booking-services-summary {
	background: #f7f9fb;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
}

.booking-services-card-element {
	padding: 16px;
	border: 1px solid #cfd8dc;
	border-radius: 8px;
	background: #fff;
}

.booking-services-card-errors {
	color: #c62828;
	margin-top: 8px;
	font-weight: 600;
	min-height: 20px;
}

.booking-services-alert {
	margin-top: 16px;
	background: #ffe9e9;
	border: 1px solid #ff6b6b;
	color: #c0392b;
	padding: 12px 16px;
	border-radius: 8px;
}

/* Dashboard */
.booking-services-table {
	width: 100%;
	border-collapse: collapse;
}

.booking-services-table th,
.booking-services-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e0e0e0;
}

.booking-services-pending-card {
	border: 1px dotted #2b403d;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
}

.booking-services-pending-card.scheduled {
	opacity: 0.6;
	pointer-events: none;
}

.booking-services-package-summary {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.booking-services-package-summary-card {
	border: 1px solid #dfe4ea;
	border-radius: 12px;
	padding: 16px;
	min-width: 220px;
}

.booking-services-package-preview {
	margin-top: 12px;
	padding: 16px;
	border: 1px solid #dfe4ea;
	border-radius: 10px;
	background: #f7f9fb;
	color: #2b403d;
}

.booking-services-package-preview h4 {
	margin: 0 0 8px;
}

.booking-services-package-preview ul {
	margin: 0;
	padding-left: 18px;
}

@media (max-width: 768px) {
	.booking-services-availability-row {
		flex-direction: column;
		align-items: stretch;
	}

	.booking-services-availability-item {
		width: 100%;
		flex: 1 1 100% !important;
	}

	.booking-services-weekdays-wrapper {
		min-width: 100%;
	}

	.booking-services-weekdays {
		flex-wrap: wrap;
		justify-content: center;
	}

	.booking-services-packages {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.booking-services-package-card {
		padding: 16px;
	}

	.booking-services-package-card .booking-services-package-body h4 {
		font-size: 16px;
	}

	.booking-services-package-card .booking-services-package-body strong {
		font-size: 22px;
	}
}

.booking-services-availability-item.booking-services-weekdays-wrapper {
    position: relative;
    top: 10px;
}
.booking-services-tabs a[aria-selected="true"] {
    background: #2b403d;
    border-color: #2b403d;
    color: #fff;
}


.booking-services-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

ul.booking-services-invoice-list a {
    background: #2b403d;
}


[name="booking_services_cancel_subscription"] {
    background: #2b403d;
    border-color: #2b403d !important;
}

.booking-services-invoice-list button {
    background: #2b403d;
    border: unset;
}

.booking-services-invoice-list button:hover {
    background: #2b403d;
}

.booking-services-table a{
     background: #2b403d;
    border: unset;
}

.booking-services-table a:hover{
    color:#fff;
}
/* -------------------------------------------------------------------------
 * Package groups, tabs, badges and feature lists
 * ---------------------------------------------------------------------- */

.booking-services-group-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px 0;
	padding: 0;
	border-bottom: 1px solid #e3e8ea;
	padding-bottom: 14px;
}

.booking-services-group-tab {
	appearance: none;
	border: 1px solid #dfe4ea;
	background: #fff;
	color: #4a5b58;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: all 0.2s ease;
}

.booking-services-group-tab:hover {
	border-color: #2b403d;
	color: #2b403d;
}

.booking-services-group-tab.active {
	background: #2b403d;
	border-color: #2b403d;
	color: #fff;
}

.booking-services-group-tab[hidden] {
	display: none !important;
}

.booking-services-package-group {
	margin-bottom: 32px;
}

.booking-services-package-group[hidden] {
	display: none !important;
}

.booking-services-package-group-head {
	margin-bottom: 16px;
}

.booking-services-package-group-head h4 {
	margin: 0 0 4px 0;
	font-size: 17px;
	font-weight: 700;
	color: #2b403d;
	letter-spacing: 0.2px;
}

.booking-services-package-group-head p {
	margin: 0;
	font-size: 13px;
	color: #78888a;
	line-height: 1.5;
}

.booking-services-package-card[hidden] {
	display: none !important;
}

.booking-services-package-card .booking-services-package-badge {
	position: absolute;
	top: -12px;
	right: 16px;
	background: #c9a227;
	color: #fff;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	white-space: nowrap;
	z-index: 2;
}

.booking-services-package-card .booking-services-package-price {
	margin: 0 0 12px 0;
}

.booking-services-package-card .booking-services-package-price strong {
	margin: 0;
	line-height: 1.1;
}

.booking-services-package-card .booking-services-price-note {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 500;
	color: #78888a;
	text-transform: none;
	letter-spacing: 0;
}

.booking-services-package-features {
	list-style: none;
	margin: 12px 0 0 0;
	padding: 0;
}

.booking-services-package-features li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.booking-services-package-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2b403d;
	opacity: 0.45;
}

/* Override the legacy absolutely-positioned pill inside the new meta row. */
.booking-services-package-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #eef1f2;
}

.booking-services-package-card .booking-services-package-meta-row .booking-services-pill {
	position: static;
	top: auto;
	right: auto;
	background: #f0f2f2;
	color: #55625f;
	text-transform: none;
	letter-spacing: 0.2px;
	font-size: 11px;
	padding: 5px 12px;
}

.booking-services-package-card.selected .booking-services-package-meta-row .booking-services-pill {
	background: #2b403d;
	color: #fff;
}

.booking-services-package-card.selected .booking-services-package-meta-row .booking-services-pill-alt {
	background: rgba(43, 64, 61, 0.12);
	color: #2b403d;
}

.booking-services-empty-packages {
	margin: 0 0 24px 0;
	padding: 18px 20px;
	border: 1px dashed #dfe4ea;
	border-radius: 12px;
	background: #fafbfb;
	color: #78888a;
	font-size: 14px;
}

.booking-services-package-preview ul {
	list-style: none;
	margin: 10px 0 0 0;
	padding: 0;
}

.booking-services-package-preview ul li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 5px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.booking-services-package-preview ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2b403d;
	opacity: 0.45;
}

.booking-services-package-preview small {
	color: #78888a;
	font-size: 12px;
}

/* -------------------------------------------------------------------------
 * Standalone package listing ([booking_services_packages])
 * ---------------------------------------------------------------------- */

.booking-services-packages-wrapper .booking-services-package-card {
	display: flex;
	flex-direction: column;
	cursor: default;
}

.booking-services-packages-wrapper .booking-services-package-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/*
 * Descriptions and feature lists differ in length, so the meta row is pushed to
 * the bottom of the card. Every card then ends with pills + button on the same
 * baseline across the row.
 */
.booking-services-packages-wrapper .booking-services-package-meta-row {
	margin-top: auto;
}

/* Cards without a meta row still need their button pinned to the bottom. */
.booking-services-packages-wrapper .booking-services-package-body:not(:has(.booking-services-package-meta-row)) > .booking-services-package-select {
	margin-top: auto;
}

.booking-services-package-select {
	display: inline-block;
	margin-top: 16px;
	align-self: flex-start;
	padding: 11px 26px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
}

.booking-services-package-select:hover,
.booking-services-package-select:focus {
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
}

.booking-services-package-select-missing {
	margin-top: 16px;
	font-size: 12px;
	color: #c62828;
}

@media (max-width: 782px) {
	.booking-services-group-tabs {
		gap: 6px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.booking-services-group-tab {
		flex: 0 0 auto;
		padding: 7px 13px;
		font-size: 12px;
	}

	.booking-services-package-card .booking-services-package-badge {
		right: 12px;
		font-size: 9px;
		padding: 3px 10px;
	}
}
