/**
 * Synapta Commerce Edge — Label Isolation Layer
 *
 * All Synapta-rendered text labels are wrapped in <span class="sce-label">.
 * This stylesheet resets inherited theme styles so labels render with native
 * browser defaults. Users can then style them purely via CSS without fighting
 * theme specificity.
 *
 * Usage in theme or Appearance → Custom CSS Override:
 *
 *   .sce-label {
 *     font-family: 'Inter', sans-serif;
 *     font-size: 14px;
 *     color: #333;
 *   }
 *
 *   .synapta-promo-badge .sce-label {
 *     font-weight: 700;
 *     text-transform: uppercase;
 *   }
 *
 * @package SynaptaCommerce\Edge
 */

/* ── Reset: isolate labels from theme inheritance ── */
.sce-label {
	all: unset;
	display: inline;
	font: inherit;
	color: inherit;
	line-height: inherit;
	text-decoration: none;
	box-sizing: border-box;
}

/* ── Base label styling (minimal — user overridable) ── */
.sce-label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: inherit;
	font-weight: inherit;
	color: currentColor;
}

/* ── Context-specific defaults ── */

/* Promo badge label */
.synapta-promo-badge .sce-label {
	white-space: nowrap;
}

/* Quote CTA button label */
.synapta-quote-cta-btn .sce-label {
	white-space: nowrap;
	cursor: pointer;
}

/* Section headings (cotizaciones, facturas pages) */
.synapta-cotizaciones-wrapper .sce-label,
.synapta-facturas-wrapper .sce-label {
	display: block;
}

/* Empty cart message label */
.synapta-empty-cart-actions .sce-label {
	display: block;
	margin-bottom: 8px;
}

/* Stock notice label */
.synapta-partial-stock-notice .sce-label {
	display: inline;
}


/* ═══════════════════════════════════════════════════════════════════
   Quote CTA Button — native CSS (no inline styles)
   ═══════════════════════════════════════════════════════════════════
   The --sce-cta-bg custom property is set on .synapta-quote-cta-wrapper
   from the admin setting. Override it in your theme or Custom CSS:

     .synapta-quote-cta-btn {
       --sce-cta-bg: #ff6600;
       border-radius: 20px;
     }
   ═══════════════════════════════════════════════════════════════════ */

.synapta-quote-cta-btn {
	background: var(--sce-cta-bg, #323232);
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	display: inline-block;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.synapta-quote-cta-btn:hover {
	opacity: 0.85;
}

.synapta-quote-cta-btn:active {
	opacity: 0.7;
}

/* "Agregado ✓" flash state */
.synapta-quote-cta-btn--added {
	opacity: 0.6;
	pointer-events: none;
}

/* "Ver cotización" persistent link state */
.synapta-quote-cta-btn--linked {
	background: transparent;
	color: var(--sce-cta-bg, #323232);
	border: 1px solid var(--sce-cta-bg, #323232);
	cursor: pointer;
}

.synapta-quote-cta-btn--linked:hover {
	background: var(--sce-cta-bg, #323232);
	color: #fff;
}

/* Image overlay CTA (top-right corner) */
.synapta-quote-image-overlay {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 10;
	background: var(--sce-cta-bg, #323232);
	color: #fff;
	padding: 6px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
	text-decoration: none;
}

/* Show overlay on product image hover */
.woocommerce-product-gallery:hover .synapta-quote-image-overlay,
.product-thumbnail:hover .synapta-quote-image-overlay,
li.product:hover .synapta-quote-image-overlay {
	opacity: 1;
}

/* Auto-injected "Agregado" flash */
.synapta-quote-added {
	color: var(--sce-cta-bg, #323232);
	font-weight: 600;
	font-size: 13px;
}

/* Request-quote button (from stock-modal-quote) */
.synapta-request-quote-btn {
	background: var(--sce-cta-bg, #323232);
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	display: inline-block;
	text-decoration: none;
}
