/*
 * IB Account — My account screens.
 * Every rule is scoped under .iba (the shell root) so nothing leaks outside My account.
 * Values ported from the approved mockup (Flags/Italiana-Bandiere/ecommerce/my-account/
 * mockup-2026-09-23.html), tokens read from the live site 2026-09-23. Fonts ("ABeeZee",
 * "IBM Plex Sans", "IBM Plex Mono") are already loaded by the site theme — not enqueued here.
 */

.iba {
	--iba-green: #366336;
	--iba-green-600: #2d552d;
	--iba-green-bg: #e3f2e4;
	--iba-green-ink: #24472a;
	--iba-ink: #1f2a21;
	--iba-text: #404040;
	--iba-muted: #6b6b66;
	--iba-faint: #8d8d86;
	--iba-page: #f7f7f7;
	--iba-card: #ffffff;
	--iba-line: #e3e1dc;
	--iba-line-2: #d8d5cf;
	--iba-amber: #e0a800;
	--iba-amber-bg: #fdf3d9;
	--iba-amber-ink: #8a4f00;
	--iba-red: #d4453a;
	--iba-blue-bg: #e8eef7;
	--iba-blue-ink: #27456f;
	--iba-r-card: 16px;
	--iba-r-pill: 24px;
	--iba-r-field: 10px;
	--iba-head: "ABeeZee", "Trebuchet MS", system-ui, sans-serif;
	--iba-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
	--iba-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

	color: var(--iba-text);
	font-family: var(--iba-body);
	font-size: 15px;
	line-height: 1.55;
	background: var(--iba-page);
}

.iba *,
.iba *::before,
.iba *::after {
	box-sizing: border-box;
}

.iba button,
.iba input,
.iba select,
.iba textarea {
	font: inherit;
	color: inherit;
}

:where(.iba) a {
	color: inherit;
}

.iba :focus-visible {
	outline: 2px solid var(--iba-green);
	outline-offset: 2px;
}

/* ---------- Layout: track (phone) / two columns (desktop) ---------- */

.iba {
	overflow: hidden;
}

.iba-track {
	display: block;
}

.iba-panel--menu {
	display: none;
}

.iba-panel--page {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 44px 18px 70px;
}

.iba-side {
	position: sticky;
	top: 20px;
	align-self: start;
	min-width: 0;
}

.iba-panel--menu .iba-side {
	display: none;
}

.iba-main {
	min-width: 0;
}

.iba-open {
	display: none;
}

/* ---------- Who / avatar / menu ---------- */

.iba-who {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 22px;
}

.iba-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--iba-green-bg);
	color: var(--iba-green);
	display: grid;
	place-items: center;
	font-family: var(--iba-head);
	font-size: 18px;
	flex: none;
}

.iba-who small {
	display: block;
	color: var(--iba-muted);
	font-size: 12.5px;
	line-height: 1.3;
}

.iba-who strong {
	font-weight: 500;
	color: var(--iba-ink);
}

.iba-menu ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.iba-menu__item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	border-radius: 12px;
	text-align: left;
	color: #333;
	font-size: 15px;
	text-decoration: none;
}

.iba-menu__item svg {
	width: 19px;
	height: 19px;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

.iba-menu__item:hover {
	background: #eeeeea;
}

.iba-menu__item[aria-current="page"] {
	background: var(--iba-card);
	color: var(--iba-green);
	font-weight: 500;
	box-shadow: 0 1px 0 var(--iba-line), 0 0 0 1px var(--iba-line);
}

.iba-menu__count {
	margin-left: auto;
	background: var(--iba-amber);
	color: #3b2a00;
	font-size: 11.5px;
	font-weight: 600;
	border-radius: 999px;
	padding: 1px 8px;
}

.iba-menu__sep {
	height: 1px;
	background: var(--iba-line);
	margin: 10px 12px;
	list-style: none;
}

.iba-menu__item--out {
	color: var(--iba-muted);
}

/* ---------- Titles, leads, sections ---------- */

.iba-title {
	font-family: var(--iba-head);
	font-weight: 400;
	color: var(--iba-ink);
	font-size: 34px;
	line-height: 1.15;
	margin: 0 0 6px;
	text-wrap: balance;
}

.iba-title--inline {
	margin: 0;
}

.iba-lead {
	color: var(--iba-muted);
	margin: 0 0 26px;
	max-width: 62ch;
}

.iba-h2 {
	font-family: var(--iba-head);
	font-weight: 400;
	color: var(--iba-ink);
	font-size: 21px;
	margin: 0 0 14px;
}

.iba-sechead {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.iba-sechead .iba-h2 {
	margin: 0;
}

.iba-row {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}

.iba-row--baseline {
	align-items: baseline;
	gap: 12px;
	margin-bottom: 4px;
}

.iba-spacer {
	flex: 1;
}

.iba-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.iba-muted {
	color: var(--iba-muted);
}

/* ---------- Cards, buttons, links, pills ---------- */

.iba-card {
	background: var(--iba-card);
	border: 1px solid var(--iba-line);
	border-radius: var(--iba-r-card);
	padding: 22px;
}

.iba-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--iba-r-pill);
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	border: 1px solid var(--iba-green);
	background: var(--iba-green);
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.iba-btn:hover {
	background: var(--iba-green-600);
	color: #fff;
}

.iba-btn--ghost {
	background: transparent;
	color: var(--iba-green);
}

.iba-btn--ghost:hover {
	background: var(--iba-green-bg);
}

.iba-btn--sm {
	padding: 6px 14px;
	font-size: 14px;
}

.iba-btn--white {
	background: #fff;
	color: var(--iba-green);
	border-color: #fff;
}

.iba-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

.iba-link {
	color: var(--iba-green);
	text-decoration: none;
	font-weight: 500;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

.iba-link:hover {
	text-decoration: underline;
}

.iba-back {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: var(--iba-muted);
	font-size: 14px;
	background: none;
	border: 0;
	text-decoration: none;
	padding: 0;
	margin-bottom: 14px;
}

.iba-back svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.iba-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
}

.iba-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.iba-pill--act {
	background: var(--iba-amber-bg);
	color: var(--iba-amber-ink);
}

.iba-pill--go {
	background: var(--iba-green-bg);
	color: var(--iba-green-ink);
}

.iba-pill--ship {
	background: var(--iba-blue-bg);
	color: var(--iba-blue-ink);
}

.iba-pill--done {
	background: #eeeeea;
	color: #55554f;
}

.iba-mono {
	font-family: var(--iba-mono);
	font-size: 13px;
	color: var(--iba-muted);
}

/* ---------- Flag thumbnails ---------- */

.iba-thumb,
.iba-orow__thumbs img,
.iba-item img,
.iba-promise > img {
	width: 72px;
	height: 48px;
	border-radius: 4px;
	flex: none;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	object-fit: cover;
	background: #ddd;
}

.iba-thumb--placeholder {
	background: repeating-linear-gradient(45deg, #f1f1ec 0 8px, #e7e7e1 8px 16px);
}

/* ---------- Needs-you banner ---------- */

.iba-needs {
	background: var(--iba-amber-bg);
	border: 1px solid #f1dca3;
	border-radius: var(--iba-r-card);
	padding: 18px 20px;
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	text-decoration: none;
	color: inherit;
}

.iba-needs__icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fbe7b0;
	display: grid;
	place-items: center;
	flex: none;
}

.iba-needs__icon svg {
	width: 20px;
	height: 20px;
	stroke: var(--iba-amber-ink);
	fill: none;
	stroke-width: 1.8;
}

.iba-needs__text {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.iba-needs__text strong {
	font-weight: 500;
	color: #3b2a00;
	font-size: 16px;
}

.iba-needs__text span {
	color: #6a4a10;
	font-size: 14px;
}

/* ---------- Delivery promise card + steps ---------- */

.iba-promise {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}

.iba-promise__label {
	font-size: 13px;
	color: var(--iba-muted);
}

.iba-promise__meta {
	font-size: 13px;
	color: var(--iba-muted);
}

.iba-promise__when {
	font-family: var(--iba-head);
	font-size: 24px;
	color: var(--iba-ink);
	line-height: 1.2;
}

.iba-promise__late {
	color: var(--iba-amber-ink);
	font-size: 13.5px;
	margin: 4px 0 0;
}

.iba-steps {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	margin: 22px 0 4px;
	position: relative;
}

.iba-step {
	position: relative;
	text-align: center;
	font-size: 12.5px;
	color: var(--iba-faint);
	padding-top: 26px;
}

.iba-step::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--iba-line-2);
}

.iba-step:first-child::before {
	left: 50%;
}

.iba-step:last-child::before {
	right: 50%;
}

.iba-step i {
	position: absolute;
	top: 1px;
	left: 50%;
	transform: translateX(-50%);
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--iba-card);
	border: 3px solid var(--iba-line-2);
	z-index: 1;
	font-style: normal;
}

.iba-step--done {
	color: var(--iba-ink);
}

.iba-step--done::before {
	background: var(--iba-green);
}

.iba-step--done i {
	background: var(--iba-green);
	border-color: var(--iba-green);
}

.iba-step--now {
	color: var(--iba-green);
	font-weight: 500;
}

.iba-step--now::before {
	background: linear-gradient(90deg, var(--iba-green) 50%, var(--iba-line-2) 50%);
}

.iba-step--now i {
	border-color: var(--iba-green);
	box-shadow: 0 0 0 5px var(--iba-green-bg);
}

.iba-step small {
	display: block;
	color: var(--iba-faint);
	font-weight: 400;
}

.iba-guarantee {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 13.5px;
	color: var(--iba-muted);
	border-top: 1px solid var(--iba-line);
	margin-top: 18px;
	padding-top: 14px;
}

.iba-guarantee svg {
	width: 18px;
	height: 18px;
	stroke: var(--iba-green);
	fill: none;
	stroke-width: 1.8;
	flex: none;
}

.iba-tracking {
	display: flex;
	gap: 12px;
	align-items: center;
	background: #f6f8f4;
	border: 1px solid var(--iba-line);
	border-radius: 12px;
	padding: 12px 14px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.iba-tracking__carrier {
	font-weight: 700;
	color: #5a3a1a;
	background: #ffc400;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 12px;
}

.iba-bankbox,
.iba-filebox {
	background: var(--iba-amber-bg);
	border: 1px solid #f1dca3;
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 16px;
	font-size: 14px;
}

.iba-bankbox h3 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 500;
	color: #3b2a00;
}

.iba-filebox {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---------- Orders list ---------- */

.iba-olist {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.iba-orow {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	gap: 18px;
	align-items: center;
	background: var(--iba-card);
	border: 1px solid var(--iba-line);
	border-radius: var(--iba-r-card);
	padding: 16px 18px;
	text-align: left;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.iba-orow:hover {
	border-color: #c9cfc4;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.iba-orow__thumbs {
	display: flex;
}

.iba-orow__thumbs img {
	width: 60px;
	height: 40px;
}

.iba-orow__thumbs img + img {
	margin-left: -22px;
	box-shadow: 0 0 0 2px #fff;
}

.iba-orow__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.iba-orow__title {
	font-weight: 500;
	color: var(--iba-ink);
	font-size: 15.5px;
}

.iba-orow__meta {
	color: var(--iba-muted);
	font-size: 13.5px;
}

.iba-orow__status {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.iba-orow__status .iba-muted {
	font-size: 13.5px;
}

.iba-orow__amt {
	font-weight: 500;
	color: var(--iba-ink);
	text-align: right;
}

.iba-orow__items {
	display: block;
	font-weight: 400;
	color: var(--iba-muted);
	font-size: 13px;
}

.iba-orow > svg {
	width: 18px;
	height: 18px;
	stroke: var(--iba-faint);
	fill: none;
	stroke-width: 2;
}

.iba-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.iba-chip {
	border: 1px solid var(--iba-line-2);
	background: var(--iba-card);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.iba-chip[aria-pressed="true"] {
	background: var(--iba-ink);
	border-color: var(--iba-ink);
	color: #fff;
}

.iba-empty {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

/* ---------- Order detail ---------- */

.iba-od-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 18px;
	align-items: start;
}

.iba-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--iba-line);
}

.iba-card .iba-item:first-of-type {
	border-top: 0;
	padding-top: 4px;
}

.iba-item img {
	width: 96px;
	height: 64px;
}

.iba-item__body h4 {
	margin: 0 0 6px;
	font-weight: 500;
	color: var(--iba-ink);
	font-size: 16px;
}

.iba-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.iba-specs span {
	background: #f3f3ef;
	border-radius: 6px;
	padding: 2px 8px;
	font-size: 12.5px;
	color: #4a4a45;
}

.iba-item__price {
	text-align: right;
	font-weight: 500;
	color: var(--iba-ink);
}

.iba-item__price small {
	display: block;
	font-weight: 400;
	color: var(--iba-muted);
	font-size: 12.5px;
}

.iba-sum {
	font-size: 14.5px;
}

.iba-sum > div {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
}

.iba-kv {
	font-size: 14px;
	line-height: 1.5;
}

.iba-kv > div + div {
	margin-top: 16px;
}

.iba-kv h5 {
	margin: 0 0 4px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--iba-faint);
	font-weight: 500;
}

.iba-helpbox {
	display: flex;
	gap: 12px;
	align-items: center;
}

.iba-helpbox svg {
	width: 22px;
	height: 22px;
	stroke: var(--iba-green);
	fill: none;
	stroke-width: 1.7;
	flex: none;
}

.iba-helpbox__text {
	flex: 1;
}

/* ---------- Tiles ---------- */

.iba-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.iba-tile {
	background: var(--iba-card);
	border: 1px solid var(--iba-line);
	border-radius: var(--iba-r-card);
	padding: 18px;
	text-align: left;
	text-decoration: none;
	color: inherit;
	display: block;
}

.iba-tile:hover {
	border-color: #c9cfc4;
}

.iba-tile svg {
	width: 22px;
	height: 22px;
	stroke: var(--iba-green);
	fill: none;
	stroke-width: 1.6;
}

.iba-tile h4 {
	margin: 10px 0 2px;
	font-weight: 500;
	color: var(--iba-ink);
	font-size: 15.5px;
}

.iba-tile p {
	margin: 0;
	color: var(--iba-muted);
	font-size: 13.5px;
}

/* ---------- Store credit ---------- */

.iba-credit-card {
	background: var(--iba-green);
	color: #fff;
	border-radius: var(--iba-r-card);
	padding: 26px;
	display: flex;
	gap: 20px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.iba-credit-card__label {
	font-size: 13px;
	color: #d6e5d6;
	margin-bottom: 6px;
}

.iba-credit-card__amount {
	font-family: var(--iba-head);
	font-size: 44px;
	line-height: 1;
}

.iba-credit-card p {
	margin: 6px 0 0;
	color: #d6e5d6;
	font-size: 14px;
	max-width: 46ch;
}

.iba-lines {
	display: flex;
	flex-direction: column;
}

.iba-lines__row {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--iba-line);
	flex-wrap: wrap;
}

.iba-lines__row:first-child {
	border-top: 0;
}

/* ---------- WooCommerce notices, buttons, third-party markup restyle ---------- */

.iba .woocommerce-message,
.iba .woocommerce-info,
.iba .woocommerce-error,
.iba .woocommerce-notice {
	background: var(--iba-green-bg);
	color: var(--iba-green-ink);
	border: 1px solid var(--iba-line);
	border-radius: var(--iba-r-card);
	padding: 14px 18px;
	margin: 0 0 18px;
	list-style: none;
}

.iba .woocommerce-info {
	background: var(--iba-blue-bg);
	color: var(--iba-blue-ink);
}

.iba .woocommerce-error {
	background: var(--iba-amber-bg);
	color: var(--iba-amber-ink);
}

.iba .woocommerce-message .button,
.iba .woocommerce-error .button,
.iba .woocommerce-info .button {
	float: none;
	margin-left: 12px;
}

body .iba a.button,
body .iba button.button,
body .iba button[type="submit"] {
	width: auto;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--iba-r-pill);
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	border: 1px solid var(--iba-green);
	background: var(--iba-green);
	color: #fff;
	text-decoration: none;
}

body .iba a.button:hover,
body .iba button.button:hover,
body .iba button[type="submit"]:hover {
	background: var(--iba-green-600);
	color: #fff;
}

body .iba a.button.cxvf-reorder,
body .iba .cxvf-reorder {
	width: auto;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--iba-r-pill);
	padding: 6px 14px;
	font-size: 14px;
	background: transparent;
	color: var(--iba-green);
	border: 1px solid var(--iba-green);
	text-decoration: none;
}

body .iba a.button.cxvf-reorder:hover,
body .iba .cxvf-reorder:hover {
	background: var(--iba-green-bg);
}

.iba .cxvf-reorder::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 4v5h-5M20 12a8 8 0 0 1-14 5.3M4 20v-5h5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 4v5h-5M20 12a8 8 0 0 1-14 5.3M4 20v-5h5'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.iba .wppf-order-line-job a {
	display: inline-flex;
	align-items: center;
	border-radius: var(--iba-r-pill);
	padding: 6px 14px;
	font-size: 14px;
	background: transparent;
	color: var(--iba-green);
	border: 1px solid var(--iba-green);
	text-decoration: none;
}

.iba .wppf-order-line-job a:hover {
	background: var(--iba-green-bg);
}

.iba input,
.iba select,
.iba textarea {
	border: 1px solid var(--iba-line-2);
	border-radius: var(--iba-r-field);
	padding: 10px 12px;
	background: #fff;
	width: 100%;
}

.iba .woocommerce-pagination {
	margin-top: 18px;
}

.iba .woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.iba .woocommerce-pagination .page-numbers li {
	list-style: none;
}

.iba .woocommerce-pagination a.page-numbers,
.iba .woocommerce-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--iba-line-2);
	color: var(--iba-ink);
	text-decoration: none;
	padding: 0 8px;
}

.iba .woocommerce-pagination span.page-numbers.current {
	background: var(--iba-ink);
	border-color: var(--iba-ink);
	color: #fff;
}

/* ---------- Phone arrow / drawer ---------- */

.iba[data-iba-detail] .iba-open {
	display: none;
}

/* ---------- Phone (<768px) ---------- */

@media (max-width: 767px) {
	.iba {
		position: relative;
	}

	.iba-track {
		display: flex;
		width: 200%;
		transform: translateX(-50%);
		transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.iba--menu-open .iba-track {
		transform: none;
	}

	.iba-panel {
		width: 50%;
		flex: none;
		padding: 18px 14px 60px;
	}

	.iba-panel--menu {
		display: block;
	}

	.iba-panel--page {
		display: block;
		grid-template-columns: none;
		padding: 18px 14px 60px;
		max-width: none;
		margin: 0;
	}

	.iba-panel--page .iba-side {
		display: none;
	}

	.iba-open {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: var(--iba-green);
		font-weight: 500;
		font-size: 15px;
		background: none;
		border: 0;
		padding: 0;
		margin-bottom: 14px;
		cursor: pointer;
	}

	.iba-open svg {
		width: 17px;
		height: 17px;
		stroke: currentColor;
		fill: none;
		stroke-width: 2;
	}

	.iba-title {
		font-size: 27px;
	}

	.iba-tiles {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.iba-orow {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 12px;
		padding: 14px;
	}

	.iba-orow__amt {
		grid-column: 2 / 4;
		text-align: left;
		display: flex;
		justify-content: space-between;
	}

	.iba-orow > svg {
		display: none;
	}

	.iba-od-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.iba-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		margin-top: 14px;
	}

	.iba-step {
		text-align: left;
		padding: 0 0 14px 30px;
		min-height: 34px;
	}

	.iba-step::before {
		top: 0;
		bottom: 0;
		left: 7px;
		right: auto;
		width: 3px;
		height: auto;
	}

	.iba-step:first-child::before {
		left: 7px;
		top: 8px;
	}

	.iba-step:last-child::before {
		display: none;
	}

	.iba-step--now::before {
		background: linear-gradient(180deg, var(--iba-green) 50%, var(--iba-line-2) 50%);
	}

	.iba-step i {
		left: 0;
		top: 1px;
		transform: none;
	}

	.iba-step small {
		display: inline;
		margin-left: 6px;
	}

	.iba-item {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.iba-item__price {
		grid-column: 2;
		text-align: left;
	}

	.iba-credit-card__amount {
		font-size: 36px;
	}
}

@media (min-width: 768px) {
	.iba-panel--menu {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iba-track {
		transition: none !important;
	}
}

/* Large thumbnails: transit card and order lines (mockup `.thumb.lg`). */
.iba-promise > img,
.iba-promise > .iba-thumb,
.iba-item img,
.iba-item .iba-thumb {
	width: 96px;
	height: 64px;
}

/* Order line: the print file name (mockup `.filestate`). */
.iba-filestate {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13.5px;
	color: var(--iba-muted);
	margin-bottom: 10px;
}

.iba-filestate svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	flex: none;
}

/* The item hooks' own links (wp-print-file «See this job», codexyl-variable-flag
   «Reorder») sit side by side under the chips. */
.iba-item__body > p {
	display: inline-flex;
	margin: 0 8px 8px 0;
}

/* The help card stacks in the narrow side column. */
.iba-helpbox {
	flex-wrap: wrap;
}

.iba-helpbox__text {
	flex: 1 1 180px;
}

.iba-helpbox .iba-btn {
	margin-left: 34px;
}

/* Totals card (mockup `.sum`): amounts right, WooCommerce's small print («incl. VAT»,
   «via Standard», «includes … VAT») on its own line under the amount, the last row is the
   total. */
.iba-sum > div {
	gap: 16px;
	align-items: baseline;
}

.iba-sum > div > span:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--iba-ink);
}

.iba-sum small,
.iba-sum .includes_tax,
.iba-sum .shipped_via {
	display: block;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--iba-muted);
}

.iba-sum > div:last-child {
	border-top: 1px solid var(--iba-line);
	margin-top: 8px;
	padding-top: 12px;
	font-weight: 600;
	font-size: 17px;
	color: var(--iba-ink);
}

.iba-sum > div:last-child small,
.iba-sum > div:last-child .includes_tax {
	font-size: 12.5px;
}

/* Order documents (mockup: full-width ghost "Download invoice" button under the totals).
   One button: just the top margin. More than one (invoice + credit note(s)): a small gap
   between them, same margin-top on the block as a whole. */
.iba-sum__docs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 14px;
}

.iba-sum__docs-btn {
	width: 100%;
	justify-content: center;
}

/* The two item links share one pill size. */
body .iba .wppf-order-line-job a,
body .iba a.button.cxvf-reorder {
	line-height: 1.4;
	font-weight: 400;
	min-height: 34px;
}

/* ---------- Support (0.2.0) ---------- */

/* The `data-iba-detail` contract (0.1.0) hides the phone "‹ My account" arrow; Support
   extends it (see docs/decision-log.md) to also hide the shell's own "Support" title/lead
   while the JS app shows the request or new-request view, each of which prints its own
   `<h1>`. Scoped to `main.iba-main`'s own direct children only, so it never reaches the
   h1/lead the app itself renders nested inside `.iba-support`. */
.iba[data-iba-detail] main.iba-main > h1.iba-title,
.iba[data-iba-detail] main.iba-main > p.iba-lead {
	display: none;
}

.iba-sup-listhead {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 4px;
}

.iba-sup-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body .iba a.iba-sup-row {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--iba-card);
	border: 1px solid var(--iba-line);
	border-radius: var(--iba-r-card);
	padding: 16px 18px;
	text-decoration: none;
	color: inherit;
}

body .iba a.iba-sup-row:hover {
	border-color: var(--iba-line-2);
}

.iba-sup-row__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

.iba-sup-row__body h4 {
	margin: 0;
	font-weight: 500;
	color: var(--iba-ink);
	font-size: 15.5px;
}

.iba-sup-row__pill {
	margin-top: 2px;
}

.iba-sup-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 6px;
}

.iba-sup-error {
	background: var(--iba-amber-bg);
	color: var(--iba-amber-ink);
	border-radius: var(--iba-r-field);
	padding: 10px 14px;
	font-size: 14px;
	margin: 0 0 14px;
}

.iba-sup-loading {
	color: var(--iba-muted);
	padding: 20px 0;
}

/* Conversation (mockup S.ticket `.msgs`/`.msg`) */

.iba-sup-msgs {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
}

.iba-sup-msg {
	max-width: 74%;
	padding: 12px 14px;
	border-radius: 14px;
	background: #eeeeea;
}

.iba-sup-msg small {
	display: block;
	color: var(--iba-muted);
	font-size: 12px;
	margin-bottom: 4px;
}

.iba-sup-msg--me {
	align-self: flex-end;
	background: var(--iba-green-bg);
	color: var(--iba-green-ink);
}

.iba-sup-msg--agent {
	align-self: flex-start;
}

.iba-sup-msg__body p {
	margin: 0 0 8px;
}

.iba-sup-msg__body p:last-child {
	margin-bottom: 0;
}

.iba-sup-msg__body a {
	color: var(--iba-green);
	text-decoration: underline;
}

/* Composer (mockup `.composer`) */

.iba-sup-composer {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.iba-sup-textarea {
	min-height: 110px;
	resize: vertical;
}

.iba-sup-solve {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.iba-sup-confirm {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--iba-muted);
	font-size: 14px;
}

.iba-sup-closed {
	border-top: 1px solid var(--iba-line);
	margin-top: 4px;
	padding-top: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.iba-sup-closed p {
	margin: 0;
	color: var(--iba-muted);
	flex: 1 1 220px;
}

/* New request form (mockup `.fgrid`/`.f`) */

.iba-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.iba-field label {
	font-size: 13px;
	color: var(--iba-muted);
}

@media (max-width: 767px) {
	.iba-sup-msg {
		max-width: 92%;
	}
}

/* ---------- Staging round 2 (0.2.1) ---------- */

/* The shell sits on the page's own ground: no second box around it. */
body .iba {
	background: transparent;
}

/* Store credit: the amount inherits the card's white, whatever WooCommerce's price
   markup and the site's generic price rules say. */
body .iba .iba-credit-card__amount,
body .iba .iba-credit-card__amount .woocommerce-Price-amount,
body .iba .iba-credit-card__amount bdi,
body .iba .iba-credit-card__amount .woocommerce-Price-currencySymbol {
	font-family: var(--iba-head);
	font-size: 44px;
	font-weight: 400;
	line-height: 1;
	color: #fff;
}

/* Menu subtitles exist for the phone menu only. */
.iba-menu__label {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.iba-menu__sub {
	display: none;
	color: var(--iba-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

/* Saved cards. */
.iba-cards__brand {
	font-weight: 700;
	font-style: italic;
	color: #1a1f71;
	letter-spacing: 0.02em;
}

body .iba a.iba-link--muted {
	color: var(--iba-muted);
	font-weight: 400;
}

.iba-cards .iba-sechead p,
.iba-cards > p {
	margin: 0;
}

@media (max-width: 767px) {
	/* Phone menu D (mockup `drawerHTML`): one white card, a row per section with its
	   icon, name, the line of what waits there, and the count. */
	.iba-drawer .iba-menu ul {
		list-style: none;
		margin: 14px 0 0;
		padding: 0;
		background: var(--iba-card);
		border: 1px solid var(--iba-line);
		border-radius: var(--iba-r-card);
		overflow: hidden;
	}

	.iba-drawer .iba-menu__sep {
		display: none;
	}

	.iba-drawer .iba-menu li + li .iba-menu__item,
	.iba-drawer .iba-menu__sep + li .iba-menu__item {
		border-top: 1px solid var(--iba-line);
	}

	body .iba .iba-drawer .iba-menu__item {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 15px 16px;
		border-radius: 0;
		font-size: 16px;
		color: var(--iba-ink);
		background: transparent;
		box-shadow: none;
	}

	body .iba .iba-drawer .iba-menu__item[aria-current="page"] {
		background: var(--iba-green-bg);
		color: var(--iba-green-ink);
		font-weight: 500;
	}

	.iba-drawer .iba-menu__item svg {
		width: 21px;
		height: 21px;
		stroke: var(--iba-green);
	}

	.iba-drawer .iba-menu__sub {
		display: block;
	}
}

/* Buttons and fields inside the shell win over the site's generic element rules
   (Core Framework styles `button`, `select`, `textarea` globally and loads after us). */
body .iba a.iba-btn,
body .iba button.iba-btn {
	background: var(--iba-green);
	border: 1px solid var(--iba-green);
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
	border-radius: var(--iba-r-pill);
}

body .iba a.iba-btn:hover,
body .iba button.iba-btn:hover {
	background: var(--iba-green-600);
	color: #fff;
}

body .iba a.iba-btn.iba-btn--ghost,
body .iba button.iba-btn.iba-btn--ghost {
	background: transparent;
	color: var(--iba-green);
}

body .iba a.iba-btn.iba-btn--ghost:hover,
body .iba button.iba-btn.iba-btn--ghost:hover {
	background: var(--iba-green-bg);
}

body .iba a.iba-btn.iba-btn--white {
	background: #fff;
	border-color: #fff;
	color: var(--iba-green);
}

body .iba button.iba-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

body .iba select,
body .iba textarea,
body .iba input[type="text"],
body .iba input[type="email"],
body .iba input[type="tel"],
body .iba input[type="password"] {
	width: 100%;
	border: 1px solid var(--iba-line-2);
	border-radius: var(--iba-r-field);
	padding: 10px 12px;
	background-color: #fff;
	color: var(--iba-ink);
	font: inherit;
	box-shadow: none;
	margin: 0;
}

body .iba textarea {
	min-height: 140px;
	resize: vertical;
}

body .iba select:focus,
body .iba textarea:focus,
body .iba input:focus {
	border-color: var(--iba-green);
	outline: none;
	box-shadow: 0 0 0 3px rgba(54, 99, 54, 0.15);
}

/* Text links inside the Support screens and leads: the shop's green, not the site's
   generic link colour. */
body .iba .iba-lead a,
body .iba [data-iba-support] a:not(.iba-btn):not(.iba-orow) {
	color: var(--iba-green);
	font-weight: 500;
	text-decoration: none;
}

/* ---------- Support attachments (0.3.0) ---------- */

.iba-sup-attach {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* `body .iba button.` (element + class, prefixed with `body .iba`) is this file's own
   pattern for beating the site's Core Framework, which uppercases `a`/`button` in places
   with a specificity `.iba-link` alone does not always clear. */
body .iba button.iba-link.iba-sup-attach__add {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--iba-green);
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
}

body .iba button.iba-link.iba-sup-attach__add:hover {
	text-decoration: underline;
}

.iba-sup-attach__add svg {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	margin-right: 6px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

.iba-sup-attach__hint {
	margin: 0;
	font-size: 13px;
	color: var(--iba-muted);
}

.iba-sup-attach__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.iba-sup-attach__file {
	display: flex;
	align-items: center;
	gap: 10px;
}

.iba-sup-attach__name {
	color: var(--iba-ink);
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 240px;
}

.iba-sup-attach__status {
	color: var(--iba-muted);
	font-size: 13px;
	white-space: nowrap;
}

.iba-sup-attach__status--error {
	color: var(--iba-red);
	white-space: normal;
}

body .iba button.iba-link.iba-sup-attach__remove {
	font-size: 13px;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	flex: none;
	margin-left: auto;
}

/* Attachment links inside a conversation bubble (mockup S.ticket `.msg`, extended). */
.iba-sup-msg__files {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}

.iba-sup-msg__file {
	display: inline-flex;
	align-items: center;
	color: var(--iba-green);
	font-size: 14px;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.iba-sup-msg__file:hover {
	text-decoration: underline;
}

.iba-sup-msg__file svg {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	margin-right: 6px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	flex: none;
}
