/**
 * E4Egg Quick Order - Ultra-Compact Modern Mobile-First Styles
 * Clean Flat Design, Tabular Numerals, High Performance
 *
 * @package E4Egg_Quick_Order
 */

:root {
	--e4-brand-green: #16a34a;
	--e4-brand-green-hover: #15803d;
	--e4-brand-green-light: #f0fdf4;
	--e4-brand-green-border: #bbf7d0;
	--e4-brand-blue: #0284c7;
	--e4-brand-blue-light: #f0f9ff;
	--e4-brand-blue-border: #bae6fd;
	--e4-text-primary: #0f172a;
	--e4-text-secondary: #475569;
	--e4-text-muted: #94a3b8;
	--e4-bg-body: #f8fafc;
	--e4-bg-card: #ffffff;
	--e4-border-subtle: #e2e8f0;
	--e4-border-hover: #cbd5e1;
	--e4-radius-sm: 6px;
	--e4-radius-md: 10px;
	--e4-radius-lg: 14px;
	--e4-radius-full: 9999px;
	--e4-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
	--e4-shadow-sticky: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
	--e4-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

/* Base Wrapper */
.e4egg-quick-order {
	max-width: 520px;
	margin: 0 auto;
	padding: 12px 10px 100px;
	font-family: var(--e4-font);
	color: var(--e4-text-primary);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}

.e4egg-quick-order *,
.e4egg-quick-order *::before,
.e4egg-quick-order *::after {
	box-sizing: border-box;
}

/* Header */
.e4egg-header {
	margin-bottom: 12px;
	padding: 4px 2px;
}

.e4egg-brand-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.e4egg-logo-mark {
	width: 32px;
	height: 32px;
	background: #fef3c7;
	color: #d97706;
	border-radius: var(--e4-radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.e4egg-logo-mark svg {
	width: 18px;
	height: 18px;
}

.e4egg-brand-meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.e4egg-brand-title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--e4-text-primary);
	margin: 0;
	line-height: 1;
}

.e4egg-brand-tag {
	font-size: 13px;
	font-weight: 600;
	color: var(--e4-text-secondary);
	letter-spacing: -0.01em;
}

/* Delivery Status Banner */
.e4egg-delivery-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: var(--e4-radius-md);
	border: 1px solid var(--e4-border-subtle);
	background: var(--e4-bg-card);
	box-shadow: var(--e4-shadow-card);
	margin-bottom: 12px;
}

.e4egg-banner-green {
	border-color: var(--e4-brand-green-border);
	background: var(--e4-brand-green-light);
}

.e4egg-banner-blue {
	border-color: var(--e4-brand-blue-border);
	background: var(--e4-brand-blue-light);
}

.e4egg-delivery-icon-wrap {
	width: 34px;
	height: 34px;
	border-radius: var(--e4-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.e4egg-banner-green .e4egg-delivery-icon-wrap {
	background: #dcfce7;
	color: var(--e4-brand-green);
}

.e4egg-banner-blue .e4egg-delivery-icon-wrap {
	background: #e0f2fe;
	color: var(--e4-brand-blue);
}

.e4egg-delivery-content {
	flex: 1;
	min-width: 0;
}

.e4egg-delivery-top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
}

.e4egg-delivery-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.e4egg-banner-green .e4egg-delivery-pill {
	color: #15803d;
}

.e4egg-banner-blue .e4egg-delivery-pill {
	color: #0369a1;
}

/* Radar Pulse Dot */
.e4egg-pulse-dot {
	width: 7px;
	height: 7px;
	border-radius: var(--e4-radius-full);
	display: inline-block;
	position: relative;
}

.e4egg-banner-green .e4egg-pulse-dot {
	background: #16a34a;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.e4egg-banner-blue .e4egg-pulse-dot {
	background: #0284c7;
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.e4egg-delivery-cutoff {
	font-size: 11px;
	color: var(--e4-text-secondary);
	white-space: nowrap;
	font-weight: 500;
}

.e4egg-delivery-time {
	font-size: 14px;
	font-weight: 700;
	color: var(--e4-text-primary);
	line-height: 1.25;
}

/* Repeat & Regular Micro Strips */
.e4egg-repeat-strip,
.e4egg-regular-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--e4-bg-card);
	border: 1px solid var(--e4-border-subtle);
	border-radius: var(--e4-radius-md);
	padding: 8px 12px;
	margin-bottom: 8px;
	box-shadow: var(--e4-shadow-card);
}

.e4egg-repeat-left,
.e4egg-regular-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.e4egg-repeat-icon-wrap,
.e4egg-regular-icon-wrap {
	width: 28px;
	height: 28px;
	border-radius: var(--e4-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.e4egg-repeat-icon-wrap {
	background: #fef3c7;
	color: #b45309;
}

.e4egg-regular-icon-wrap {
	background: #f1f5f9;
	color: #475569;
}

.e4egg-repeat-text,
.e4egg-regular-text {
	min-width: 0;
	flex: 1;
}

.e4egg-repeat-title,
.e4egg-regular-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--e4-text-primary);
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.e4egg-repeat-price,
.e4egg-regular-price {
	font-weight: 800;
	color: var(--e4-brand-green);
	font-size: 12px;
}

.e4egg-repeat-desc,
.e4egg-regular-desc {
	font-size: 11px;
	color: var(--e4-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.e4egg-btn-repeat,
.e4egg-btn-regular {
	background: #0f172a;
	color: #ffffff;
	border: none;
	border-radius: var(--e4-radius-sm);
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.05s ease;
	flex-shrink: 0;
}

.e4egg-btn-repeat:hover,
.e4egg-btn-regular:hover {
	background: #1e293b;
}

.e4egg-btn-repeat:active,
.e4egg-btn-regular:active {
	transform: scale(0.96);
}

.e4egg-save-regular-bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
	padding-right: 2px;
}

.e4egg-link-save-regular {
	background: none;
	border: none;
	padding: 2px 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--e4-text-secondary);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.e4egg-link-save-regular:hover {
	color: var(--e4-brand-green);
}

/* Product Cards (Ultra-Compact Mobile Row) */
.e4egg-products-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.e4egg-product-card {
	background: var(--e4-bg-card);
	border: 1px solid var(--e4-border-subtle);
	border-radius: var(--e4-radius-md);
	padding: 10px 12px;
	box-shadow: var(--e4-shadow-card);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.e4egg-product-card.has-quantity {
	border-color: var(--e4-brand-green);
	background: #fcfffd;
}

.e4egg-product-card.e4egg-product-oos {
	opacity: 0.55;
	background: #f8fafc;
}

.e4egg-product-main {
	display: flex;
	align-items: center;
	gap: 12px;
}

.e4egg-product-thumb {
	width: 52px;
	height: 52px;
	border-radius: var(--e4-radius-sm);
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid var(--e4-border-subtle);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.e4egg-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.e4egg-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.e4egg-thumb-placeholder svg {
	width: 22px;
	height: 22px;
}

.e4egg-product-info {
	flex: 1;
	min-width: 0;
}

.e4egg-product-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--e4-text-primary);
	margin: 0 0 2px 0;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.e4egg-product-unit {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--e4-text-secondary);
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
	margin-bottom: 3px;
}

.e4egg-product-price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.e4egg-product-price {
	font-size: 15px;
	font-weight: 800;
	color: var(--e4-text-primary);
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.e4egg-product-price del,
.e4egg-price-del {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
	text-decoration: line-through;
	opacity: 0.8;
}

.e4egg-product-price ins,
.e4egg-price-ins {
	text-decoration: none;
	font-weight: 800;
	color: var(--e4-text-primary);
}

.e4egg-discount-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #15803d;
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	border-radius: 4px;
	line-height: 1.3;
	text-transform: uppercase;
}

.e4egg-badge-oos {
	font-size: 10px;
	font-weight: 700;
	color: #dc2626;
	background: #fee2e2;
	padding: 1px 6px;
	border-radius: 3px;
	text-transform: uppercase;
}

/* Stock / Pending Inventory Count Indicator */
.e4egg-stock-indicator {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	margin-top: 2px;
	line-height: 1.2;
}

.e4egg-stock-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	display: inline-block;
	flex-shrink: 0;
}

.e4egg-stock-indicator.is-low {
	color: #b45309;
}

.e4egg-stock-indicator.is-low .e4egg-stock-dot {
	background: #f59e0b;
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}


/* Stepper Pill */
.e4egg-product-stepper-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.e4egg-stepper {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	border: 1px solid var(--e4-border-subtle);
	border-radius: var(--e4-radius-sm);
	padding: 2px;
}

.e4egg-step-btn {
	width: 32px;
	height: 32px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: var(--e4-text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	touch-action: manipulation;
	transition: background 0.1s ease, transform 0.05s ease;
	padding: 0;
}

.e4egg-step-btn svg {
	width: 14px;
	height: 14px;
}

.e4egg-step-btn:hover {
	background: #f8fafc;
}

.e4egg-step-btn:active {
	transform: scale(0.92);
}

.e4egg-qty-input {
	width: 36px;
	height: 32px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	font-family: var(--e4-font);
	font-variant-numeric: tabular-nums;
	color: var(--e4-text-primary);
	-moz-appearance: textfield;
	padding: 0;
	margin: 0;
}

.e4egg-qty-input::-webkit-outer-spin-button,
.e4egg-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.e4egg-card-subtotal {
	font-size: 11px;
	font-weight: 700;
	color: var(--e4-brand-green);
	font-variant-numeric: tabular-nums;
}

.e4egg-oos-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--e4-text-muted);
}

/* Presets Sub-Row */
.e4egg-presets-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px dashed var(--e4-border-subtle);
}

.e4egg-presets-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--e4-text-muted);
	white-space: nowrap;
}

.e4egg-presets-list {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.e4egg-preset-chip {
	min-width: 28px;
	height: 24px;
	padding: 0 6px;
	background: #ffffff;
	border: 1px solid var(--e4-border-subtle);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	font-family: var(--e4-font);
	font-variant-numeric: tabular-nums;
	color: var(--e4-text-secondary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.12s ease;
}

.e4egg-preset-chip:hover:not(:disabled) {
	border-color: var(--e4-border-hover);
	color: var(--e4-text-primary);
}

.e4egg-preset-chip.is-active {
	background: var(--e4-brand-green);
	border-color: var(--e4-brand-green);
	color: #ffffff;
}

.e4egg-preset-chip:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* In-Page Order Summary */
.e4egg-order-summary {
	background: var(--e4-bg-card);
	border: 1px solid var(--e4-border-subtle);
	border-radius: var(--e4-radius-md);
	padding: 16px;
	box-shadow: var(--e4-shadow-card);
	margin-top: 12px;
}

.e4egg-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	padding: 4px 0;
	color: var(--e4-text-secondary);
}

.e4egg-total-row {
	border-top: 1px solid var(--e4-border-subtle);
	margin-top: 8px;
	padding-top: 10px;
	font-size: 18px;
	font-weight: 800;
	color: var(--e4-text-primary);
}

.e4egg-summary-price {
	color: var(--e4-brand-green);
	font-variant-numeric: tabular-nums;
}

.e4egg-btn-checkout {
	width: 100%;
	height: 48px;
	margin-top: 14px;
	background: var(--e4-brand-green);
	color: #ffffff;
	border: none;
	border-radius: var(--e4-radius-md);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
	transition: background 0.15s ease, opacity 0.15s ease, transform 0.05s ease;
	touch-action: manipulation;
}

.e4egg-btn-checkout:hover:not(:disabled) {
	background: var(--e4-brand-green-hover);
}

.e4egg-btn-checkout:active:not(:disabled) {
	transform: scale(0.98);
}

.e4egg-btn-checkout:disabled {
	opacity: 0.4;
	box-shadow: none;
	cursor: not-allowed;
}

.e4egg-svg-btn-arrow {
	width: 18px;
	height: 18px;
	transition: transform 0.15s ease;
}

.e4egg-btn-checkout:hover:not(:disabled) .e4egg-svg-btn-arrow {
	transform: translateX(3px);
}

/* Mobile Sticky Bottom Floating Bar */
.e4egg-sticky-bar {
	position: fixed;
	bottom: 12px;
	left: 10px;
	right: 10px;
	max-width: 500px;
	margin: 0 auto;
	background: #0f172a;
	border-radius: var(--e4-radius-lg);
	box-shadow: var(--e4-shadow-sticky);
	padding: 8px 10px 8px 16px;
	z-index: 99999;
}

.e4egg-sticky-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.e4egg-sticky-info {
	display: flex;
	flex-direction: column;
}

.e4egg-sticky-items {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.e4egg-sticky-total {
	font-size: 18px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.e4egg-btn-sticky {
	width: auto;
	min-width: 140px;
	height: 42px;
	margin: 0;
	padding: 0 16px;
	font-size: 14px;
	border-radius: var(--e4-radius-md);
}

/* Alert Notification */
.e4egg-order-alert {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: var(--e4-radius-sm);
	font-size: 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.4;
}

.e4egg-order-alert svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Closed Notice */
.e4egg-closed-notice {
	margin-top: 12px;
	padding: 12px;
	background: #f8fafc;
	border: 1px solid var(--e4-border-subtle);
	border-radius: var(--e4-radius-md);
	color: var(--e4-text-secondary);
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* Flat Icon Helpers */
.e4egg-svg-icon {
	width: 18px;
	height: 18px;
}

.e4egg-svg-sm {
	width: 15px;
	height: 15px;
}

.e4egg-svg-xs {
	width: 13px;
	height: 13px;
}

/* Modal */
.e4egg-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.e4egg-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
}

.e4egg-modal-card {
	position: relative;
	background: #ffffff;
	border-radius: var(--e4-radius-lg);
	padding: 22px 20px;
	max-width: 400px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.e4egg-modal-icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: var(--e4-radius-full);
	background: #fef3c7;
	color: #d97706;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
}

.e4egg-modal-icon-wrap svg {
	width: 22px;
	height: 22px;
}

.e4egg-modal-title {
	font-size: 17px;
	font-weight: 800;
	color: var(--e4-text-primary);
	margin: 0 0 8px 0;
}

.e4egg-modal-message {
	font-size: 13px;
	color: var(--e4-text-secondary);
	line-height: 1.45;
	margin-bottom: 18px;
	white-space: pre-line;
}

.e4egg-modal-actions {
	display: flex;
	gap: 8px;
}

.e4egg-btn-modal-cancel {
	flex: 1;
	height: 42px;
	background: #f1f5f9;
	color: var(--e4-text-secondary);
	border: 1px solid var(--e4-border-subtle);
	border-radius: var(--e4-radius-md);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.e4egg-btn-modal-confirm {
	flex: 1;
	height: 42px;
	background: var(--e4-brand-green);
	color: #ffffff;
	border: none;
	border-radius: var(--e4-radius-md);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

/* Spinner */
.e4egg-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: e4egg-spin 0.6s linear infinite;
}

@keyframes e4egg-spin {
	to { transform: rotate(360deg); }
}

/* Desktop media query */
@media (min-width: 600px) {
	.e4egg-quick-order {
		padding-bottom: 24px;
	}
	.e4egg-sticky-bar {
		display: none !important;
	}
}

/* Single Product Page Quick Order Button Container */
.single-product form.cart {
	flex-wrap: wrap !important;
}

div.e4egg-single-quick-order-wrap {
	display: block !important;
	flex: 1 1 100% !important;
	flex-basis: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
	margin-top: 12px !important;
	margin-bottom: 12px !important;
	box-sizing: border-box !important;
}

div.e4egg-single-quick-order-wrap a.e4egg-single-quick-order-btn,
div.e4egg-single-quick-order-wrap .e4egg-single-quick-order-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 46px !important;
	height: 46px !important;
	padding: 0 20px !important;
	margin: 0 !important;
	background: var(--e4-brand-green, #16a34a) !important;
	color: #ffffff !important;
	border: 1px solid var(--e4-brand-green, #16a34a) !important;
	border-radius: 4px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	line-height: 1 !important;
	text-align: center !important;
}

div.e4egg-single-quick-order-wrap a.e4egg-single-quick-order-btn:hover,
div.e4egg-single-quick-order-wrap .e4egg-single-quick-order-btn:hover {
	background: var(--e4-brand-green-hover, #15803d) !important;
	border-color: var(--e4-brand-green-hover, #15803d) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	transform: translateY(-1px) !important;
	text-decoration: none !important;
}

div.e4egg-single-quick-order-wrap a.e4egg-single-quick-order-btn:active,
div.e4egg-single-quick-order-wrap .e4egg-single-quick-order-btn:active {
	transform: translateY(0) !important;
}

/* Strictly enforce 16px icon dimensions against aggressive theme CSS */
div.e4egg-single-quick-order-wrap a.e4egg-single-quick-order-btn svg,
div.e4egg-single-quick-order-wrap .e4egg-single-quick-order-btn svg,
div.e4egg-single-quick-order-wrap .e4egg-single-quick-order-btn .e4egg-btn-icon {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	display: inline-block !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	stroke: currentColor !important;
	fill: none !important;
	transition: transform 0.15s ease !important;
}

div.e4egg-single-quick-order-wrap a.e4egg-single-quick-order-btn:hover svg {
	transform: scale(1.15) !important;
}

div.e4egg-single-quick-order-wrap a.e4egg-single-quick-order-btn span,
div.e4egg-single-quick-order-wrap .e4egg-single-quick-order-btn .e4egg-btn-text {
	display: inline-block !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ==========================================================================
   Shop Page & Product Archive Catalog Quick Order Stack (Quick Order above Add to Cart)
   ========================================================================== */
div.e4egg-loop-actions-stacked {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 100% !important;
	gap: 6px !important;
	margin-top: 8px !important;
	margin-bottom: 2px !important;
	padding: 0 !important;
	clear: both !important;
	box-sizing: border-box !important;
}

div.e4egg-loop-actions-stacked > * {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

/* Quick Order Button inside the stack (Always #1 on Top) */
div.e4egg-loop-actions-stacked div.e4egg-shop-quick-order-wrap,
div.e4egg-shop-quick-order-wrap {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	order: 1 !important;
	clear: both !important;
	box-sizing: border-box !important;
}

div.e4egg-loop-actions-stacked .e4egg-shop-quick-order-btn,
div.e4egg-loop-actions-stacked a.e4egg-shop-quick-order-btn,
div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn,
div.e4egg-shop-quick-order-wrap a.e4egg-shop-quick-order-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 38px !important;
	height: auto !important;
	padding: 8px 14px !important;
	margin: 0 !important;
	background: var(--e4-brand-green, #16a34a) !important;
	color: #ffffff !important;
	border: 1px solid var(--e4-brand-green, #16a34a) !important;
	border-radius: 4px !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
	line-height: 1.2 !important;
	text-align: center !important;
	float: none !important;
}

div.e4egg-loop-actions-stacked a.e4egg-shop-quick-order-btn:hover,
div.e4egg-loop-actions-stacked .e4egg-shop-quick-order-btn:hover,
div.e4egg-shop-quick-order-wrap a.e4egg-shop-quick-order-btn:hover,
div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn:hover {
	background: var(--e4-brand-green-hover, #15803d) !important;
	border-color: var(--e4-brand-green-hover, #15803d) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
	transform: translateY(-1px) !important;
	text-decoration: none !important;
}

div.e4egg-loop-actions-stacked a.e4egg-shop-quick-order-btn:active,
div.e4egg-loop-actions-stacked .e4egg-shop-quick-order-btn:active,
div.e4egg-shop-quick-order-wrap a.e4egg-shop-quick-order-btn:active,
div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn:active {
	transform: translateY(0) !important;
}

div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn svg,
div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn .e4egg-btn-icon {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	min-height: 14px !important;
	max-width: 14px !important;
	max-height: 14px !important;
	display: inline-block !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	stroke: currentColor !important;
	fill: none !important;
	transition: transform 0.15s ease !important;
}

div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn:hover svg {
	transform: scale(1.15) !important;
}

div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn span,
div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn .e4egg-btn-text {
	display: inline-block !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* WooCommerce Add to Cart Button inside the stack (Always #2 Below Quick Order) */
div.e4egg-loop-actions-stacked > a.button,
div.e4egg-loop-actions-stacked > .button,
div.e4egg-loop-actions-stacked a.add_to_cart_button,
div.e4egg-loop-actions-stacked .button.add_to_cart_button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	min-height: 38px !important;
	height: auto !important;
	box-sizing: border-box !important;
	float: none !important;
	margin: 0 !important;
	order: 2 !important;
	padding: 8px 12px !important;
	text-align: center !important;
	line-height: 1.2 !important;
	clear: both !important;
}

/* Responsive mobile adjustments: clean vertical stack on 2-column mobile cards */
@media (max-width: 768px) {
	div.e4egg-loop-actions-stacked {
		gap: 6px !important;
		margin-top: 6px !important;
		margin-bottom: 2px !important;
	}

	div.e4egg-loop-actions-stacked .e4egg-shop-quick-order-btn,
	div.e4egg-loop-actions-stacked a.e4egg-shop-quick-order-btn,
	div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn {
		min-height: 36px !important;
		padding: 7px 10px !important;
		font-size: 12px !important;
	}

	div.e4egg-loop-actions-stacked > a.button,
	div.e4egg-loop-actions-stacked > .button,
	div.e4egg-loop-actions-stacked a.add_to_cart_button,
	div.e4egg-loop-actions-stacked .button.add_to_cart_button {
		min-height: 36px !important;
		padding: 7px 10px !important;
		font-size: 12px !important;
	}
}

@media (max-width: 640px) {
	div.e4egg-loop-actions-stacked {
		gap: 5px !important;
		margin-top: 5px !important;
	}

	div.e4egg-loop-actions-stacked .e4egg-shop-quick-order-btn,
	div.e4egg-loop-actions-stacked a.e4egg-shop-quick-order-btn,
	div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn {
		min-height: 34px !important;
		padding: 6px 10px !important;
		font-size: 11.5px !important;
		gap: 4px !important;
	}

	div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn svg {
		width: 13px !important;
		height: 13px !important;
		min-width: 13px !important;
		min-height: 13px !important;
	}

	div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn span,
	div.e4egg-shop-quick-order-wrap .e4egg-shop-quick-order-btn .e4egg-btn-text {
		font-size: 11.5px !important;
	}

	div.e4egg-loop-actions-stacked > a.button,
	div.e4egg-loop-actions-stacked > .button,
	div.e4egg-loop-actions-stacked a.add_to_cart_button,
	div.e4egg-loop-actions-stacked .button.add_to_cart_button {
		min-height: 34px !important;
		padding: 6px 10px !important;
		font-size: 11.5px !important;
	}
}


