.ahan-quick-order-page,
.ahan-quick-order-page .ahan-desktop-header,
.ahan-quick-order-page .ahan-desktop-footer {
	font-family: var(--ahan-font-family);
	color: var(--ahan-color-text);
}

.ahan-quick-order-template .entry-title {
	display: none;
}

.ahan-quick-order-page {
	min-height: 60vh;
	overflow-x: clip;
	padding: 24px 0 38px;
	background: #f6f8fb;
}

.ahan-quick-order-page__inner {
	width: min(100% - 32px, 1180px);
}

.ahan-qo-workspace {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.ahan-qo-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
	gap: 16px;
	align-items: end;
}

.ahan-qo-head h1 {
	margin: 0 0 5px;
	color: #071122;
	font-size: 1.78rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
}

.ahan-qo-head p {
	max-width: 680px;
	margin: 0;
	color: var(--ahan-color-text-muted);
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.4;
}

.ahan-qo-summary {
	display: grid;
	gap: 9px;
	min-width: 0;
	padding: 11px;
	border: 1px solid var(--ahan-color-border);
	border-radius: 7px;
	background: #fff;
	box-shadow: var(--ahan-shadow-sm);
}

.ahan-qo-summary__text {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: baseline;
	color: var(--ahan-color-text-muted);
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.25;
}

.ahan-qo-summary__text strong,
.ahan-qo-summary__text .ahan-price {
	color: #071122;
	font-weight: 900;
}

.ahan-qo-summary__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
}

.ahan-qo-summary__cart,
.ahan-qo-summary__checkout,
.ahan-qo-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ahan-qo-summary__cart {
	background: var(--ahan-color-brand-blue);
	color: #fff;
}

.ahan-qo-summary__checkout {
	background: #071122;
	color: #fff;
}

.ahan-qo-summary__cart:hover,
.ahan-qo-summary__cart:focus-visible {
	background: #074f99;
	color: #fff;
}

.ahan-qo-summary__checkout:hover,
.ahan-qo-summary__checkout:focus-visible {
	background: #121c2e;
	color: #fff;
}

.ahan-qo-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: end;
	padding: 12px;
	border: 1px solid var(--ahan-color-border);
	border-radius: 7px;
	background: #fff;
	box-shadow: var(--ahan-shadow-sm);
}

.ahan-qo-search,
.ahan-qo-filter {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.ahan-qo-search span,
.ahan-qo-filter span {
	color: var(--ahan-color-text-muted);
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.ahan-qo-search input,
.ahan-qo-filter select {
	min-width: 0;
	height: 40px;
	padding: 0 11px;
	border: 1px solid var(--ahan-color-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ahan-color-text);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
}

.ahan-qo-search input:focus,
.ahan-qo-filter select:focus {
	border-color: var(--ahan-color-brand-blue);
	outline: 2px solid rgba(10, 101, 184, 0.14);
	outline-offset: 0;
}

.ahan-qo-reset {
	height: 40px;
	padding: 0 13px;
	background: #e9eef5;
	color: #071122;
}

.ahan-qo-reset:hover,
.ahan-qo-reset:focus-visible {
	background: #dce6f2;
}

.ahan-qo-count {
	color: var(--ahan-color-text-muted);
	font-size: 0.82rem;
	font-weight: 900;
}

.ahan-qo-groups {
	display: grid;
	gap: 12px;
}

.ahan-qo-group {
	overflow: hidden;
	border: 1px solid var(--ahan-color-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--ahan-shadow-sm);
}

.ahan-qo-group[hidden],
.ahan-qo-subgroup[hidden] {
	display: none;
}

.ahan-qo-group__toggle {
	appearance: none;
	display: grid;
	width: 100%;
	min-height: 56px;
	grid-template-columns: minmax(0, 1fr) auto 18px;
	gap: 14px;
	align-items: center;
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid transparent;
	background: #fff;
	color: #071122;
	font-family: var(--ahan-font-family);
	text-align: left;
	cursor: pointer;
}

.ahan-qo-group.is-open .ahan-qo-group__toggle {
	border-bottom-color: var(--ahan-color-border);
	background: #f8fbff;
}

.ahan-qo-group__toggle::after {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}

.ahan-qo-group.is-open .ahan-qo-group__toggle::after {
	transform: rotate(225deg);
}

.ahan-qo-group__title {
	min-width: 0;
	font-size: 1rem;
	font-weight: 950;
	line-height: 1.2;
}

.ahan-qo-group__meta {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	color: var(--ahan-color-text-muted);
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.2;
}

.ahan-qo-group__meta span + span::before {
	content: "·";
	margin-right: 6px;
	color: #9aa8b8;
}

.ahan-qo-group__panel {
	background: #fff;
}

.ahan-qo-subgroup {
	display: grid;
}

.ahan-qo-subgroup__title {
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid #e7edf4;
	background: #f6f9fd;
	color: var(--ahan-color-brand-blue);
	font-size: 0.78rem;
	font-weight: 950;
	line-height: 1.1;
	text-transform: uppercase;
}

.ahan-qo-table {
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
}

.ahan-qo-table__head,
.ahan-qo-row {
	display: grid;
	grid-template-columns: minmax(116px, 0.85fr) minmax(300px, 2.65fr) minmax(140px, 1fr) minmax(150px, 1.1fr);
	align-items: center;
}

.ahan-qo-table__head {
	min-height: 36px;
	border-bottom: 1px solid var(--ahan-color-border);
	background: #eef3f8;
	color: #445064;
	font-size: 0.71rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ahan-qo-table__head span,
.ahan-qo-cell {
	min-width: 0;
	padding: 7px 10px;
}

.ahan-qo-row {
	min-height: 45px;
	border-bottom: 1px solid #e7edf4;
	background: #fff;
}

.ahan-qo-row:last-child {
	border-bottom: 0;
}

.ahan-qo-row:nth-child(even) {
	background: #fbfdff;
}

.ahan-qo-row.has-qty {
	background: #f4f9ff;
}

.ahan-qo-row.is-hidden {
	display: none;
}

.ahan-qo-row.is-updating {
	opacity: 0.68;
}

.ahan-qo-row.is-error {
	background: #fff7f7;
}

.ahan-qo-cell {
	color: #071122;
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.2;
}

.ahan-qo-cell--sku span {
	display: inline-flex;
	max-width: 100%;
	padding: 2px 6px;
	border-radius: 4px;
	background: #eef4fb;
	color: #0a4e8f;
	font-size: 0.8rem;
	font-weight: 900;
	white-space: nowrap;
}

.ahan-qo-cell--name strong {
	display: block;
	overflow: hidden;
	color: #071122;
	font-size: 0.88rem;
	font-weight: 900;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahan-qo-cell--price .ahan-price {
	font-weight: 900;
	white-space: nowrap;
}

.ahan-qo-cell--qty {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}

.ahan-qo-qty {
	display: grid;
	grid-template-columns: 30px 36px 30px;
	align-items: stretch;
	width: 96px;
	min-width: 96px;
	height: 34px;
	overflow: hidden;
	border: 1px solid var(--ahan-color-border);
	border-radius: 5px;
	background: #fff;
	box-sizing: border-box;
}

.ahan-qo-qty__button,
.ahan-qo-qty__input {
	min-width: 0;
	border: 0;
	background: #fff;
	color: var(--ahan-color-text);
	font-family: var(--ahan-font-family);
	font-size: 0.9rem;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	box-sizing: border-box;
}

.ahan-qo-qty__button {
	padding: 0;
	cursor: pointer;
}

.ahan-qo-qty__button:hover,
.ahan-qo-qty__button:focus-visible {
	background: #eef4fb;
	color: var(--ahan-color-brand-blue);
}

.ahan-qo-qty__button:disabled,
.ahan-qo-qty__input:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.ahan-qo-qty__input {
	padding: 0 2px;
	border-inline: 1px solid var(--ahan-color-border);
	appearance: textfield;
}

.ahan-qo-qty__input::-webkit-outer-spin-button,
.ahan-qo-qty__input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.ahan-qo-row__status {
	min-width: 0;
	color: var(--ahan-color-text-muted);
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.ahan-qo-row__status.is-success {
	color: var(--ahan-color-status-green);
}

.ahan-qo-row__status.is-error {
	color: var(--ahan-color-status-red);
}

.ahan-qo-empty {
	padding: 18px;
	border: 1px dashed var(--ahan-color-border);
	border-radius: 7px;
	background: #fff;
	color: var(--ahan-color-text-muted);
	font-weight: 900;
}

@media (min-width: 768px) {
	.ahan-qo-table__head span,
	.ahan-qo-cell {
		padding: 8px 12px;
	}

	.ahan-qo-row {
		min-height: 51px;
	}

	.ahan-qo-row.has-qty {
		background: #e5f1ff;
	}

	.ahan-qo-row.has-qty:nth-child(even) {
		background: #dcecff;
	}

	.ahan-qo-cell {
		font-size: 0.88rem;
	}

	.ahan-qo-cell--sku {
		padding-right: 18px;
	}

	.ahan-qo-cell--sku span {
		padding: 2px 7px;
		font-size: 0.84rem;
		font-weight: 950;
	}

	.ahan-qo-cell--name strong {
		font-size: 0.94rem;
		font-weight: 950;
		line-height: 1.18;
	}

	.ahan-qo-cell--price .ahan-price {
		display: inline-flex;
		align-items: baseline;
		gap: 3px;
		font-size: 0.98rem;
		font-weight: 950;
	}

	.ahan-qo-cell--price .ahan-price__currency {
		font-size: 0.72em;
		font-weight: 900;
	}

	.ahan-qo-cell--qty {
		justify-content: start;
		gap: 10px;
	}
}

@media (max-width: 1100px) {
	.ahan-qo-head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.ahan-qo-summary {
		max-width: none;
	}

	.ahan-qo-table__head,
	.ahan-qo-row {
		grid-template-columns: minmax(112px, 0.85fr) minmax(260px, 2.65fr) minmax(128px, 1fr) minmax(142px, 1.1fr);
	}
}

@media (max-width: 767px) {
	.page-template-default .site-footer,
	.page-template-default .ahan-desktop-header,
	.page-template-default .ahan-desktop-footer {
		display: none;
	}

	.ahan-quick-order-page {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		padding: 6px 0 104px;
	}

	.ahan-quick-order-page__inner {
		width: calc(100% - 22px);
	}

	.ahan-qo-workspace {
		gap: 6px;
	}

	.ahan-qo-head {
		gap: 6px;
	}

	.ahan-qo-head h1 {
		margin-bottom: 0;
		font-size: 1.16rem;
	}

	.ahan-qo-head p {
		font-size: 0.84rem;
	}

	.ahan-qo-summary {
		gap: 5px;
		padding: 7px;
	}

	.ahan-qo-summary__text {
		gap: 0;
		align-items: center;
		font-size: 0.78rem;
		line-height: 1.14;
		white-space: nowrap;
	}

	.ahan-qo-summary__text > span:first-child {
		display: none;
	}

	.ahan-qo-summary__text strong + strong::before,
	.ahan-qo-summary__text strong + .ahan-price::before {
		content: "·";
		margin: 0 5px;
		color: var(--ahan-color-text-muted);
		font-weight: 900;
	}

	.ahan-qo-summary__actions {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ahan-qo-summary__checkout {
		display: none;
	}

	.ahan-qo-summary__cart {
		min-height: 32px;
	}

	.ahan-qo-tools {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"search search"
			"reset reset";
		gap: 5px 7px;
		padding: 7px;
	}

	.ahan-qo-search {
		grid-area: search;
	}

	.ahan-qo-filter {
		grid-area: filter;
	}

	.ahan-qo-reset {
		grid-area: reset;
		align-self: end;
		justify-self: end;
		min-width: 74px;
		padding: 0 8px;
		background: transparent;
		color: var(--ahan-color-brand-blue);
	}

	.ahan-qo-search,
	.ahan-qo-filter {
		gap: 0;
	}

	.ahan-qo-search span,
	.ahan-qo-filter span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.ahan-qo-search input,
	.ahan-qo-filter select,
	.ahan-qo-reset {
		height: 34px;
		font-size: 0.82rem;
	}

	.ahan-qo-search input,
	.ahan-qo-filter select {
		padding-inline: 9px;
	}

	.ahan-qo-count {
		font-size: 0.72rem;
		line-height: 1;
	}

	.ahan-qo-groups {
		gap: 9px;
	}

	.ahan-qo-group__toggle {
		min-height: 48px;
		grid-template-columns: minmax(0, 1fr) 16px;
		gap: 9px;
		padding: 11px 12px;
	}

	.ahan-qo-group__title {
		font-size: 0.92rem;
	}

	.ahan-qo-group__meta {
		grid-column: 1 / 2;
		justify-content: flex-start;
		font-size: 0.7rem;
	}

	.ahan-qo-subgroup__title {
		padding: 9px 10px;
		font-size: 0.7rem;
	}

	.ahan-qo-table {
		border-radius: 7px;
	}

	.ahan-qo-table__head {
		display: none;
	}

	.ahan-qo-table__body {
		display: grid;
	}

	.ahan-qo-row {
		display: grid;
		grid-template-columns: max-content minmax(0, 1fr) max-content;
		gap: 4px 12px;
		align-items: center;
		min-height: 0;
		padding: 7px 8px;
	}

	.ahan-qo-row.is-hidden {
		display: none;
	}

	.ahan-qo-cell {
		padding: 0;
	}

	.ahan-qo-cell--sku {
		align-self: start;
		grid-row: 1 / 3;
		min-width: max-content;
	}

	.ahan-qo-cell--sku span {
		max-width: none;
		padding: 1px 5px;
		font-size: 0.76rem;
		white-space: nowrap;
	}

	.ahan-qo-cell--name {
		grid-column: 2 / 3;
		min-width: 0;
		overflow: hidden;
	}

	.ahan-qo-cell--name strong {
		display: -webkit-box;
		font-size: 0.82rem;
		line-height: 1.18;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.ahan-qo-cell--price {
		grid-column: 2 / 3;
		min-width: 0;
		overflow: hidden;
	}

	.ahan-qo-cell--qty {
		grid-column: 3 / 4;
		grid-row: 1 / 3;
		align-self: center;
		justify-self: end;
		min-width: 82px;
	}

	.ahan-qo-cell--price {
		font-size: 0.78rem;
	}

	.ahan-qo-cell--qty {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		margin-top: 0;
	}

	.ahan-qo-qty {
		grid-template-columns: 26px 30px 26px;
		width: 82px;
		min-width: 82px;
		height: 31px;
	}

	.ahan-qo-qty__button,
	.ahan-qo-qty__input {
		font-size: 0.82rem;
	}

	.ahan-qo-row__status {
		font-size: 0.68rem;
		text-align: right;
	}
}

@media (max-width: 380px) {
	.ahan-quick-order-page__inner {
		width: calc(100% - 18px);
	}

	.ahan-qo-row {
		grid-template-columns: max-content minmax(0, 1fr) max-content;
		gap: 4px 10px;
		padding: 7px 6px;
	}

	.ahan-qo-cell--name strong {
		font-size: 0.8rem;
	}
}
