/* JS WhatsApp Orders — front end */

:root {
	--jswa-gold: #C47B00;
	--jswa-charcoal: #1A1A1A;
	--jswa-ivory: #FAF5E6;
	--jswa-muted: #72675B;
}

.jswa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--jswa-bg, #25D366);
	color: var(--jswa-fg, #FFFFFF) !important;
	font-family: 'Poppins', Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.jswa-btn:hover,
.jswa-btn:focus-visible {
	filter: brightness(1.06);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transform: translateY(-1px);
}
.jswa-btn:focus-visible {
	outline: 3px solid #1A1A1A;
	outline-offset: 2px;
}
.jswa-icon {
	flex: 0 0 auto;
	display: block;
}

/* Product page main button: full width under the option selectors. */
.jswa-btn--product-main {
	display: flex;
	width: 100%;
	max-width: 420px;
	margin-top: 12px;
	font-size: 16px;
	padding: 15px 24px;
}
.jswa-product-wrap { margin: 16px 0; }
.jswa-note {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: .75;
	max-width: 420px;
}

/* ------------------------------------------------------------------
 * Inline order panel — [js_whatsapp_order]
 * ---------------------------------------------------------------- */
.jswa-panel {
	box-sizing: border-box;
	max-width: 460px;
	margin: 20px 0;
	padding: 20px 22px;
	background: var(--jswa-ivory);
	border-left: 4px solid var(--jswa-gold);
	border-radius: 4px;
	color: var(--jswa-charcoal);
	font-family: 'Poppins', Arial, sans-serif;
}
.jswa-panel .jswa-btn--panel {
	max-width: none;
	margin-top: 14px;
}
.jswa-panel .jswa-note { max-width: none; color: var(--jswa-muted); opacity: 1; }
.jswa-panel__price .jswa-price {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jswa-charcoal);
}
.jswa-panel__price .jswa-price--ask {
	font-size: 15px;
	font-weight: 600;
	color: var(--jswa-gold);
}
.jswa-price del { opacity: .55; font-weight: 400; margin-right: 6px; }
.jswa-price ins { text-decoration: none; }

.jswa-steps {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(26, 26, 26, .12);
}
.jswa-steps__title {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--jswa-gold);
}
.jswa-steps__list {
	list-style: none;
	counter-reset: jswa-step;
	margin: 0;
	padding: 0;
}
.jswa-steps__list li {
	counter-increment: jswa-step;
	position: relative;
	margin: 0 0 10px;
	padding-left: 34px;
	font-size: 14px;
	line-height: 1.5;
}
.jswa-steps__list li:last-child { margin-bottom: 0; }
.jswa-steps__list li::before {
	content: counter(jswa-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--jswa-charcoal);
	color: var(--jswa-ivory);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
.jswa-panel__link {
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
}
.jswa-panel__link a { color: var(--jswa-gold); text-decoration: none; }
.jswa-panel__link a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
 * Sticky order bar — product pages
 * ---------------------------------------------------------------- */
.jswa-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: var(--jswa-charcoal);
	color: var(--jswa-ivory);
	border-top: 3px solid var(--jswa-gold);
	box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	font-family: 'Poppins', Arial, sans-serif;
	transition: transform .25s ease;
}
.jswa-bar.jswa-bar--hidden { transform: translateY(110%); }
.jswa-bar__inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
}
.jswa-bar__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.jswa-bar__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jswa-bar .jswa-price {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--jswa-gold);
}
.jswa-bar .jswa-price--ask { font-size: 12px; font-weight: 500; opacity: .85; }
.jswa-bar .jswa-price {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jswa-bar .jswa-btn--bar {
	flex: 0 0 auto;
	padding: 12px 22px;
}
body.jswa-has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 480px) {
	.jswa-bar__inner { padding: 8px 14px; gap: 10px; }
	.jswa-bar__name { font-size: 13px; }
	.jswa-bar .jswa-btn--bar { padding: 11px 16px; font-size: 14px; }
	.jswa-panel { padding: 18px; }
}

/* Shop grid cards. */
.jswa-btn--loop {
	font-size: 13px;
	padding: 10px 16px;
}
.jswa-btn--loop .jswa-icon { width: 18px; height: 18px; }

/* Catalog mode: keep the option selectors, hide the cart controls. */
body.jswa-catalog form.cart .single_add_to_cart_button,
body.jswa-catalog form.cart .quantity {
	display: none !important;
}

/* Floating button — clears the iPhone home indicator via safe-area insets. */
.jswa-floating {
	position: fixed;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
}
.jswa-floating--right { right: calc(20px + env(safe-area-inset-right, 0px)); }
.jswa-floating--left  { left:  calc(20px + env(safe-area-inset-left, 0px)); }
.jswa-floating .jswa-btn {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	padding: 14px 20px;
}
.jswa-floating .jswa-btn[aria-label] { /* icon-only */
	width: 58px;
	height: 58px;
	padding: 0;
}
.jswa-floating .jswa-btn[aria-label] .jswa-icon { width: 28px; height: 28px; }

@media (max-width: 480px) {
	.jswa-floating { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
	.jswa-floating--right { right: calc(14px + env(safe-area-inset-right, 0px)); }
	.jswa-floating--left  { left:  calc(14px + env(safe-area-inset-left, 0px)); }
	.jswa-floating .jswa-btn { font-size: 14px; padding: 12px 16px; }
}

@media print {
	.jswa-floating,
	.jswa-bar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.jswa-btn,
	.jswa-bar { transition: none; }
	.jswa-btn:hover { transform: none; }
}
