.wsh-odoo-container {
	min-height: 1.5rem;
}

.wsh-odoo-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	font-size: 0.875rem;
}

.wsh-odoo-spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wsh-odoo-spin 0.7s linear infinite;
	opacity: 0.7;
}

@keyframes wsh-odoo-spin {
	to {
		transform: rotate(360deg);
	}
}

.wsh-odoo-error {
	color: #b32d2e;
	font-size: 0.875rem;
}

.wsh-odoo-error__retry {
	margin-left: 0.5rem;
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
}

.wsh-odoo-stock-qty {
	opacity: 0.85;
}

button.rw-account-orders__link {
	display: grid;
	width: 100%;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-align: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	appearance: none;
}

.rw-account-orders__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
}

.rw-account-orders__row .rw-account-orders__link {
	flex: 1 1 12rem;
}

.rw-account-orders__row .wsh-odoo-order-download {
	flex: 0 0 auto;
	align-self: center;
}

.wsh-odoo-pdf-download--loading,
.wsh-odoo-order-download.wsh-odoo-pdf-download--loading,
.rw-account-invoices-list__download.wsh-odoo-pdf-download--loading {
	pointer-events: none;
	cursor: wait;
	opacity: 0.75;
}

.wsh-odoo-pdf-download--loading::before,
.wsh-odoo-order-download.wsh-odoo-pdf-download--loading::before {
	content: '';
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-right: 0.5rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wsh-odoo-spin 0.7s linear infinite;
	vertical-align: middle;
}

.rw-account-invoices-list__download.wsh-odoo-pdf-download--loading {
	position: relative;
}

.rw-account-invoices-list__download.wsh-odoo-pdf-download--loading svg {
	visibility: hidden;
}

.rw-account-invoices-list__download.wsh-odoo-pdf-download--loading::before {
	position: absolute;
	inset: 0;
	margin: auto;
}

.rw-account-order-detail__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.rw-account-order-detail__heading {
	min-width: 0;
	flex: 1 1 12rem;
}

.rw-account-order-detail__back {
	margin: 0 0 1rem;
}

.rw-account-order-detail__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.rw-account-order-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	color: inherit;
	opacity: 0.85;
	font-size: 0.875rem;
}

.rw-account-order-lines {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rw-account-order-lines__item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rw-account-order-lines__product {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	flex: 1 1 12rem;
}

.rw-account-order-lines__name {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.rw-account-order-lines__name:hover {
	text-decoration: underline;
}

.rw-account-order-lines__qty {
	font-size: 0.875rem;
	opacity: 0.85;
}

.rw-account-order-lines__pricing {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	white-space: nowrap;
}

.rw-account-order-lines__unit {
	font-size: 0.875rem;
	opacity: 0.85;
}

.rw-account-order-lines__subtotal {
	font-weight: 600;
}

.rw-account-order-detail__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rw-account-order-detail__total-label {
	font-weight: 600;
}

.rw-account-order-detail__total {
	font-size: 1.125rem;
	font-weight: 700;
}

button.wsh-odoo-order-back {
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	appearance: none;
}

.wsh-odoo-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wsh-odoo-pagination__summary {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.85;
}

.wsh-odoo-pagination__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wsh-odoo-pagination__btn {
	padding: 0.375rem 0.75rem;
	font: inherit;
	font-size: 0.875rem;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.25rem;
	cursor: pointer;
	appearance: none;
}

.wsh-odoo-pagination__btn:hover {
	border-color: rgba(0, 0, 0, 0.3);
}

.wsh-odoo-container[data-wsh-odoo-feature='account-dashboard'] {
	min-height: 0;
}

.wsh-odoo-container[data-wsh-odoo-feature='account-dashboard'] .rw-account-section + .rw-account-section {
	margin-top: 2rem;
}
