/* =========================================================
   WC Slot Decor Addons - Frontend (Premium UI)
   ========================================================= */

.wcsda-wrapper {
	margin: 18px 0 22px;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 20px 22px;
	background: #fff;
	box-shadow: 0 2px 16px rgba(20, 20, 20, 0.05);
}

.wcsda-wrapper.wcsda-flex-order {
	display: flex;
	flex-direction: column;
}

.wcsda-field {
	margin-bottom: 20px;
}

.wcsda-field:last-child {
	margin-bottom: 0;
}

.wcsda-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #222;
}

/* Label + "Clear" sit on the same row for single-select groups. */
.wcsda-field-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 9px;
}

.wcsda-field-heading label {
	margin-bottom: 0;
}

.wcsda-clear-group {
	background: none;
	border: none;
	padding: 2px 0;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #f55483;
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.wcsda-clear-group.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.wcsda-clear-group:hover {
	color: #c73862;
}

#wcsda_booking_date {
	max-width: 260px;
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#wcsda_booking_date:hover {
	border-color: #cfcfcf;
}

#wcsda_booking_date:focus {
	outline: none;
	border-color: #f55483;
	box-shadow: 0 0 0 3px rgba(245, 84, 131, 0.15);
}

.wcsda-package-heading {
	font-size: 16px;
	margin: 0 0 12px;
	border-bottom: 1px solid #eee;
	padding-bottom: 8px;
	font-weight: 700;
}

.wcsda-subfield {
	margin-bottom: 18px;
}

.wcsda-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}

/*
 * The chip itself IS the whole selectable option - the native radio/checkbox
 * stays functionally present (for form submission + accessibility/keyboard
 * use) but is visually hidden; the entire pill highlights on selection
 * instead of showing a separate small circle/box.
 */
.wcsda-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1.5px solid #e4e4e4;
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 13.5px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	margin-bottom: 0 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
	user-select: none;
}

.wcsda-option input[type="radio"],
.wcsda-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.wcsda-option:hover {
	border-color: #f5a8bc;
	background: #fff8fa;
}

.wcsda-option:active {
	transform: scale(0.98);
}

.wcsda-option.is-selected,
.wcsda-option:has(input:checked) {
	background: linear-gradient(135deg, #f55483, #ff7aa0);
	border-color: #f55483;
	color: #fff;
	box-shadow: 0 3px 10px rgba(245, 84, 131, 0.28);
}

.wcsda-option.is-selected .wcsda-charge,
.wcsda-option:has(input:checked) .wcsda-charge {
	color: #fff;
}

.wcsda-option.is-selected .wcsda-hint,
.wcsda-option:has(input:checked) .wcsda-hint,
.wcsda-option.is-selected .wcsda-free-tag,
.wcsda-option:has(input:checked) .wcsda-free-tag {
	color: rgba(255, 255, 255, 0.9);
}

.wcsda-option.is-selected .wcsda-swatch-color,
.wcsda-option:has(input:checked) .wcsda-swatch-color {
	box-shadow: 0 0 0 1px #fff;
}

/* Small checkmark that appears only on the selected chip. */
.wcsda-option.is-selected::after,
.wcsda-option:has(input:checked)::after {
	content: "\2713";
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	margin-left: 1px;
}

.wcsda-charge {
	color: #f55483;
	font-weight: 600;
}

.wcsda-hint {
	font-weight: 400;
	color: #777;
	font-size: 12px;
}

.wcsda-total-wrap {
	background: linear-gradient(135deg, #fff3f6, #ffffff);
	border: 1px solid #f9c9d6;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
}

#wcsda_total_amount {
	color: #f55483;
	font-weight: 800;
	font-size: 17px;
}

.wcsda-no-slots-msg {
	color: #a00;
	font-size: 13px;
	margin: 6px 0 0;
}

.wcsda-group-thumb {
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}

.wcsda-group-thumb img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	vertical-align: middle;
	/* Size/border/padding/shadow overridden by the "Image Style" settings (inline style, loads after this file). */
}

.wcsda-free-tag {
	color: #2a9d5c;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
}

/* =========================================================
   Action buttons - Add to Cart / Buy Now / WhatsApp / Enquiry
   Colours, sizes, icons, hover states, and per-device sizing
   for all four come from the "Button Design Studio" (dynamic
   inline <style>, printed after this file so it always wins).
   What's here is just shared structural/base styling.
   ========================================================= */

.single_add_to_cart_button,
#wcsda_buynow_btn,
#wcsda_whatsapp_btn,
#wcsda_enquiry_btn,
.wcsda-enquiry-submit-btn {
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}

#wcsda_buynow_btn {
	width: 100%;
	background: #111827;
	color: #fff;
	border: none;
	display: block;
}

.wcsda-btn-icon {
	flex-shrink: 0;
}

.wcsda-action-buttons {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	width: 100%;
}

.wcsda-action-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.wcsda-action-btn:hover {
	opacity: 0.92;
	color: #fff;
}

.wcsda-action-btn svg {
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.wcsda-action-buttons {
		flex-direction: column;
	}
}

/* --- Enquiry Modal --- */
.wcsda-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wcsda-modal-box {
	background: #fff;
	border-radius: 12px;
	padding: 26px;
	max-width: 380px;
	width: 100%;
	position: relative;
	box-shadow: 0 12px 44px rgba(0, 0, 0, 0.28);
}

.wcsda-modal-box h3 {
	margin: 0 0 16px;
}

.wcsda-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #777;
}

#wcsda_enquiry_form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#wcsda_enquiry_form input[type="text"],
#wcsda_enquiry_form input[type="tel"],
#wcsda_enquiry_form input[type="email"],
#wcsda_enquiry_form textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 0;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
}

#wcsda_enquiry_form textarea {
	resize: vertical;
	min-height: 70px;
}

.wcsda-enquiry-error {
	color: #a00;
	font-size: 13px;
	margin-bottom: 8px;
}

.wcsda-enquiry-success {
	color: #2a9d5c;
	font-weight: 600;
	text-align: center;
}

.wcsda-enquiry-submit-btn {
	width: 100%;
}

.wcsda-swatch-color {
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #ccc;
	vertical-align: middle;
	margin-right: 2px;
}

.wcsda-swatch-image {
	display: inline-block;
	vertical-align: middle;
	margin-right: 2px;
}

.wcsda-swatch-image img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 6px;
	vertical-align: middle;
}

.wcsda-hidden {
	display: none !important;
}

.wcsda-required-mark {
	color: #e0335c;
	font-weight: 700;
}

.wcsda-option-unavailable {
	display: none !important;
}

.wcsda-option-disabled {
	opacity: 0.5;
	background: #f2f2f2 !important;
	cursor: not-allowed;
	position: relative;
}

.wcsda-sold-out-badge {
	color: #a00;
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	margin-left: 4px;
}

.wcsda-blackout-notice {
	display: block;
	margin-top: 6px;
	color: #a00;
	font-size: 13px;
}

.ui-datepicker .wcsda-blackout-day a {
	background: #f8d7da !important;
	color: #a00 !important;
	text-decoration: line-through;
}
