/**
 * Product order/shipping guide — single product page.
 *
 * Compact card grid aligned with Arsin theme tokens when available.
 *
 * @package Arsin_Storefront_Customizer
 */

.woocommerce-product-section--asc-order-guide {
	/* panel chrome owned by theme product-single.css */
	padding-bottom: 0;
	border-bottom: 0;
	content-visibility: auto;
	contain-intrinsic-size: auto 320px;
}

.asc-pog {
	--pog-bg: var(--white, var(--asc-color-bg, #fff));
	--pog-soft: var(--soft-2, var(--asc-color-bg-alt, #f8f8f8));
	--pog-line: var(--line, var(--asc-color-border, #e0e0e0));
	--pog-ink: var(--ink, var(--asc-color-text, #1a1a1a));
	--pog-muted: var(--muted, var(--asc-color-text-muted, #64748b));
	--pog-brand: var(--brand, var(--asc-color-primary, #910101));
	--pog-brand-soft: var(--brand-soft, #fff5f5);
	--pog-brand-line: var(--brand-line, #f0cccc);
	--pog-radius: var(--radius, var(--asc-border-radius, 4px));

	margin: 0;
	color: var(--pog-ink);
	font-family: inherit;
	line-height: 1.55;
}

.asc-pog--preview {
	position: relative;
	padding: 12px;
	border: 1px dashed var(--pog-line);
	border-radius: var(--pog-radius);
	background: var(--pog-soft);
}

.asc-pog__preview-badge {
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 1px solid var(--pog-line);
	border-radius: var(--pog-radius);
	background: var(--pog-bg);
	color: var(--pog-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.asc-pog__header {
	margin-bottom: 14px;
	text-align: start;
}

.asc-pog__brand {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 10px;
}

.asc-pog__brand--below-heading {
	margin: 0 0 12px;
}

.asc-pog__brand-logo-img {
	display: block;
	max-width: 120px;
	height: auto;
}

.asc-pog__brand-fa {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--pog-brand);
}

.asc-pog__title {
	margin: 0 0 4px;
	font-size: var(--fs-section, 1.15rem);
	font-weight: 900;
	line-height: 1.35;
	color: var(--pog-ink);
}

.asc-pog__title-highlight {
	color: var(--pog-brand);
}

.asc-pog__subtitle {
	margin: 0;
	color: var(--pog-muted);
	font-size: var(--fs-caption, 0.85rem);
	font-weight: 700;
}

/* Compact step grid — column count from admin (`--asc-pog-cols`) */
.asc-pog__timeline {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: var(--space-3, 10px);
	margin: 0;
	position: static;
}

.asc-pog__timeline::before {
	content: none;
}

.asc-pog__step {
	display: flex;
	min-height: 0;
	margin: 0;
	position: static;
	direction: inherit;
}

.asc-pog__card {
	display: grid;
	gap: var(--space-3, 10px);
	align-content: start;
	width: 100%;
	min-height: 0;
	height: 100%;
	padding: var(--space-4, 14px);
	border: 1px solid var(--pog-line);
	border-radius: var(--pog-radius);
	background: var(--pog-bg);
	box-shadow: none;
	direction: inherit;
	transition: border-color 0.15s ease;
}

.asc-pog__card:hover {
	background: var(--pog-bg);
	border-color: var(--pog-brand-line);
}

.asc-pog__card-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.asc-pog__num {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--pog-line);
	border-radius: var(--pog-radius);
	background: var(--white, #fff);
	color: var(--pog-muted);
	font-size: var(--fs-caption, 12px);
	font-weight: 800;
	line-height: 1;
	box-shadow: none;
}

.asc-pog__bubble {
	display: none !important;
}

.asc-pog__icon--bubble {
	display: none !important;
}

.asc-pog__text {
	min-width: 0;
}

.asc-pog__step-title {
	margin: 0;
	color: var(--ink-2, var(--pog-ink));
	font-size: var(--fs-body, 0.875rem);
	font-weight: 700;
	line-height: 1.35;
}

.asc-pog__step-lead {
	margin: 4px 0 0;
	font-size: var(--fs-meta, 0.8125rem);
	font-weight: 400;
	line-height: 1.65;
	color: var(--pog-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* Guarantee strip — Torob + text in one combined row */
.asc-pog__guarantee {
	margin-top: 12px;
	overflow: hidden;
	border: 1px solid var(--pog-line);
	border-radius: var(--pog-radius);
	background: var(--pog-bg);
	box-shadow: none;
}

.asc-pog__guarantee-combo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: var(--space-4, 14px);
	background: var(--pog-bg);
}

.asc-pog__torob {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 1 auto;
	min-width: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.asc-pog__torob-badge img {
	display: block;
	width: 52px !important;
	height: 52px !important;
	object-fit: contain;
}

/* Buy-box Torob seal — larger than order-guide compact badge. */
.product-buy-box .wc-trust__item--torob-guarantee .asc-pog__torob-badge,
.product-buy-box .wc-trust__item--torob-guarantee #torob-buy-trust {
	flex: 0 0 80px;
	width: 80px;
}

.product-buy-box .wc-trust__item--torob-guarantee .asc-pog__torob-badge img,
.product-buy-box .wc-trust__item--torob-guarantee #torob-buy-trust img,
.product-buy-box .wc-trust__item--torob-guarantee .trust-seal img {
	width: 80px !important;
	height: 80px !important;
	object-fit: contain;
}

.asc-pog__torob-title {
	font-weight: 800;
	color: var(--pog-brand);
	font-size: 0.95rem;
	line-height: 1.25;
}

.asc-pog__torob-subtitle {
	margin-top: 2px;
	font-size: 0.75rem;
	color: var(--pog-muted);
	font-weight: 700;
}

.asc-pog__guarantee-text {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0;
	border: 0;
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 1.55;
	text-align: start;
	color: var(--pog-ink);
	white-space: normal;
}

.asc-pog__guarantee-text b,
.asc-pog__guarantee-text strong {
	color: var(--pog-brand);
}

@media (max-width: 1100px) {
	.asc-pog__timeline {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.asc-pog__timeline {
		grid-template-columns: 1fr;
	}

	.asc-pog__step-lead {
		-webkit-line-clamp: 4;
	}

	.asc-pog__guarantee-combo {
		flex-direction: column;
		align-items: stretch;
	}
}
