﻿/*
 * CSS voor profiel- en accountpagina's.
 */
/* Dynamic KPI guideline cards on the company profile. */
.hw-guidelines-card {
	align-self: flex-start;
}

.hw-guidelines-heading {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.hw-guidelines-heading h2 {
	margin-bottom: 6px;
}

.hw-guidelines-heading p {
	color: #5f6d85;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.hw-guideline-legend {
	align-items: flex-start;
	align-self: flex-start;
	background: rgba(248, 250, 252, 0.62);
	border: 1px solid rgba(226, 232, 240, 0.72);
	border-radius: 999px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: flex-end;
	margin-top: 0;
	max-width: min(100%, 620px);
	min-width: 0;
	padding: 7px 12px;
}

.hw-guideline-legend .hw-guideline-legend-item {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #667085;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	gap: 7px;
	line-height: 1.2;
	padding: 0;
	white-space: nowrap;
}

.hw-guideline-legend .hw-guideline-legend-item i {
	align-items: center;
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	flex: 0 0 18px;
	font-size: 11px;
	font-style: normal;
	font-weight: 900;
	height: 18px;
	justify-content: center;
	line-height: 1;
	width: 18px;
}

.hw-guideline-legend-green i {
	background: #16a34a;
}

.hw-guideline-legend-orange i {
	background: #f59e0b;
}

.hw-guideline-legend-red i {
	background: #e11d48;
	font-size: 14px;
	line-height: 18px;
	padding-bottom: 1px;
}

.hw-guideline-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hw-guideline-grid > * {
	flex: 1 1 220px;
}

.hw-guideline-card {
	--hw-guideline-accent: #64748b;
	--hw-guideline-soft: #f8fafc;
	background: #ffffff;
	border: 1px solid #dfe4ec;
	border-left: 4px solid var(--hw-guideline-accent);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 14px;
}

.hw-guideline-card header,
.hw-guideline-values {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.hw-guideline-card header strong {
	color: #030b18;
	font-size: 13px;
	line-height: 1.25;
}

.hw-guideline-info {
	align-items: center;
	background: #f2f4f7;
	border: 1px solid #dfe4ec;
	border-radius: 999px;
	color: #475467;
	cursor: help;
	display: inline-flex;
	flex: 0 0 24px;
	font-size: 12px;
	font-weight: 900;
	height: 24px;
	justify-content: center;
	line-height: 1;
	position: relative;
	width: 24px;
}

.hw-guideline-info span {
	background: #101828;
	border-radius: 8px;
	bottom: calc(100% + 8px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	font-size: 11px;
	font-weight: 700;
	gap: 5px;
	left: 50%;
	line-height: 1.35;
	opacity: 0;
	padding: 9px 10px;
	pointer-events: none;
	position: absolute;
	text-align: left;
	transform: translate(-50%, 4px);
	transition: opacity 160ms ease, transform 160ms ease;
	width: min(280px, 76vw);
	z-index: 5;
}

.hw-guideline-info:hover span,
.hw-guideline-info:focus span {
	opacity: 1;
	transform: translate(-50%, 0);
}

.hw-guideline-info span b {
	color: #ffffff;
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.15;
	margin-top: 3px;
	text-transform: uppercase;
}

.hw-guideline-info span b:first-child {
	margin-top: 0;
}

.hw-guideline-values span {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hw-guideline-values span:last-child {
	text-align: right;
}

.hw-guideline-values small {
	color: #667085;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.hw-guideline-values b {
	color: #0f172a;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.hw-guideline-values i {
	color: #667085;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	line-height: 1.2;
}

.hw-guideline-progress {
	background: #edf2f7;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.hw-guideline-progress span {
	background: var(--hw-guideline-accent);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 4px;
}

.hw-guideline-card em {
	align-self: flex-start;
	background: var(--hw-guideline-soft);
	border: 1px solid color-mix(in srgb, var(--hw-guideline-accent) 22%, transparent);
	border-radius: 999px;
	color: var(--hw-guideline-accent);
	font-size: 11px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	padding: 7px 9px;
}

.hw-guideline-green {
	--hw-guideline-accent: #16a34a;
	--hw-guideline-soft: #ecfdf3;
}

.hw-guideline-orange {
	--hw-guideline-accent: #f59e0b;
	--hw-guideline-soft: #fffbeb;
}

.hw-guideline-red {
	--hw-guideline-accent: #e11d48;
	--hw-guideline-soft: #fff1f2;
}

.hw-guideline-neutral {
	--hw-guideline-accent: #64748b;
	--hw-guideline-soft: #f8fafc;
}

.hw-guideline-neutral .hw-guideline-progress span {
	min-width: 0;
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
	.hw-guideline-card em {
		border-color: #dfe4ec;
	}
}

@media (max-width: 900px) {
	.hw-guidelines-heading {
		flex-direction: column;
	}

	.hw-guideline-legend {
		flex-direction: row;
		flex-wrap: wrap;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.hw-profile-flex {
		gap: 16px;
	}

	.hw-profile-flex .hw-dashboard-card,
	.hw-guidelines-card {
		padding: 16px;
	}

	.hw-profile-summary {
		gap: 8px;
	}

	.hw-profile-row {
		padding: 9px 0;
	}

	.hw-guideline-grid {
		gap: 10px;
	}

	.hw-guideline-card {
		gap: 10px;
		padding: 12px;
	}

	.hw-guideline-values b {
		font-size: 13px;
	}

	.hw-profile-form {
		gap: 16px;
	}

	.hw-profile-form label {
		align-items: stretch;
		gap: 8px;
	}

	.hw-profile-form label span,
	.hw-profile-form label .hw-error {
		flex-basis: 100%;
		margin-left: 0;
	}
}

.hw-guideline-scale {
	--hw-green-start: 0%;
	--hw-green-end: 50%;
	--hw-orange-start: 50%;
	--hw-orange-end: 75%;
	--hw-red-start: 75%;
	--hw-red-end: 100%;
	--hw-marker: 0%;
	background:
		linear-gradient(
			90deg,
			#16a34a var(--hw-green-start),
			#16a34a var(--hw-green-end),
			#f59e0b var(--hw-orange-start),
			#f59e0b var(--hw-orange-end),
			#e11d48 var(--hw-red-start),
			#e11d48 var(--hw-red-end)
		);
	border-radius: 999px;
	height: 12px;
	position: relative;
}



.hw-guideline-scale-min {
	background:
		linear-gradient(
			90deg,
			#e11d48 var(--hw-red-start),
			#e11d48 var(--hw-red-end),
			#f59e0b var(--hw-orange-start),
			#f59e0b var(--hw-orange-end),
			#16a34a var(--hw-green-start),
			#16a34a var(--hw-green-end)
		);
}

.hw-guideline-scale span {
	background: #ffffff;
	border: 2px solid #101828;
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
	height: 22px;
	left: var(--hw-marker);
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
}

.hw-guideline-neutral .hw-guideline-scale {
	background: #edf2f7;
}

.hw-guideline-neutral .hw-guideline-scale span {
	display: none;
}

.hw-guideline-footer {
	align-items: center;
	display: flex;
	gap: 9px;
	justify-content: space-between;
}

.hw-guideline-footer p {
	color: #5f6d85;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
	text-align: right;
}

.hw-guideline-red .hw-guideline-footer p {
	color: #be123c;
}

.hw-guideline-orange .hw-guideline-footer p {
	color: #b45309;
}

.hw-guideline-green .hw-guideline-footer p {
	color: #047a3d;
}

@media (max-width: 900px) {
	.hw-guideline-legend {
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.hw-ai-chat {
		bottom: 10px;
		left: 10px;
		right: 10px;
	}

	.hw-ai-chat-toggle {
		height: 48px;
		width: 48px;
	}

	.hw-contract-help {
		bottom: 12px;
		left: 10px;
		right: 10px;
	}

	.hw-contract-help-toggle {
		height: 48px;
		width: 48px;
	}

	.hw-guidelines-heading {
		gap: 10px;
	}

	.hw-guideline-legend span {
		border-radius: 8px;
		font-size: 10.5px;
		line-height: 1.35;
		padding: 7px 8px;
	}

	.hw-guideline-values {
		align-items: flex-start;
	}

	.hw-guideline-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.hw-guideline-footer p {
		text-align: left;
	}

	.hw-guideline-info span {
		left: auto;
		right: -4px;
		transform: translate(0, 4px);
		width: min(265px, calc(100vw - 36px));
	}

	.hw-guideline-info:hover span,
	.hw-guideline-info:focus span {
		transform: translate(0, 0);
	}
}

@media (max-width: 900px) {
	.hw-guideline-legend {
		justify-content: flex-start;
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.hw-guideline-legend {
		border-radius: 10px;
		gap: 7px 14px;
		padding: 8px 9px;
		width: 100%;
	}

	.hw-guideline-legend .hw-guideline-legend-item {
		font-size: 10.5px;
	}
}

@media (max-width: 360px) {
	.hw-guideline-legend {
		gap: 7px 10px;
	}

	.hw-guideline-legend .hw-guideline-legend-item {
		font-size: 10px;
	}

	.hw-guideline-legend .hw-guideline-legend-item i {
		flex-basis: 17px;
		height: 17px;
		width: 17px;
	}
}


@media (min-width: 641px) {
	.hw-guidelines-heading {
		align-items: flex-start;
		flex-direction: row;
	}

	.hw-guidelines-heading > div:first-child {
		flex: 1 1 auto;
		min-width: 190px;
	}

	.hw-guideline-legend {
		flex: 0 1 auto;
	}
}
.hw-card-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.hw-setting-row {
	align-items: center;
	background: #fff;
	border: 1px solid #dfe4ec;
	border-radius: 12px;
	display: flex;
	gap: 16px;
	min-height: 82px;
	padding: 18px;
}

.hw-setting-row > span {
	align-items: center;
	border-radius: 999px;
	color: #fff;
	display: flex;
	font-weight: 900;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.hw-setting-row h2 {
	font-size: 17px;
	margin: 0 0 5px;
}

.hw-setting-row p {
	color: #5f6d85;
	font-size: 12px;
	margin: 0;
}

.hw-setting-row a {
	background: #f1f3f7;
	border-radius: 999px;
	color: #030b18;
	font-size: 12px;
	font-weight: 800;
	margin-left: auto;
	padding: 10px 22px;
}

.hw-settings-editor {
	max-width: 920px;
}

.hw-settings-editor .hw-form {
	gap: 18px;
}

.hw-toggle-row {
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #dfe4ec;
	border-radius: 12px;
	display: flex;
	gap: 14px;
	padding: 16px;
}

.hw-toggle-row input {
	accent-color: #ff3f4b;
	flex: 0 0 auto;
	height: 18px;
	margin-top: 3px;
	width: 18px;
}

.hw-toggle-row span {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hw-toggle-row strong {
	color: #030b18;
	font-size: 15px;
	line-height: 1.25;
}

.hw-toggle-row small {
	color: #5f6d85;
	font-size: 12px;
	line-height: 1.45;
}

.hw-security-mail-status {
	background: #f7f9fc;
	border: 1px solid #dfe4ec;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 16px;
}

.hw-security-mail-status strong {
	color: #030b18;
	font-size: 14px;
}

.hw-security-mail-status span,
.hw-security-mail-status small {
	color: #5f6d85;
	font-size: 12px;
	line-height: 1.45;
}

.hw-system-status {
	margin-top: 26px;
}

.hw-system-status p {
	font-weight: 800;
}

@media (max-width: 1180px) {
	.hw-sidebar {
		flex-basis: 92px;
		padding-left: 14px;
		padding-right: 14px;
	}

	.hw-nav-heading {
		font-size: 0;
		margin-bottom: 12px;
	}

	.hw-nav-item {
		justify-content: center;
		padding: 14px 0;
	}

	.hw-nav-label {
		display: none;
	}

	.hw-stat-flex,
	.hw-action-flex {
		flex-wrap: wrap;
	}

	.hw-backoffice-page .hw-backoffice-grid {
		flex-direction: column;
	}

	.hw-backoffice-page .hw-backoffice-notes {
		position: static;
	}


}

@media (max-width: 900px) {
	.hw-backoffice-form-shell,
	.hw-backoffice-edit-layout {
		flex-direction: column;
	}
}

@media (max-width: 760px) {
	.hw-app {
		display: block;
	}

	.hw-sidebar {
		display: none;
	}

	.hw-main {
		padding: 20px 14px;
	}

	.hw-dashboard-top {
		display: flex;
		flex-direction: column;
	}

	.hw-backoffice-week {
		white-space: normal;
		width: 100%;
	}

	.hw-backoffice-week-switcher {
		justify-content: flex-start;
		width: 100%;
	}

	.hw-backoffice-week-switcher .hw-mini-button,
	.hw-backoffice-week-switcher .hw-backoffice-week {
		flex: 1 1 auto;
	}

	.hw-backoffice-page .hw-backoffice-form-grid > *,
	.hw-backoffice-page .hw-backoffice-filters form > * {
		flex-basis: 100%;
	}

	.hw-backoffice-task {
		display: block;
	}

	.hw-backoffice-task-main {
		margin-bottom: 14px;
	}

	.hw-backoffice-actions {
		justify-content: flex-start;
	}

	.hw-backoffice-task .hw-backoffice-actions {
		flex-direction: column;
	}

	.hw-backoffice-task .hw-backoffice-actions > form:first-child {
		order: 1;
	}

	.hw-backoffice-task .hw-backoffice-editor summary {
		order: 2;
	}

	.hw-backoffice-task .hw-backoffice-actions > form:last-child {
		order: 3;
	}

	.hw-backoffice-editor-panel {
		order: 4;
	}

	.hw-backoffice-actions .hw-mini-button,
	.hw-backoffice-actions form,
	.hw-backoffice-actions details,
	.hw-backoffice-filter-actions,
	.hw-backoffice-filter-actions .hw-button {
		width: 100%;
	}

	.hw-backoffice-editor summary {
		justify-content: center;
		width: 100%;
	}
	.hw-backoffice-editor-panel {
		padding: 12px;
	}

	.hw-backoffice-form-shell,
	.hw-backoffice-edit-layout {
		flex-direction: column;
	}

	.hw-backoffice-info-grid div {
		flex-basis: 100%;
	}

	.hw-backoffice-description-field textarea {
		min-height: 220px;
	}

	.hw-backoffice-sticky-actions {
		flex-direction: column;
		margin-left: -12px;
		margin-right: -12px;
	}

	.hw-backoffice-task .hw-backoffice-editor-panel .hw-backoffice-sticky-actions .hw-button,
	.hw-backoffice-sticky-actions .hw-button {
		width: 100%;
	}
}

.hw-subscription-cards {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	max-width: 100%;
	min-width: 0;
}

.hw-subscription-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	display: flex;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 14px;
	min-width: 48%;
	padding: 22px;
	position: relative;
}

.hw-current-subscription-usage {
	margin-bottom: 18px;
}

.hw-subscription-popular {
	border-color: #ef4444;
	box-shadow: 0 22px 55px rgba(239, 68, 68, 0.15);
}

.hw-subscription-card h2 {
	font-size: 26px;
	margin: 0;
}

.hw-plan-price {
	color: #dc2626;
	font-size: 20px;
	line-height: 1.2;
}

.hw-subscription-card p {
	color: #475569;
	margin: 0;
}

.hw-subscription-card ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0 0 0 18px;
}

.hw-subscription-card li {
	color: #1f2937;
	font-size: 14px;
}

.hw-plan-limits {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: auto;
}

.hw-plan-limits span {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 10px;
}
.hw-plan-badge {
	align-self: flex-start;
	background: var(--hw-accent, #ff3f4b);
	border-radius: 8px;
	color: #ffffff;
	font-weight: 800;
	padding: 6px 10px;
}

.hw-plan-checkout-form,
.hw-subscription-management form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hw-plan-checkout-form .hw-button {
	justify-content: center;
	width: 100%;
}

.hw-current-plan-button {
	justify-content: center;
	width: 100%;
}

.hw-current-plan-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hw-subscription-cancel-card {
	max-width: 760px;
}

.hw-subscription-cancel-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hw-subscription-detail-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0 18px;
}

.hw-subscription-detail-grid div {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	flex: 1 1 180px;
	padding: 12px;
}

.hw-subscription-detail-grid small {
	color: #64748b;
	display: block;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 5px;
}

.hw-subscription-detail-grid strong {
	color: #111827;
	display: block;
	font-size: 16px;
	line-height: 1.25;
}

.hw-subscription-usage-overview {
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 4px 0 18px;
	padding-top: 18px;
}

.hw-subscription-usage-heading h3 {
	color: #111827;
	font-size: 20px;
	line-height: 1.25;
	margin: 0 0 4px;
}

.hw-subscription-usage-heading p {
	color: #64748b;
	margin: 0;
}

.hw-subscription-usage-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hw-subscription-usage-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 14px;
}

.hw-subscription-usage-card.is-limit-reached {
	background: #fff7ed;
	border-color: #fed7aa;
}

.hw-subscription-usage-card.is-limit-warning {
	border-color: #f59e0b;
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.hw-addon-usage-note {
	color: #166534;
	font-size: 13px;
	font-weight: 700;
	margin: 8px 0 0;
}

.hw-capacity-addons,
.hw-addon-balance {
	display: grid;
	gap: 16px;
	margin-top: 16px;
}

.hw-addon-products {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.hw-addon-product,
.hw-addon-credit-list > div {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	padding: 14px;
}

.hw-addon-product span,
.hw-addon-credit-list span {
	color: #64748b;
	font-size: 13px;
}

.hw-addon-credit-list {
	display: grid;
	gap: 10px;
}

.hw-subscription-usage-card-head,
.hw-subscription-usage-numbers {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.hw-subscription-usage-card-head strong {
	color: #111827;
	display: block;
	font-size: 15px;
	line-height: 1.3;
}

.hw-subscription-usage-card-head small {
	color: #64748b;
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 3px;
}

.hw-subscription-limit-status {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	color: #334155;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	padding: 8px 10px;
}

.is-limit-reached .hw-subscription-limit-status {
	background: #fee2e2;
	border-color: #fecaca;
	color: #991b1b;
}

.hw-subscription-usage-numbers span {
	color: #334155;
	font-size: 13px;
	font-weight: 800;
}

.hw-subscription-usage-numbers em {
	color: #64748b;
	font-size: 13px;
	font-style: normal;
	font-weight: 900;
}

.hw-subscription-progress {
	background: #f1f5f9;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
	width: 100%;
}

.hw-subscription-progress span {
	background: #dc2626;
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 0;
	transition: width 180ms ease;
}

.hw-subscription-progress-unlimited span {
	background: linear-gradient(90deg, #16a34a, #22c55e);
	width: 100%;
}

.hw-payment-history,
.hw-invoice-history {
	border-color: #e6ebf2;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
	margin-top: 16px;
	padding: 24px;
}

.hw-payment-history h2,
.hw-invoice-history h2 {
	font-size: 24px;
	line-height: 1.2;
	margin: 0 0 16px;
}

.hw-history-filters {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: -2px 0 14px;
}

.hw-history-filters label {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hw-history-filters span {
	color: #64748b;
	font-size: 11px;
	font-weight: 900;
}

.hw-history-filters select {
	background: #ffffff;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	color: #111827;
	font-size: 13px;
	min-height: 34px;
	min-width: 150px;
	padding: 6px 30px 6px 10px;
}

.hw-history-table-scroll {
	margin: 0 -4px;
	overflow-x: auto;
	padding: 0 4px;
}

.hw-history-table {
	border-collapse: separate;
	border-spacing: 0;
	color: #111827;
	min-width: 760px;
	table-layout: fixed;
	width: 100%;
}

.hw-payment-history .hw-col-date {
	width: 18%;
}

.hw-payment-history .hw-col-plan {
	width: 22%;
}

.hw-payment-history .hw-col-amount {
	width: 14%;
}

.hw-payment-history .hw-col-discount {
	width: 15%;
}

.hw-payment-history .hw-col-status {
	width: 13%;
}

.hw-payment-history .hw-col-reference {
	width: 18%;
}

.hw-invoice-history .hw-col-invoice-number {
	width: 19%;
}

.hw-invoice-history .hw-col-date {
	width: 14%;
}

.hw-invoice-history .hw-col-period {
	width: 24%;
}

.hw-invoice-history .hw-col-amount {
	width: 14%;
}

.hw-invoice-history .hw-col-status {
	width: 13%;
}

.hw-invoice-history .hw-col-action {
	width: 16%;
}

.hw-history-table th,
.hw-history-table td {
	border-bottom: 1px solid #e2e8f0;
	padding: 10px 10px;
	text-align: left;
	vertical-align: middle;
}

.hw-history-table th {
	color: #64748b;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.hw-history-table tbody tr:last-child td {
	border-bottom: 0;
}

.hw-history-table tbody tr:nth-child(even) {
	background: #fbfcfe;
}

.hw-history-table tbody tr:hover {
	background: #f8fafc;
}

.hw-money-cell {
	font-variant-numeric: tabular-nums;
	text-align: right !important;
	white-space: nowrap;
}

.hw-history-discount-cell {
	font-variant-numeric: tabular-nums;
	text-align: right !important;
	white-space: nowrap;
}

.hw-history-status-cell {
	text-align: center !important;
	white-space: nowrap;
}

.hw-history-action-cell {
	text-align: right !important;
	white-space: nowrap;
}

.hw-history-empty {
	color: #64748b;
	padding: 18px 12px !important;
	text-align: center !important;
}

.hw-payment-status {
	border-radius: 999px;
	display: inline-flex;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	padding: 7px 10px;
	white-space: nowrap;
}

.hw-payment-status-paid {
	background: #ecfdf3;
	color: #047857;
}

.hw-payment-status-pending {
	background: #fff7ed;
	color: #c2410c;
}

.hw-payment-status-failed,
.hw-payment-status-cancelled {
	background: #fff1f2;
	color: #be123c;
}

.hw-payment-status-refunded {
	background: #eef2ff;
	color: #4338ca;
}

.hw-invoice-number-link {
	color: #111827;
	font-weight: 800;
	text-decoration: none;
	text-underline-offset: 3px;
}

.hw-invoice-number-link:hover,
.hw-invoice-number-link:focus {
	color: #be123c;
	text-decoration: underline;
}

.hw-history-download-button {
	align-items: center;
	background: #ffffff;
	border-color: #dfe4ec;
	color: #071225;
	display: inline-flex;
	gap: 6px;
	justify-content: center;
	min-height: 32px;
	min-width: 126px;
	padding: 6px 10px;
}

.hw-history-download-button .dashicons {
	font-size: 13px;
	height: 13px;
	line-height: 13px;
	opacity: 0.78;
	width: 13px;
}

.hw-history-download-button:hover,
.hw-history-download-button:focus {
	background: #fff1f2;
	border-color: #ffb3ba;
	color: #be123c;
}

.hw-history-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: flex-end;
	margin-top: 14px;
}

.hw-history-page-link {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	color: #334155;
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	justify-content: center;
	min-height: 32px;
	min-width: 32px;
	padding: 6px 10px;
	text-decoration: none;
}

.hw-history-page-link:hover,
.hw-history-page-link:focus {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #111827;
}

.hw-history-page-link.is-current {
	background: #be123c;
	border-color: #be123c;
	color: #ffffff;
}

.hw-history-page-link.is-disabled {
	color: #94a3b8;
	cursor: default;
	pointer-events: none;
}

.hw-checkout-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.hw-checkout-steps span {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #475569;
	flex: 1 1 calc(33.333% - 6px);
	font-size: 12px;
	font-weight: 800;
	padding: 10px 12px;
	text-align: center;
}

.hw-checkout-steps .is-active {
	background: #fee2e2;
	border-color: #fecaca;
	color: #991b1b;
}

.hw-order-layout {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.hw-order-main {
	flex: 1 1 0;
	min-width: 0;
}

.hw-order-main .hw-plan-badge {
	display: flex;
	margin-bottom: 12px;
	width: fit-content;
}

.hw-order-summary {
	flex: 0 1 380px;
	min-width: 300px;
}

.hw-order-main h2,
.hw-order-summary h2 {
	margin-top: 0;
}

.hw-order-feature-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 18px;
	padding-left: 18px;
}

.hw-order-feature-list li {
	color: #1f2937;
	flex: 1 1 calc(50% - 9px);
	font-size: 14px;
}

.hw-order-summary {
	position: sticky;
	top: 18px;
}

.hw-price-row {
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
}

.hw-price-row span {
	color: #475569;
	font-weight: 700;
}

.hw-price-row strong {
	color: #111827;
	font-size: 16px;
}

.hw-price-total {
	border-bottom: 0;
	margin-bottom: 12px;
	padding-top: 16px;
}

.hw-price-total strong {
	color: #dc2626;
	font-size: 22px;
}

.hw-discount-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0;
}

.hw-order-summary .hw-availability-notice {
	margin: 14px 0;
	padding: 14px 18px;
}

.hw-invoice-fields {
	border-top: 1px solid #e2e8f0;
	margin-top: 16px;
	padding-top: 16px;
}

.hw-order-summary .hw-invoice-fields {
	border-bottom: 1px solid #e2e8f0;
	border-top: 0;
	margin: 0 0 16px;
	padding: 0 0 16px;
}

.hw-period-options {
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0 0 16px;
}

.hw-period-options h3 {
	font-size: 15px;
	margin: 0 0 2px;
}

.hw-period-option {
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	padding: 11px 12px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hw-period-option:hover,
.hw-period-option.is-selected,
.hw-period-option:has(input:checked) {
	background: #fff7f7;
	border-color: #fecaca;
	box-shadow: 0 10px 22px rgba(239, 68, 68, 0.09);
}

.hw-period-option input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.hw-period-option strong,
.hw-period-option small {
	display: block;
	line-height: 1.35;
}

.hw-period-option strong {
	color: #111827;
	font-size: 14px;
}

.hw-period-option small,
.hw-recurring-note {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
}

.hw-recurring-note {
	line-height: 1.45;
	margin: -2px 0 12px;
}

.hw-invoice-fields h3 {
	font-size: 15px;
	margin: 0 0 12px;
}

.hw-checkout-form-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hw-order-pay-button {
	justify-content: center;
	margin-top: 4px;
	width: 100%;
}

.hw-cancel-modal[hidden] {
	display: none;
}

.hw-cancel-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 10000;
}

.hw-cancel-modal-backdrop {
	background: rgba(15, 23, 42, 0.58);
	inset: 0;
	position: absolute;
}

.hw-cancel-modal-dialog {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
	max-width: 560px;
	padding: 24px;
	position: relative;
	width: min(100%, 560px);
}

.hw-cancel-modal-dialog h3 {
	color: #111827;
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.hw-cancel-modal-dialog p {
	color: #475569;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 12px;
}

@media (max-width: 900px) {
	.hw-order-main,
	.hw-order-summary {
		flex-basis: 100%;
		min-width: 0;
	}

	.hw-order-summary {
		position: static;
	}
}

@media (max-width: 640px) {
	.hw-checkout-steps span {
		flex-basis: calc(50% - 4px);
	}

	.hw-order-feature-list li {
		flex-basis: 100%;
	}
}

@media (max-width: 640px) {
	.hw-subscriptions-page {
		padding: 24px 14px 42px;
	}

	.hw-subscriptions-hero h1 {
		font-size: 32px;
	}

	.hw-subscription-card {
		flex-basis: 100%;
	}

	.hw-subscription-usage-card-head,
	.hw-subscription-usage-numbers {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	.hw-subscription-limit-status {
		align-self: flex-start;
	}

	.hw-payment-history,
	.hw-invoice-history {
		margin-top: 14px;
		padding: 18px 14px;
	}

	.hw-payment-history h2,
	.hw-invoice-history h2 {
		font-size: 21px;
		margin-bottom: 12px;
	}

	.hw-history-filters {
		align-items: stretch;
		gap: 8px;
	}

	.hw-history-filters label,
	.hw-history-filters select {
		min-width: 0;
		width: 100%;
	}

	.hw-history-filters .hw-mini-button {
		justify-content: center;
		width: 100%;
	}

	.hw-history-table-scroll {
		margin: 0;
		overflow-x: visible;
		padding: 0;
	}

	.hw-history-table,
	.hw-history-table thead,
	.hw-history-table tbody,
	.hw-history-table tr,
	.hw-history-table th,
	.hw-history-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.hw-history-table thead {
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.hw-history-table tbody {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.hw-history-table tbody tr {
		background: #ffffff;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		padding: 10px 12px;
	}

	.hw-history-table tbody tr:nth-child(even) {
		background: #ffffff;
	}

	.hw-history-table tbody tr:hover {
		background: #ffffff;
	}

	.hw-history-table td {
		align-items: center;
		border-bottom: 0;
		display: flex;
		gap: 14px;
		justify-content: space-between;
		padding: 7px 0;
		text-align: right;
	}

	.hw-history-table td::before {
		color: #64748b;
		content: attr(data-label);
		font-size: 12px;
		font-weight: 900;
		text-align: left;
	}

	.hw-money-cell,
	.hw-history-discount-cell,
	.hw-history-status-cell,
	.hw-history-action-cell {
		text-align: right !important;
	}

	.hw-history-download-button {
		min-width: 128px;
	}

	.hw-history-pagination {
		justify-content: flex-start;
	}

	.hw-history-page-link {
		min-height: 30px;
		min-width: 30px;
		padding: 5px 9px;
	}
}

