/**
 * NexaShop Product Shipping Terms Styles
 * Matches media_1789910445020.png
 */

.nexashop-shipping-terms-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px 20px;
	direction: rtl;
	box-sizing: border-box;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
	font-family: inherit;
}

a.nexashop-shipping-terms-card {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.nexashop-shipping-terms-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

a.nexashop-shipping-terms-card:hover {
	border-color: #3874ff;
	box-shadow: 0 6px 20px rgba(56, 116, 255, 0.08);
}

a.nexashop-shipping-terms-card:hover .nexashop-shipping-arrow {
	color: #ef394e;
	transform: translateX(-3px);
}

.nexashop-shipping-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.nexashop-shipping-title-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nexashop-shipping-header-icon {
	color: #ea580c; /* Flame orange default as in screenshot */
	display: inline-flex;
	align-items: center;
	font-size: 20px;
	line-height: 1;
}

.nexashop-shipping-header-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.nexashop-shipping-title {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	color: #ea580c; /* Default colored title as in screenshot */
	line-height: 1.4;
}

.nexashop-shipping-arrow {
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.nexashop-shipping-arrow:hover {
	color: #ef394e;
	transform: translateX(-3px);
}

.nexashop-shipping-arrow svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* ==========================================================
   Terms List with Alignment and Connecting Line
   ========================================================== */
.nexashop-shipping-terms-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}

.nexashop-shipping-terms-list.align-right {
	align-items: flex-start;
}

.nexashop-shipping-terms-list.align-center {
	align-items: center;
}

.nexashop-shipping-terms-list.align-left {
	align-items: flex-end;
}

.nexashop-shipping-title-group.nexashop-icon-left {
	flex-direction: row-reverse;
}

.nexashop-shipping-term-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.6;
	position: relative;
}

/* Bullet Wrap (holds dot or icon and centers timeline connector) */
.nexashop-shipping-bullet-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	min-width: 14px;
	height: 14px;
	position: relative;
	flex-shrink: 0;
}

/* Dot indicator */
.nexashop-shipping-dot {
	width: 7px;
	height: 7px;
	min-width: 7px;
	border-radius: 50%;
	background-color: #ea580c;
	display: inline-block;
	flex-shrink: 0;
	z-index: 2;
}

/* Icon indicator */
.nexashop-shipping-term-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	color: #ea580c;
	flex-shrink: 0;
	z-index: 2;
}

.nexashop-shipping-term-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.nexashop-shipping-term-text {
	color: #64748b;
	font-weight: 500;
}

/* Vertical Timeline connector */
.nexashop-shipping-terms-list.has-timeline .nexashop-shipping-term-item:not(:last-child) .nexashop-shipping-bullet-wrap::after {
	content: '';
	position: absolute;
	top: calc(50% + 4px);
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: calc(100% + 12px);
	background: #cbd5e1;
	z-index: 1;
}

/* ==========================================================
   Action Link (e.g. خرید اشتراک)
   ========================================================== */
.nexashop-shipping-action-wrap {
	margin-top: 14px;
	display: flex;
}

.nexashop-shipping-action-wrap.align-right { justify-content: flex-start; }
.nexashop-shipping-action-wrap.align-center { justify-content: center; }
.nexashop-shipping-action-wrap.align-left { justify-content: flex-end; }

.nexashop-shipping-action-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #7c3aed; /* Purple as in screenshot */
	text-decoration: none;
	transition: all 0.2s ease;
}

.nexashop-shipping-action-link:hover {
	color: #6d28d9;
	transform: translateX(-2px);
}
