/*!
 * mailnow-bs.css
 * Theme layer for the Bootstrap 5 based UI (replaces mailnow.min.css / jquery.mobile.structure / jquery.mobile.icons).
 * Skin colours are supplied by _css.php through the --mn-* custom properties.
 */

:root {
	--mn-bg: #f6f6f6;
	--mn-bg-hl: #ededed;
	--mn-bg-active: #e8e8e8;
	--mn-border: #dddddd;
	--mn-font: #333333;
	--mn-link: #3388cc;
	--mn-accent: #3388cc;
	--mn-popup-bg: #ffffff;
	--mn-popup-border: rgba(0, 0, 0, 0.1);
	--mn-icon-bg: rgba(0, 0, 0, 0.1);
	--mn-check-border: rgba(0, 0, 0, 0.35);
	--mn-input-bg: rgba(255, 255, 255, 0.2);
	--bs-modal-bg: var(--mn-popup-bg);
}

/* ---------- base ---------- */
html, body {
	font-size: 16px;
}
body {
	line-height: 1.3;
}
label {
	margin: 0;
	font-weight: normal;
}
h3 {
	font-size: 1.17em;
}
img {
	vertical-align: baseline;
}
table {
	border-collapse: separate;
}
/* Bootstrap reboot makes links underlined by default; keep the app's plain links */
a {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* Bootstrap reboot switches every element to border-box; jQuery Mobile did not.
   Keep content-box for images so width/height attributes + padding render at the old size. */
img, canvas, video {
	box-sizing: content-box;
}
/* file picker proxy: <label class="file_mask"><input type="button" class="btn mn-btn"></label> */
label.file_mask {
	display: block;
	width: 100%;
	margin: 0;
}
label.file_mask .mn-btn {
	display: block;
	width: 100%;
	margin: 0;
}

/* ---------- buttons ---------- */
.mn-btn {
	--bs-btn-padding-x: 1em;
	--bs-btn-padding-y: 0.7em;
	--bs-btn-font-size: 16px;
	--bs-btn-line-height: 1.3;
	--bs-btn-color: var(--mn-font);
	--bs-btn-bg: var(--mn-bg);
	--bs-btn-border-width: 0;
	--bs-btn-border-color: var(--mn-border);
	--bs-btn-border-radius: 0.1em; /* jQM theme: global-radii-buttons */
	--bs-btn-hover-color: var(--mn-font);
	--bs-btn-hover-bg: var(--mn-bg-hl);
	--bs-btn-hover-border-color: var(--mn-bg-hl);
	--bs-btn-active-color: var(--mn-font);
	--bs-btn-active-bg: var(--mn-bg-active);
	--bs-btn-active-border-color: var(--mn-bg-active);
	--bs-btn-disabled-color: var(--mn-font);
	--bs-btn-disabled-bg: var(--mn-bg);
	--bs-btn-disabled-border-color: var(--mn-border);
	--bs-btn-focus-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
	display: block;
	width: 100%;
	margin: 0.5em 0;
	position: relative;
	font-weight: normal;
	white-space: normal;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
	box-sizing: border-box;
}
a.mn-btn:hover {
	text-decoration: none;
}
.mn-btn:focus-visible {
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}
.mn-btn-sm {
	--bs-btn-font-size: 12.5px;
	--bs-btn-padding-x: 0.8em;
	--bs-btn-padding-y: 0.55em;
	margin: 0;
}
.mn-btn.mn-icon-notext {
	--bs-btn-border-radius: 1em; /* jQM: icon-only buttons */
}
.mn-btn-inline {
	display: inline-block;
	width: auto;
	vertical-align: middle;
}
.force_left, .force_right, .force_center {
	margin: 0;
}
.buttonborder .mn-btn,
.buttonborder .mn-select,
.buttonborder .mn-switch-ui,
.buttonborder .mn-listview {
	margin: 0;
}
.buttonborder .mn-btn {
	border-radius: 0;
}
.mn-btn > img {
	vertical-align: middle;
}

/* horizontal control groups */
.mn-controlgroup {
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	vertical-align: middle;
}
.mn-controlgroup > .mn-btn {
	display: inline-block;
	width: auto;
	margin: 0;
	flex: 0 1 auto;
}
.mn-controlgroup > .mn-btn:not(:last-child) {
	border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- icons (Bootstrap Icons on a rounded disc, like jQM) ---------- */
.mn-icon {
	position: relative;
}
.mn-icon-left {
	padding-left: 2.5em !important;
}
.mn-icon-right {
	padding-right: 2.5em !important;
}
.mn-icon-top {
	padding-top: 2.5em !important;
}
.mn-icon-bottom {
	padding-bottom: 2.5em !important;
}
.mn-icon-notext {
	padding: 0 !important;
	min-width: 1.75em;
	min-height: 1.75em;
	text-indent: -9999px;
	white-space: nowrap;
	overflow: hidden;
}
.mn-icon::before {
	position: absolute;
	display: block;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	line-height: 22px;
	text-align: center;
	text-indent: 0;
	font-size: 14px;
	border-radius: 5px;
	background-color: var(--mn-icon-bg);
	color: inherit;
	opacity: 0.9;
	pointer-events: none;
}
.mn-icon-left::before {
	left: 0.5625em;
}
.mn-icon-right::before {
	right: 0.5625em;
	left: auto;
}
.mn-icon-top::before {
	top: 0.5625em;
	left: 50%;
	margin: 0 0 0 -11px;
}
.mn-icon-bottom::before {
	top: auto;
	bottom: 0.5625em;
	left: 50%;
	margin: 0 0 0 -11px;
}
.mn-icon-notext::before {
	left: 50%;
	margin-left: -11px;
}
.mn-icon-blank::before {
	content: "" !important;
}
html[dir="rtl"] .mn-icon-left {
	padding-left: 1em !important;
	padding-right: 2.5em !important;
}
html[dir="rtl"] .mn-icon-right {
	padding-right: 1em !important;
	padding-left: 2.5em !important;
}
html[dir="rtl"] .mn-icon-left::before {
	left: auto;
	right: 0.5625em;
}
html[dir="rtl"] .mn-icon-right::before {
	right: auto;
	left: 0.5625em;
}
.mn-shadow {
	-webkit-box-shadow: 0 2.5rem 2rem -2rem hsl(200 50% 20% / 40%);
	box-shadow: 0 2.5rem 2rem -2rem hsl(200 50% 20% / 40%);
}

/* ---------- list views ---------- */
.mn-listview {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mn-listview > li {
	position: relative;
	background-color: var(--mn-bg);
	color: var(--mn-font);
	border-radius: 0.1em;
}
.mn-listview > li + li {
	border-top: 1px solid var(--mn-border);
}
.mn-listview > li > a {
	display: block;
	padding: 0.7em 1em;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.mn-listview > li.mn-icon-right > a {
	padding-right: 2.5em;
}
.mn-listview > li.mn-icon-left > a {
	padding-left: 2.5em;
}
.mn-listview > li:hover {
	background-color: var(--mn-bg-hl);
}
.mn-li.mn-icon-right {
	padding-right: 0 !important;
}
.mn-li.mn-icon-left {
	padding-left: 0 !important;
}

/* ---------- popups (bootstrap.Modal) ---------- */
.mn-popup.modal:not(.show) {
	/* hide like jQuery Mobile did (visibility, not display) so content injected into a closed popup
	   still has a measurable width - AdSense throws synchronously on availableWidth=0 */
	display: block !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none;
}
.mn-popup.modal.show {
	visibility: visible !important;
	pointer-events: auto;
}
.mn-popup .modal-dialog {
	width: 90%;
	max-width: 1000px;
	min-width: 60%;
	margin: 15px auto;
}
.mn-popup .modal-content {
	--bs-modal-bg: var(--mn-popup-bg);
	background-color: var(--mn-popup-bg);
	color: inherit;
	border: 1px solid var(--mn-popup-border);
	border-radius: 5px;
	/* 画面の80%まで: 下側に外側タップで閉じられる余白を残す (小さい画面向け) */
	max-height: 80vh;
	max-height: 80dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
/* nested scroll areas inside a popup (domain list, address list, alias search) must not chain
   their scroll to the popup body / page */
.mn-popup .modal-content {
	overscroll-behavior: contain;
}
.mn-popup .mn-scroll {
	max-height: 45vh !important;
	max-height: 45dvh !important;
}
.mn-popup .mn-scroll,
.mn-popup [style*="overflow-y:auto"],
.mn-popup [style*="overflow-y: auto"],
.mn-popup [style*="overflow-y:scroll"],
.mn-popup [style*="overflow-y: scroll"],
.mn-popup [style*="overflow:auto"],
.mn-popup [style*="overflow: auto"] {
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
/* loading indicator: centred in the viewport, no box, no scrollbars (jQM centred its popups by default) */
#area-loading-dialog.mn-popup.modal {
	overflow: hidden !important;
}
#area-loading-dialog.mn-popup .modal-dialog {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	max-width: none;
	min-height: calc(100% - 30px);
	margin: 15px auto;
	pointer-events: none;
}
#area-loading-dialog.mn-popup .modal-content {
	width: auto;
	max-height: none;
	overflow: visible;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
	pointer-events: none;
}
.mn-popup-transparent .modal-content {
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
}
.modal-backdrop {
	--bs-backdrop-bg: #000;
	--bs-backdrop-opacity: 0.6;
}
.modal-backdrop.show {
	opacity: 0.6;
}
.mn-popup .popupbox {
	position: relative;
}

/* ---------- flip switch ---------- */
.mn-switch-ui {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	padding: 0.35em 0;
	padding-left: 0; /* reset Bootstrap .form-check / .form-switch */
	min-height: 0;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
}
.mn-switch-ui .form-check-input {
	width: 3em;
	height: 1.5em;
	margin: 0;
	float: none;
	flex: 0 0 auto;
	cursor: pointer;
	background-color: var(--mn-bg-active);
	border-color: var(--mn-border);
}
.mn-switch-ui .form-check-input:checked {
	background-color: var(--mn-accent);
	border-color: var(--mn-accent);
}
.mn-switch-ui .form-check-label {
	font-size: 90%;
	line-height: 1.5em;
}
select.mn-switch {
	display: none !important;
}
/* jQM showed the option text inside the switch; the Bootstrap switch conveys the state by colour,
   so the text is hidden by default (add class mn-switch-withtext to the <select> to show it) */
.mn-switch-ui .mn-switch-text {
	display: none;
}
select.mn-switch-withtext + .mn-switch-ui .mn-switch-text {
	display: inline;
}

/* ---------- range slider ---------- */
.mn-range {
	width: 100%;
	margin: 0;
	padding: 0.5em 0;
}
.mn-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background-color: var(--mn-bg-active);
}
.mn-range::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background-color: var(--mn-bg-active);
}
.mn-range::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	margin-top: -10px;
	border-radius: 5px;
	background-color: var(--mn-bg);
	border: 1px solid var(--mn-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.mn-range::-moz-range-thumb {
	width: 26px;
	height: 26px;
	border-radius: 5px;
	background-color: var(--mn-bg);
	border: 1px solid var(--mn-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ---------- selects ---------- */
.mn-select {
	--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-color: var(--mn-bg);
	color: var(--mn-font);
	border: 0;
	border-radius: 0.1em;
	padding: 0.7em 2.5em 0.7em 1em;
	font-size: 16px;
	line-height: 1.3;
	width: 100%;
	cursor: pointer;
}
.mn-select:focus {
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
	border-color: transparent;
}

/* ---------- search input ---------- */
.mn-search {
	background-color: var(--mn-input-bg);
	border: 1px solid var(--mn-border);
	border-radius: 6px;
	padding: 10px 10px 10px 40px;
	width: 100%;
	font-size: 90%;
	line-height: 1.3;
	color: inherit;
	background-repeat: no-repeat;
	background-position: 7px center;
	background-size: 25px;
	background-image: url(../../img/icon_search.png?v=1);
	box-shadow: none;
}
.mn-search:focus {
	background-color: var(--mn-input-bg);
	border-color: var(--mn-border);
	color: inherit;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}
html[dir="rtl"] .mn-search {
	padding: 10px 40px 10px 10px;
	background-position: right 7px center;
	text-align: right;
}

/* ---------- text inputs kept from the old theme ---------- */
.form-control.mn-input {
	background-color: var(--mn-input-bg);
	border: 1px solid var(--mn-border);
	border-radius: 6px;
	color: inherit;
	padding: 0.4em;
	line-height: 1.4;
}
.form-control.mn-input:focus {
	background-color: var(--mn-input-bg);
	color: inherit;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
	border-color: var(--mn-border);
}

/* ---------- floating-label inputs (compose page) ---------- */
.mn-floating > .form-control,
.mn-floating > .form-select {
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	color: inherit;
	font-size: 16px;
}
.mn-floating > .form-control:focus,
.mn-floating > .form-select:focus {
	box-shadow: none;
	background-color: transparent;
	color: inherit;
}
.mn-floating > label {
	color: rgba(0, 0, 0, 0.55);
}
[data-bs-theme="dark"] .mn-floating > label {
	color: rgba(255, 255, 255, 0.6);
}
/* Bootstrap paints label::after with the body background to mask the input border; our inputs are borderless */
.mn-floating > .form-control:focus ~ label::after,
.mn-floating > .form-control:not(:placeholder-shown) ~ label::after,
.mn-floating > .form-select ~ label::after,
.mn-floating > label::after {
	background-color: transparent !important;
}
/* select-look button (opens the address chooser popup) */
a.mn-floating-select {
	display: block;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
}
a.mn-floating-select:hover,
a.mn-floating-select:focus {
	text-decoration: none;
	color: inherit;
}
.mn-floating > .mn-floating-select ~ label {
	opacity: 0.65;
	transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* floating label on the plain-text body textarea (height is controlled by inline styles / long-text mode) */
.mn-floating-body > textarea.form-control {
	min-height: 120px;
	padding-top: 1.625rem;
	padding-bottom: 0.625rem;
	resize: vertical;
}
.mn-floating-body > label {
	height: auto;
}

/* ---------- PC top navigation (pc.header.php) ---------- */
.mn-topnav-item {
	width: 15%;
	min-width: 75px;
	max-width: 100px;
	position: relative;
	text-align: center;
	cursor: pointer;
	padding: 6px 0 6px;
	border-radius: 10px;
	user-select: none;
	transition: background-color 0.15s;
}
.mn-topnav-item:hover {
	background-color: rgba(128, 128, 128, 0.12);
}
.mn-topnav-item.active {
	cursor: default;
}
a.mn-topnav-item,
a.mn-topnav-item:hover,
a.mn-topnav-item:focus {
	display: block;
	text-decoration: none !important;
	color: inherit;
}
.mn-topnav-icon {
	width: 46px;
	height: 46px;
	margin: 0 auto;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	color: #fff;
	transition: transform 0.15s;
}
.mn-topnav-item:hover .mn-topnav-icon {
	transform: translateY(-1px);
}
.mn-topnav-icon-off {
	opacity: 0.55;
}
.mn-topnav-label {
	font-size: 80%;
	margin-top: 6px;
	height: 20px;
	line-height: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* current page: accent bar under the label + bold label (dark mode also fills the tile with the accent colour) */
.mn-topnav-item.active .mn-topnav-icon {
	filter: saturate(1.25);
}
.mn-topnav-item.active .mn-topnav-label {
	font-weight: bold;
}
.mn-topnav-item.active::after {
	content: "";
	position: absolute;
	left: 22%;
	right: 22%;
	bottom: 0;
	height: 3px;
	border-radius: 2px;
	background-color: var(--mn-topnav-accent, #7fb3d3);
}
[data-bs-theme="dark"] .mn-topnav-item:hover {
	background-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .mn-topnav-icon {
	background-color: #333333 !important;
	color: #ffffff;
}
[data-bs-theme="dark"] .mn-topnav-item.active .mn-topnav-icon {
	background-color: var(--mn-topnav-accent, #7fb3d3) !important;
	color: #ffffff;
	filter: none;
}
[data-bs-theme="dark"] .mn-topnav-item.active .mn-topnav-label {
	color: #ffffff !important;
}

/* ---------- "search by date" dialog (recv / send) ---------- */
.mn-datesearch-title {
	font-weight: bold;
	margin-bottom: 12px;
}
.mn-datesearch-title .bi {
	margin-right: 4px;
}
.mn-datesearch-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}
.mn-datesearch-field {
	flex: 1 1 0;
	min-width: 0;
}
.mn-datesearch-label {
	display: block;
	font-size: 80%;
	opacity: 0.75;
	margin-bottom: 4px;
}
.mn-datesearch-sep {
	padding-bottom: 10px;
	opacity: 0.6;
}
.mn-datesearch-input {
	font-size: 16px;
	padding: 0.55em 0.75em;
	border: 1px solid var(--mn-border);
	border-radius: 6px;
	background-color: var(--mn-input-bg);
	color: inherit;
	min-height: 44px;
}
.mn-datesearch-input:focus {
	background-color: var(--mn-input-bg);
	color: inherit;
	border-color: var(--mn-accent);
	box-shadow: 0 0 0 2px rgba(51, 136, 204, 0.2);
}
.mn-datesearch-endwrap {
	position: relative;
}
.mn-datesearch-endwrap .mn-datesearch-input {
	padding-right: 2.2em;
}
.mn-datesearch-clear {
	position: absolute;
	right: 0.6em;
	top: 50%;
	transform: translateY(-50%);
	color: inherit;
	opacity: 0.45;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
}
.mn-datesearch-clear:hover {
	opacity: 0.9;
	text-decoration: none;
}
[data-bs-theme="dark"] .mn-datesearch-input {
	background-color: #333333;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.25);
	color-scheme: dark;
}
@media (max-width: 480px) {
	.mn-datesearch-row {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}
	.mn-datesearch-sep {
		text-align: center;
		padding: 0;
	}
}

/* the select-all class is also used on a plain spacer div in the floating bulk bar: never draw an icon there */
.link_checkmenu_allcheck:not(.mn-icon)::before {
	content: none !important;
}

/* ---------- public mail form (f.php) ---------- */
.mn-mailform-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 12px 32px;
	box-sizing: border-box;
}
.mn-mailform-card {
	background-color: var(--mn-popup-bg);
	border: 1px solid var(--mn-border);
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}
.mn-mailform-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background-color: var(--mn-bg);
	border-bottom: 1px solid var(--mn-border);
}
.mn-mailform-icon {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.mn-mailform-title {
	font-size: 18px;
	font-weight: bold;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.mn-mailform-body {
	padding: 20px;
}
.mn-mailform-field {
	border: 1px solid var(--mn-border);
	border-radius: 10px;
	overflow: hidden;
	background-color: var(--mn-popup-bg);
}
.mn-mailform-field:focus-within {
	border-color: var(--mn-accent);
	box-shadow: 0 0 0 3px rgba(51, 136, 204, 0.12);
}
.mn-mailform-field textarea.form-control {
	padding-top: 1.9rem;
}
.mn-mailform-field textarea.form-control.is-invalid {
	background-image: none;
}
.mn-mailform-field.has-error,
.mn-mailform-field:has(.is-invalid) {
	border-color: #dc3545;
}
.mn-mailform-error {
	color: #dc3545;
	font-size: 90%;
	margin-top: 8px;
}
.mn-mailform-attach {
	margin-top: 14px;
}
.mn-mailform-dropzone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px;
	border: 2px dashed var(--mn-border);
	border-radius: 10px;
	color: inherit;
	text-decoration: none !important;
	cursor: pointer;
	opacity: 0.85;
	transition: background-color 0.15s, border-color 0.15s;
}
.mn-mailform-dropzone:hover {
	background-color: var(--mn-bg);
	border-color: var(--mn-accent);
	opacity: 1;
	color: inherit;
}
.mn-mailform-dropzone .bi {
	font-size: 18px;
}
.mn-mailform-uploaded {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--mn-border);
	border-radius: 10px;
	background-color: var(--mn-bg);
}
.mn-mailform-uploaded-icon {
	color: var(--mn-accent);
	font-size: 18px;
}
.mn-mailform-uploaded-list {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-all;
	font-size: 95%;
}
.mn-mailform-uploaded-clear {
	color: inherit;
	opacity: 0.5;
	font-size: 18px;
	text-decoration: none !important;
}
.mn-mailform-uploaded-clear:hover {
	opacity: 0.9;
	color: inherit;
}
.mn-mailform-progress {
	padding: 14px;
	text-align: center;
	border: 1px solid var(--mn-border);
	border-radius: 10px;
}
.mn-mailform-progress-label {
	margin-bottom: 10px;
}
.mn-mailform-progressbar {
	height: 10px;
	border-radius: 5px;
	background-color: rgba(128, 128, 128, 0.15);
}
.mn-mailform-progressbar .progress-bar {
	background-color: var(--mn-accent);
	transition: width 0.2s;
}
.mn-mailform-progress-num {
	margin: 8px 0 10px;
	font-size: 90%;
	opacity: 0.8;
}
.mn-mailform-actions {
	margin-top: 18px;
}
.mn-mailform-send {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 0;
	border-radius: 10px;
	background-color: var(--mn-accent);
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
	transition: filter 0.15s, transform 0.1s;
}
.mn-mailform-send:hover {
	filter: brightness(1.06);
}
.mn-mailform-send:active {
	transform: translateY(1px);
}
.mn-mailform-send .bi {
	margin-right: 6px;
}
.mn-mailform-complete {
	text-align: center;
	padding: 24px 10px;
}
.mn-mailform-complete-icon {
	font-size: 56px;
	line-height: 1;
	color: #2fa66b;
	margin-bottom: 12px;
}
.mn-mailform-complete-text {
	font-size: 17px;
}
.mn-mailform-foot {
	margin-top: 18px;
	text-align: center;
	font-size: 11px;
	opacity: 0.6;
}
.mn-mailform-foot a {
	color: inherit;
	text-decoration: underline;
}
[data-bs-theme="dark"] .mn-mailform-card {
	background-color: #1c1c1c;
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .mn-mailform-head {
	background-color: #262626;
	border-bottom-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .mn-mailform-field,
[data-bs-theme="dark"] .mn-mailform-uploaded,
[data-bs-theme="dark"] .mn-mailform-progress {
	background-color: #262626;
	border-color: rgba(255, 255, 255, 0.2);
}
[data-bs-theme="dark"] .mn-mailform-dropzone {
	border-color: rgba(255, 255, 255, 0.3);
}
[data-bs-theme="dark"] .mn-mailform-dropzone:hover {
	background-color: #2e2e2e;
}

/* AI assist result text (grown by mnAutogrowTextarea, capped by max-height) */
#area_genautomail_result_content_text {
	min-height: 180px;
	max-height: 45vh !important;
	max-height: 45dvh !important;
	overflow-y: auto;
	resize: vertical;
	box-sizing: border-box;
}

/* ---------- checkbox / radio rendered as buttons ---------- */
/* Bootstrap hides .btn-check with position:absolute; inside an overflow:auto list that is not itself
   positioned, the inputs are laid out against the popup body and inflate its scroll area with blank
   space (60 domains = ~2500px of empty scroll). Keep the inputs in normal flow with zero size instead. */
.btn-check.mn-check-input {
	position: static;
	display: block;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: visible;
	clip: auto;
	pointer-events: none;
}
.mn-check-label {
	margin: 0.15em 0; /* jQM .ui-radio/.ui-checkbox had .3em collapsing margins; the hidden <input> (replaced element) blocks collapsing, so halve it */
}
.mn-scroll {
	position: relative;
}

.btn-check + .mn-check-label {
	text-align: left;
	padding-left: 2.6em !important;
	position: relative;
	cursor: pointer;
}
html[dir="rtl"] .btn-check + .mn-check-label {
	text-align: right;
	padding-left: 1em !important;
	padding-right: 2.6em !important;
}
.mn-check-label::before {
	content: "";
	position: absolute;
	left: 0.6em;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 1px solid var(--mn-check-border);
	border-radius: 4px;
	background-color: #fff;
	box-sizing: border-box;
}
.mn-check-radio::before {
	border-radius: 50%;
}
html[dir="rtl"] .mn-check-label::before {
	left: auto;
	right: 0.6em;
}
.btn-check:checked + .mn-check-label::before {
	background-color: var(--mn-accent);
	border-color: var(--mn-accent);
}
.btn-check:checked + .mn-check-label::after {
	content: "";
	position: absolute;
	left: calc(0.6em + 6px);
	top: 50%;
	width: 6px;
	height: 11px;
	margin-top: -7px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
html[dir="rtl"] .btn-check:checked + .mn-check-label::after {
	left: auto;
	right: calc(0.6em + 6px);
}
.btn-check:checked + .mn-btn,
.btn-check:active + .mn-btn {
	color: var(--mn-font);
	background-color: var(--mn-bg-active);
	border-color: var(--mn-bg-active);
}
.btn-check:focus-visible + .mn-btn {
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

/* ---------- misc ---------- */
.mn-native {
	all: revert;
}
.iconbg {
	background-color: var(--mn-icon-bg);
	border-radius: 5px;
}

/* ---------- dark mode (Bootstrap colour mode set on <html data-bs-theme>) ---------- */
[data-bs-theme="dark"] {
	--bs-body-bg: #000000;
	--bs-body-color: #ffffff;
	--mn-bg: #333333;
	--mn-bg-hl: #666666;
	--mn-bg-active: #4d4d4d;
	--mn-border: rgba(0, 0, 0, 0);
	--mn-font: #ffffff;
	--mn-link: #82c8ff;
	--mn-accent: #82c8ff;
	--mn-popup-bg: #000000;
	--mn-popup-border: rgba(255, 255, 255, 0.6);
	--mn-icon-bg: rgba(255, 255, 255, 0.5);
	--mn-check-border: rgba(255, 255, 255, 0.6);
	--mn-input-bg: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .mn-check-label::before {
	background-color: #222;
}
[data-bs-theme="dark"] .mn-icon::before {
	color: #000;
}
[data-bs-theme="dark"] .mn-controlgroup > .mn-btn:not(:last-child) {
	border-right-color: rgba(255, 255, 255, 0.15);
}
[data-bs-theme="dark"] .mn-select {
	--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ddd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
