/* Purchase Box for WooCommerce
 * Layout rules live on plain `.wcpb .x` selectors (0,2,0); only colors live on :hover/:focus variants.
 * The Elementor style controls use `{{WRAPPER}} .wcpb .x` (0,3,0) so they always win, and both beat
 * common theme button resets.
 */

.wcpb {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	color: #111;
	font-family: inherit;
}
.wcpb *,
.wcpb *::before,
.wcpb *::after {
	box-sizing: border-box;
}
.wcpb button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}
.wcpb button:focus-visible,
.wcpb .wcpb-qty-input:focus-visible {
	outline: 2px solid #12803e;
	outline-offset: 2px;
}
.wcpb [hidden] {
	display: none !important;
}

/* ---------- Rows ---------- */
.wcpb .wcpb-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #e8dcc6;
}
.wcpb .wcpb-attr {
	flex-direction: row;
}
.wcpb .wcpb-label {
	flex: 0 0 auto;
	min-width: 70px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #666;
}
.wcpb .wcpb-options {
	display: flex;
	flex-wrap: wrap;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
}

/* ---------- Variation pills ---------- */
.wcpb .wcpb-option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid #e4d6bb;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.wcpb .wcpb-option,
.wcpb .wcpb-option:focus {
	background: #fff;
	color: #111;
	border-color: #e4d6bb;
}
.wcpb .wcpb-option:hover {
	background: #fff;
	color: #111;
	border-color: #c9b78f;
}
.wcpb .wcpb-option.is-selected,
.wcpb .wcpb-option.is-selected:focus,
.wcpb .wcpb-option.is-selected:hover {
	background: #f1faf4;
	color: #0b5e2b;
	border-color: #12803e;
}
.wcpb .wcpb-option.is-unavailable {
	opacity: 0.45;
}
.wcpb .wcpb-dot {
	flex: 0 0 auto;
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.wcpb .wcpb-dot.is-empty {
	display: none;
}

/* ---------- Quantity ---------- */
.wcpb .wcpb-qty-row {
	justify-content: space-between;
}
.wcpb .wcpb-qty-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #111;
}
.wcpb .wcpb-stepper {
	display: inline-flex;
	align-items: stretch;
	width: 128px;
	height: 46px;
	margin-left: auto;
	background: #fff;
	border: 1px solid #e4d6bb;
	border-radius: 10px;
	overflow: hidden;
}
.wcpb .wcpb-step {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: color 0.15s ease;
}
.wcpb .wcpb-step,
.wcpb .wcpb-step:focus {
	background: transparent;
	color: #111;
}
.wcpb .wcpb-step:hover {
	background: transparent;
	color: #12803e;
}
.wcpb .wcpb-step.is-disabled,
.wcpb .wcpb-step.is-disabled:hover,
.wcpb .wcpb-step.is-disabled:focus {
	background: transparent;
	color: #b8b8b8;
	cursor: not-allowed;
}
.wcpb .wcpb-step svg {
	display: block;
	width: 14px;
	height: 14px;
}
.wcpb .wcpb-qty-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	-moz-appearance: textfield;
}
.wcpb .wcpb-qty-input,
.wcpb .wcpb-qty-input:focus {
	background: transparent;
	color: #111;
}

/* ---------- Icons ---------- */
.wcpb .wcpb-svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.wcpb .wcpb-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	line-height: 1;
}
.wcpb .wcpb-btn-icon svg,
.wcpb .wcpb-btn-icon i {
	display: block;
	width: 1em;
	height: 1em;
	line-height: 1;
}
.wcpb .wcpb-btn-icon .wcpb-svg {
	stroke-width: 2;
}

/* ---------- Message ---------- */
.wcpb .wcpb-message {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #d63638;
}
.wcpb .wcpb-message.is-success {
	color: #12803e;
}

/* ---------- Buttons ---------- */
.wcpb .wcpb-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	padding-top: 14px;
}
.wcpb .wcpb-btn {
	flex: 1 1 0;
	min-width: 130px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.wcpb .wcpb-add {
	flex-grow: 46;
}
.wcpb .wcpb-buy {
	flex-grow: 54;
}
.wcpb .wcpb-icon-after {
	flex-direction: row-reverse;
}
.wcpb .wcpb-add,
.wcpb .wcpb-add:focus {
	background: #fff;
	color: #12803e;
	border-color: #12803e;
}
.wcpb .wcpb-add:hover {
	background: #12803e;
	color: #fff;
	border-color: #12803e;
}
.wcpb .wcpb-buy,
.wcpb .wcpb-buy:focus {
	background: #f58220;
	color: #fff;
	border-color: #f58220;
}
.wcpb .wcpb-buy:hover {
	background: #e06f0f;
	color: #fff;
	border-color: #e06f0f;
}
.wcpb .wcpb-btn-label {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
}
.wcpb .wcpb-btn-price {
	margin-left: 5px;
}
.wcpb .wcpb-btn-price:empty {
	display: none;
}
.wcpb .wcpb-btn.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.wcpb .wcpb-btn.is-loading {
	opacity: 0.8;
	cursor: progress;
}
.wcpb .wcpb-btn.is-loading .wcpb-btn-price {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.wcpb * {
		transition: none !important;
	}
}
