/**
 * QMC Frontend Styles
 *
 * Nudge cards, upsell cards, trust signals, oath checkbox, incident banner, share cart.
 *
 * @package QimahCommerce
 * @since 1.0.0
 */

/* Nudge Cards */
.qmc-nudge-cards {
	margin-bottom: 16px;
}

/* Heading inside the card wrapper */
.qmc-nudge-microcopy {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	margin: 0 0 8px;
	padding: 0 4px;
}

.qmc-nudge-card {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	margin-bottom: 8px;
	background: rgba(30, 102, 73, 0.03);
	border: 1.5px dashed #c8d6cf;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.15s, background 0.15s;
}

.qmc-nudge-card:hover {
	border-color: #1E9A6D;
	background: rgba(30, 102, 73, 0.06);
}

.qmc-nudge-card:active {
	transform: scale(0.99);
}

/* Right side (RTL): title + price comparison */
.qmc-nudge-info-right {
	text-align: right;
	flex: 1;
	min-width: 0;
}

.qmc-nudge-title {
	margin: 0 0 3px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.qmc-nudge-price-line {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.qmc-nudge-old-price {
	color: #9ca3af;
	font-size: 11px;
}

.qmc-nudge-new-price {
	font-weight: 900;
	font-size: 16px;
	color: #111;
}

.qmc-nudge-discount {
	background: #dc2626;
	color: #fff;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
}

.qmc-nudge-savings {
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	background: #1E9A6D;
	padding: 5px 0;
	border-radius: 5px;
	text-align: center;
	margin-top: 6px;
	letter-spacing: 0.03em;
}

/* Left side (RTL): compact add button */
.qmc-nudge-add-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	background: #1E6649;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	transition: background 0.15s;
}

.qmc-nudge-add-btn:hover {
	background: #155039;
}

/* Upsell Cards */
.qmc-upsell-section {
	margin-bottom: 20px;
}

.qmc-upsell-heading {
	font-size: 16px;
	margin-bottom: 12px;
}

.qmc-upsell-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #E8E4D8;
	border-radius: 6px;
}

.qmc-upsell-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.qmc-upsell-price {
	font-weight: 600;
	color: #1E6649;
}

/* Trust Signals */
.qmc-trust-signals {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.qmc-trust-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #555;
}

.qmc-trust-icon {
	font-size: 16px;
}

/* Oath Checkbox */
.qmc-oath-wrap {
	margin: 16px 0;
	padding: 14px;
	background: #FFF9E6;
	border: 1px solid #E8E4D8;
	border-radius: 6px;
}

.qmc-oath-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
}

.qmc-oath-checkbox {
	margin-top: 3px;
	flex-shrink: 0;
}

/* Incident Banner - background color set via inline style (admin color picker). */
.qmc-incident-banner.woocommerce-info {
	position: sticky;
	top: 0;
	z-index: 9999;
	color: #fff;
	border: none;
	border-radius: 0;
	text-align: center;
	font-weight: 600;
	margin: 0;
	padding: 12px 24px;
}
.qmc-incident-banner.woocommerce-info::before {
	display: none;
}

/* Share Cart */
.qmc-share-cart-wrap {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.qmc-share-cart-result {
	font-size: 13px;
	color: #1E6649;
	word-break: break-all;
}

/* RTL adjustments - centered layout needs no directional overrides */

/* ─── Dark Mode ─── */
html[data-theme="dark"] .qmc-nudge-microcopy {
	color: #9ca3af;
}

html[data-theme="dark"] .qmc-nudge-card {
	background: rgba(30, 102, 73, 0.08);
	border-color: rgba(42, 138, 98, 0.25);
}

html[data-theme="dark"] .qmc-nudge-card:hover {
	border-color: #34d399;
	background: rgba(30, 102, 73, 0.12);
}

html[data-theme="dark"] .qmc-nudge-title {
	color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .qmc-nudge-new-price {
	color: #fff;
}

html[data-theme="dark"] .qmc-nudge-old-price {
	color: #9ca3af;
}

html[data-theme="dark"] .qmc-nudge-savings {
	color: #6ee7b7;
}

html[data-theme="dark"] .qmc-upsell-card {
	background: #15352b;
	border-color: rgba(42, 138, 98, 0.2);
}

html[data-theme="dark"] .qmc-upsell-line {
	color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .qmc-oath-wrap {
	background: rgba(30, 102, 73, 0.08);
	border-color: rgba(42, 138, 98, 0.2);
}

html[data-theme="dark"] .qmc-trust-signals {
	border-top-color: rgba(42, 138, 98, 0.2);
}

html[data-theme="dark"] .qmc-trust-badge {
	color: #9ca3af;
}

html[data-theme="dark"] .qmc-share-cart-btn {
	color: #9ca3af;
	border-color: rgba(42, 138, 98, 0.2);
}

html[data-theme="dark"] .qmc-share-cart-btn:hover {
	color: #2a8a62;
	border-color: #2a8a62;
}
