/* Cabinet UI: left column (account/account_menu.tpl), order history (account/order_list.tpl),
   order page (account/order_info.tpl). Prefix ac-* — no overlap with theme classes. */
:root {
	--ac-navy: #293859;
	--ac-red: #e30613;
	--ac-red-dark: #b10510;
	--ac-green: #4CAF50;
	--ac-border: #e6eaf0;
	--ac-muted: #6b7280;
	--ac-bg: #f6f7fb;
}

/* ---------- common ---------- */
.ac-card {
	margin-bottom: 14px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--ac-border);
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(41, 56, 89, .06);
}
.ac-title {
	margin: 0 0 16px;
	color: var(--ac-navy);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}
.ac-title span { color: var(--ac-red); }
.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ac-btn--primary { background: var(--ac-red); border-color: var(--ac-red); color: #fff !important; }
.ac-btn--primary:hover { background: var(--ac-red-dark); border-color: var(--ac-red-dark); }
.ac-btn--ghost { background: #fff; border-color: var(--ac-border); color: var(--ac-navy) !important; }
.ac-btn--ghost:hover { border-color: var(--ac-navy); }
.ac-item__sku { display: block; margin-top: 2px; color: var(--ac-muted); font-size: 12px; }
.ac-note {
	margin: 12px 0;
	padding: 12px 14px;
	background: #fffaf0;
	border: 1px solid #f5e1b8;
	border-radius: 10px;
	font-size: 14px;
}

/* ---------- left column ---------- */
.ac-side { margin-bottom: 16px; }

.ac-profile {
	color: #fff;
	border: 0;
	background:
		radial-gradient(circle at 100% 0, rgba(227, 6, 19, .45) 0, rgba(227, 6, 19, 0) 60%),
		linear-gradient(135deg, #1f2b47 0%, var(--ac-navy) 60%, #34477a 100%);
	box-shadow: 0 10px 24px rgba(41, 56, 89, .22);
}
.ac-profile__head { display: flex; align-items: center; gap: 12px; }
.ac-profile__avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	border: 2px solid rgba(255, 255, 255, .35);
}
.ac-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-profile__who { min-width: 0; }
.ac-profile__name, .ac-profile__email { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-profile__name { font-size: 15px; font-weight: 800; color: #fff; }
.ac-profile__email { font-size: 12px; color: rgba(255, 255, 255, .75); }
.ac-profile__discount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	font-size: 13px;
}
.ac-profile__discount b {
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--ac-red);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.ac-bonus__head { display: flex; align-items: center; gap: 12px; }
.ac-bonus__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #fdecee;
	color: var(--ac-red);
	font-size: 18px;
}
.ac-bonus__title { margin: 0; color: var(--ac-navy); font-size: 15px; font-weight: 800; }
.ac-bonus__rate { margin: 0; color: var(--ac-muted); font-size: 12px; }
.ac-bonus__balance { margin-left: auto; color: var(--ac-red); font-size: 30px; font-weight: 800; line-height: 1; }
.ac-bonus__link {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ac-bg);
	color: var(--ac-navy) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}
.ac-bonus__link:hover { background: #eef0f6; }

.ac-popup.mfp-hide { display: none; }
.ac-popup {
	position: relative;
	max-width: 520px;
	margin: 40px auto;
	padding: 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.ac-popup__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ac-popup__head h3 { margin: 0; color: var(--ac-navy); font-size: 20px; font-weight: 800; }
.ac-popup__body { color: #333; font-size: 14px; line-height: 1.6; }
.ac-popup__body p { margin-bottom: 10px; }
.ac-popup__body ol { margin: 10px 0 10px 20px; padding: 0; }
.ac-popup__body li { margin-bottom: 6px; }
.ac-popup__balance {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fdecee;
	color: var(--ac-navy);
	font-size: 14px;
}
.ac-popup__balance b { color: var(--ac-red); font-size: 18px; }
.ac-popup__balance span { color: var(--ac-muted); font-size: 12px; }

.ac-nav { padding: 8px; }
.ac-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 10px;
	color: #222 !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease;
}
.ac-nav a i { flex: 0 0 18px; width: 18px; color: #9aa3b2; text-align: center; transition: color .15s ease; }
.ac-nav a:hover { background: var(--ac-bg); color: var(--ac-navy) !important; }
.ac-nav a:hover i { color: var(--ac-navy); }
.ac-nav a.is-active { background: #fdecee; color: var(--ac-red) !important; font-weight: 700; }
.ac-nav a.is-active i { color: var(--ac-red); }
.ac-nav a.ac-nav__logout { margin-top: 4px; border-top: 1px solid var(--ac-border); border-radius: 0 0 10px 10px; color: var(--ac-muted) !important; }

.ac-manager__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ac-manager__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ac-navy);
	color: #fff;
	font-size: 16px;
}
.ac-manager__label { margin: 0; color: var(--ac-muted); font-size: 12px; }
.ac-manager__name { margin: 0; color: var(--ac-navy); font-size: 15px; font-weight: 800; }
.ac-manager__line {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	color: #333 !important;
	font-size: 13px;
	text-decoration: none !important;
	word-break: break-all;
}
.ac-manager__line i { width: 16px; color: var(--ac-red); }
.ac-manager__line:hover { color: var(--ac-red) !important; }
.ac-manager__btn { width: 100%; margin-top: 10px; }

/* ---------- order history ---------- */
.ac-orders { display: flex; flex-direction: column; gap: 10px; }
.ac-order {
	background: #fff;
	border: 1px solid var(--ac-border);
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(41, 56, 89, .05);
	overflow: hidden;
}
.ac-order[open] { border-color: rgba(227, 6, 19, .3); box-shadow: 0 10px 24px rgba(41, 56, 89, .1); }
.ac-order__head {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr 24px;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
}
.ac-order__head::-webkit-details-marker { display: none; }
.ac-order__head::marker { content: ''; }
.ac-order__head:hover { background: #fafbfd; }
.ac-order__id { color: var(--ac-navy); font-size: 16px; font-weight: 800; }
.ac-order__id small { display: block; color: var(--ac-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ac-order__meta { color: #444; font-size: 14px; }
.ac-order__meta i { margin-right: 4px; color: #9aa3b2; }
.ac-order__total { color: var(--ac-red); font-size: 17px; font-weight: 800; text-align: right; white-space: nowrap; }
.ac-order__chev { color: #9aa3b2; text-align: center; transition: transform .2s ease; }
.ac-order[open] .ac-order__chev { transform: rotate(180deg); color: var(--ac-red); }
.ac-order__body { padding: 4px 18px 18px; border-top: 1px solid var(--ac-border); }
.ac-items { margin-top: 10px; }
.ac-item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--ac-border);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item__name a { color: var(--ac-navy); font-weight: 700; }
.ac-item__name a:hover { color: var(--ac-red); }
.ac-item__name small { display: block; color: var(--ac-muted); }
.ac-item__qty { color: #555; font-size: 13px; white-space: nowrap; }
.ac-item__total { min-width: 90px; color: var(--ac-navy); font-weight: 800; text-align: right; white-space: nowrap; }
.ac-order__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ac-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; }
.ac-pager__results { color: var(--ac-muted); font-size: 13px; }
.ac-empty { padding: 40px 16px; text-align: center; color: var(--ac-muted); }
.ac-empty i { display: block; margin-bottom: 10px; color: #c5cbd6; font-size: 40px; }
.ac-bottom { margin: 10px 0 24px; }

/* ---------- order page ---------- */
.ac-orderhead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.ac-orderhead .ac-title { margin-bottom: 6px; }
.ac-orderhead__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ac-muted); font-size: 14px; }
.ac-orderhead__meta i { margin-right: 4px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ac-grid .ac-card { margin-bottom: 0; }
.ac-info { display: flex; gap: 12px; align-items: flex-start; }
.ac-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--ac-bg);
	color: var(--ac-navy);
}
.ac-info__label { margin: 0 0 2px; color: var(--ac-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.ac-info__value { margin: 0; color: #222; font-size: 14px; font-weight: 600; }
.ac-info__track { margin: 6px 0 0; font-size: 13px; }
.ac-info__track b { color: var(--ac-red); }
.ac-lines { padding: 6px 18px 12px; }
.ac-lines__head, .ac-line {
	display: grid;
	grid-template-columns: 1fr 90px 120px 120px 44px;
	align-items: center;
	gap: 12px;
}
.ac-lines__head { padding: 10px 0; border-bottom: 1px solid var(--ac-border); color: var(--ac-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.ac-lines__head span:nth-child(n+2) { text-align: right; }
.ac-line { padding: 12px 0; border-bottom: 1px dashed var(--ac-border); font-size: 14px; }
.ac-line__name { color: var(--ac-navy); font-weight: 700; }
.ac-line__name small { display: block; color: var(--ac-muted); font-weight: 400; }
.ac-line__qty, .ac-line__price { text-align: right; color: #444; white-space: nowrap; }
.ac-line__total { text-align: right; color: var(--ac-navy); font-weight: 800; white-space: nowrap; }
.ac-line__m { display: none; }
.ac-line__act { text-align: right; }
.ac-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #fdecee;
	color: var(--ac-red) !important;
}
.ac-icon-btn:hover { background: var(--ac-red); color: #fff !important; }
.ac-totals { margin-left: auto; max-width: 360px; padding-top: 12px; }
.ac-totals__row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: #444; font-size: 14px; }
.ac-totals__row--grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ac-border); color: var(--ac-navy); font-size: 18px; }
.ac-totals__row--grand b { color: var(--ac-red); }

/* ---------- tablets / phones ---------- */
@media (max-width: 991.98px) {
	/* menu as a horizontal scrollable strip above the content */
	.ac-nav { display: flex; gap: 6px; padding: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.ac-nav::-webkit-scrollbar { display: none; }
	.ac-nav a { flex: 0 0 auto; padding: 9px 12px; white-space: nowrap; background: var(--ac-bg); }
	.ac-nav a.ac-nav__logout { margin-top: 0; border-top: 0; border-radius: 10px; }
	.ac-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.ac-side .ac-card { margin-bottom: 0; }
	.ac-side .ac-nav, .ac-side .ac-manager { grid-column: 1 / -1; }
	.ac-side .ac-nav { order: -1; } /* navigation first on tablets/phones */
}
@media (max-width: 767.98px) {
	.ac-side { grid-template-columns: 1fr; }
	.ac-title { font-size: 22px; }
	.ac-order__head { grid-template-columns: 1fr auto 20px; grid-template-areas: "id total chev" "meta meta meta" "meta2 meta2 meta2"; gap: 4px 12px; padding: 12px 14px; }
	.ac-order__id { grid-area: id; }
	.ac-order__total { grid-area: total; }
	.ac-order__chev { grid-area: chev; }
	.ac-order__head .ac-order__meta:nth-of-type(2) { grid-area: meta; }
	.ac-order__head .ac-order__meta:nth-of-type(3) { grid-area: meta2; }
	.ac-order__meta { font-size: 13px; }
	.ac-order__body { padding: 4px 14px 14px; }
	.ac-item { grid-template-columns: 1fr auto; gap: 4px 12px; }
	.ac-item__name { grid-column: 1 / -1; }
	.ac-order__actions .ac-btn { flex: 1 1 auto; }
	.ac-lines { padding: 4px 14px 10px; }
	.ac-lines__head { display: none; }
	.ac-line { grid-template-columns: 1fr auto; gap: 4px 12px; }
	.ac-line__name { grid-column: 1 / -1; }
	.ac-line__qty, .ac-line__price { text-align: left; font-size: 13px; }
	.ac-line__m { display: inline; color: var(--ac-muted); }
	.ac-line__total { grid-column: 1; text-align: left; }
	.ac-line__act { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
	.ac-totals { max-width: none; }
}

/* =====================================================================
   #16: password page, newsletter page, wishlist (wishlistpro module)
   ===================================================================== */

/* ---------- page head (icon + title + subtitle) ---------- */
.ac-page-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; }
.ac-page-head__icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--ac-navy); color: #fff; font-size: 22px;
	box-shadow: 0 6px 16px rgba(41, 56, 89, .22);
}
.ac-page-head .ac-title { margin: 0 0 4px; }
.ac-page-head__sub { margin: 0; max-width: 640px; color: var(--ac-muted); font-size: 14px; line-height: 1.45; }
.ac-chip {
	display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 9px;
	margin-left: 4px; vertical-align: middle; border-radius: 13px;
	background: var(--ac-red); color: #fff; font-size: 14px; font-weight: 800; line-height: 1;
}
.ac-chip[hidden] { display: none; }
.ac-title .ac-chip { color: #fff; }

/* ---------- two-column layout: form + aside ---------- */
.ac-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-split .ac-card { margin-bottom: 0; }
.ac-aside { display: grid; gap: 16px; }
.ac-card--tint { background: #f8f9fc; box-shadow: none; }

/* ---------- form ---------- */
.ac-form { padding: 22px; }
.ac-form__head { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--ac-border); }
.ac-form__title { margin: 0 0 6px; color: var(--ac-navy); font-size: 18px; font-weight: 800; }
.ac-login { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ac-muted); font-size: 13px; }
.ac-login i { color: var(--ac-navy); }
.ac-login b { color: var(--ac-navy); overflow-wrap: anywhere; }
.ac-hidden-user { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.ac-field { margin: 0 0 18px; }
.ac-field__label { display: block; margin: 0 0 6px; color: var(--ac-navy); font-size: 14px; font-weight: 700; }
.ac-field__label::after { content: " *"; color: var(--ac-red); }
.ac-input { position: relative; }
.ac-input .form-control {
	height: 46px; padding: 10px 48px 10px 14px; border: 1px solid #d5dbe5; border-radius: 10px;
	background: #fff; color: #1f2937; font-size: 15px; box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ac-input .form-control:focus { border-color: var(--ac-navy); box-shadow: 0 0 0 3px rgba(41, 56, 89, .12); outline: 0; }
.ac-field.has-error .form-control { border-color: var(--ac-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .1); }
.ac-eye {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a93a3; font-size: 16px; cursor: pointer;
}
.ac-eye:hover, .ac-eye.is-on { background: var(--ac-bg); color: var(--ac-navy); }
.ac-eye:focus-visible { outline: 2px solid var(--ac-navy); outline-offset: 1px; }
.ac-field__error { margin-top: 6px; font-size: 13px; font-weight: 500; }
.ac-field__error[hidden] { display: none; }
.ac-form__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; }
.ac-form__actions .ac-btn { min-height: 44px; padding: 10px 20px; }
.ac-subs > .ac-form__actions { margin-top: 4px; }

/* strength meter */
.ac-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ac-meter__bar { display: grid; flex: 1 1 auto; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 220px; }
.ac-meter__bar i { height: 5px; border-radius: 3px; background: #e5e8ee; transition: background-color .2s ease; }
.ac-meter__label { color: var(--ac-muted); font-size: 12px; white-space: nowrap; }
.ac-meter__label b { color: #9aa2af; font-weight: 700; }
.ac-meter[data-level="1"] .ac-meter__bar i:nth-child(-n+1) { background: #e30613; }
.ac-meter[data-level="2"] .ac-meter__bar i:nth-child(-n+2) { background: #f59e0b; }
.ac-meter[data-level="3"] .ac-meter__bar i:nth-child(-n+3) { background: #84cc16; }
.ac-meter[data-level="4"] .ac-meter__bar i { background: #22a447; }
.ac-meter[data-level="1"] b { color: #e30613; }
.ac-meter[data-level="2"] b { color: #d97706; }
.ac-meter[data-level="3"] b { color: #4d7c0f; }
.ac-meter[data-level="4"] b { color: #22a447; }

/* aside: requirements + tips */
.ac-aside__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ac-navy); font-size: 15px; font-weight: 800; }
.ac-aside__title i { color: var(--ac-green); }
.ac-aside__note { margin: 12px 0 0; color: var(--ac-muted); font-size: 12px; line-height: 1.4; }
.ac-checks { margin: 0; padding: 0; list-style: none; }
.ac-checks li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #4b5563; font-size: 14px; }
.ac-checks li i {
	flex: 0 0 auto; position: relative; width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid #d5dbe5; background: #fff; transition: all .15s ease;
}
.ac-checks li.is-ok { color: #1f2937; }
.ac-checks li.is-ok i { border-color: #22a447; background: #22a447; }
.ac-checks li.is-ok i::after {
	content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 10px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ac-checks li.is-required::after { content: "*"; margin-left: -6px; color: var(--ac-red); font-weight: 700; }
.ac-tips { margin: 0; padding: 0; list-style: none; counter-reset: ac-tip; }
.ac-tips li { position: relative; padding: 0 0 10px 32px; color: #4b5563; font-size: 13px; line-height: 1.45; counter-increment: ac-tip; }
.ac-tips li:last-child { padding-bottom: 0; }
.ac-tips li::before {
	content: counter(ac-tip); position: absolute; left: 0; top: 0;
	display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
	border-radius: 50%; background: #fff; border: 1px solid var(--ac-border); color: var(--ac-navy); font-size: 12px; font-weight: 800;
}

/* ---------- newsletter ---------- */
.ac-sub { padding: 22px; margin-bottom: 16px; }
.ac-sub__head { display: flex; align-items: flex-start; gap: 14px; }
.ac-sub__icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; background: #eef1f7; color: var(--ac-navy); font-size: 18px;
}
.ac-sub__icon--red { background: #fde8ea; color: var(--ac-red); }
.ac-sub__intro { flex: 1 1 auto; min-width: 0; }
.ac-sub__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--ac-navy); font-size: 18px; font-weight: 800; }
.ac-sub__desc { margin: 0; color: var(--ac-muted); font-size: 14px; line-height: 1.45; }
.ac-status {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
	border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.ac-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ac-status.is-on { background: #e7f6ec; color: #1e8e3e; }
.ac-status.is-off { background: #f1f3f6; color: #6b7280; }
.ac-badge {
	display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px;
	background: var(--ac-red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}

.ac-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.ac-choice__item { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.ac-choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.ac-choice__box {
	display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 14px 16px;
	border: 1.5px solid #d5dbe5; border-radius: 12px; background: #fff; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ac-choice__box b { display: block; color: var(--ac-navy); font-size: 15px; }
.ac-choice__box small { display: block; margin-top: 2px; color: var(--ac-muted); font-size: 13px; line-height: 1.35; }
.ac-choice__dot { flex: 0 0 auto; position: relative; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #c3cad6; border-radius: 50%; background: #fff; }
.ac-choice__item:hover .ac-choice__box { border-color: #aab3c2; }
.ac-choice__item input:checked + .ac-choice__box { border-color: var(--ac-navy); background: #f5f7fb; box-shadow: 0 0 0 3px rgba(41, 56, 89, .08); }
.ac-choice__item input:checked + .ac-choice__box .ac-choice__dot { border-color: var(--ac-navy); }
.ac-choice__item input:checked + .ac-choice__box .ac-choice__dot::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ac-navy);
}
.ac-choice__item input:focus-visible + .ac-choice__box { outline: 2px solid var(--ac-navy); outline-offset: 2px; }
.ac-sub__foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
	margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ac-border); color: var(--ac-muted); font-size: 13px;
}
.ac-sub__mail b { color: var(--ac-navy); overflow-wrap: anywhere; }

/* promo subscription block (customer_group_id >= 2; hidden for now) */
.ac-sub--promo { border-color: #f3c5c9; background: linear-gradient(180deg, #fff6f6 0, #fff 140px); }
.ac-channels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 18px; }
.ac-channel { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--ac-border); border-radius: 12px; background: #fff; }
.ac-channel__head { display: flex; align-items: center; gap: 10px; color: var(--ac-navy); font-size: 15px; }
.ac-channel__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #eef1f7; color: var(--ac-navy); }
.ac-channel--tg .ac-channel__icon { background: #e3f2fb; color: #229ed9; }
.ac-channel__desc { flex: 1 1 auto; margin: 0; color: var(--ac-muted); font-size: 13px; line-height: 1.45; }
.ac-channels__or { display: flex; align-items: center; justify-content: center; }
.ac-channels__or span {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	border-radius: 50%; background: #fff; border: 1px solid var(--ac-border); color: var(--ac-muted); font-size: 12px; font-weight: 700;
}
.ac-btn--tg { align-self: flex-start; background: #229ed9; border-color: #229ed9; color: #fff !important; }
.ac-btn--tg:hover { background: #1b87bb; border-color: #1b87bb; }
.ac-btn--tg.is-disabled { background: #eef1f5; border-color: #eef1f5; color: #8a93a3 !important; cursor: default; }
.ac-switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #1f2937; font-size: 14px; font-weight: 600; cursor: pointer; }
.ac-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ac-switch__track { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 12px; background: #d5dbe5; transition: background-color .15s ease; }
.ac-switch__track::after {
	content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s ease;
}
.ac-switch input:checked + .ac-switch__track { background: #22a447; }
.ac-switch input:checked + .ac-switch__track::after { transform: translateX(18px); }
.ac-switch input:focus-visible + .ac-switch__track { outline: 2px solid var(--ac-navy); outline-offset: 2px; }

/* ---------- wishlist (wishlistpro) ---------- */
.ac-wl-list { min-height: 60px; }
.ac-wl-loading { display: flex; justify-content: center; padding: 30px 0; color: #9aa2af; }
.ac-wl__group {
	display: flex; align-items: center; gap: 8px; margin: 18px 0 10px;
	color: var(--ac-navy); font-size: 17px; font-weight: 800;
}
.ac-wl__group span {
	display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: auto !important;
	border-radius: 6px; background: #eef1f7; color: var(--ac-navy) !important; font-weight: 800;
}
.ac-wl__card { padding: 4px 0; overflow: hidden; }
.ac-wl__table { width: 100%; margin: 0; border-collapse: collapse; }
.ac-wl__table thead th {
	padding: 10px 12px; border: 0; border-bottom: 1px solid var(--ac-border);
	color: var(--ac-muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle;
}
.ac-wl__table tbody td { padding: 10px 12px; border: 0; border-top: 1px solid #eef1f5; vertical-align: middle; background: #fff; }
.ac-wl__table tbody tr:first-child td { border-top: 0; }
.ac-wl__table tbody tr:hover td { background: #fafbfd; }
#wishlistpro_block .ac-wl__table tbody tr { height: auto; }
#wishlistpro_block .sortable_flag { cursor: default; }
#wishlistpro_block .sortable_flag .ac-wl__num { cursor: move; }
#wishlistpro_block tr.highlight td { background: #fff7e6; }
#wishlistpro_block tbody tr.highlight { height: 70px; }
.ac-wl__num { width: 52px; color: #9aa2af; white-space: nowrap; }
.ac-wl__num b { font-weight: 700; color: #6b7280; font-size: 13px; }
.ac-wl__grip { margin-right: 6px; color: #c3cad6; font-size: 13px; }
tr:hover .ac-wl__grip { color: var(--ac-navy); }
.ac-wl__img { width: 76px; }
.ac-wl__img a { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 3px; border: 1px solid var(--ac-border); border-radius: 10px; background: #fff; }
.ac-wl__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ac-wl__name a { color: #1f2937; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.ac-wl__name a:hover { color: var(--ac-red); }
td.ac-wl__sku span { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #f1f3f6; color: #4b5563; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ac-wl__price { white-space: nowrap; }
.ac-wl__price nobr { display: block; }
.ac-wl__price-now { color: var(--ac-navy); font-size: 15px; font-weight: 800; }
.ac-wl__price-now.is-special, .ac-wl__price-now.is-special b { color: var(--ac-red); font-weight: 800; }
.ac-wl__price-old { color: #9aa2af; font-size: 12px; }
.ac-wl__actions { width: 112px; white-space: nowrap; }
#wishlistpro_block .ac-wl__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 0 0 6px; padding: 0;
	border-radius: 10px; vertical-align: middle; box-shadow: none;
}
#wishlistpro_block .ac-wl__btn--cart { background: var(--ac-red); border: 1px solid var(--ac-red); }
#wishlistpro_block .ac-wl__btn--cart:hover { background: var(--ac-red-dark); border-color: var(--ac-red-dark); }
#wishlistpro_block .ac-wl__btn--cart img { width: 20px; height: 20px; }
/* theme .mw-cart-btn uses !important, so these need it too */
#wishlistpro_block .ac-wl__btn--cart.disabled { background-color: #c9ced8 !important; border-color: #c9ced8 !important; opacity: 1; cursor: not-allowed; }
#wishlistpro_block .ac-wl__btn--cart.is-in-cart { background-color: #22a447 !important; border-color: #22a447 !important; }
#wishlistpro_block .ac-wl__btn--cart .fa-check {
	position: absolute; right: -6px; top: -6px; display: inline-flex; align-items: center; justify-content: center;
	width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
	background: #fff !important; color: #22a447 !important; font-size: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
#wishlistpro_block .ac-wl__btn--delete { background: #fff; border: 1px solid var(--ac-border); color: #8a93a3; cursor: pointer; }
#wishlistpro_block .ac-wl__btn--delete:hover { border-color: var(--ac-red); color: var(--ac-red); }

/* send to e-mail */
.ac-wl-tools.wishlistpro_to_email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 0; padding: 14px 16px; }
.ac-wl-tools .ac-wl-tools__label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ac-navy); font-size: 14px; font-weight: 700; line-height: 1.3; }
.ac-wl-tools__label i { color: var(--ac-red); }
.ac-wl-tools__row { display: flex; flex: 1 1 340px; gap: 8px; max-width: 460px; }
.ac-wl-tools__row .form-control { flex: 1 1 auto; height: 42px; border: 1px solid #d5dbe5; border-radius: 10px; box-shadow: none; }
.ac-wl-tools__row .form-control:focus { border-color: var(--ac-navy); box-shadow: 0 0 0 3px rgba(41, 56, 89, .12); }
.ac-wl-tools__row .ac-btn { flex: 0 0 auto; min-height: 42px; }

/* module toasts (send to e-mail): compact instead of the 440x120 box */
#content .wishlistpro_email_success, #content .wishlistpro_email_warning {
	top: auto; bottom: 24px; left: 50%; width: auto; max-width: calc(100% - 32px); height: auto; margin: 0;
	padding: 12px 20px; transform: translateX(-50%);
	border: 0; border-radius: 12px; background: #1e8e3e; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
#content .wishlistpro_email_success i { font-size: 15px; }
#content .wishlistpro_email_warning { background: var(--ac-red); }

/* empty wishlist */
.ac-empty.ac-card { padding: 44px 20px; }
.ac-empty .ac-empty__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 14px;
	border-radius: 50%; background: #fde8ea; color: var(--ac-red);
}
.ac-empty .ac-empty__icon i { display: inline; margin: 0; color: inherit; font-size: 28px; }
.ac-empty__title { margin: 0 0 6px; color: var(--ac-navy); font-size: 19px; font-weight: 800; }
.ac-empty__text { max-width: 420px; margin: 0 auto 18px; color: var(--ac-muted); font-size: 14px; line-height: 1.45; }

@media (max-width: 991.98px) {
	.ac-split { grid-template-columns: 1fr; }
	.ac-aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
	.ac-page-head { gap: 12px; margin-bottom: 14px; }
	.ac-page-head__icon { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
	.ac-page-head__sub { font-size: 13px; }
	.ac-aside { grid-template-columns: 1fr; }
	.ac-form, .ac-sub { padding: 16px; }
	.ac-form__actions { flex-direction: column-reverse; }
	.ac-form__actions .ac-btn { width: 100%; }
	.ac-sub__head { flex-wrap: wrap; }
	.ac-sub__intro { flex: 1 1 calc(100% - 58px); }
	.ac-sub__head .ac-status { order: 3; margin-left: 58px; }
	.ac-choice { grid-template-columns: 1fr; gap: 8px; }
	.ac-channels { grid-template-columns: 1fr; }
	.ac-channels__or { margin: -4px 0; }
	.ac-btn--tg { align-self: stretch; }

	/* wishlist rows as cards */
	.ac-wl__card { padding: 0; }
	.ac-wl__table thead { display: none; }
	.ac-wl__table, .ac-wl__table tbody { display: block; }
	.ac-wl__table tbody tr {
		display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas: "img name name" "img sku sku" "img price actions";
		gap: 4px 12px; padding: 12px 14px; border-top: 1px solid #eef1f5;
	}
	.ac-wl__table tbody tr:first-child { border-top: 0; }
	#wishlistpro_block .ac-wl__table tbody td { display: block; width: auto !important; height: auto !important; padding: 0; border: 0; background: transparent; text-align: left; }
	.ac-wl__table td.ac-wl__num { display: none !important; }
	.ac-wl__table td.ac-wl__img { grid-area: img; }
	.ac-wl__table td.ac-wl__name { grid-area: name; }
	.ac-wl__table td.ac-wl__sku { grid-area: sku; }
	.ac-wl__table td.ac-wl__price { grid-area: price; align-self: center; }
	.ac-wl__table td.ac-wl__actions { grid-area: actions; align-self: center; width: auto; }
	.ac-wl__price { white-space: normal; }
	.ac-wl__price nobr { display: inline; }
	#wishlistpro_block .ac-wl__table td.ac-wl__sku { text-align: left !important; }
	.ac-wl__price-old { margin-right: 6px; }
	.ac-wl-tools.wishlistpro_to_email { flex-direction: column; align-items: stretch; }
	.ac-wl-tools__row { flex-wrap: wrap; flex-basis: auto; max-width: none; }
	.ac-wl-tools__row .form-control { flex: 1 1 100%; }
	.ac-wl-tools__row .ac-btn { flex: 1 1 100%; }
	#content .wishlistpro_email_success, #content .wishlistpro_email_warning { white-space: normal; }
}