/**
 * Customer Portal my-account — colors from Portal Options (--acp-*).
 */

body.woocommerce-account .breakdance-woocommerce .woocommerce-MyAccount-navigation ul li a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	color: var(--acp-nav-link-text, inherit);
	background-color: var(--acp-nav-link-bg, transparent);
	border-color: var(--acp-nav-link-bg, transparent);
	border-radius: 8px;
}

body.woocommerce-account .breakdance-woocommerce .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	color: var(--acp-nav-link-active-text, inherit);
	background-color: var(--acp-nav-link-active-bg, transparent);
	border-color: var(--acp-nav-link-active-bg, transparent);
}

body.woocommerce-account .breakdance-woocommerce .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	color: var(--acp-nav-link-hover-text, inherit);
	background-color: var(--acp-nav-link-hover-bg, transparent);
	border-color: var(--acp-nav-link-hover-bg, transparent);
}

body.woocommerce-account .breakdance-woocommerce .alert-customer-portal a:not(.button):not(.pdf-link),
.alert-customer-portal a:not(.button):not(.pdf-link) {
	color: var(--acp-table-body-text, var(--acp-nav-link-text, inherit));
	text-decoration: underline;
}

body.woocommerce-account .breakdance-woocommerce .alert-customer-portal a:not(.button):not(.pdf-link):hover,
.alert-customer-portal a:not(.button):not(.pdf-link):hover {
	color: var(--acp-nav-link-hover-text, var(--acp-table-body-text, inherit));
}

.woocommerce-MyAccount-content .alert-customer-portal table.shop_table,
.alert-customer-portal table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 10px 0;
	color: var(--acp-table-body-text, inherit);
}

.alert-customer-portal table.shop_table thead {
	background-color: var(--acp-table-header-bg, transparent);
	color: var(--acp-table-header-text, inherit);
}

.alert-customer-portal table.shop_table thead th {
	padding: 0.5rem 0.625rem;
	font-weight: 600;
	border: 1px solid var(--acp-table-border, currentColor);
}

.alert-customer-portal table.shop_table thead th.text-right {
	text-align: right;
}

.alert-customer-portal table.shop_table thead th.cell-center {
	text-align: center;
}

.alert-customer-portal table.shop_table tbody,
.alert-customer-portal table.shop_table.shop_table--balance {
	background-color: var(--acp-table-body-bg, transparent);
	color: var(--acp-table-body-text, inherit);
}

.alert-customer-portal table.shop_table tbody td,
.alert-customer-portal table.shop_table.shop_table--balance td {
	padding: 0.75rem 0.625rem;
	border: 1px solid var(--acp-table-border, currentColor);
}

.alert-customer-portal table.shop_table tfoot {
	background-color: var(--acp-table-footer-bg, var(--acp-table-header-bg, transparent));
	color: var(--acp-table-footer-text, var(--acp-table-header-text, inherit));
}

.alert-customer-portal table.shop_table tfoot td,
.alert-customer-portal table.shop_table tfoot th {
	padding: 0.5rem 0.625rem;
	border: 1px solid var(--acp-table-border, currentColor);
}

body.woocommerce-account .bde-woopageaccount form :is(button.button, a.button, input.button[type="submit"]),
body.woocommerce-account .breakdance-woocommerce .woocommerce-MyAccount-content :is(button.button, a.button, input.button[type="submit"]),
body.woocommerce-account .breakdance-woocommerce .alert-customer-portal :is(button.button, a.button, input.button[type="submit"]),
.alert-customer-portal :is(button.button, a.button, input.button[type="submit"]) {
	background: var(--acp-button-bg, transparent);
	color: var(--acp-button-text, #3F2E00);
	border: 1px solid var(--acp-button-bg, var(--acp-table-border, currentColor));
	border-radius: 8px;
	box-shadow: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0 1.15rem;
	font-size: 1.125rem;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	width: max-content;
}

body.woocommerce-account .breakdance-woocommerce .alert-customer-portal .portal-search-actions :is(button.button, a.button),
.alert-customer-portal .portal-search-actions :is(button.button, a.button) {
	font-size: 0.9rem;
}

.alert-customer-portal :is(button.button, a.button) .btn-spinner,
.woocommerce-MyAccount-content :is(button.button, a.button) .btn-spinner,
body.woocommerce-account .bde-woopageaccount form :is(button.button, a.button) .btn-spinner {
	display: block;
	width: 1rem;
	height: 1rem;
	margin: 0;
	flex: 0 0 auto;
}

body.woocommerce-account .bde-woopageaccount form :is(button.button, a.button, input.button[type="submit"]):hover,
body.woocommerce-account .breakdance-woocommerce .woocommerce-MyAccount-content :is(button.button, a.button, input.button[type="submit"]):hover,
body.woocommerce-account .breakdance-woocommerce .alert-customer-portal :is(button.button, a.button, input.button[type="submit"]):hover,
.alert-customer-portal :is(button.button, a.button, input.button[type="submit"]):hover {
	background: var(--acp-button-hover-bg, var(--acp-button-bg, transparent));
	color: var(--acp-button-hover-text, var(--acp-button-text, inherit));
	border-color: var(--acp-button-hover-bg, var(--acp-button-bg, transparent));
}

body.woocommerce-account .bde-woopageaccount form :is(button.button, a.button, input.button[type="submit"]):disabled,
body.woocommerce-account .breakdance-woocommerce .woocommerce-MyAccount-content :is(button.button, a.button, input.button[type="submit"]):disabled,
body.woocommerce-account .breakdance-woocommerce .alert-customer-portal :is(button.button, a.button, input.button[type="submit"]):disabled,
.alert-customer-portal :is(button.button, a.button, input.button[type="submit"]):disabled {
	background: var(--acp-button-disabled-bg, transparent);
	color: var(--acp-button-disabled-text, inherit);
	cursor: not-allowed;
}

.alert-customer-portal .woocommerce-input-wrapper .input-text,
.alert-customer-portal .woocommerce-input-wrapper select {
	box-sizing: border-box;
	width: 100%;
	background-color: var(--acp-input-bg, transparent);
	color: var(--acp-input-text, inherit);
	border: 1px solid var(--acp-input-border, currentColor);
	padding: 0.618em 0.875em;
	line-height: 1.5;
}

.alert-customer-portal .woocommerce-input-wrapper select.input-text {
	appearance: none;
	background-origin: border-box;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

.alert-customer-portal td.tbl_view_actions .amount_pay {
	margin: 0;
}

.alert-customer-portal p.form-row {
	float: none;
	width: 100%;
	margin: 0 0 0.75em;
	padding: 0;
}

.alert-customer-portal .form-row label {
	display: block;
	margin-bottom: 0.35em;
	color: var(--acp-label-text, inherit);
}

.alert-customer-portal .form-row label .optional {
	font-weight: normal;
	opacity: 0.85;
}

.alert-customer-portal .portal-search-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1em;
	margin-bottom: 0;
}

.alert-customer-portal .portal-search-fields .form-row {
	margin-bottom: 0;
}

.alert-customer-portal .portal-search-fields .woocommerce-input-wrapper {
	display: block;
	line-height: 0;
}

.alert-customer-portal .portal-search-fields .woocommerce-input-wrapper .input-text {
	margin: 0;
	line-height: 1.5;
}

.alert-customer-portal .portal-search-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.alert-customer-portal .portal-invoice-paging {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.75rem 0;
}

.alert-customer-portal .portal-invoice-paging__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.alert-customer-portal .portal-invoice-paging .button {
	font-size: 0.9rem;
}

body.woocommerce-account .breakdance-woocommerce .alert-customer-portal .portal-invoice-paging :is(button.button, a.button):disabled,
.alert-customer-portal .portal-invoice-paging :is(button.button, a.button):disabled {
	opacity: 1;
	background: var(--acp-button-disabled-bg, #878787);
	color: var(--acp-button-disabled-text, #f0f0f1);
	border-color: var(--acp-button-disabled-bg, #878787);
}

.alert-customer-portal .portal-search-toolbar .portal-search-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}

.alert-customer-portal .portal-payment-card-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1em;
	row-gap: 0;
	width: 100%;
	clear: both;
	margin-bottom: 0.25em;
}

.alert-customer-portal .portal-payment-card-fields .form-row {
	margin-right: 0;
}

.alert-customer-portal .portal-payment-amount {
	max-width: 16em;
}

.alert-customer-portal .portal-payment-cc-fee-notice {
	display: block;
	clear: both;
	width: 100%;
	margin: 0.5em 0 0.75em;
	color: var(--acp-table-body-text, inherit);
}

.alert-customer-portal .portal-payment-cc-fee-notice__paragraph {
	display: block;
	margin: 0 0 0.5em;
}

.alert-customer-portal .portal-payment-submit {
	margin: 0.75em 0 0;
	padding: 0;
}

.alert-customer-portal td.tbl_view_actions {
	vertical-align: middle;
}

.alert-customer-portal td.tbl_view_actions.cell-center {
	text-align: center;
}

.alert-customer-portal a.pdf-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	vertical-align: middle;
}

.alert-customer-portal a.pdf-link img {
	display: block;
	width: auto;
	height: 24px;
	max-height: 24px;
	border: 0;
}

.breakdance-woocommerce .alert-customer-portal input[type="checkbox"],
.alert-customer-portal .tablesorter input[type="checkbox"] {
	margin: 0;
	padding: 0;
	vertical-align: middle;
	color: var(--acp-button-bg, #d0a234);
	accent-color: var(--acp-button-bg, #d0a234);
}

.alert-customer-portal td.tbl_view_actions.cell-center input[type="checkbox"] {
	display: inline-block;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

@media only screen and (min-width: 1024px) {
	.alert-customer-portal td.tbl_view_actions.cell-center input[type="checkbox"] {
		width: 24px;
		height: 24px;
		min-width: 24px;
		min-height: 24px;
	}
}

@media only screen and (max-width: 768px) {
	.alert-customer-portal td.tbl_view_actions.cell-center input[type="checkbox"] {
		width: 19px;
		height: 19px;
		min-width: 19px;
		min-height: 19px;
	}
}

@media (max-width: 768px) {
	.alert-customer-portal .portal-search-fields {
		grid-template-columns: 1fr;
	}

	.alert-customer-portal .portal-payment-card-fields {
		grid-template-columns: 1fr;
	}
}