/* RenoCart storefront styles. Colors/sizes come from CSS custom properties
   set per-request in Frontend\Assets — see class-assets.php. */

.reno-cart,
.reno-cart *{ box-sizing: border-box; }

.reno-cart{
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .28s;
}
.reno-cart.is-open{
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.reno-cart__overlay{
	position: absolute;
	inset: 0;
	background: rgba(20,22,24,.45);
	opacity: 0;
	transition: opacity .2s ease;
}
.reno-cart.is-open .reno-cart__overlay{ opacity: 1; }

.reno-cart__panel{
	position: absolute;
	top: 0;
	bottom: 0;
	width: var(--reno-cart-width, 440px);
	max-width: 100vw;
	background: var(--reno-cart-bg, #fff);
	color: var(--reno-cart-text, #141618);
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 32px rgba(0,0,0,.16);
	transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
}

.reno-cart--right .reno-cart__panel{ right: 0; transform: translateX(100%); }
.reno-cart--right.is-open .reno-cart__panel{ transform: translateX(0); }
.reno-cart--left .reno-cart__panel{ left: 0; transform: translateX(-100%); }
.reno-cart--left.is-open .reno-cart__panel{ transform: translateX(0); }

.reno-cart--modal .reno-cart__panel{
	left: 50%;
	top: 50%;
	right: auto;
	bottom: auto;
	max-height: 85vh;
	border-radius: var(--reno-cart-radius, 8px);
	transform: translate(-50%,-48%) scale(.98);
	opacity: 0;
}
.reno-cart--modal.is-open .reno-cart__panel{
	transform: translate(-50%,-50%) scale(1);
	opacity: 1;
}

@media (max-width: 1024px){
	.reno-cart__panel{ width: var(--reno-cart-width-tablet, 400px); }
}
@media (max-width: 600px){
	.reno-cart__panel{ width: var(--reno-cart-width-mobile, 360px); max-width: 100vw; }
}

.reno-cart__header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--reno-cart-border, #eef0f2);
	flex: 0 0 auto;
}
.reno-cart__header .reno-cart__heading{
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}
.reno-cart__heading-icon{ width: 20px; height: 20px; }
.reno-cart__count{ font-weight: 700; color: inherit; }
.reno-cart__close{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	border: none;
	background: transparent;
	color: var(--reno-cart-text, #141618);
	cursor: pointer;
	border-radius: 50%;
}
.reno-cart__close:hover{ background: var(--reno-cart-border, #eef0f2); }
.reno-cart__close:focus-visible{
	outline: 2px solid var(--reno-cart-accent, #1f7a5a);
	outline-offset: 2px;
}

.reno-cart__body{
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px 20px;
}
.reno-cart__body[hidden]{ display: none; }
.reno-cart__body--empty{ display: flex; align-items: center; justify-content: center; }

.reno-cart__items{ list-style: none; margin: 0; padding: 0; }
.reno-cart__item{
	display: flex;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--reno-cart-border, #eef0f2);
}
.reno-cart__item:last-child{ border-bottom: none; }
.reno-cart__item-media{ position: relative; flex: 0 0 auto; }
.reno-cart__item-media a{ display: block; }
.reno-cart__item-media img{
	width: 64px; height: 64px; object-fit: cover; border-radius: var(--reno-cart-radius, 8px);
}
button.reno-cart__item-remove{
	position: absolute;
	top: -6px;
	left: -6px;
	width: 18px;
	height: 18px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #f0f0f1;
	color: var(--reno-cart-text-muted, #8c8f94);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
button.reno-cart__item-remove:hover{ color: var(--reno-cart-regular-color, #d94f2b); }
.reno-cart__item-body{ flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.reno-cart__item-title{
	color: var(--reno-cart-text, #141618);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
}
.reno-cart__item-meta{ font-size: 12.5px; color: var(--reno-cart-text-muted, #8c8f94); }
.reno-cart__item-price{
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding-top: 2px;
	text-align: right;
}
.reno-cart__item-price-row{ display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.reno-cart__item-price-current{ font-weight: 700; font-size: 15px; color: var(--reno-cart-text, #141618); }
.reno-cart__item-price-regular{
	text-decoration: line-through;
	color: var(--reno-cart-regular-color, #d94f2b);
	font-size: 13px;
}
.reno-cart__item-savings{ font-size: 12px; font-weight: 600; color: var(--reno-cart-save-color, #2f8f4e); }
.reno-cart__item-stock{
	font-size: 12px;
	color: #8c3a1f;
	background: #fdf0e8;
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	width: fit-content;
}
.reno-cart__item-controls{ display: flex; align-items: center; margin-top: 2px; }
.reno-cart__qty{
	display: flex;
	align-items: center;
	height: 24px;
	border: 1px solid var(--reno-cart-field-border, #e3e5e8);
	border-radius: var(--reno-cart-radius, 8px);
	overflow: hidden;
}
.reno-cart__qty .reno-cart__qty-btn{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 24px;
	min-width: 25px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--reno-cart-text, #141618);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}
.reno-cart__qty .reno-cart__qty-btn:disabled{ cursor: not-allowed; opacity: .35; }
.reno-cart__qty .reno-cart__qty-input{
	width: 30px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: none;
	border-left: 1px solid var(--reno-cart-field-border, #e3e5e8);
	border-right: 1px solid var(--reno-cart-field-border, #e3e5e8);
	border-radius: 0;
	color: var(--reno-cart-text, #141618);
	text-align: center;
	font-size: 13px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.reno-cart__qty .reno-cart__qty-input::-webkit-inner-spin-button,
.reno-cart__qty .reno-cart__qty-input::-webkit-outer-spin-button{
	-webkit-appearance: none;
	margin: 0;
}

.reno-cart__empty{ text-align: center; padding: 48px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.reno-cart__empty-icon{ display: flex; align-items: center; justify-content: center; color: var(--reno-cart-text-muted, #8c8f94); }
.reno-cart__empty-icon-svg{ width: 32px; height: 32px; }
.reno-cart__empty h3{ margin: 0; font-size: 18px; font-weight: 700; }
.reno-cart__empty p{ margin: 0; color: var(--reno-cart-text-muted, #8c8f94); font-size: 13.5px; }
.reno-cart__empty .reno-cart__empty-button{
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 22px;
	border-radius: var(--reno-cart-radius, 8px);
	background: var(--reno-cart-accent, #1f7a5a);
	color: var(--reno-cart-accent-text, #fff);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

.reno-cart__footer{
	flex: 0 0 auto;
	padding: 16px 20px 20px;
	border-top: 1px solid var(--reno-cart-border, #eef0f2);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.reno-cart__footer[hidden]{ display: none; }
.reno-cart__row{ display: flex; align-items: center; justify-content: space-between; font-size: 14px; gap: 8px; }
.reno-cart__row--subtotal{ font-weight: 700; }
.reno-cart__row--total{ font-weight: 700; }
.reno-cart__row-price{ display: flex; align-items: baseline; gap: 6px; }

/* Discount row: a "Coupon" label + the applied code shown as a dashed
   pill chip, with the saved amount on the right — matching the design. */
.reno-cart__coupon-chip-wrap{ display: flex; align-items: center; gap: 10px; }
.reno-cart__coupon-static-label{ font-size: 14px; color: var(--reno-cart-text, #141618); }
.reno-cart__coupon-chip{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px dashed #7ac77a;
	background: #eefaee;
	border-radius: 14px;
	padding: 3px 4px 3px 10px;
	font-size: 12px;
	color: var(--reno-cart-text, #141618);
}
.reno-cart__coupon-remove{
	width: 18px;
	height: 18px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #c3c4c7;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.reno-cart__discount-amount{ font-size: 14px; font-weight: 600; color: #43a047; }
.reno-cart__note{ margin: 0; font-size: 12px; color: var(--reno-cart-text-muted, #8c8f94); }

.reno-cart__coupon{
	display: flex;
	flex-direction: column;
	margin: 0 -20px;
	padding: 0 20px 12px;
	border-bottom: 1px solid var(--reno-cart-border, #eef0f2);
}
.reno-cart__coupon-toggle{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	color: var(--reno-cart-text, #141618);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	min-height: 25px;
}
.reno-cart__coupon-toggle:focus-visible{
	outline: 2px solid var(--reno-cart-accent, #1f7a5a);
	outline-offset: 2px;
}
.reno-cart__coupon-caret{
	display: flex;
	align-items: center;
	color: var(--reno-cart-text-muted, #8c8f94);
	transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.reno-cart__coupon.is-expanded .reno-cart__coupon-caret{ transform: rotate(180deg); }
.reno-cart__coupon-body{
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.reno-cart__coupon.is-expanded .reno-cart__coupon-body{ max-height: 80px; opacity: 1; }
.reno-cart__coupon-form{ display: flex; gap: 8px; padding-top: 10px; }
.reno-cart__coupon-body .reno-cart__coupon-form .reno-cart__coupon-input{
	flex: 1 1 auto;
	height: 40px;
	border: 1px solid var(--reno-cart-field-border, #e3e5e8);
	border-radius: var(--reno-cart-radius, 8px);
	padding: 0 12px;
	font-size: 13px;
}
.reno-cart__coupon-form .reno-cart__coupon-apply{
	height: 40px;
	padding: 0 16px;
	border: none;
	border-radius: var(--reno-cart-radius, 8px);
	background: var(--reno-cart-accent, #1f7a5a);
	color: var(--reno-cart-accent-text, #fff);
	cursor: pointer;
	font-weight: 600;
}
.reno-cart__coupon-error{ margin: 0; font-size: 12px; color: #b3261e; }

.reno-cart__actions{ display: flex; flex-direction: column; gap: 10px; }
a.reno-cart__checkout-btn{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border-radius: var(--reno-cart-radius, 8px);
	background: var(--reno-cart-accent, #1f7a5a);
	color: var(--reno-cart-accent-text, #fff);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
}
.reno-cart__secondary-actions{ display: flex; align-items: center; gap: 10px; }
.reno-cart__continue,
.reno-cart__view-cart{
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	height: 46px;
	padding: 0 10px;
	border: 1px solid var(--reno-cart-field-border, #e3e5e8);
	border-radius: var(--reno-cart-radius, 8px);
	background: #f0f0f1;
	color: var(--reno-cart-text, #141618);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

body.reno-cart-locked{ overflow: hidden; }

body.reno-cart-locked .reno-cart-bubble{ display: none; }

/* Floating bubble trigger */
.reno-cart-bubble{
	position: fixed;
	z-index: 99999;
	width: var(--reno-cart-bubble-size, 56px);
	height: var(--reno-cart-bubble-size, 56px);
	border-radius: var(--reno-cart-bubble-radius, 28px);
	background: var(--reno-cart-bubble-bg, #1f7a5a);
	color: var(--reno-cart-bubble-icon, #fff);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.reno-cart-bubble:focus-visible{
	outline: 2px solid var(--reno-cart-bubble-bg, #1f7a5a);
	outline-offset: 3px;
}
.reno-cart-bubble--br{ right: var(--reno-cart-bubble-x, 24px); bottom: var(--reno-cart-bubble-y, 24px); }
.reno-cart-bubble--bl{ left: var(--reno-cart-bubble-x, 24px); bottom: var(--reno-cart-bubble-y, 24px); }
.reno-cart-bubble--mr{ right: var(--reno-cart-bubble-x, 24px); top: 50%; transform: translateY(-50%); }
.reno-cart-bubble--ml{ left: var(--reno-cart-bubble-x, 24px); top: 50%; transform: translateY(-50%); }
.reno-cart-bubble__icon{ width: 55%; height: 55%; }
.reno-cart-bubble__count{
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 1px;
	border-radius: 50%;
	background: var(--reno-cart-bubble-badge, #d94f2b);
	color: var(--reno-cart-bubble-count, #fff);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (min-width: 1025px){ .reno-cart-hide-desktop{ display: none !important; } }
@media (min-width: 601px) and (max-width: 1024px){ .reno-cart-hide-tablet{ display: none !important; } }
@media (max-width: 600px){ .reno-cart-hide-mobile{ display: none !important; } }

/* Menu cart trigger, used both inline via the shortcode and injected into a
   nav menu item. */
.reno-cart-menu-trigger{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--reno-cart-menu-icon, #1d2327);
	text-decoration: none;
}
.reno-cart-menu-trigger:focus{ outline: none; }
.reno-cart-menu-trigger__icon-wrap{ position: relative; line-height: normal; }
.reno-cart-menu-trigger__icon{ width: var(--reno-cart-menu-icon-size, 20px); height: var(--reno-cart-menu-icon-size, 20px); }
.reno-cart-menu-trigger__count{
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 1px;
	border-radius: 50%;
	background: var(--reno-cart-menu-badge, #d94f2b);
	color: var(--reno-cart-menu-count, #fff);
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.reno-cart-menu-trigger__total{ font-size: 13px; }

.screen-reader-text{
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
