/* AOV Booster frontend — v1.0.0 (mobile-first, tested at 375px) */

/* ---- Module 1: Free Shipping Progress Bar ---- */
.aovb-fsb {
	padding: 10px 14px;
	margin: 0 0 12px;
	background: #f7f7f7;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}
.cart_list + .aovb-fsb,
.widget_shopping_cart .aovb-fsb {
	margin: 10px;
}
.aovb-fsb__text {
	margin-bottom: 6px;
	color: #333;
}
.aovb-fsb--unlocked .aovb-fsb__text {
	color: #2e7d32;
	font-weight: 600;
}
.aovb-fsb__track {
	height: 8px;
	background: #e3e3e3;
	border-radius: 99px;
	overflow: hidden;
}
.aovb-fsb__fill {
	height: 100%;
	border-radius: 99px;
	transition: width 0.4s ease, background 0.3s ease;
}

/* Sticky bar */
.aovb-fsb-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
}
.aovb-fsb-sticky .aovb-fsb {
	margin: 0;
	border-radius: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
body.admin-bar .aovb-fsb-sticky {
	top: 32px;
}

/* ---- Module 2: Package Protection ---- */
.aovb-protection {
	margin: 14px 0;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
}
.aovb-protection__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}
.aovb-protection__label input[type='checkbox'] {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
.aovb-protection__icon {
	flex: 0 0 auto;
	color: #2e7d32;
	margin-top: 1px;
}
.aovb-protection__body {
	display: block;
}
.aovb-protection__title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #222;
}
.aovb-protection__desc {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}

@media (min-width: 768px) {
	.aovb-fsb {
		font-size: 14px;
	}
}

/* ---- Module 5: Quantity Discount ---- */
.aovb-qty-table {
	margin: 12px 0;
	border: 1px dashed #c9c9c9;
	border-radius: 8px;
	overflow: hidden;
	font-size: 13px;
}
.aovb-qty-table__row {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	background: #fff;
}
.aovb-qty-table__row + .aovb-qty-table__row {
	border-top: 1px dashed #e2e2e2;
}
.aovb-qty-table__row--deal {
	background: #f2faf2;
	font-weight: 600;
	color: #2e7d32;
}
.aovb-qty-nudge {
	padding: 8px 14px;
	margin: 0 0 10px;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
}
.widget_shopping_cart .aovb-qty-nudge {
	margin: 0 10px 10px;
}
.aovb-qty-nudge--tease {
	background: #fff6e5;
	color: #8a5b00;
}
.aovb-qty-nudge--active {
	background: #edf7ed;
	color: #2e7d32;
	font-weight: 600;
}
.aovb-qty-nudge--info {
	background: #f0f4f8;
	color: #445;
}

/* ---- Module 3: Post-Purchase Upsell ---- */
.aovb-upsell {
	margin: 0 0 24px;
}
.aovb-upsell__box {
	border: 2px solid #2e7d32;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	max-width: 560px;
	margin: 0 auto;
}
.aovb-upsell__timer {
	text-align: center;
	font-size: 12px;
	color: #b32d2e;
	font-weight: 600;
	margin-bottom: 8px;
}
.aovb-upsell__title {
	text-align: center;
	font-size: 18px;
	margin: 0 0 12px;
}
.aovb-upsell__product {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.aovb-upsell__img {
	flex: 0 0 96px;
}
.aovb-upsell__img img {
	width: 96px;
	height: auto;
	border-radius: 8px;
}
.aovb-upsell__name {
	font-weight: 600;
	font-size: 14px;
}
.aovb-upsell__price {
	margin: 4px 0;
	font-size: 15px;
}
.aovb-upsell__price del {
	color: #999;
	margin-right: 6px;
}
.aovb-upsell__price ins {
	color: #2e7d32;
	font-weight: 700;
	text-decoration: none;
}
.aovb-upsell__desc {
	font-size: 12px;
	color: #666;
	margin: 4px 0;
}
.aovb-upsell__variation {
	margin-top: 6px;
	max-width: 200px;
}
.aovb-upsell__yes {
	display: block;
	width: 100%;
	margin-top: 14px;
	background: #2e7d32 !important;
	color: #fff !important;
	font-size: 15px;
}
.aovb-upsell__no {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 12px;
	color: #888;
	text-decoration: underline;
}
.aovb-upsell__error {
	margin-top: 10px;
	padding: 8px 12px;
	background: #fdecea;
	color: #b32d2e;
	border-radius: 6px;
	font-size: 13px;
}
.aovb-upsell__success {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #2e7d32;
	margin: 20px 0;
}

/* Attached right under shipping methods — tight spacing */
.aovb-protection--attached {
	margin-top: 6px;
	margin-bottom: 6px;
}

.aovb-upsell__badge {
	display: inline-block;
	background: #b32d2e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 99px;
	margin-left: 6px;
	vertical-align: middle;
}
.aovb-upsell__note {
	text-align: center;
	font-size: 11px;
	color: #999;
	margin: 8px 0 0;
}

.aovb-upsell__couponbox {
	text-align: center;
	padding: 10px 0;
}
.aovb-upsell__bigbadge {
	display: inline-block;
	background: #b32d2e;
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	padding: 10px 22px;
	border-radius: 12px;
	margin-bottom: 8px;
}
.aovb-upsell__expiry {
	font-size: 12px;
	color: #666;
	margin: 4px 0 0;
}

.aovb-upsell__browse {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #2e7d32;
	text-decoration: underline;
}

/* Quantity table v2 */
.aovb-qty-table__headline {
	padding: 10px 12px 4px;
	background: #fff;
	font-weight: 700;
	font-size: 14px;
}
.aovb-qty-table__info {
	display: flex;
	flex-direction: column;
	gap: 1px;
	text-align: left;
}
.aovb-qty-table__each {
	font-size: 11px;
	font-weight: 400;
	color: #777;
}
.aovb-qty-table--add .aovb-qty-table__row {
	align-items: center;
}
.aovb-qty-add {
	flex: 0 0 auto;
	padding: 5px 22px;
	border: 1px solid #2e7d32;
	background: #fff;
	color: #2e7d32;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.aovb-qty-add:hover {
	background: #2e7d32;
	color: #fff;
}

/* ---- Quantity table v3: card style ---- */
.aovb-qtyv2 {
	margin: 16px 0;
}
.aovb-qtyv2__headline {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 10px;
	color: #222;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.aovb-qtyv2__row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 14px;
	margin-bottom: 8px;
	background: #fff;
	border: 1.5px solid #e4e4e4;
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aovb-qtyv2__row:hover {
	border-color: #2e7d32;
	box-shadow: 0 2px 10px rgba(46, 125, 50, 0.12);
}
.aovb-qtyv2__row--best {
	border-color: #2e7d32;
	background: #f4faf4;
}
.aovb-qtyv2__ribbon {
	position: absolute;
	top: -9px;
	right: 12px;
	background: #b32d2e;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 2px 9px;
	border-radius: 99px;
}
.aovb-qtyv2__left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.aovb-qtyv2__qty {
	font-weight: 700;
	font-size: 15px;
	color: #222;
	white-space: nowrap;
}
.aovb-qtyv2__save {
	background: #2e7d32;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 99px;
	white-space: nowrap;
}
.aovb-qtyv2__right {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-left: auto;
	white-space: nowrap;
}
.aovb-qtyv2__old {
	color: #aaa;
	text-decoration: line-through;
	font-size: 12px;
}
.aovb-qtyv2__old .woocommerce-Price-amount,
.aovb-qtyv2__old .amount {
	color: #aaa;
}
.aovb-qtyv2__new {
	color: #2e7d32;
	font-weight: 800;
	font-size: 16px;
}
.aovb-qtyv2__new .woocommerce-Price-amount,
.aovb-qtyv2__new .amount {
	color: #2e7d32;
	font-weight: 800;
}
.aovb-qtyv2__unit {
	color: #888;
	font-size: 11px;
}
@media (max-width: 480px) {
	.aovb-qtyv2__row {
		padding: 11px 12px;
	}
	.aovb-qtyv2__qty {
		font-size: 14px;
	}
	.aovb-qtyv2__new {
		font-size: 15px;
	}
}

/* ---- Module 6: Friend Deal ---- */
.aovb-fd {
	position: relative;
	border: 1.5px solid var(--aovb-fd-accent, #1D9E75);
	border-radius: 12px;
	background: var(--aovb-fd-bg, #f2faf6);
	margin: 14px 0;
	overflow: hidden;
}
.aovb-fd__ribbon {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--aovb-fd-accent, #0F6E56);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 3px 10px;
	border-radius: 0 10px 0 10px;
}
.aovb-fd__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 12px;
}
.aovb-fd__iconwrap {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--aovb-fd-accent, #0F6E56);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.aovb-fd__text {
	flex: 1;
	min-width: 0;
}
.aovb-fd__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}
.aovb-fd__sub {
	display: block;
	font-size: 12px;
	color: #555;
	margin-top: 1px;
}
.aovb-fd__savehead {
	color: var(--aovb-fd-accent, #0F6E56);
}
.aovb-fd__switch {
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	border-radius: 99px;
	background: #cfcfcf;
	position: relative;
	cursor: pointer;
	transition: background 0.2s ease;
}
.aovb-fd__switch--on {
	background: var(--aovb-fd-accent, #0F6E56);
}
.aovb-fd__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: left 0.2s ease;
}
.aovb-fd__switch--on .aovb-fd__knob {
	left: 23px;
}
.aovb-fd__detail {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.aovb-fd__detail--open {
	max-height: 320px;
}
.aovb-fd__detail-inner {
	padding: 0 14px 14px;
	border-top: 1px solid rgba(15, 110, 86, 0.15);
	padding-top: 12px;
	margin: 0 14px 0;
	padding-left: 0;
	padding-right: 0;
}
.aovb-fd__label {
	font-size: 12px;
	font-weight: 700;
	color: #222;
	margin-bottom: 8px;
}
.aovb-fd__label--warn {
	color: #b32d2e;
}
.aovb-fd__req {
	color: #b32d2e;
}
.aovb-fd__sizes {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.aovb-fd__size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #c9c9c9;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 600;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.15s ease;
}
.aovb-fd__size--on,
.aovb-fd__size:hover {
	border-color: var(--aovb-fd-accent, #0F6E56);
}
.aovb-fd__size--on {
	background: var(--aovb-fd-accent, #0F6E56);
	color: #fff;
}
.aovb-fd__confirm {
	margin-top: 12px;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--aovb-fd-accent, #0F6E56);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.aovb-fd__c-left {
	display: flex;
	align-items: center;
	gap: 8px;
}
.aovb-fd__c-size {
	font-size: 15px;
	font-weight: 800;
	color: #222;
}
.aovb-fd__c-save {
	background: var(--aovb-fd-accent, #0F6E56);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 99px;
	white-space: nowrap;
}
.aovb-fd__c-right {
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}
.aovb-fd__confirm del {
	color: #999;
	font-size: 13px;
}
.aovb-fd__c-deal {
	font-size: 20px;
	font-weight: 800;
	color: var(--aovb-fd-accent, #0F6E56);
	line-height: 1;
}

.aovb-fd__name {
	width: 100%;
	max-width: 320px;
	padding: 9px 12px;
	border: 1px solid #c9c9c9;
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
}
.aovb-fd__name:focus {
	border-color: var(--aovb-fd-accent, #0F6E56);
	outline: none;
}
