/*
 * Xicart B2B Wholesale Readiness - styles for mu-plugins/xc-b2b.php
 * Loaded on single product pages only.
 */

/* ======================================================================
   1. Enquiry / RFQ block
   ====================================================================== */
.xc-rfq {
	--xc-rfq-radius: 10px;
	margin: 22px 0 26px;
	padding: 18px 20px 16px;
	border: 1px solid #e3e6ea;
	border-left: 3px solid var(--porto-primary-color, #08c);
	border-radius: var(--xc-rfq-radius);
	background: #fafbfc;
}

.xc-rfq__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.xc-rfq__badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--porto-primary-color, #08c);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.5;
}

.xc-rfq__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.xc-rfq__sku {
	font-size: 12px;
	color: #6c757d;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	padding: 2px 7px;
	border: 1px solid #dfe3e8;
	border-radius: 4px;
	background: #fff;
}

.xc-rfq__note {
	margin: 0 0 14px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #55595f;
}

.xc-rfq__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.xc-rfq__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 9px 15px;
	border: 1px solid #d6dae0;
	border-radius: 6px;
	background: #fff;
	color: #2b2f33;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.xc-rfq__btn:hover,
.xc-rfq__btn:focus-visible {
	text-decoration: none;
	border-color: #b9bfc7;
	background: #f2f4f6;
	color: #16181a;
}

.xc-rfq__btn--primary {
	background: var(--porto-primary-color, #08c);
	border-color: var(--porto-primary-color, #08c);
	color: #fff;
}

.xc-rfq__btn--primary:hover,
.xc-rfq__btn--primary:focus-visible {
	background: #0699c3;
	border-color: #0699c3;
	color: #fff;
}

.xc-rfq__btn--wa {
	background: #1fa855;
	border-color: #1fa855;
	color: #fff;
}

.xc-rfq__btn--wa:hover,
.xc-rfq__btn--wa:focus-visible {
	background: #188c46;
	border-color: #188c46;
	color: #fff;
}

.xc-rfq__ico {
	flex: 0 0 auto;
}

.xc-rfq__meta {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.65;
	color: #6c757d;
}

.xc-rfq__meta a {
	color: #6c757d;
	text-decoration: underline;
}

/* ======================================================================
   2. Contact strip under product meta
   ====================================================================== */
.xc-metabar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 10px 14px;
	border: 1px dashed #dfe3e8;
	border-radius: 8px;
	background: #fff;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.xc-metabar__label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.07em;
	color: #8a9096;
}

.xc-metabar__link {
	color: #2b2f33;
	font-weight: 600;
	text-decoration: none;
}

.xc-metabar__link:hover,
.xc-metabar__link:focus-visible {
	color: var(--porto-primary-color, #08c);
	text-decoration: underline;
}

.xc-metabar__link--wa {
	color: #1fa855;
}

.xc-metabar__sep {
	color: #c4c9cf;
}

.xc-metabar__hint {
	color: #6c757d;
}

/* ======================================================================
   3. Wholesale Terms section
   ====================================================================== */
.xc-terms {
	margin: 34px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid #e7eaed;
}

.xc-terms__head {
	margin-bottom: 18px;
}

.xc-terms__title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.xc-terms__sub {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #6c757d;
	max-width: 62ch;
}

.xc-terms__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1px;
	margin: 0;
	padding: 1px;
	border: 1px solid #e7eaed;
	border-radius: 10px;
	background: #e7eaed;
	overflow: hidden;
}

.xc-terms__row {
	padding: 15px 18px;
	background: #fff;
}

.xc-terms__label {
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--porto-primary-color, #08c);
}

.xc-terms__value {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.62;
	color: #40454b;
}

.xc-terms__value a {
	color: #08c;
	text-decoration: underline;
}

.xc-terms__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 18px;
	padding: 16px 20px;
	border-radius: 10px;
	background: #f6f8fa;
}

.xc-terms__foottext {
	font-size: 0.875rem;
	line-height: 1.6;
	color: #40454b;
}

.xc-terms__muted {
	color: #6c757d;
	font-size: 0.8125rem;
}

.xc-terms__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 11px 22px;
	border-radius: 6px;
	background: var(--porto-primary-color, #08c);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease;
}

.xc-terms__cta:hover,
.xc-terms__cta:focus-visible {
	background: #0699c3;
	color: #fff;
	text-decoration: none;
}

/* ======================================================================
   4. Mobile - keep contact targets comfortably tappable
   ====================================================================== */
@media (max-width: 575px) {
	.xc-rfq {
		padding: 16px 15px 14px;
	}

	/* On narrow screens let each button own its row for reliable tapping. */
	.xc-rfq__actions {
		flex-direction: column;
	}

	.xc-rfq__btn {
		width: 100%;
		min-height: 46px;
		padding: 12px 15px;
		font-size: 0.875rem;
	}

	.xc-metabar {
		gap: 6px 10px;
		min-height: 44px;
	}

	.xc-metabar__link {
		min-height: 32px;
		display: inline-flex;
		align-items: center;
	}

	.xc-terms__grid {
		grid-template-columns: 1fr;
	}

	.xc-terms__foot {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.xc-terms__cta {
		width: 100%;
		min-height: 48px;
	}
}
