div.headerButtons a.account.activeDropdown {
	color: var(--header-color);
	fill: var(--header-color);
	background-color: var(--header-text-color);
	text-decoration: none;
}

div.headerButtons a.account.activeDropdown svg.icon {
	fill: currentColor;
}

div.account {
	background-color: var(--main-elements-background-color);
	/*box-shadow: var(--box-shadow);*/
}

ul.accountDropdown li a {
	color: var(--main-text-color);
	background-color: var(--main-elements-background-color);
	text-decoration: none;
}

ul.accountDropdown li:last-of-type {
	border-bottom: 0;
	border-top: 2px solid var(--main-list-separator-color);
}

div.account.profile label[data-field] b::after {
	content: '';
	color: unset;
}

div.account.entity table .item.details > td {
	padding: 0;
}

div.account.entity table .item.details div.account.order {
	box-shadow: none;
	padding: 0;
	margin: 0;
}

div.account.entity table .item.details div.account.order > *:not(.saleslines) {
	display: none;
}


div.account.entity div.inlineArticle {
	box-shadow: none;
}

div.account.entity .inlineArticle .articleInfo {
	padding: 1em 0;
}

/* Override the H1 in headers on inline articles on the entity page so they look like H2 instead */
div.account.entity .inlineArticle .articleInfo h1 {
	font-size: 1.4rem;
	margin-bottom: .25em;
	background-color: transparent;
	color: var(--main-header-text-color);
	margin: 0;
	padding: 0;
}

@media only screen and (max-width: 767px) {
	div.account.entities table.basic .parameter {
		display: none;
	}
	
	div.account.entities table.basic *:is(.parameter-0,.parameter-1, .parameter-2, .parameter-3, .parameter-4, .parameter-5, .parameter-99) {
		display: table-cell;
	}
	
	/*div.account .qGrid2{
		margin-left: 0px;
		width: calc( 100% - 32px );
	}*/
	div.headerButtons a.account {
		width: 40px;
		height: 40px;
	}
}

@media only screen and (max-width: 480px) {
	div.account.entities table.basic .parameter {
		display: none;
	}
	
	div.account.entities table.basic *:is(.parameter-0,.parameter-1, .parameter-2,.parameter-99) {
		display: table-cell;
	}
}

.modal-user-delivery-address-edit-buttons {
	justify-content: end;;
}

.modal-user-delivery-address-edit > .formElement {
	margin-bottom: 1em;
}

.modal-user-delivery-address-edit > .formElement > .postcode {
	flex: 0 0 calc(10% - 1em);
	max-width: calc(10% - 1em);
}

.delivery-addr-table-td-buttons {
	white-space: nowrap;
	display: flex;
	flex-direction: row;
	justify-content: start;
}

.delivery-addr-table-td-buttons button {
	align-self: flex-start;
}

.address-list-check-column {
	text-align: center;
	max-width: 100px;
	width: 100px;
}

.address-fake-button {
	width: 34px;
	height: 34px;
	background-color: transparent;
}

@media only screen and (max-width: 480px) {
	.modal-user-delivery-address-edit > .formElement > .postcode {
		flex: unset;
		max-width: unset;
	}
	
	.address-list-check-column {
		max-width: 40px;
		overflow-wrap: break-word;
	}
}

#modal-user-delivery-address-table button svg.icon {
	fill: var(--main-inverted-header-color);
	margin: unset;
}

.blockdetails table thead tr:first-child {
	border-bottom: 1px solid;
}

.blockdetails table tbody tr:last-child {
	border-bottom: 0 !important;
}

/* Design Plus */
.qDialog .modal-form label.qField b {
	font-weight: unset;
}

.qDialog .modal-form label.qField {
	border: unset;
	margin-bottom: unset;
	background-color: unset;
	color: unset;
	box-shadow: unset;
	padding: unset;
	clear: unset;
}

.qDialog .modal-form label.qField input {
	display: block;
	width: 100%;
	height: calc(1.5em + 0.75rem + 2px);
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


div.qModal.modalprofileaddr.qDialog {
	border-radius: 5px;
}

table tr tbody tr td.quantity {
	background-color: unset;
}

/* subscriptions ====================================*/
.account_subscriptionsType .btn:not(.cart-button):not(.default-btn):not(.ignore-custom).change-variant {
	padding: .1rem .75rem;
	font-size: revert;
}

.account_subscriptionsType .stockstatus.stock:not(.badge) {
	margin-top: unset;
}

.designPlus button.form-control {
	height: 38px;
}

.subscription-variant-option, .subscription-row-option {
	cursor: pointer;
}

.designPlus.account_ordersType label.qField input {
	padding-left: 5px;
	padding-right: 5px;
}

.designPlus.account_ordersType label.qField b {
	font-weight: normal;
}

body[class^="account_"].designPlus ul.qTabButtons li a b.count {
	color: var(--main-header-menu-font-color);
	background-color: var(--main-header-menu-bg-color);
}

body[class^="account_"].designPlus ul.qTabButtons li:hover a b.count,
body[class^="account_"].designPlus ul.qTabButtons li a.active b.count {
	color: var(--main-link-color);
	background-color: var(--main-header-menu-font-color);
}

body[class^="account_"].designPlus ul.qTabButtons li a {
	padding: .5em 1em;
	line-height: unset;
}

body[class^="account_"].designPlus ul.qTabButtons li a b {
	color: var(--main-header-menu-font-color);
	padding: 0;
	line-height: 1.5;
}

.designPlus.account_ordersType .nav-tabs .nav-link.active {
	color: var(--main-header-menu-font-color);
	background-color: var(--main-header-menu-bg-color);
}

.designPlus.account_ordersType .nav-tabs .nav-link.active:hover {
	color: var(--main-header-menu-font-color);
	background-color: var(--main-hover-color);
}

.designPlus.account_ordersType .nav-tabs .nav-link.active b {
	color: var(--main-link-color-hover);
	background-color: var(--main-header-menu-font-color);
}

.designPlus.account_ordersType ul.qTabButtons li:hover a {
	color: var(--main-header-menu-font-color);
}

.designPlus.account_ordersType ul.qTabButtons li:hover a b.count {
	color: var(--main-link-color-hover);
	background-color: var(--main-header-menu-font-color);
}


.designPlus.account_ordersType .nav-tabs .nav-link b:hover {
	color: var(--main-link-color-hover);
	background-color: var(--main-header-menu-font-color);
}

.designPlus.account_ordersType label.qField > span.icon {
	line-height: 2em;
}

.designPlus.account_profileType .delivery-addr-table-td-buttons .icon {
	line-height: 1em;
}

.consentsWrapper label b {
	font-weight: normal;
}

@media only screen and (max-width: 480px) {
	.modal-form label b {
		margin-top: -3px;
		z-index: 10;
	}
}

.subscription-status-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	height: 35px;
	padding: 2px;
}

.btn.subscription-status-play,
.btn.subscription-status-stop,
.btn.subscription-status-pause,
.btn.subscription-end {
	padding: 6px !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	flex-shrink: 1;
	margin-left: .5em;
	border-radius: 3px !important;
	align-items: center;
	display: flex;
}

.btn.subscription-status-play:disabled,
.btn.subscription-status-stop:disabled,
.btn.subscription-status-pause:disabled,
.btn.subscription-end:disabled {
	opacity: .45;
}

body[class^="account_"].designPlus .nav-tabs .nav-link.active {
	background-color: var(--main-header-menu-bg-color);
	color: var(--main-header-menu-font-color);
}

body[class^="account_"].designPlus ul.qTabButtons li a {
	padding: .5em 1em;
	line-height: unset;
}

/* remove the rounded corners for QS */
body[class^="account_"]:not(.designPlus) .nav-tabs .nav-link {
	border-radius: 0;
}

.checkbox-large {
	transform: scale(1.5);
	-webkit-transform: scale(1.5);
	margin: 5px;
}

@media screen and (max-width:420px) {
	.user-delivery-address-table .btn.btn-sm {
		padding: 6px;
	}
}


/* ----------- Translation table START ------------- */
 #translationTable textarea.is-empty {
     background-color: #f8d7da;
     border-color: #f5c6cb;
 }
#translationTable textarea.is-modified {
    background-color: #d4edda;
    border-color: #c3e6cb;
}
#translationTable textarea.is-custom {
    border-left: 3px solid #007bff;
}
#translationTable textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#translationTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}
.locale-col.hidden-locale {
    display: none;
}
#translationSearch {
    max-width: 400px;
}

/* Untranslated filter active state */
#btnShowUntranslated.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Custom multiselect dropdown */
.multiselect-dropdown {
    position: relative;
    display: inline-block;
}
.multiselect-dropdown-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    justify-content: space-between;
}
.multiselect-dropdown-btn:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}
.multiselect-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.multiselect-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 5px 0;
    margin: 2px 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.multiselect-dropdown.open .multiselect-dropdown-menu {
    display: block;
}
.multiselect-option {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: normal;
    margin-bottom: 0;
}
.multiselect-option:hover {
    background-color: #f5f5f5;
}
.multiselect-option input[type="checkbox"] {
    margin-right: 8px;
}
.multiselect-select-all {
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 3px;
}

/* Translation table */
#translationTable textarea.is-empty {
 background-color: #f8d7da;
 border-color: #f5c6cb;
}
#translationTable textarea.is-modified {
    background-color: #d4edda;
    border-color: #c3e6cb;
}
#translationTable textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#translationTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}
.locale-col.hidden-locale {
    display: none;
}
#translationSearch {
    max-width: 400px;
}

/* Untranslated filter active state */
#btnShowUntranslated.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Custom multiselect dropdown */
.multiselect-dropdown {
    position: relative;
    display: inline-block;
}
.multiselect-dropdown-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    justify-content: space-between;
}
.multiselect-dropdown-btn:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}
.multiselect-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.multiselect-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 5px 0;
    margin: 2px 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.multiselect-dropdown.open .multiselect-dropdown-menu {
    display: block;
}
.multiselect-option {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: normal;
    margin-bottom: 0;
}
.multiselect-option:hover {
    background-color: #f5f5f5;
}
.multiselect-option input[type="checkbox"] {
    margin-right: 8px;
}
.multiselect-select-all {
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 3px;
}
/* Small scroll toggle button */
#btnSmallScroll {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.85rem;
    height: calc(1.5em + 0.75rem + 2px); /* match .form-control height */
    line-height: 1;
    align-self: center;
}
#btnSmallScroll.active {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
}

/* Small scroll mode — sticky header inside scrollable table */
.table-responsive.small-scroll-active {
    overflow-y: auto;
}
.table-responsive.small-scroll-active thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}
/* ----------- Translation table END ------------- */

/* ----------- Admin settings START ------------- */
.admin-settings-panel {
    background: #fff;
    padding: 15px;
    max-width: 900px;
}
.admin-settings-panel h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}
.admin-settings-panel .admin-actions {
    margin-bottom: 15px;
}
.admin-settings-fieldset {
    border: 1px solid #999;
    padding: 10px;
    margin-bottom: 15px;
}
.admin-settings-fieldset legend {
    font-size: 13px;
    font-weight: bold;
    padding: 0 5px;
    margin-left: 10px;
    width: auto;
}
.admin-setting-row {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.admin-setting-row:last-child {
    border-bottom: none;
}
.admin-setting-row label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
}
.admin-setting-row.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.admin-setting-row.checkbox-row input[type="checkbox"] {
    margin: 0;
    width: 15px;
    height: 15px;
    accent-color: #28a428;
}
.admin-setting-row.input-row label {
    min-width:330px;
    flex-shrink: 0;
}
.admin-setting-row.input-row input,
.admin-setting-row.input-row textarea {
    border: 1px solid #ddd;
    padding: 0 5px;
    font-size: 12px;
    min-width: 120px;
    flex: 1;
}
.admin-setting-row.input-row textarea {
    min-width: 250px;
    min-height: 40px;
}
.admin-settings-buttons {
    margin-top: 10px;
}
.admin-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #ccc;
    font-size: 10px;
    font-weight: bold;
    font-style: normal;
    cursor: help;
    margin-left: 5px;
    position: relative;
    vertical-align: super;
    flex-shrink: 0;
}
.admin-help-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 20px;
    top: -5px;
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: max-content;
    max-width: 300px;
    z-index: 100;
    line-height: 1.3;
}
/* ----------- Admin settings END ------------- */