/*
 * The shop: store, checkout, account. Reads the site's tokens (themes/esellbox/assets/css/tokens.css) and
 * writes only logical properties, so it is right to left without a second sheet.
 */

.esb-shop {
	--shop-gap: clamp(16px, 1rem + 1vw, 28px);
	inline-size: min(100% - 2 * var(--esb-gutter, 16px), var(--esb-container-wide, 1320px));
	margin-inline: auto;
	padding-block: 8px var(--esb-section, 5rem);
	color: var(--esb-ink-2);
	font-size: var(--esb-text-body, 1rem);
}
.esb-shop h2 { margin: 0; color: var(--esb-ink); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.5; }
.esb-shop h3 { margin: 0; color: var(--esb-ink); font-size: 1.0625rem; line-height: 1.6; }
.esb-shop p { margin: 0; }
.esb-shop-muted { color: var(--esb-ink-3); }
.esb-shop-small { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); line-height: 1.85; }
.esb-shop-lead { color: var(--esb-ink-2); line-height: 1.9; }
.esb-shop-wide { inline-size: 100%; }
.esb-shop-center { display: grid; justify-items: center; gap: 16px; text-align: center; }
.esb-shop .esb-btn--sm { min-block-size: 38px; padding: 6px 16px; font-size: 0.875rem; }
.esb-shop .esb-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.esb-shop .esb-icon { inline-size: 18px; block-size: 18px; flex: none; }

.esb-shop-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--esb-green);
	font: inherit;
	font-size: var(--esb-text-small, 0.875rem);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.esb-shop-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	padding: clamp(18px, 1rem + 1vw, 28px);
	border: 1px solid var(--esb-line);
	border-radius: var(--esb-radius-l, 20px);
	background: #fff;
	box-shadow: var(--esb-shadow-xs);
}

/* ---------------------------------------------------------------- store */


.esb-shop-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.esb-shop-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--esb-radius-pill);
	background: var(--esb-green-wash, #f1f8f5);
	color: var(--esb-green-deep, #0a4f40);
	font-size: var(--esb-text-small, 0.875rem);
	font-weight: 600;
}
.esb-shop-trust .esb-icon { color: var(--esb-green); }

.esb-shop-section { display: grid; gap: 20px; }
.esb-shop-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.esb-shop-section__head p { margin-block-start: 6px; max-inline-size: 44rem; color: var(--esb-ink-3); line-height: 1.9; }

.esb-shop-interval {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--esb-line);
	border-radius: var(--esb-radius-pill);
	background: var(--esb-mist, #f5f7fa);
}
.esb-shop-interval button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: 0;
	border-radius: var(--esb-radius-pill);
	background: transparent;
	color: var(--esb-ink-2);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}
.esb-shop-interval button[aria-checked='true'] { background: #fff; color: var(--esb-ink); box-shadow: var(--esb-shadow-s); }
.esb-shop-interval em { padding: 1px 8px; border-radius: var(--esb-radius-pill); background: var(--esb-green-soft); color: var(--esb-green-deep); font-size: 0.75rem; font-style: normal; }

.esb-shop-plans {
	display: grid;
	/* Four in a row beside the cart; two by two when that is too narrow; one on a phone. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 1000px) {
	.esb-shop-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On a phone the plans are a row to swipe, the next one peeking in, rather than four screens of cards. */
@media (max-width: 560px) {
	.esb-shop-plans {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 84%;
		overflow-x: auto;
		padding: 14px 2px 10px;
		margin-inline: calc(-1 * var(--esb-gutter, 16px));
		padding-inline: var(--esb-gutter, 16px);
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--esb-gutter, 16px);
		scrollbar-width: none;
	}
	.esb-shop-plans::-webkit-scrollbar { display: none; }
	.esb-shop-plan { scroll-snap-align: start; }
}
.esb-shop-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 18px 22px;
	border: 1px solid var(--esb-line);
	border-radius: var(--esb-radius-l, 20px);
	background: #fff;
	box-shadow: var(--esb-shadow-xs);
	transition: border-color var(--esb-fast) var(--esb-ease), box-shadow var(--esb-mid) var(--esb-ease);
}
.esb-shop-plan.is-featured { border-color: var(--esb-green); box-shadow: 0 0 0 3px rgb(14 110 88 / 0.1), var(--esb-shadow-m); }
.esb-shop-plan.is-chosen { border-color: var(--esb-green); box-shadow: 0 0 0 3px rgb(14 110 88 / 0.22), var(--esb-shadow-m); }
.esb-shop-plan__badge {
	position: absolute;
	inset-block-start: -12px;
	inset-inline-start: 20px;
	padding: 2px 12px;
	border-radius: var(--esb-radius-pill);
	background: var(--esb-green);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
}
.esb-shop-plan__top { display: grid; gap: 4px; }
.esb-shop-plan__lead { min-block-size: 3.4em; color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); line-height: 1.75; }
.esb-shop-plan__price { padding-block-start: 12px; border-block-start: 1px dashed var(--esb-line); }
.esb-shop-plan__cta { margin-block-start: auto; }
.esb-shop-plan__cta { inline-size: 100%; }
.esb-shop-plan__points { display: grid; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.esb-shop-plan__points li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--esb-text-small, 0.875rem); line-height: 1.7; }
.esb-shop-plan__points .esb-icon { margin-block-start: 3px; color: var(--esb-green); }

.esb-shop-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.esb-shop-price strong { color: var(--esb-ink); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 800; line-height: 1.3; }
.esb-shop-price span { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); }

.esb-shop-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.esb-shop-item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--esb-line);
	border-radius: var(--esb-radius-m, 14px);
	background: #fff;
	transition: border-color var(--esb-fast) var(--esb-ease);
}
.esb-shop-item.is-extension { background: var(--esb-mist, #f5f7fa); }
.esb-shop-item.is-chosen { border-color: var(--esb-green); box-shadow: 0 0 0 2px rgb(14 110 88 / 0.18); }
.esb-shop-item__body { display: grid; gap: 6px; }
.esb-shop-item__body p { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); line-height: 1.85; }
.esb-shop-item__needs { display: flex; gap: 6px; align-items: center; color: var(--esb-club-ink, #8a5300) !important; }
.esb-shop-item__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.esb-shop-item__foot .esb-shop-plan__price { padding: 0; border: 0; }
.esb-shop-item__foot .esb-shop-price strong { font-size: 1.125rem; }


.esb-shop-lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.esb-shop-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-block: 12px; border-block-end: 1px solid var(--esb-line); }
.esb-shop-line:last-child { border-block-end: 0; }
.esb-shop-line__name { display: grid; gap: 2px; min-inline-size: 0; }
.esb-shop-line__name strong { color: var(--esb-ink); font-size: 0.9375rem; font-weight: 600; }
.esb-shop-line__name span { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-line__tools { display: flex; align-items: center; gap: 12px; }
.esb-shop-amount { color: var(--esb-ink); font-weight: 700; white-space: nowrap; }
.esb-shop-invoice .esb-shop-line { flex-wrap: nowrap; }

.esb-shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--esb-line-2); border-radius: var(--esb-radius-pill); }
.esb-shop-qty button { inline-size: 30px; block-size: 30px; border: 0; background: none; color: var(--esb-ink); font-size: 1.1rem; cursor: pointer; }
.esb-shop-qty output { min-inline-size: 24px; text-align: center; font-weight: 700; }

.esb-shop-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--esb-line); }
.esb-shop-total strong { color: var(--esb-ink); font-size: 1.25rem; }
.esb-shop-total--big { flex-wrap: wrap; }
.esb-shop-total--big strong { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); color: var(--esb-green-deep, #0a4f40); }

/* ---------------------------------------------------------------- forms */

.esb-shop-field { display: grid; gap: 6px; }
.esb-shop-field > span { color: var(--esb-ink); font-size: 0.9375rem; font-weight: 600; }
.esb-shop-field input {
	inline-size: 100%;
	min-block-size: 48px;
	padding: 10px 14px;
	border: 1px solid var(--esb-line-2);
	border-radius: var(--esb-radius-s, 10px);
	background: #fff;
	color: var(--esb-ink);
	font: inherit;
	box-sizing: border-box;
}
.esb-shop-field input:focus-visible { outline: none; border-color: var(--esb-green); box-shadow: 0 0 0 3px rgb(14 110 88 / 0.18); }
.esb-shop-field input[aria-invalid='true'] { border-color: #c2410c; }
.esb-shop-field small { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); line-height: 1.75; }
.esb-shop-field small.is-ok { color: var(--esb-green-deep, #0a4f40); font-weight: 600; }
.esb-shop-field small.is-bad { color: #b42318; font-weight: 600; }
.esb-shop-code { letter-spacing: 0.4em; text-align: center; font-size: 1.4rem !important; font-weight: 700; }
.esb-shop-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.esb-shop-notice { padding: 10px 14px; border-radius: var(--esb-radius-s, 10px); font-size: var(--esb-text-small, 0.875rem); line-height: 1.85; }
.esb-shop-notice.is-error { background: #fef3f2; color: #b42318; }
.esb-shop-notice.is-success { background: var(--esb-green-wash, #f1f8f5); color: var(--esb-green-deep, #0a4f40); }
.esb-shop-notice.is-info { background: #eff4ff; color: #1d4ed8; }
.esb-shop-notice:focus { outline: none; }

.esb-shop-choices, .esb-shop-gateways { display: grid; gap: 10px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.esb-shop-gateways legend { margin-block-end: 10px; color: var(--esb-ink); font-weight: 700; }
.esb-shop-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--esb-line-2);
	border-radius: var(--esb-radius-m, 14px);
	cursor: pointer;
	transition: border-color var(--esb-fast) var(--esb-ease), background-color var(--esb-fast) var(--esb-ease);
}
.esb-shop-choice:has(input:checked) { border-color: var(--esb-green); background: var(--esb-green-wash, #f1f8f5); }
.esb-shop-choice input { inline-size: 18px; block-size: 18px; accent-color: var(--esb-green); flex: none; }
.esb-shop-choice img { inline-size: 40px; block-size: 40px; object-fit: contain; }
.esb-shop-choice > span:not(.esb-shop-avatar):not(.esb-shop-badge) { display: grid; gap: 2px; min-inline-size: 0; }
.esb-shop-choice strong { color: var(--esb-ink); }
.esb-shop-choice small { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }

.esb-shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- shared pieces of the checkout and account */

.esb-shop-svg { flex: none; }
.esb-shop-card__head { display: flex; align-items: flex-start; gap: 14px; }
.esb-shop-card__head > div { display: grid; gap: 4px; min-inline-size: 0; }
.esb-shop-card__head p { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); line-height: 1.85; }
.esb-shop-card__icon { display: inline-grid; place-items: center; flex: none; inline-size: 46px; block-size: 46px; border-radius: 14px; background: var(--esb-green-wash, #f1f8f5); color: var(--esb-green); }

.esb-shop-avatar { display: inline-grid; place-items: center; flex: none; inline-size: 52px; block-size: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--esb-green), var(--esb-green-deep, #0a4f40)); color: #fff; font-size: 1.25rem; font-weight: 800; }
.esb-shop-avatar.is-sm { inline-size: 40px; block-size: 40px; font-size: 1rem; }
.esb-shop-avatar.is-new { background: var(--esb-green-wash, #f1f8f5); color: var(--esb-green); }
.esb-shop-choice .esb-shop-avatar.is-new { border: 1px solid var(--esb-green-soft); background: #fff; }

.esb-shop-actions.is-end { justify-content: flex-end; }
.esb-shop .esb-btn .esb-shop-svg { margin-inline-end: 2px; }
.esb-shop .esb-btn--sm { gap: 6px; }

.esb-shop-skeleton { block-size: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--esb-mist, #f5f7fa), var(--esb-cloud, #eef2f7), var(--esb-mist, #f5f7fa)); background-size: 200% 100%; animation: esb-shop-shimmer 1.2s linear infinite; }
.esb-shop-skeleton + .esb-shop-skeleton { inline-size: 60%; }
@keyframes esb-shop-shimmer { to { background-position: -200% 0; } }

.esb-shop-state { justify-items: center; padding-block: clamp(32px, 2rem + 2vw, 56px); text-align: center; }
.esb-shop-state__icon { display: inline-grid; place-items: center; inline-size: 68px; block-size: 68px; border-radius: 50%; background: var(--esb-green-wash, #f1f8f5); color: var(--esb-green); }
.esb-shop-state p { max-inline-size: 30rem; color: var(--esb-ink-3); line-height: 1.9; }
.esb-shop-state .esb-shop-actions { justify-content: center; }

.esb-shop-assure { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.esb-shop-assure li { display: flex; align-items: flex-start; gap: 10px; color: var(--esb-ink-2); font-size: var(--esb-text-small, 0.875rem); line-height: 1.75; }
.esb-shop-assure .esb-shop-svg { margin-block-start: 2px; color: var(--esb-green); }

.esb-shop-help { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-m, 14px); background: #fff; color: inherit; text-decoration: none; transition: border-color var(--esb-fast) var(--esb-ease); }
.esb-shop-help:hover { border-color: var(--esb-green); }
.esb-shop-help > .esb-shop-svg { inline-size: 36px; block-size: 36px; padding: 8px; border-radius: 50%; background: var(--esb-green); color: #fff; box-sizing: border-box; }
.esb-shop-help span { display: grid; }
.esb-shop-help small { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-help strong { color: var(--esb-ink); font-size: 1rem; text-align: start; }

/* ---------------------------------------------------------------- the page head, in line with what is under it */

.esb-page-hero.esb-shop-hero .esb-page-hero__inner { max-inline-size: var(--esb-container-wide, 1320px); }
.esb-page-hero.esb-shop-hero--checkout .esb-page-hero__inner { max-inline-size: 1040px; }
.esb-page-hero.esb-shop-hero--account .esb-page-hero__inner { max-inline-size: 1100px; }
.esb-page-hero.esb-shop-hero--checkout, .esb-page-hero.esb-shop-hero--account {
	padding-block: calc(var(--esb-header-h) + 12px + clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem)) clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}
.esb-shop-hero .esb-shop-trust { margin-block-start: 6px; }
.esb-shop { padding-block-start: clamp(24px, 1rem + 1.5vw, 40px); }

/* ---------------------------------------------------------------- checkout */

.esb-shop-app[data-app='checkout'] { max-inline-size: 1040px; margin-inline: auto; }
.esb-shop-app[data-app='account'] { max-inline-size: 1100px; margin-inline: auto; }

.esb-shop-steps { display: flex; gap: 10px; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: #fff; list-style: none; box-shadow: var(--esb-shadow-xs); }
.esb-shop-steps li { display: flex; flex: 1; align-items: center; gap: 10px; min-inline-size: 0; color: var(--esb-ink-3); font-weight: 700; }
.esb-shop-steps li:last-child { flex: none; }
.esb-shop-steps li:not(:last-child)::after { content: ''; flex: 1; block-size: 2px; min-inline-size: 16px; border-radius: 2px; background: var(--esb-line); }
.esb-shop-steps li.is-done:not(:last-child)::after { background: var(--esb-green); }
.esb-shop-steps__dot { display: inline-grid; place-items: center; flex: none; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--esb-cloud, #eef2f7); color: var(--esb-ink-3); font-size: 0.9375rem; transition: background-color var(--esb-mid) var(--esb-ease); }
.esb-shop-steps__label { display: grid; line-height: 1.45; white-space: nowrap; }
.esb-shop-steps__label small { color: var(--esb-ink-3); font-size: 0.75rem; font-weight: 500; }
.esb-shop-steps .is-current { color: var(--esb-ink); }
.esb-shop-steps .is-current .esb-shop-steps__dot { background: var(--esb-green); color: #fff; box-shadow: 0 0 0 4px rgb(14 110 88 / 0.15); }
.esb-shop-steps .is-done { color: var(--esb-green-deep, #0a4f40); }
.esb-shop-steps .is-done .esb-shop-steps__dot { background: var(--esb-green-soft); color: var(--esb-green-deep, #0a4f40); }

.esb-shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--shop-gap); align-items: start; }
.esb-shop-checkout__main { display: grid; gap: 16px; min-inline-size: 0; animation: esb-shop-rise 0.3s var(--esb-ease, ease) both; }
@keyframes esb-shop-rise { from { opacity: 0; transform: translateY(8px); } }
.esb-shop-checkout__side { position: sticky; inset-block-start: calc(var(--esb-header-h, 72px) + 16px); display: grid; gap: 14px; }
.esb-shop-checkout .esb-shop-card { gap: 20px; }

.esb-shop-summary { gap: 12px !important; padding: 20px !important; }
.esb-shop-summary__headrow { display: flex; align-items: center; justify-content: space-between; }
.esb-shop-summary__title { display: inline-flex; align-items: center; gap: 8px; color: var(--esb-ink); }
.esb-shop-summary__title .esb-shop-svg { color: var(--esb-green); }
.esb-shop-summary__title em { padding: 1px 9px; border-radius: var(--esb-radius-pill); background: var(--esb-cloud, #eef2f7); color: var(--esb-ink-3); font-size: 0.75rem; font-style: normal; font-weight: 700; }
.esb-shop-summary__for { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--esb-radius-s, 10px); background: var(--esb-green-wash, #f1f8f5); color: var(--esb-green-deep, #0a4f40); font-size: var(--esb-text-small, 0.875rem); font-weight: 600; }
.esb-shop-summary .esb-shop-line { padding-block: 10px; }
.esb-shop-summary .esb-shop-amount { font-size: 0.9375rem; }
.esb-shop-summary .esb-shop-total strong { font-size: 1.125rem; }
.esb-shop-summary__edit { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--esb-green); font-size: var(--esb-text-small, 0.875rem); font-weight: 700; text-decoration: none; }
.esb-shop-summary__edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.esb-shop-summary.is-compact { display: block; padding: 0 !important; }
.esb-shop-summary.is-compact summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.esb-shop-summary.is-compact summary::-webkit-details-marker { display: none; }
.esb-shop-summary__sum { display: inline-flex; align-items: center; gap: 6px; color: var(--esb-ink); font-weight: 800; white-space: nowrap; }
.esb-shop-summary__sum .esb-shop-svg { transition: transform var(--esb-mid) var(--esb-ease); }
.esb-shop-summary[open] .esb-shop-summary__sum .esb-shop-svg { transform: rotate(180deg); }
.esb-shop-summary__body { display: grid; gap: 12px; padding: 0 16px 16px; border-block-start: 1px solid var(--esb-line); }

.esb-shop-signin__foot { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.esb-shop-big { font-size: 1.25rem !important; letter-spacing: 0.06em; text-align: center; }
.esb-shop-signin .esb-shop-field input { min-block-size: 54px; }
.esb-shop-code::placeholder { color: var(--esb-line-2); letter-spacing: 0.5em; }

.esb-shop-choice .esb-shop-badge { margin-inline-start: auto; }
.esb-shop-reveal:not([hidden]) { animation: esb-shop-rise 0.25s var(--esb-ease, ease) both; padding-block-start: 4px; }

.esb-shop-bill { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px 18px 16px; border-radius: var(--esb-radius-m, 14px); background: var(--esb-mist, #f5f7fa); }
.esb-shop-bill .esb-shop-line { border-block-end-color: rgb(15 26 42 / 0.08); }
.esb-shop-line.is-credit .esb-shop-amount, .esb-shop-line.is-credit .esb-shop-line__name strong { color: var(--esb-green-deep, #0a4f40); }
.esb-shop-coupon { border-block: 1px dashed rgb(15 26 42 / 0.12); }
.esb-shop-coupon summary { display: inline-flex; align-items: center; gap: 6px; padding-block: 12px; color: var(--esb-green); font-size: var(--esb-text-small, 0.875rem); font-weight: 700; cursor: pointer; list-style: none; }
.esb-shop-coupon summary::-webkit-details-marker { display: none; }
.esb-shop-coupon summary .esb-shop-svg:last-child { transition: transform var(--esb-mid) var(--esb-ease); }
.esb-shop-coupon[open] summary .esb-shop-svg:last-child { transform: rotate(180deg); }
.esb-shop-coupon__row { display: flex; gap: 8px; padding-block-end: 12px; }
.esb-shop-coupon__row input { flex: 1; min-inline-size: 0; min-block-size: 42px; padding: 8px 12px; border: 1px solid var(--esb-line-2); border-radius: var(--esb-radius-s, 10px); background: #fff; color: var(--esb-ink); font: inherit; letter-spacing: 0.08em; }
.esb-shop-coupon__row input:focus-visible { outline: none; border-color: var(--esb-green); box-shadow: 0 0 0 3px rgb(14 110 88 / 0.18); }
.esb-shop-bill .esb-shop-total { padding-block-start: 14px; border: 0; }

.esb-shop-gateways__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.esb-shop-choice.is-gateway { padding-block: 16px; }

.esb-shop-actions.is-pay { justify-content: space-between; }
.esb-shop-paybtn { gap: 8px; min-block-size: 54px; padding-inline: 28px; font-size: 1.0625rem; }
.esb-shop-secure { display: flex; align-items: flex-start; gap: 8px; }
.esb-shop-secure .esb-shop-svg { margin-block-start: 4px; color: var(--esb-green); }

/* After the gateway. */
.esb-shop-result { display: grid; justify-items: center; gap: 14px; max-inline-size: 640px; margin-inline: auto; padding: clamp(28px, 1.5rem + 2vw, 48px); border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: #fff; text-align: center; box-shadow: var(--esb-shadow-s); animation: esb-shop-rise 0.35s var(--esb-ease, ease) both; }
.esb-shop-result h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
.esb-shop-result > p { max-inline-size: 32rem; color: var(--esb-ink-2); line-height: 1.95; }
.esb-shop-result__icon { display: inline-grid; place-items: center; inline-size: 76px; block-size: 76px; border-radius: 50%; background: var(--esb-green-soft); color: var(--esb-green); box-shadow: 0 0 0 10px var(--esb-green-wash, #f1f8f5); }
.esb-shop-result__icon .esb-icon { inline-size: 34px; block-size: 34px; }
.esb-shop-result.is-failed .esb-shop-result__icon { background: #fde8e6; color: #b42318; box-shadow: 0 0 0 10px #fef3f2; }
.esb-shop-result.is-pending .esb-shop-result__icon, .esb-shop-result.is-activating .esb-shop-result__icon { background: #e0e9ff; color: #1d4ed8; box-shadow: 0 0 0 10px #eff4ff; }
.esb-shop-result .esb-shop-facts { inline-size: 100%; margin-block-start: 8px; text-align: start; }
.esb-shop-result .esb-shop-actions { justify-content: center; }
.esb-shop-result__help { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); }
.esb-shop-result__help a { color: var(--esb-green); font-weight: 700; }

.esb-shop-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; padding: 16px 18px; border-radius: var(--esb-radius-m, 14px); background: var(--esb-mist, #f5f7fa); }
.esb-shop-facts > div { display: grid; gap: 2px; min-inline-size: 0; }
.esb-shop-facts .is-wide { grid-column: 1 / -1; }
.esb-shop-facts dt { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-facts dd { margin: 0; color: var(--esb-ink); font-weight: 600; overflow-wrap: anywhere; }
.esb-shop-facts dd small { color: var(--esb-ink-3); font-weight: 500; }

/* ---------------------------------------------------------------- account */

.esb-shop-gate { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 300px); justify-content: center; align-items: start; gap: var(--shop-gap); }
.esb-shop-gate__aside { display: grid; gap: 14px; padding: 22px; border-radius: var(--esb-radius-l, 20px); background: var(--esb-green-wash, #f1f8f5); }
.esb-shop-gate__aside h3 { color: var(--esb-green-deep, #0a4f40); }

.esb-shop-account { display: grid; gap: 18px; }
.esb-shop-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 20px 22px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: radial-gradient(60% 120% at 100% 0%, rgb(14 110 88 / 0.07), transparent 70%), #fff; box-shadow: var(--esb-shadow-xs); }
.esb-shop-profile__who { display: grid; gap: 2px; min-inline-size: 0; }
.esb-shop-profile__who strong { color: var(--esb-ink); font-size: 1.125rem; }
.esb-shop-profile__who span { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); text-align: start; }
.esb-shop-profile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }

.esb-shop-tabs { display: inline-flex; gap: 4px; justify-self: start; padding: 4px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-pill); background: var(--esb-mist, #f5f7fa); }
.esb-shop-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: var(--esb-radius-pill); background: none; color: var(--esb-ink-3); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; transition: background-color var(--esb-fast) var(--esb-ease), color var(--esb-fast) var(--esb-ease); }
.esb-shop-tabs button[aria-selected='true'] { background: #fff; color: var(--esb-ink); box-shadow: var(--esb-shadow-s); }
.esb-shop-tabs em { min-inline-size: 22px; padding: 0 7px; border-radius: var(--esb-radius-pill); background: var(--esb-cloud, #eef2f7); font-size: 0.75rem; font-style: normal; text-align: center; }
.esb-shop-tabs button[aria-selected='true'] em { background: var(--esb-green-soft); color: var(--esb-green-deep, #0a4f40); }
.esb-shop-account [role='tabpanel'] { animation: esb-shop-rise 0.25s var(--esb-ease, ease) both; }

.esb-shop-wslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.esb-shop-ws { display: grid; gap: 16px; align-content: start; padding: 20px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: #fff; box-shadow: var(--esb-shadow-xs); transition: border-color var(--esb-fast) var(--esb-ease), box-shadow var(--esb-mid) var(--esb-ease); }
.esb-shop-ws:hover { box-shadow: var(--esb-shadow-s); }
.esb-shop-ws.is-focus { border-color: var(--esb-green); box-shadow: 0 0 0 3px rgb(14 110 88 / 0.2); }
.esb-shop-ws.is-closed { opacity: 0.7; }
.esb-shop-ws__head { display: flex; align-items: center; gap: 12px; }
.esb-shop-ws__who { display: grid; min-inline-size: 0; }
.esb-shop-ws__who h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esb-shop-ws__head .esb-shop-badge { margin-inline-start: auto; }
.esb-shop-ws__slug { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); text-align: start; }
.esb-shop-ws__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding: 14px 16px; border-radius: var(--esb-radius-m, 14px); background: var(--esb-mist, #f5f7fa); }
.esb-shop-ws__facts > div { display: grid; gap: 4px; min-inline-size: 0; }
.esb-shop-ws__facts .is-wide { grid-column: 1 / -1; }
.esb-shop-ws__facts dt { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-ws__facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--esb-ink); font-weight: 700; }
.esb-shop-ws__facts dd small { color: var(--esb-ink-3); font-weight: 500; }
.esb-shop-days { padding: 1px 9px; border-radius: var(--esb-radius-pill); font-size: 0.75rem; font-weight: 700; }
.esb-shop-days.is-calm { background: var(--esb-green-soft); color: var(--esb-green-deep, #0a4f40); }
.esb-shop-days.is-warning { background: #fff5e6; color: #8a5300; }
.esb-shop-days.is-danger { background: #fef3f2; color: #b42318; }
.esb-shop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.esb-shop-ws__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-block-start: 14px; border-block-start: 1px solid var(--esb-line); }
.esb-shop-ws__foot .esb-shop-link { margin-inline-start: auto; }
.esb-shop-ws--add { justify-items: center; align-content: center; gap: 8px; min-block-size: 220px; border: 1.5px dashed var(--esb-line-2); background: transparent; box-shadow: none; color: var(--esb-ink); font: inherit; text-align: center; cursor: pointer; }
.esb-shop-ws--add:hover { border-color: var(--esb-green); background: var(--esb-green-wash, #f1f8f5); box-shadow: none; }
.esb-shop-ws--add small { color: var(--esb-ink-3); }

.esb-shop-badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--esb-radius-pill); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.esb-shop-badge.is-success { background: var(--esb-green-soft); color: var(--esb-green-deep); }
.esb-shop-badge.is-info { background: #eff4ff; color: #1d4ed8; }
.esb-shop-badge.is-warning { background: #fff5e6; color: #8a5300; }
.esb-shop-badge.is-danger { background: #fef3f2; color: #b42318; }
.esb-shop-badge.is-muted { background: var(--esb-cloud, #eef2f7); color: var(--esb-ink-3); }
.esb-shop-chip { display: inline-block; padding: 2px 10px; border-radius: var(--esb-radius-pill); background: #fff; border: 1px solid var(--esb-line); color: var(--esb-ink-2); font-size: 0.8125rem; font-weight: 600; }

.esb-shop-paylist { overflow: hidden; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: #fff; box-shadow: var(--esb-shadow-xs); }
.esb-shop-paylist__row { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 2fr) minmax(150px, 1fr) 120px; align-items: center; gap: 16px; padding: 16px 20px; border-block-end: 1px solid var(--esb-line); }
.esb-shop-paylist__row:last-child { border-block-end: 0; }
.esb-shop-paylist__row.is-head { padding-block: 10px; background: var(--esb-mist, #f5f7fa); color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); font-weight: 700; }
.esb-shop-paylist__row > span { display: grid; gap: 2px; min-inline-size: 0; }
.esb-shop-paylist__row strong { color: var(--esb-ink); font-size: 0.9375rem; }
.esb-shop-paylist__row small { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); line-height: 1.7; }
.esb-shop-paylist__status { justify-items: end; }

.esb-shop-modal.esb-shop-modal--form { inline-size: min(100% - 32px, 680px); }
.esb-shop-modal__body { overflow-y: auto; padding: 18px 20px 22px; }
.esb-shop-modal__body .esb-shop-newws { display: grid; gap: 16px; }

.esb-shop-empty { padding: 32px; border: 1px dashed var(--esb-line-2); border-radius: var(--esb-radius-l, 20px); text-align: center; }

/* ---------------------------------------------------------------- the store's questions and its last word */

.esb-shop-faq__list { display: grid; gap: 10px; max-inline-size: 880px; }
.esb-shop-faq__item { border: 1px solid var(--esb-line); border-radius: var(--esb-radius-m, 14px); background: #fff; transition: border-color var(--esb-fast) var(--esb-ease), box-shadow var(--esb-mid) var(--esb-ease); }
.esb-shop-faq__item[open] { border-color: var(--esb-green-soft); box-shadow: var(--esb-shadow-xs); }
.esb-shop-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: var(--esb-ink); font-weight: 700; cursor: pointer; list-style: none; }
.esb-shop-faq__item summary::-webkit-details-marker { display: none; }
.esb-shop-faq__item summary .esb-shop-glyph { flex: none; color: var(--esb-ink-3); transition: transform var(--esb-mid) var(--esb-ease); }
.esb-shop-faq__item[open] summary .esb-shop-glyph { transform: rotate(180deg); color: var(--esb-green); }
.esb-shop-faq__answer { padding: 0 18px 16px; color: var(--esb-ink-2); line-height: 1.95; }
.esb-shop-faq__answer a { color: var(--esb-green); font-weight: 600; }

.esb-shop-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 1.2rem + 2vw, 44px); border-radius: var(--esb-radius-l, 20px); background: radial-gradient(70% 140% at 100% 0%, rgb(255 255 255 / 0.14), transparent 60%), linear-gradient(135deg, var(--esb-green), var(--esb-green-deep, #0a4f40)); color: #fff; }
.esb-shop-final__text { display: grid; flex: 1 1 380px; gap: 8px; }
.esb-shop .esb-shop-final h2 { color: #fff; }
.esb-shop-final p { max-inline-size: 40rem; color: rgb(255 255 255 / 0.85); line-height: 1.95; }
.esb-shop-final__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- narrower */

@media (max-width: 1080px) {
	.esb-shop-checkout { grid-template-columns: minmax(0, 1fr); }
	.esb-shop-checkout__side { position: static; order: -1; }
	.esb-shop { padding-block-end: calc(var(--esb-section, 5rem) + 72px); }
}
@media (max-width: 860px) {
	.esb-shop-gate { grid-template-columns: minmax(0, 1fr); }
	.esb-shop-paylist__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
	.esb-shop-paylist__row.is-head { display: none; }
	.esb-shop-paylist__items { grid-column: 1 / -1; grid-row: 2; }
	.esb-shop-paylist__amount { grid-row: 3; }
	.esb-shop-paylist__status { grid-row: 1; grid-column: 2; }
}
@media (max-width: 640px) {
	.esb-shop-grid2, .esb-shop-facts, .esb-shop-ws__facts { grid-template-columns: minmax(0, 1fr); }
	.esb-shop-plan__lead { min-block-size: 0; }
	.esb-shop-section__head { align-items: stretch; }
	.esb-shop-interval { inline-size: 100%; }
	.esb-shop-interval button { flex: 1; justify-content: center; padding-inline: 10px; }
	.esb-shop-actions .esb-btn { flex: 1 1 auto; }
	.esb-shop-actions.is-pay { flex-direction: column-reverse; align-items: stretch; }
	.esb-shop-invoice .esb-shop-line { flex-wrap: wrap; }
	.esb-shop-bill { padding-inline: 14px; }
	.esb-shop-choice .esb-shop-badge { display: none; }
	.esb-shop-cartbar .esb-btn { flex: none; }
	.esb-shop-steps { padding: 12px; gap: 6px; }
	.esb-shop-steps li { gap: 6px; }
	.esb-shop-steps li:not(.is-current) .esb-shop-steps__label { display: none; }
	.esb-shop-steps__label small { display: none; }
	.esb-shop-steps__dot { inline-size: 30px; block-size: 30px; }
	.esb-shop-card__icon { inline-size: 40px; block-size: 40px; border-radius: 12px; }
	.esb-shop-profile__actions { inline-size: 100%; margin-inline-start: 0; }
	.esb-shop-profile__actions .esb-btn { flex: 1; }
	.esb-shop-tabs { justify-self: stretch; }
	.esb-shop-tabs button { flex: 1; justify-content: center; padding-inline: 10px; }
	.esb-shop-ws__foot .esb-shop-link { margin-inline-start: 0; inline-size: 100%; text-align: start; }
	.esb-shop-ws--add { min-block-size: 140px; }
	.esb-shop-final__actions, .esb-shop-final__actions .esb-btn { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.esb-shop *, .esb-shop *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- the store, whole width */

.esb-shop[data-role='shop'] { display: grid; gap: clamp(36px, 2rem + 2vw, 64px); padding-block-end: calc(var(--esb-section, 5rem) + 84px); }

.esb-shop-compare__frame { overflow-x: auto; border-block-start: 1px solid var(--esb-line); }

/* «سئوی هوشمند»: the same card as every add-on, given a row of its own. */
.esb-shop-item.is-wide { grid-column: 1 / -1; border-color: var(--esb-seo, #0a7fa6); background: linear-gradient(90deg, transparent, rgb(10 127 166 / 0.05)); }
@media (min-width: 760px) {
	.esb-shop-item.is-wide { flex-direction: row; align-items: center; gap: 32px; }
	.esb-shop-item.is-wide .esb-shop-item__foot { flex: none; flex-direction: column; align-items: stretch; min-inline-size: 220px; padding-inline-start: 24px; border-inline-start: 1px dashed var(--esb-line); }
}

.esb-shop-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important; }

/* The cart: a bar at the foot of the window that rises in, its details opening softly above it. */
.esb-shop-cartbar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 40;
	padding: 10px var(--esb-gutter, 16px) calc(10px + env(safe-area-inset-bottom));
	pointer-events: none;
	transform: translateY(130%);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.esb-shop-cartbar.is-shown { transform: none; opacity: 1; }
.esb-shop-cartbar.is-shown .esb-shop-cartbar__inner { pointer-events: auto; }
.esb-shop-cartbar__inner {
	display: grid;
	inline-size: min(100%, 760px);
	margin-inline: auto;
	padding: 10px;
	border: 1px solid var(--esb-line);
	border-radius: var(--esb-radius-l, 20px);
	background: rgb(255 255 255 / 0.97);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 40px -16px rgb(15 26 42 / 0.35);
}
.esb-shop-cartbar__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.esb-shop-cartbar.is-open .esb-shop-cartbar__panel { grid-template-rows: 1fr; }
.esb-shop-cartbar__panel-in { min-block-size: 0; max-block-size: min(55vh, 420px); overflow-y: auto; padding-inline: 8px; opacity: 0; transition: opacity 0.25s ease; }
.esb-shop-cartbar.is-open .esb-shop-cartbar__panel-in { padding-block-end: 10px; opacity: 1; }
.esb-shop-cartbar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.esb-shop-cartbar__summary { display: flex; flex: 1; align-items: center; gap: 12px; min-inline-size: 0; padding: 6px 8px; border: 0; border-radius: var(--esb-radius-m, 14px); background: none; font: inherit; text-align: start; cursor: pointer; }
.esb-shop-cartbar__summary:hover { background: var(--esb-mist, #f5f7fa); }
.esb-shop-cartbar__count { display: inline-grid; place-items: center; flex: none; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--esb-green); color: #fff; font-weight: 700; }
.esb-shop-cartbar__text { display: grid; min-inline-size: 0; }
.esb-shop-cartbar__text strong { color: var(--esb-ink); }
.esb-shop-cartbar__text span { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esb-shop-cartbar__more { display: inline-flex; flex: none; align-items: center; gap: 6px; margin-inline-start: auto; padding: 6px 12px; border-radius: var(--esb-radius-pill); background: var(--esb-green-soft); color: var(--esb-green-deep, #0a4f40); font-size: 0.8125rem; font-weight: 700; }
.esb-shop-cartbar__more svg { transition: transform 0.3s ease; }
.esb-shop-cartbar.is-open .esb-shop-cartbar__more svg { transform: rotate(180deg); }

.esb-shop-qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-pill); background: var(--esb-mist, #f5f7fa); }
.esb-shop-qty button { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; border: 0; border-radius: 50%; background: #fff; color: var(--esb-green-deep, #0a4f40); font-size: 1.05rem; font-weight: 700; line-height: 1; box-shadow: var(--esb-shadow-xs); cursor: pointer; transition: background-color var(--esb-fast) var(--esb-ease); }
.esb-shop-qty button:hover { background: var(--esb-green-soft); }
.esb-shop-qty output { min-inline-size: 26px; color: var(--esb-ink); font-weight: 700; text-align: center; }
.esb-shop-remove { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--esb-radius-pill); background: none; color: #b42318; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background-color var(--esb-fast) var(--esb-ease), border-color var(--esb-fast) var(--esb-ease); }
.esb-shop-remove:hover, .esb-shop-remove:focus-visible { border-color: #f1c0bb; background: #fef3f2; }

/* The comparison, in a dialog that rises in softly. */
.esb-shop-compare-open { display: flex; justify-content: center; }
.esb-shop-compare-open .esb-btn { gap: 8px; }
.esb-shop-modal {
	inline-size: min(100% - 24px, 980px);
	max-block-size: min(88vh, 900px);
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--esb-radius-l, 20px);
	background: #fff;
	box-shadow: 0 30px 80px -20px rgb(15 26 42 / 0.45);
}
.esb-shop-modal[open] { display: flex; flex-direction: column; animation: esb-shop-modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.esb-shop-modal.is-closing { animation: esb-shop-modal-out 0.18s ease forwards; }
.esb-shop-modal::backdrop { background: rgb(11 18 32 / 0.5); backdrop-filter: blur(2px); animation: esb-shop-fade 0.28s ease; }
.esb-shop-modal.is-closing::backdrop { animation: esb-shop-fade 0.18s ease reverse forwards; }
@keyframes esb-shop-modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes esb-shop-modal-out { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes esb-shop-fade { from { opacity: 0; } }
.esb-shop-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-block-end: 1px solid var(--esb-line); }
.esb-shop-modal__close { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; border: 0; border-radius: 50%; background: var(--esb-mist, #f5f7fa); color: var(--esb-ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.esb-shop-modal__close:hover { background: var(--esb-cloud, #eef2f7); }
.esb-shop-modal .esb-shop-compare__frame { overflow: auto; border: 0; }
.esb-shop-modal table { inline-size: 100%; min-inline-size: 640px; border-collapse: collapse; font-size: var(--esb-text-small, 0.875rem); }
.esb-shop-modal th, .esb-shop-modal td { padding: 11px 14px; border-block-end: 1px solid var(--esb-line); text-align: center; vertical-align: top; }
.esb-shop-modal tbody th[scope='row'] { color: var(--esb-ink-2); font-weight: 500; text-align: start; }
.esb-shop-modal thead th { position: sticky; inset-block-start: 0; z-index: 1; background: var(--esb-mist, #f5f7fa); color: var(--esb-ink); }
.esb-shop-modal .is-group th { background: var(--esb-green-wash, #f1f8f5); color: var(--esb-green-deep, #0a4f40); font-size: 0.8125rem; text-align: start; }
.esb-shop-modal td .esb-icon { color: var(--esb-green); }
.esb-shop-modal .is-no { color: var(--esb-line-2); }
.esb-shop-info { display: inline-grid; place-items: center; inline-size: 20px; block-size: 20px; margin-inline-start: 4px; border: 1px solid var(--esb-line-2); border-radius: 50%; background: #fff; color: var(--esb-ink-3); font: italic 700 0.75rem/1 Georgia, serif; vertical-align: middle; cursor: pointer; }
.esb-shop-info[aria-expanded='true'], .esb-shop-info:hover { border-color: var(--esb-green); background: var(--esb-green); color: #fff; }
.esb-shop-info__text { display: block; margin-block-start: 8px; padding: 10px 12px; border-radius: var(--esb-radius-s, 10px); background: var(--esb-green-wash, #f1f8f5); color: var(--esb-ink-2); font-size: 0.8125rem; font-weight: 400; line-height: 1.85; animation: esb-shop-fade 0.2s ease; }
.esb-shop-info__text[hidden] { display: none; }

/* Advice, before anything is chosen. */
.esb-shop-advice { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 20px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: linear-gradient(90deg, var(--esb-green-wash, #f1f8f5), #fff); }
.esb-shop-advice__icon { display: inline-grid; place-items: center; flex: none; inline-size: 46px; block-size: 46px; border-radius: 50%; background: var(--esb-green); color: #fff; }
.esb-shop-advice__icon .esb-icon { inline-size: 22px; block-size: 22px; }
.esb-shop-advice__text { display: grid; flex: 1 1 260px; gap: 2px; }
.esb-shop-advice__text strong { color: var(--esb-ink); font-size: 1.0625rem; }
.esb-shop-advice__text span { color: var(--esb-ink-3); font-size: var(--esb-text-small, 0.875rem); line-height: 1.8; }
.esb-shop-advice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.esb-shop-advice__actions .esb-btn { gap: 6px; }

/* «سئوی هوشمند»: what it does, two columns of short lines. */
.esb-shop-item__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 6px 0 2px; padding: 0; list-style: none; }
.esb-shop-item__points li { display: flex; align-items: flex-start; gap: 8px; color: var(--esb-ink-2); font-size: var(--esb-text-small, 0.875rem); line-height: 1.75; }
.esb-shop-item__points .esb-icon { margin-block-start: 3px; color: var(--esb-seo, #0a7fa6); }
.esb-shop-item__needs a { color: var(--esb-green); font-weight: 600; }
.esb-shop-item__needs.is-split { flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.esb-shop-item__needs.is-split > span { display: inline-flex; gap: 6px; align-items: center; }

.esb-shop-toast {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 96px;
	z-index: 41;
	inline-size: min(100% - 2 * var(--esb-gutter, 16px), 640px);
	margin-inline: auto;
	padding: 12px 16px;
	border-radius: var(--esb-radius-m, 14px);
	background: var(--esb-night, #0b1220);
	color: #fff;
	font-size: var(--esb-text-small, 0.875rem);
	line-height: 1.9;
	box-shadow: var(--esb-shadow-l);
}
.esb-shop-toast[hidden] { display: none; }
.esb-shop-toast p + p { margin-block-start: 4px; }

@media (max-width: 560px) {
	.esb-shop-cartbar__row .esb-btn { padding-inline: 16px; }
	.esb-shop-cartbar__more span { display: none; }
	.esb-shop-cartbar__text .esb-shop-cartbar__label { display: none; }
	.esb-shop-cartbar__text span { white-space: normal; line-height: 1.5; }
	.esb-shop-cartbar__summary { gap: 8px; padding-inline: 4px; }
	.esb-shop-item__points { grid-template-columns: minmax(0, 1fr); }
	.esb-shop-advice__actions { inline-size: 100%; }
	.esb-shop-advice__actions .esb-btn { flex: 1; }
}

/* A phone has no room for five columns: each row's name on a line of its own, the four plans beneath it. */
@media (max-width: 640px) {
	.esb-shop-modal .esb-shop-compare__frame { overflow-x: hidden; }
	.esb-shop-modal table, .esb-shop-modal thead, .esb-shop-modal tbody { display: block; inline-size: 100%; min-inline-size: 0; }
	.esb-shop-modal tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
	.esb-shop-modal thead { position: sticky; inset-block-start: 0; z-index: 1; }
	.esb-shop-modal thead th:first-child { display: none; }
	.esb-shop-modal thead th { padding-inline: 4px; text-align: center; }
	.esb-shop-modal tbody th { grid-column: 1 / -1; padding-block-end: 2px; border-block-end: 0; }
	.esb-shop-modal tbody td { padding-block: 6px 12px; padding-inline: 4px; text-align: center; font-size: var(--esb-text-small); }
	.esb-shop-modal tbody tr.is-group th { padding-block: 12px; }
}

/* ---------------------------------------------------------------- card to card (/buy/?transfer=) */

.esb-shop-transfer { display: grid; gap: 18px; max-inline-size: 1080px; margin-inline: auto; }
.esb-shop-transfer__head { display: flex; gap: 16px; align-items: flex-start; padding: clamp(20px, 1rem + 1.5vw, 28px); border: 1px solid var(--esb-line); border-radius: var(--esb-radius-l, 20px); background: #fff; box-shadow: var(--esb-shadow-xs); }
.esb-shop-transfer__head p { margin-block-start: 6px; color: var(--esb-ink-2); line-height: 1.95; }
.esb-shop-transfer__icon { display: inline-grid; flex: none; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--esb-green-soft); color: var(--esb-green); }
.esb-shop-transfer__icon .esb-icon { inline-size: 26px; block-size: 26px; }
.esb-shop-transfer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.esb-shop-transfer h3 { display: flex; align-items: center; gap: 10px; margin-block-end: 14px; }
.esb-shop-step { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--esb-green); color: #fff; font-size: 0.875rem; font-weight: 700; }
.esb-shop-transfer__amount { display: grid; gap: 4px; justify-items: start; margin-block-end: 16px; padding: 16px 18px; border-radius: var(--esb-radius-m, 14px); background: var(--esb-green-wash, #f1f8f5); }
.esb-shop-transfer__amount small { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-transfer__amount strong { color: var(--esb-green-deep, #0a4f40); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); line-height: 1.4; }
.esb-shop-transfer__amount span { color: var(--esb-ink-2); font-size: var(--esb-text-small, 0.875rem); }
.esb-shop-account { display: grid; gap: 0; margin: 0 0 12px; border: 1px solid var(--esb-line); border-radius: var(--esb-radius-m, 14px); }
.esb-shop-account > div { display: grid; gap: 4px; padding: 12px 16px; }
.esb-shop-account > div + div { border-block-start: 1px solid var(--esb-line); }
.esb-shop-account dt { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-account dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; color: var(--esb-ink); font-weight: 700; }
.esb-shop-account .is-number { font-size: 1.0625rem; letter-spacing: 0.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.esb-shop-copy { flex: none; min-block-size: 34px; padding: 4px 14px; border: 1px solid var(--esb-green); border-radius: var(--esb-radius-pill); background: #fff; color: var(--esb-green-deep, #0a4f40); font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; transition: background var(--esb-fast, 0.15s) ease; }
.esb-shop-copy:hover, .esb-shop-copy.is-done { background: var(--esb-green-soft); }
.esb-shop-copy:focus-visible { outline: 2px solid var(--esb-green); outline-offset: 2px; }
.esb-shop-receipts { display: grid; gap: 12px; }
.esb-shop-file { position: relative; display: block; cursor: pointer; }
.esb-shop-file input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; }
.esb-shop-file__box { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px dashed var(--esb-line-strong, #cfd8d4); border-radius: var(--esb-radius-m, 14px); background: var(--esb-mist, #f5f7fa); transition: border-color var(--esb-fast, 0.15s) ease, background var(--esb-fast, 0.15s) ease; }
.esb-shop-file__box strong { color: var(--esb-ink); font-size: 0.9375rem; }
.esb-shop-file__box small { color: var(--esb-ink-3); font-size: var(--esb-text-tiny, 0.8125rem); overflow-wrap: anywhere; }
.esb-shop-file:hover .esb-shop-file__box, .esb-shop-file input:focus-visible + .esb-shop-file__box { border-color: var(--esb-green); }
.esb-shop-file.is-chosen .esb-shop-file__box { border-style: solid; border-color: var(--esb-green); background: var(--esb-green-wash, #f1f8f5); }
.esb-shop-file.is-chosen small { color: var(--esb-green-deep, #0a4f40); font-weight: 600; }
.esb-shop-receipts textarea { inline-size: 100%; padding: 10px 14px; border: 1px solid var(--esb-line-strong, #cfd8d4); border-radius: var(--esb-radius-s, 10px); font: inherit; resize: vertical; }
.esb-shop-receipts textarea:focus-visible { outline: none; border-color: var(--esb-green); box-shadow: 0 0 0 3px rgb(14 110 88 / 0.18); }
.esb-shop-transfer__more summary { cursor: pointer; color: var(--esb-ink); font-weight: 700; }
.esb-shop-transfer__more[open] summary { margin-block-end: 14px; }
.esb-shop-transfer__order h3 { margin-block-end: 10px; }
.esb-shop-transfer__order .esb-shop-result__help { margin-block-start: 12px; }
.esb-shop-transfer > .esb-shop-result { max-inline-size: none; }
.esb-shop-paylist__status a, .esb-shop-paylist__status small { display: block; margin-block-start: 4px; font-size: var(--esb-text-tiny, 0.8125rem); }
.esb-shop-paylist__status small { color: var(--esb-ink-3); max-inline-size: 16rem; text-align: end; }
@media (max-width: 860px) {
	.esb-shop-transfer__grid { grid-template-columns: minmax(0, 1fr); }
	.esb-shop-transfer__head { flex-direction: column; }
}
