/* Plain CSS (not Tailwind-dependent) for the radio "pill/checkmark" control
 * used by radio-type fields, so this keeps working regardless of whether
 * the theme's Tailwind build scans this plugin's PHP for class names.
 *
 * The radio input is hidden by covering it exactly over its own label's
 * clickable area (opacity:0 + inset:0), rather than shrinking it to 1px
 * and clipping it away from its natural position - that older "sr-only"
 * technique can trigger some browsers to auto-scroll the page toward the
 * (invisible but still focusable) 1px element whenever it's checked. Since
 * this version never leaves the area the customer is already looking at,
 * there's nothing off-screen for the browser to try to reveal. */

.llco-options label {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.llco-options input[type="radio"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	border: 0;
}

.llco-options input[type="radio"] + span {
	transition: border-color 0.15s ease, color 0.15s ease;
}

.llco-options input[type="radio"]:checked + span {
	border-color: #fbbf24; /* amber-400, matching the site's existing accent colour */
	color: #fbbf24;
}

/* ==========================================================================
   Number field prefix/suffix adornments (e.g. "£" before, "cm" after) -
   the ADORNMENT itself is just a positioned <span>, not a literal CSS
   ::before/::after pseudo-element (that distinction matters for maintaining
   this file - "before/after" here refers to prefix/suffix placement, not
   the CSS feature of the same name).
   ========================================================================== */

/* .llco-number-field {
	position: relative;
}

.llco-number-field input {
	margin-top: 0.5rem;
	min-height: 2.5rem;
	min-width: 0;
	padding: 10px 15px;
	font-size: 11px;
	line-height: 14px;
	letter-spacing: 1.32px;
} */
 .llco-number-field {
	position: relative;
	margin-top: 0.5rem; /* moved here from the input below */
}

.llco-number-field input {
	min-height: 2.5rem;
	min-width: 0;
	padding: 10px 15px;
	font-size: 11px;
	line-height: 14px;
	letter-spacing: 1.32px;
}

.llco-number-field--has-prefix input {
	padding-left: 40px;
}

.llco-number-field--has-suffix input {
	padding-right: 40px;
}

.llco-number-field__adornment {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #1f2937;
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	letter-spacing: 0;
	white-space: nowrap;
	pointer-events: none;
}

.llco-number-field__adornment--prefix {
	left: 15px;
}

.llco-number-field__adornment--suffix {
	right: 15px;
}

/* ==========================================================================
   Validation: highlighted fields + inline tooltip messages
   ========================================================================== */

.llco-options .llco-input-error {
	border-color: #dc2626 !important;
	outline: 1px solid #dc2626;
}

.llco-error-tooltip {
	display: block;
	position: absolute;
	left: 0;
	top: 100%;
	margin-top: 4px;
	background: #dc2626;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	z-index: 5;
}

.llco-error-tooltip::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 12px;
	border: 5px solid transparent;
	border-bottom-color: #dc2626;
}

/* ==========================================================================
   Add to basket disabled state + inline form message
   ========================================================================== */

.single_add_to_cart_button.llco-btn-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.llco-form-message {
	color: #dc2626;
	font-weight: 600;
	font-size: 14px;
	margin-top: 8px;
}

/* ==========================================================================
   Reveal the native WooCommerce quantity input - now that price scales
   with quantity, customers need to be able to change it. Overrides the
   theme's own [&_.quantity]:hidden utility with !important, so no theme
   template edit is required.
   ========================================================================== */

form.cart .quantity {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

[data-product-type="fabrics-customise"] form.cart .quantity {
	display: none !important;
}
/* ==========================================================================
   Product specs under the title (e.g. tieback Cord Diameter / Embrace /
   Drop from the Knot) - see class-llco-tieback-specs.php.
   ========================================================================== */

.llco-product-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0 0 16px;
	font-size: 14px;
	letter-spacing: 0.05em;
}

.llco-product-specs > div {
	display: flex;
	gap: 6px;
}

.llco-product-specs dt {
	font-weight: 700;
}

.llco-product-specs dd {
	margin: 0;
}
