/**
 * WC Product Add-ons Base — frontend styles
 * Palette matched to the store theme (brick-red price + amber CTA).
 * Override any of these variables in your theme to re-skin instantly.
 *
 * The add-ons card renders as a standalone block ABOVE the add-to-cart form,
 * so it never interferes with the theme's quantity/button layout.
 */
.wcpa-addons,
.wcpa-shortcode-product {
	--wcpa-accent:        #c1272d; /* price / red highlight */
	--wcpa-accent-dark:   #a01f24;
	--wcpa-button-bg:     #f5b301; /* amber "Add To Cart"   */
	--wcpa-button-bg-hov: #e0a200;
	--wcpa-button-text:   #1a1a1a;
	--wcpa-heading:       #1a1a1a;
	--wcpa-muted:         #8c8c8c;
	--wcpa-field-bg:      #f1f1f1;
	--wcpa-border:        #e4e4e4;
	--wcpa-radius:        8px;
}

/* ------------------------------------------------------------------ *
 * Add-ons block
 * ------------------------------------------------------------------ */
.wcpa-addons {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 1.25em 0;
	padding: 1.1em 1.25em;
	border: 1px solid var(--wcpa-border);
	border-radius: var(--wcpa-radius);
	background: #fff;
	clear: both;
}

.wcpa-addons-title {
	margin: 0 0 .85em;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wcpa-heading);
	letter-spacing: .01em;
}

.wcpa-addons-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcpa-addon-option {
	margin: 0;
	border-bottom: 1px solid #f2f2f2;
}
.wcpa-addon-option:last-child {
	border-bottom: 0;
}

.wcpa-addon-option label {
	display: flex;
	align-items: center;
	gap: .65em;
	padding: .6em .25em;
	cursor: pointer;
	border-radius: 6px;
	transition: background .15s ease;
}
.wcpa-addon-option label:hover {
	background: var(--wcpa-field-bg);
}

/* Checkbox tinted to the price colour (selecting = price goes up) */
.wcpa-addon-option input[type="checkbox"] {
	width: 1.05em;
	height: 1.05em;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--wcpa-accent);
	cursor: pointer;
}

.wcpa-addon-name {
	flex: 1 1 auto;
	color: var(--wcpa-heading);
}

.wcpa-addon-price {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
	color: var(--wcpa-accent);
}

/* Total row */
.wcpa-total-wrap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: 1px dashed var(--wcpa-border);
}
.wcpa-total-label {
	font-weight: 600;
	color: var(--wcpa-heading);
	text-transform: uppercase;
	font-size: .82rem;
	letter-spacing: .04em;
}
.wcpa-total-price {
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wcpa-accent);
}
.wcpa-total-price .amount { color: inherit; }

/* ------------------------------------------------------------------ *
 * Shortcode wrapper
 * ------------------------------------------------------------------ */
.wcpa-shortcode-product {
	max-width: 520px;
	padding: 15px;
	border: 1px solid var(--wcpa-border);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 20px !important;
}

.wcpa-addons-list .wcpa-addon-option{
	font-size: 16px !important;
}

.wcpa-sc-title {
	margin: 0 0 .35em;
	font-weight: 700;
	color: var(--wcpa-heading);
}

.wcpa-sc-price {
	margin-bottom: 1em;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wcpa-accent);
}
.wcpa-sc-price del { color: var(--wcpa-muted); font-weight: 400; }
.wcpa-sc-price ins { text-decoration: none; }

.wcpa-shortcode-product .wcpa-addons {
	border: 0;
	padding: 0;
	margin: 0em;
}

/* Amber CTA — mirrors the theme "Add To Cart" button */
.wcpa-sc-form .wcpa-sc-add,
.wcpa-shortcode-product button.wcpa-sc-add {
	display: inline-block;
	width: 100%;
	padding: .85em 1.4em;
	border: 0;
	border-radius: 6px;
	background: var(--wcpa-button-bg);
	color: var(--wcpa-button-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}
.wcpa-sc-form .wcpa-sc-add:hover,
.wcpa-shortcode-product button.wcpa-sc-add:hover {
	background: var(--wcpa-button-bg-hov);
	color: var(--wcpa-button-text);
}
.wcpa-sc-form .wcpa-sc-add:active {
	transform: translateY(1px);
}

/* ------------------------------------------------------------------ *
 * Optional select/number/text add-on fields (future field types) —
 * styled to match the theme's "Choose an option" control.
 * ------------------------------------------------------------------ */
.wcpa-addons select,
.wcpa-addons input[type="number"],
.wcpa-addons input[type="text"] {
	width: 100%;
	padding: .8em 1em;
	background: var(--wcpa-field-bg);
	border: 1px solid var(--wcpa-border);
	border-radius: 6px;
	color: var(--wcpa-heading);
	font-size: 1rem;
	appearance: none;
}
.wcpa-addons select:focus,
.wcpa-addons input:focus,
.wcpa-addon-option input:focus-visible {
	outline: 2px solid var(--wcpa-accent);
	outline-offset: 1px;
}
