/**
 * Product order/shipping guide — single product page.
 *
 * @package Arsin_Storefront_Customizer
 */

.woocommerce-product-section--asc-order-guide {
	padding-bottom: 2em;
	border-bottom: 1px solid var(--asc-color-border);
	content-visibility: auto;
	contain-intrinsic-size: auto 600px;
}

.asc-pog {
	margin: 0;
	color: var(--asc-color-text);
	font-family: var(--asc-font-family);
	line-height: 1.7;
}

.asc-pog--preview {
	position: relative;
	padding: 1rem;
	border: 2px dashed var(--asc-color-border);
	border-radius: var(--asc-border-radius, 12px);
	background: var(--asc-color-bg);
}

.asc-pog__preview-badge {
	margin: 0 0 1rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--asc-color-border);
	border-radius: var(--asc-radius-md, 8px);
	background: var(--asc-color-bg-alt);
	color: var(--asc-color-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
}

.asc-pog__header {
	margin-bottom: 1.25rem;
	text-align: center;
}

.asc-pog__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.asc-pog__brand-logo-img {
	display: block;
	max-width: 180px;
	height: auto;
}

.asc-pog__brand-fa {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--asc-color-primary);
}

.asc-pog__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--asc-color-text);
}

.asc-pog__title-highlight {
	color: var(--asc-color-primary);
}

.asc-pog__subtitle {
	margin: 0 0 1rem;
	color: var(--asc-color-text-muted);
	font-size: clamp(0.95rem, 1.8vw, 1.15rem);
	font-weight: 700;
}

.asc-pog__timeline {
	position: relative;
	margin-top: 0.5rem;
}

.asc-pog__timeline::before {
	content: "";
	position: absolute;
	top: 3.5rem;
	bottom: 3.25rem;
	left: 2.25rem;
	width: 3px;
	border-radius: 3px;
	background: var(--asc-color-border);
}

.asc-pog__step {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	direction: ltr;
	align-items: stretch;
	min-height: 7.5rem;
	margin: 0 0 0.5rem;
	position: relative;
}

.asc-pog__card {
	direction: rtl;
}

.asc-pog__num-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.asc-pog__num {
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 50%;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--asc-color-primary) 85%, #fff),
		var(--asc-color-primary-hover, var(--asc-color-primary))
	);
	color: var(--asc-color-on-primary, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.65rem;
	font-weight: 900;
	border: 3px solid var(--asc-color-bg, #fff);
	box-shadow: 0 4px 11px color-mix(in srgb, var(--asc-color-primary) 25%, transparent);
	direction: rtl;
}

.asc-pog__num-wrap::after {
	content: "";
	position: absolute;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--asc-color-primary);
	top: calc(50% + 2.1rem);
	left: 50%;
	transform: translateX(-50%);
	box-shadow: 0 0 0 3px var(--asc-color-bg, #fff);
}

.asc-pog__card {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	align-items: center;
	min-height: 7rem;
	border: 1px solid var(--asc-color-border);
	border-radius: var(--asc-border-radius, 16px);
	background: var(--asc-color-bg, #fff);
	box-shadow: 0 3px 14px color-mix(in srgb, var(--asc-color-text) 6%, transparent);
}

.asc-pog__bubble {
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--asc-color-bg, #fff);
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--asc-color-border) 80%, transparent),
		0 4px 14px color-mix(in srgb, var(--asc-color-text) 8%, transparent);
}

.asc-pog__icon--bubble {
	font-size: 2.35rem !important;
	color: var(--asc-color-primary);
}

.asc-pog__step-title {
	margin: 0;
	color: var(--asc-color-primary);
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	font-weight: 800;
	line-height: 1.2;
}

.asc-pog__step-lead {
	margin: 0.2rem 0 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--asc-color-text);
}

.asc-pog__guarantee {
	margin-top: 1.25rem;
	display: grid;
	grid-template-columns: minmax(10rem, 0.95fr) minmax(15rem, 2.2fr) 330px;
	direction: ltr;
	overflow: hidden;
	border: 1px solid var(--asc-color-border);
	border-radius: var(--asc-border-radius, 14px);
	background: linear-gradient(180deg, var(--asc-color-bg, #fff), color-mix(in srgb, var(--asc-color-bg-alt, #f7f7f7) 70%, #fff));
	box-shadow: 0 3px 14px color-mix(in srgb, var(--asc-color-text) 5%, transparent);
}

.asc-pog__torob,
.asc-pog__guarantee-text,
.asc-pog__benefits {
	direction: rtl;
	min-height: 6.5rem;
	border-left: 1px solid var(--asc-color-border);
}

.asc-pog__torob {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0.75rem;
}

.asc-pog__guarantee-text {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	align-self: stretch;
	padding: 0.75rem 1rem;
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: right;
	color: var(--asc-color-text);
	white-space: nowrap;
}

.asc-pog__benefits {
	display: grid;
	grid-template-columns: repeat(3, 110px);
	width: 330px;
	max-width: 100%;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.asc-pog__benefits .asc-pog__benefit:last-child {
	border-left: 0;
}

.asc-pog__torob {
	gap: 0.85rem;
	padding-right: 1rem;
	background: linear-gradient(
		90deg,
		var(--asc-color-bg, #fff),
		color-mix(in srgb, var(--asc-color-primary) 5%, var(--asc-color-bg, #fff))
	);
}

.asc-pog__torob-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.asc-pog__torob-badge a {
	display: inline-flex;
	text-decoration: none;
}

.asc-pog__torob-badge img {
	display: block;
	width: 75px !important;
	height: 75px !important;
	object-fit: contain;
}

.asc-pog__torob-text {
	min-width: 0;
}

.asc-pog__torob-title {
	font-weight: 800;
	color: #b11270;
	font-size: 1.15rem;
	line-height: 1.2;
}

.asc-pog__torob-subtitle {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--asc-color-text-muted);
	font-weight: 700;
}

.asc-pog__guarantee-text b,
.asc-pog__guarantee-text strong {
	color: var(--asc-color-primary);
}

.asc-pog__benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 110px;
	min-width: 110px;
	max-width: 110px;
	min-height: 6.5rem;
	padding: 0.75rem 0.5rem;
	border-left: 1px solid var(--asc-color-border);
	box-sizing: border-box;
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 1.35;
	text-align: center;
	color: var(--asc-color-text);
}

.asc-pog__icon--benefit {
	font-size: 2rem !important;
	color: var(--asc-color-primary);
}

@media (max-width: 768px) {
	.asc-pog__timeline::before {
		right: 2.35rem;
		left: auto;
		transform: none;
	}

	.asc-pog__step {
		grid-template-columns: 1fr;
		direction: rtl;
		margin-bottom: 0.85rem;
		padding-right: 4.5rem;
	}

	.asc-pog__num-wrap {
		position: absolute;
		right: 0.5rem;
		top: 2.25rem;
	}

	.asc-pog__num {
		width: 3.1rem;
		height: 3.1rem;
		font-size: 1.45rem;
	}

	.asc-pog__num-wrap::after {
		display: none;
	}

	.asc-pog__card {
		grid-template-columns: 4.75rem 1fr;
		padding: 0.75rem;
	}

	.asc-pog__bubble {
		width: 4.25rem;
		height: 4.25rem;
	}

	.asc-pog__icon--bubble {
		font-size: 2rem !important;
	}

	.asc-pog__guarantee {
		grid-template-columns: 1fr;
		direction: rtl;
	}

	.asc-pog__torob,
	.asc-pog__guarantee-text,
	.asc-pog__benefits {
		border-left: 0;
		border-bottom: 1px solid var(--asc-color-border);
	}

	.asc-pog__torob,
	.asc-pog__guarantee-text {
		grid-column: 1 / -1;
	}

	.asc-pog__guarantee-text {
		white-space: normal;
	}

	.asc-pog__benefits {
		width: auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.asc-pog__benefit {
		width: auto;
		min-width: 0;
		max-width: none;
		min-height: 5.75rem;
	}
}
