/* EX Woo Addons — product page.
 * Kept neutral so it inherits the theme's fonts and colours.
 * Override the --exwa-* variables in your theme to restyle.
 */
.exwa-wrap {
	--exwa-border: #dcdcde;
	--exwa-border-strong: #b5b5b8;
	--exwa-bg: #fff;
	--exwa-muted: #6b6b70;
	--exwa-accent: #2a6fdb;
	--exwa-error: #c62828;
	--exwa-radius: 6px;
	margin: 0 0 1.25em;
	width: 100%;
}
.exwa-group + .exwa-group { margin-top: 1.25em; }
.exwa-group-title { margin: 0 0 .75em; font-size: 1.05em; }

.exwa-field { margin: 0 0 1em; }
.exwa-label { display: block; margin: 0 0 .4em; line-height: 1.35; font-weight: 500; }
.exwa-label abbr.required { color: var(--exwa-error); text-decoration: none; border: 0; }
.exwa-price-hint { color: var(--exwa-muted); font-weight: 400; }

/* Label left, field right */
.exwa-layout-inline .exwa-field {
	display: grid;
	grid-template-columns: minmax(110px, 36%) 1fr;
	gap: .75em;
	align-items: center;
}
.exwa-layout-inline .exwa-label { margin: 0; }
.exwa-layout-inline .exwa-type-radio,
.exwa-layout-inline .exwa-type-checkbox,
.exwa-layout-inline .exwa-type-textarea { align-items: start; }
@media (max-width: 480px) {
	.exwa-layout-inline .exwa-field { grid-template-columns: 1fr; gap: .4em; }
}

.exwa-control select,
.exwa-control input[type="text"],
.exwa-control textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: .55em .8em;
	border: 1px solid var(--exwa-border);
	border-radius: var(--exwa-radius);
	background-color: var(--exwa-bg);
	font: inherit;
	color: inherit;
}
.exwa-control textarea { min-height: 90px; resize: vertical; }
.exwa-control .exwa-datepicker { cursor: pointer; }
.exwa-control select:focus,
.exwa-control input:focus,
.exwa-control textarea:focus {
	outline: none;
	border-color: var(--exwa-accent);
	box-shadow: 0 0 0 2px rgba(42, 111, 219, .2);
}

/* Date + time side by side */
.exwa-dt { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6em; }
@media (max-width: 480px) { .exwa-dt { grid-template-columns: 1fr; } }
.exwa-control option:disabled { color: #b0b0b5; }

/* Radio / checkbox choices as one stacked list */
.exwa-choices {
	border: 1px solid var(--exwa-border);
	border-radius: var(--exwa-radius);
	overflow: hidden;
	background: var(--exwa-bg);
}
.exwa-choice {
	display: flex;
	align-items: center;
	gap: .8em;
	padding: .95em 1.1em;
	margin: 0;
	cursor: pointer;
	line-height: 1.3;
}
.exwa-choice + .exwa-choice { border-top: 1px solid var(--exwa-border); }
.exwa-choice:hover { background: #fafafa; }
.exwa-choice input {
	width: 1.15em;
	height: 1.15em;
	margin: 0;
	flex: none;
	accent-color: var(--exwa-accent);
}
.exwa-choice:has(input:checked) { background: #f5f8fe; }
.exwa-choice-text { flex: 1; }
.exwa-choice-price { color: var(--exwa-muted); white-space: nowrap; font-size: .95em; }

.exwa-desc { display: block; margin-top: .35em; color: var(--exwa-muted); font-size: .88em; }
.exwa-error { display: block; color: var(--exwa-error); font-size: .88em; margin-top: .3em; }
.exwa-error:empty { display: none; }
.exwa-has-error select,
.exwa-has-error input[type="text"],
.exwa-has-error textarea,
.exwa-has-error .exwa-choices { border-color: var(--exwa-error); }

/* Live price summary */
.exwa-totals {
	margin-top: 1em;
	padding: .8em 1em;
	border: 1px dashed var(--exwa-border-strong);
	border-radius: var(--exwa-radius);
	font-size: .95em;
}
.exwa-totals[hidden] { display: none; }
.exwa-totals-row { display: flex; justify-content: space-between; gap: 1em; padding: .15em 0; }
.exwa-totals-row span:first-child { color: var(--exwa-muted); }
.exwa-totals-final { margin-top: .35em; padding-top: .5em; border-top: 1px solid var(--exwa-border); font-weight: 600; }
.exwa-totals-final span:first-child { color: inherit; }

/* Datepicker (jQuery UI ships without CSS on the front end) */
.exwa-dp.ui-datepicker {
	width: 18em;
	padding: .6em;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	z-index: 9999 !important;
	font-size: 14px;
	color: #1d2327;
}
.exwa-dp .ui-datepicker-header { position: relative; padding: .3em 0 .6em; text-align: center; }
.exwa-dp .ui-datepicker-title { font-weight: 600; line-height: 2em; }
.exwa-dp .ui-datepicker-prev,
.exwa-dp .ui-datepicker-next {
	position: absolute; top: .3em; width: 2em; height: 2em; line-height: 2em;
	cursor: pointer; border-radius: 4px; text-align: center; text-decoration: none; color: inherit;
}
.exwa-dp .ui-datepicker-prev { left: 0; }
.exwa-dp .ui-datepicker-next { right: 0; }
.exwa-dp .ui-datepicker-prev span,
.exwa-dp .ui-datepicker-next span { display: none; }
.exwa-dp .ui-datepicker-prev::before { content: "\2039"; font-size: 1.4em; }
.exwa-dp .ui-datepicker-next::before { content: "\203A"; font-size: 1.4em; }
.exwa-dp .ui-datepicker-prev:hover,
.exwa-dp .ui-datepicker-next:hover { background: #f0f0f1; }
.exwa-dp .ui-state-disabled.ui-datepicker-prev,
.exwa-dp .ui-state-disabled.ui-datepicker-next { opacity: .3; cursor: default; }
.exwa-dp table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.exwa-dp th { padding: .3em 0; font-weight: 500; font-size: .85em; color: #6b6b70; text-align: center; border: 0; background: none; }
.exwa-dp td { padding: 1px; text-align: center; border: 0; background: none; }
.exwa-dp td a,
.exwa-dp td span { display: block; padding: .45em 0; border-radius: 4px; text-decoration: none; color: inherit; }
.exwa-dp td a:hover { background: #f0f0f1; }
.exwa-dp .ui-datepicker-today a { box-shadow: inset 0 0 0 1px #2a6fdb; }
.exwa-dp .ui-state-active { background: #2a6fdb !important; color: #fff !important; }
.exwa-dp .ui-datepicker-unselectable span { color: #c3c4c7; }
.exwa-dp .ui-datepicker-other-month a { color: #a0a0a5; }
