/**
 * Theme shell styles.
 *
 * The application styles live in the plugin so that the frontend and the
 * WordPress admin screens stay identical. This file only styles the theme
 * chrome around the application.
 */

body {
	margin: 0;
	background: var(--ctr-bg, #f5f6f8);
	color: var(--ctr-ink, #1c1c1c);
	font-family: var(--ctr-font, "Segoe UI", Tahoma, "Nirmala UI", Arial, sans-serif);
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ctr-primary, #8a1538);
}

.ctr-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 10px 16px;
	z-index: 99999;
}

.ctr-skip:focus {
	left: 8px;
	top: 8px;
}

/* --------------------------------------------------------------- Header */

.site-header {
	background: #fff;
	border-bottom: 1px solid var(--ctr-line, #e2e2e2);
}

.site-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.site-title {
	font-size: 19px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ctr-ink, #1c1c1c);
	margin: 0;
}

.site-description {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--ctr-muted, #6b6b6b);
}

.site-branding .custom-logo-link {
	display: inline-block;
}

.site-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.site-menu a,
.footer-menu a {
	text-decoration: none;
	font-weight: 500;
}

/* ---------------------------------------------------------------- Main */

.ctr-main {
	min-height: 50vh;
}

/* ------------------------------------------------------------- Sign in */

/* ------------------------------------------------------------ Branded login */
body.ctr-login-page {
	min-height: 100%;
	overflow-x: hidden;
	background: #fbf7f8;
}
html.ctr-login-doc,
html.ctr-login-doc body {
	min-height: 100%;
	height: auto;
	overflow-x: hidden;
	overflow-y: auto;
}
body.ctr-login-page .site-main {
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	height: auto;
}
.ctr-main-plain {
	padding: 0;
}
.ctr-login,
.ctr-login * ,
.ctr-login *::before,
.ctr-login *::after {
	box-sizing: border-box;
}
.ctr-login {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	padding: max(28px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
	background:
		radial-gradient(circle at 12% 12%, rgba(138, 21, 56, .075), transparent 28%),
		radial-gradient(circle at 90% 88%, rgba(138, 21, 56, .055), transparent 26%),
		linear-gradient(135deg, #fff 0%, #fbf5f7 100%);
}
.ctr-login-shell {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
	width: min(100%, 1020px);
	min-height: 590px;
	margin: auto;
	overflow: hidden;
	border: 1px solid #ead8de;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(83, 18, 41, .13);
}
.ctr-login-brand-panel {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	overflow: hidden;
	padding: clamp(30px, 4.5vw, 54px);
	color: #fff;
	background: linear-gradient(148deg, #981943 0%, #7d1236 48%, #560d27 100%);
}
.ctr-login-brand-panel::before,
.ctr-login-brand-panel::after {
	position: absolute;
	z-index: -1;
	content: "";
	pointer-events: none;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
}
.ctr-login-brand-panel::before {
	width: 390px;
	height: 390px;
	right: -205px;
	bottom: -175px;
	box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 58px rgba(255,255,255,.02);
}
.ctr-login-brand-panel::after {
	width: 250px;
	height: 250px;
	right: -110px;
	bottom: -95px;
	border-color: rgba(255, 255, 255, .16);
}
.ctr-login-brand-lockup {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.ctr-login-logo {
	display: flex;
	flex: 0 0 62px;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.48);
	border-radius: 17px;
	background: rgba(255,255,255,.13);
	box-shadow: 0 8px 20px rgba(49, 5, 21, .15);
}
.ctr-login-logo-image {
	display: block;
	width: 100%;
	height: 100%;
	padding: 5px;
	object-fit: contain;
	background: #fff;
}
.ctr-login-logo-mark {
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 1px;
}
.ctr-login-brand-name-wrap {
	min-width: 0;
}
.ctr-login-brand-name {
	color: #fff;
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.25px;
	overflow-wrap: anywhere;
}
.ctr-login-brand-tag {
	margin-top: 6px;
	color: rgba(255,255,255,.78);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.4px;
	line-height: 1.4;
}
.ctr-login-brand-message {
	position: relative;
	z-index: 1;
	max-width: 380px;
	margin: 48px 0;
}
.ctr-login-overline,
.ctr-login-welcome {
	display: inline-block;
	color: #f4dce4;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.7px;
	line-height: 1.4;
}
.ctr-login-brand-message h1 {
	margin: 16px 0 14px;
	color: #fff;
	font-size: clamp(30px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.8px;
}
.ctr-login-brand-message p {
	max-width: 330px;
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: 14px;
	line-height: 1.8;
}
.ctr-login-brand-bottom {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid rgba(255,255,255,.2);
	color: rgba(255,255,255,.86);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .3px;
}
.ctr-login-brand-seal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255,255,255,.5);
	border-radius: 50%;
	color: #fff;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .4px;
}
.ctr-login-decor {
	position: absolute;
	z-index: -1;
	display: block;
	border-radius: 50%;
	background: rgba(255,255,255,.045);
	pointer-events: none;
}
.ctr-login-decor-one {
	width: 130px;
	height: 130px;
	top: 38%;
	right: -54px;
}
.ctr-login-decor-two {
	width: 54px;
	height: 54px;
	top: 48%;
	right: 25px;
	border: 1px solid rgba(255,255,255,.18);
	background: transparent;
}
.ctr-login-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-width: 0;
	max-width: none;
	padding: clamp(34px, 5.5vw, 68px) clamp(28px, 5vw, 64px) 30px;
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.ctr-login-head {
	margin: 0 0 32px;
	text-align: left;
}
.ctr-login-welcome {
	margin-bottom: 10px;
	color: #9a3152;
}
.ctr-login-title {
	margin: 0;
	color: #24151b;
	font-size: clamp(28px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.7px;
}
.ctr-login-description {
	margin: 10px 0 0;
	color: #727078;
	font-size: 14px;
	line-height: 1.65;
}
.ctr-login-error {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 9px;
	text-align: left;
}
.ctr-login-form {
	width: 100%;
	min-width: 0;
}
.ctr-login-form .ctr-field {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0 0 20px;
}
.ctr-login-form .ctr-label {
	display: block;
	margin: 0 0 8px;
	color: #3c3035;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1px;
}
.ctr-login-form input[type="text"],
.ctr-login-form input[type="password"] {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 15px;
	border: 1px solid #ded4d8;
	border-radius: 10px;
	background: #fbfafb;
	color: #24151b;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: inset 0 1px 2px rgba(25, 10, 16, .025);
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
	-webkit-appearance: none;
	appearance: none;
}
.ctr-login-form input[type="text"]:focus,
.ctr-login-form input[type="password"]:focus {
	border-color: #97163f;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(138, 21, 56, .11);
	outline: none;
}
.ctr-login-form .ctr-form-actions {
	display: block;
	width: 100%;
	margin-top: 28px;
}
.ctr-login-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	height: auto;
	padding: 13px 18px;
	border: 1px solid #8a1538;
	border-radius: 10px;
	background: #8a1538;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .2px;
	line-height: 1.35;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
	-webkit-appearance: none;
	appearance: none;
}
.ctr-login-btn:hover {
	border-color: #6d102d;
	background: #6d102d;
	color: #fff;
	box-shadow: 0 7px 18px rgba(138, 21, 56, .2);
	transform: translateY(-1px);
}
.ctr-login-btn:focus-visible {
	outline: 3px solid rgba(138, 21, 56, .25);
	outline-offset: 3px;
}
.ctr-login-card-footer {
	margin-top: auto;
	padding-top: 26px;
	color: #9b9095;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3px;
	text-align: center;
}
@media (max-width: 760px) {
	.ctr-login {
		align-items: flex-start;
		padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
	}
	.ctr-login-shell {
		grid-template-columns: minmax(0, 1fr);
		width: min(100%, 480px);
		min-height: 0;
		border-radius: 18px;
	}
	.ctr-login-brand-panel {
		min-height: 205px;
		padding: 22px 22px 18px;
	}
	.ctr-login-logo {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
		border-radius: 13px;
	}
	.ctr-login-logo-mark {
		font-size: 15px;
	}
	.ctr-login-brand-name {
		font-size: 19px;
	}
	.ctr-login-brand-tag {
		margin-top: 4px;
		font-size: 8px;
		letter-spacing: 1px;
	}
	.ctr-login-brand-message {
		max-width: 100%;
		margin: 23px 0 16px;
	}
	.ctr-login-overline {
		font-size: 8px;
		letter-spacing: 1.2px;
	}
	.ctr-login-brand-message h1 {
		max-width: 360px;
		margin: 8px 0 6px;
		font-size: clamp(22px, 6.4vw, 29px);
		line-height: 1.12;
		letter-spacing: -.4px;
	}
	.ctr-login-brand-message p {
		max-width: 420px;
		font-size: 12px;
		line-height: 1.55;
	}
	.ctr-login-brand-bottom {
		display: none;
	}
	.ctr-login-card {
		padding: 27px 23px 18px;
	}
	.ctr-login-head {
		margin-bottom: 23px;
	}
	.ctr-login-welcome {
		margin-bottom: 7px;
		font-size: 9px;
	}
	.ctr-login-title {
		font-size: 27px;
	}
	.ctr-login-description {
		margin-top: 7px;
		font-size: 13px;
	}
	.ctr-login-form .ctr-field {
		margin-bottom: 17px;
	}
	.ctr-login-form input[type="text"],
	.ctr-login-form input[type="password"] {
		height: 50px;
		font-size: 16px;
	}
	.ctr-login-form .ctr-form-actions {
		margin-top: 23px;
	}
	.ctr-login-btn {
		min-height: 50px;
	}
	.ctr-login-card-footer {
		padding-top: 20px;
	}
}
@media (max-width: 380px) {
	.ctr-login-brand-panel {
		min-height: 190px;
		padding: 18px 18px 15px;
	}
	.ctr-login-brand-message {
		margin-top: 19px;
	}
	.ctr-login-card {
		padding: 23px 18px 16px;
	}
	.ctr-login-title {
		font-size: 25px;
	}
}
@media (max-height: 650px) and (min-width: 761px) {
	.ctr-login {
		align-items: flex-start;
		padding-top: 14px;
		padding-bottom: 14px;
	}
	.ctr-login-shell {
		min-height: 0;
	}
	.ctr-login-brand-panel {
		padding-top: 28px;
		padding-bottom: 24px;
	}
	.ctr-login-brand-message {
		margin: 28px 0;
	}
	.ctr-login-card {
		padding-top: 28px;
		padding-bottom: 22px;
	}
	.ctr-login-head {
		margin-bottom: 20px;
	}
	.ctr-login-form .ctr-field {
		margin-bottom: 13px;
	}
	.ctr-login-form input[type="text"],
	.ctr-login-form input[type="password"] {
		height: 46px;
	}
	.ctr-login-form .ctr-form-actions {
		margin-top: 18px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ctr-login-form input,
	.ctr-login-btn {
		transition: none;
	}
	.ctr-login-btn:hover {
		transform: none;
	}
}

.ctr-shell {
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px 18px;
	background: #fff;
	border: 1px solid var(--ctr-line, #e2e2e2);
	border-radius: var(--ctr-radius, 6px);
	box-shadow: var(--ctr-shadow, 0 1px 3px rgba(0, 0, 0, .08));
}

.ctr-main > .ctr-app-shell {
	background: transparent;
}

.ctr-main > .ctr-app-shell + * {
	clear: both;
}

.entry-title {
	font-size: 24px;
	margin: 0 0 14px;
	color: var(--ctr-primary, #8a1538);
}

.entry-content > * {
	margin-top: 0;
}

/* ------------------------------------------------------------- App bar */

.ctr-app-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ctr-app-bar .ctr-nav {
	flex: 1 1 auto;
}

.ctr-app-utils {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--ctr-muted, #6b6b6b);
}

/* ---------------------------------------------------------- Account menu */

.ctr-account {
	position: relative;
	flex: 0 0 auto;
}

.ctr-account-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 8px 5px 5px;
	cursor: pointer;
	list-style: none;
	border: 1px solid #ead6dc;
	border-radius: 999px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ctr-account-btn::-webkit-details-marker {
	display: none;
}

.ctr-account-btn::-moz-details-marker {
	display: none;
}

.ctr-account-btn:hover {
	border-color: var(--ctr-primary, #8a1538);
	box-shadow: 0 2px 8px rgba(138, 21, 56, .12);
}

.ctr-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ctr-primary, #8a1538);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	user-select: none;
}

.ctr-account-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #8a6a76;
	transition: transform .15s ease;
}

.ctr-account[open] .ctr-account-caret {
	transform: rotate(180deg);
}

.ctr-account-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 50;
	min-width: 190px;
	padding: 8px;
	background: #fff;
	border: 1px solid #ead6dc;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(138, 21, 56, .14);
}

.ctr-account-lang {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 6px 10px 10px;
	font-size: 13px;
	letter-spacing: .4px;
}

.ctr-account-lang a {
	color: #6b6b6b;
	text-decoration: none;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
}

.ctr-account-lang a:hover {
	color: var(--ctr-primary, #8a1538);
	background: var(--ctr-primary-soft, #f7eef1);
}

.ctr-account-lang a.active {
	color: #fff;
	background: var(--ctr-primary, #8a1538);
}

.ctr-account-sep {
	color: #c9b4bc;
}

.ctr-account-signout {
	display: block;
	margin-top: 6px;
	padding: 9px 10px;
	border-top: 1px solid #f1e4e8;
	border-radius: 4px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .6px;
	color: var(--ctr-primary, #8a1538);
	text-decoration: none;
}

.ctr-account-signout:hover {
	background: var(--ctr-primary-soft, #f7eef1);
	color: var(--ctr-primary-dark, #6d102d);
}

.ctr-app-utils a {
	text-decoration: none;
}

.ctr-app-utils a:hover {
	text-decoration: underline;
}

.ctr-user {
	font-size: 13px;
}

/* -------------------------------------------------------------- Footer */

.site-footer {
	background: #fff;
	border-top: 1px solid var(--ctr-line, #e2e2e2);
	margin-top: 30px;
}

.site-footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px 18px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.site-info {
	border-top: 1px solid var(--ctr-line, #e2e2e2);
	text-align: center;
	padding: 12px 18px;
	color: var(--ctr-muted, #6b6b6b);
	font-size: 13px;
}

.site-info p {
	margin: 0;
}

.widget-title {
	font-size: 15px;
	color: var(--ctr-primary, #8a1538);
}

@media (max-width: 782px) {
	.site-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.ctr-shell {
		padding: 16px 14px;
	}
}


/* Mobile dashboard account button remains in the navigation's top-right corner. */
@media (max-width: 782px) {
	.ctr-account-menu {
		right: 0;
		left: auto;
		top: calc(100% + 55px);
		width: 190px;
		max-width: calc(100vw - 20px);
		z-index: 1200;
	}
}



/* v1.1.16 — place the real account details element in the navigation bar.
   The account control is a direct child of .ctr-app-bar (not .ctr-app-utils). */
@media (max-width: 782px) {
	.ctr-app-bar {
		position: relative !important;
		display: block !important;
		width: 100%;
		min-width: 0;
		padding: 0;
	}
	.ctr-app-bar > .ctr-nav {
		display: block;
		width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0;
		overflow: visible;
	}
	.ctr-app-bar > .ctr-nav > ul {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
		margin: 0;
		padding: 0 86px 0 0 !important;
		box-sizing: border-box;
	}
	.ctr-app-bar > .ctr-nav > ul > li {
		min-width: 0;
	}
	.ctr-app-bar > .ctr-nav > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-width: 0;
		min-height: 44px;
		padding: 9px 4px;
		text-align: center;
		font-size: 12.5px;
		line-height: 1.2;
		white-space: normal;
		overflow-wrap: anywhere;
	}
	.ctr-app-bar > details.ctr-account {
        position: absolute !important;
        top: 50% !important;
        right: 8px !important;
        display: block;
        width: max-content;
        margin: 0 !important;
        padding: 0;
        flex: none !important;
        z-index: 1300;
        transform: translateY(-50%);
    }
	.ctr-app-bar > details.ctr-account > summary.ctr-account-btn {
		margin: 0;
	}
.ctr-app-bar > details.ctr-account > .ctr-account-menu {
        position: absolute;
        top: calc(100% + 21%) !important;
        right: 0 !important;
        left: auto !important;
        width: 190px;
        min-width: 190px;
        max-width: calc(100vw - 20px);
        z-index: 1400;
    }
}
