.autopro-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	background: #00632D;
	color: #fff;
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	z-index: 9999;
}
.autopro-whatsapp-widget { position: fixed; right: 20px; bottom: 20px; z-index: 9999; }
.autopro-whatsapp-widget .autopro-whatsapp-float { position: static; }
.autopro-whatsapp-card {
	position: absolute;
	bottom: 64px;
	right: 0;
	width: 280px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
	padding: 16px;
}
.autopro-whatsapp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.autopro-whatsapp-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #808080; line-height: 1; }
.autopro-whatsapp-greeting { font-size: 0.9rem; color: #1A1A1A; margin: 0 0 12px; }
.autopro-whatsapp-start {
	display: block; text-align: center; background: #00632D; color: #fff;
	padding: 10px; border-radius: 6px; text-decoration: none; font-weight: 600;
}
.autopro-whatsapp-inline {
	display: inline-block;
	background: #00632D;
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}

.autopro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.autopro-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding: 14px;
	background: #f7f8f5;
	border: 1px solid #eee;
	border-radius: 8px;
}
.autopro-filter-form select, .autopro-filter-form input {
	padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem;
}
.autopro-filter-form input[type="number"] { width: 110px; }
.autopro-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	padding-bottom: 14px;
}
.autopro-card-link { text-decoration: none; color: #1A1A1A; display: block; }
.autopro-card-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.autopro-card h3 { margin: 8px 12px 4px; font-size: 16px; }
.autopro-card-price { margin: 0 12px; font-weight: 700; color: #C8000A; }
.autopro-card-note { margin: 4px 12px; font-size: 12px; color: #808080; }

.autopro-order-box {
	border: 2px solid #1A1A1A;
	border-radius: 10px;
	padding: 20px;
	margin: 24px 0;
	max-width: 420px;
}
.autopro-order-price { font-size: 24px; font-weight: 700; color: #C8000A; margin: 0 0 6px; }
.autopro-order-note { color: #808080; font-size: 14px; margin: 0 0 14px; }
.autopro-order-btn {
	display: inline-block;
	background: #00632D;
	color: #fff !important;
	padding: 12px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	text-align: center;
}
.autopro-order-btn-small { display: block; margin: 8px 12px 0; padding: 8px 14px; font-size: 0.85rem; }

.autopro-offer-box {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 20px;
	margin: 16px 0 24px;
	max-width: 420px;
}
.autopro-offer-box label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 12px; }
.autopro-offer-box input {
	display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
	font-weight: 400; font-size: 0.95rem; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box;
}
.autopro-offer-submit { width: 100%; border: none; cursor: pointer; }

.autopro-sticky-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: #fff;
	border-top: 2px solid #1A1A1A;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	z-index: 9998;
	box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.autopro-sticky-cta-price { font-weight: 700; color: #C8000A; font-size: 1.1rem; }
.autopro-sticky-cta .autopro-order-btn { margin: 0; }

/* On product pages the sticky CTA bar occupies the bottom of the
   screen — push the floating widgets above it so nothing overlaps,
   especially on narrow phone screens where every pixel of width and
   height is contested. */
.single-ap_vehicle .autopro-whatsapp-widget,
.single-ap_part .autopro-whatsapp-widget {
	bottom: 76px;
}
.single-ap_vehicle .autopro-pwa-install,
.single-ap_part .autopro-pwa-install {
	bottom: 76px;
}

.autopro-pwa-install {
	position: fixed;
	left: 20px;
	bottom: 20px;
	background: #1A1A1A;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	z-index: 9999;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.autopro-listing-form { max-width: 640px; }
.autopro-listing-form-account { color: #4B5259; font-size: 0.9rem; margin: 0 0 20px; }

.autopro-type-toggle { display: flex; gap: 20px; }
.autopro-type-toggle label { font-weight: 600; display: flex; align-items: center; gap: 6px; }

.autopro-listing-title-section {
	background: #fff;
	border: 2px solid #1A1A1A;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}
.autopro-listing-title-label { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.autopro-listing-title-input {
	width: 100%;
	font-size: 1.3rem;
	font-weight: 600;
	padding: 14px 16px;
	border: 2px solid #C8000A;
	border-radius: 8px;
	box-sizing: border-box;
}
.autopro-field-hint { margin: 8px 0 0; font-size: 0.82rem; color: #808080; }
.autopro-required { color: #C8000A; }

.autopro-listing-section {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}
.autopro-section-heading {
	margin: 0 0 16px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1A1A1A;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}
.autopro-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.autopro-field-grid label,
.autopro-listing-section > label { display: block; font-weight: 600; font-size: 0.88rem; }
.autopro-field-grid input, .autopro-field-grid select, .autopro-listing-section textarea {
	display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
	font-weight: 400; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box;
}
.autopro-select-new-wrap { margin-top: 8px; }
.autopro-checkbox-label { display: flex !important; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500 !important; }

.autopro-photo-field { margin-bottom: 16px; }
.autopro-photo-field:last-child { margin-bottom: 0; }
.autopro-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.autopro-photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }

.autopro-submit-btn, .autopro-listing-submit {
	background: #C8000A; color: #fff; border: none; padding: 12px 20px;
	border-radius: 6px; font-weight: 600; cursor: pointer;
}
.autopro-listing-submit { width: 100%; padding: 16px; font-size: 1.05rem; }
.autopro-error { color: #C8000A; font-weight: 600; }
.autopro-success { color: #00632D; font-weight: 600; }

.autopro-form label { display: block; margin-bottom: 14px; font-weight: 600; }
.autopro-form input, .autopro-form select, .autopro-form textarea {
	display: block; width: 100%; max-width: 420px; margin-top: 4px; padding: 8px 10px;
	font-weight: 400; border: 1px solid #ccc; border-radius: 4px;
}
.autopro-account-form { max-width: 420px; }

/* Staff portal */
.autopro-portal-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.autopro-portal-summary div {
	background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 14px; text-align: center;
}
.autopro-portal-summary strong { display: block; font-size: 1.6rem; color: #1A1A1A; }
.autopro-portal-summary span { font-size: 0.8rem; color: #808080; }
.autopro-warning { color: #C8000A !important; }

.autopro-portal-heading { margin-top: 40px; border-bottom: 2px solid #1A1A1A; padding-bottom: 8px; }

.autopro-portal-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.autopro-portal-table th, .autopro-portal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.autopro-portal-tag { font-size: 0.7rem; background: #edefea; color: #4B5259; padding: 2px 6px; border-radius: 3px; margin-left: 6px; }
.autopro-portal-inline-form { display: flex; gap: 6px; align-items: center; }
.autopro-portal-inline-form select, .autopro-portal-inline-form input { padding: 6px 8px; font-size: 1rem; }
.autopro-portal-delete-link { background: none; border: none; color: #C8000A; text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 0; }

.autopro-ledger-form { max-width: 640px; margin-bottom: 20px; }
.autopro-team-form { max-width: 640px; margin-bottom: 20px; }
.autopro-marketing { max-width: 640px; margin-bottom: 16px; }
.autopro-marketing textarea {
	display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
	font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box;
}
.autopro-ledger-totals { display: flex; gap: 24px; font-weight: 700; margin-bottom: 14px; }

/* ------------------------------------------------------------------ */
/* Mobile-specific adjustments                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
	.autopro-sticky-cta { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
	.autopro-sticky-cta .autopro-order-btn { padding: 8px 14px; font-size: 0.9rem; }
	.autopro-whatsapp-card { width: calc(100vw - 40px); right: -10px; }
	.autopro-portal-table { display: block; overflow-x: auto; white-space: nowrap; }
	.autopro-filter-form { flex-direction: column; align-items: stretch; }
	.autopro-filter-form select, .autopro-filter-form input { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Social share, related items, most-viewed carousel                   */
/* ------------------------------------------------------------------ */
.autopro-share-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 24px;
	flex-wrap: wrap;
}
.autopro-share-label { font-weight: 600; color: #4B5259; font-size: 0.85rem; }
.autopro-share-btn {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #ccc;
	background: #fff;
	color: #1A1A1A;
	cursor: pointer;
}
.autopro-share-whatsapp { border-color: #00632D; color: #00632D; }
.autopro-share-facebook { border-color: #1877F2; color: #1877F2; }
.autopro-share-twitter { border-color: #1A1A1A; color: #1A1A1A; }
.autopro-share-copy { border-color: #808080; color: #808080; }

.autopro-related-section { margin-top: 32px; }

.autopro-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}
.autopro-carousel-card {
	flex: 0 0 220px;
	scroll-snap-align: start;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: #1A1A1A;
	background: #fff;
}
.autopro-carousel-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.autopro-carousel-card h4 { margin: 8px 12px 2px; font-size: 0.95rem; }
.autopro-carousel-price { margin: 0 12px 10px; font-weight: 700; color: #C8000A; }

.ap-most-viewed-section {
	padding: 40px 0;
	border-top: 1px solid #e5e5e5;
}
.ap-most-viewed-section h2 {
	font-family: "Archivo", sans-serif;
	margin-bottom: 20px;
}

.autopro-social-links { display: flex; gap: 12px; margin-top: 12px; }
.autopro-social-links a {
	color: #d8dad4;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	border-bottom: 1px solid rgba(255,255,255,0.3);
}
.autopro-social-links a:hover { color: #fff; border-color: #fff; }

.autopro-site-settings-form, .autopro-cms-form { max-width: 720px; margin-bottom: 20px; }
.autopro-cms-form textarea { min-height: 160px; }
