/**
 * Bridge ScrollAccess SPA visuals to the Store Customer Dashboard design system.
 * Reuses theme tokens from dynamic-style.php (:root --ttm-*).
 * Does not redefine those tokens.
 */

/* -------------------------------------------------------------------------
   Page chrome: match full-app Customer Dashboard experience
--------------------------------------------------------------------------- */

:root {
    --ttm-whitecolor: #ffffff;
    --ttm-boxshadow: 0px 0px 25px 0px #7552A140;
    --ttm-blackishcolor: #0c121c;
    --border-radius-box: 15px;
    --border-radius-image: 0px;
    --ttm-bordercolor: #e2e2e2;
    --ttm-skincolor: #ffad11;
    --ttm-secondarycolor: #0c121c;
    --ttm-greycolor: #F4F4FF;
    --body-fonts-color: #5d6d7d;
    --body-font-family: Creato Display;
    --body-line-height: 24px;
    --body-font-size: 16px;
    --special-element-fontfamily: Creato Display;
    --special-element-fontweight: 500;
    --ttm-button-shape: 2em;
    --button-text-transform: ;
    --button-font-weight: 500;
    --button-font-family: Creato Display;
    --button_fontsize: 16px;
    --button-topbottom-padding: 15px;
    --link-hovercolor: #f59e0b;
    --mainmenu_fontsize: 16px;
    --mainmenu-text-transform: ;
    --topbar-fontsize: 16px;
    --ttm-medium-fontweight: 500;
    --link-hovercolor: #f59e0b;
    --light-redcolor: #ff525214;
    --dark-redcolor: #e53935;
    --light-greencolor: #e9f9ef;
    --dark-greencolor: #198754;
    --light-orangecolor: #fff5e6;
    --dark-orangecolor: #D97706;
    --light-purplecolor: #E9ECFB;
}
body.ttm-accessflow-dashboard-page {
	background-color:#F4F4FF;
}

body.ttm-accessflow-dashboard-page #masthead,
body.ttm-accessflow-dashboard-page .site-header,
body.ttm-accessflow-dashboard-page #site-header,
body.ttm-accessflow-dashboard-page .ttm-header-style-wrapper,
body.ttm-accessflow-dashboard-page .ttm-titlebar-wrapper,
body.ttm-accessflow-dashboard-page .site-footer,
body.ttm-accessflow-dashboard-page #colophon,
body.ttm-accessflow-dashboard-page footer.site-footer,
body.ttm-accessflow-dashboard-page .ttm-footer,
body.ttm-accessflow-dashboard-page .footer {
	display: none !important;
}

body.ttm-accessflow-dashboard-page .site-content-wrapper,
body.ttm-accessflow-dashboard-page .site-content,
body.ttm-accessflow-dashboard-page #content,
body.ttm-accessflow-dashboard-page .main-holder,
body.ttm-accessflow-dashboard-page .site-main,
body.ttm-accessflow-dashboard-page .site-main-inner {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	background: transparent !important;
}

body.ttm-accessflow-dashboard-page .entry-content > *:not(.ttm-accessflow-dashboard):not(script):not(style) {
	display: none;
}
.ttm-accessflow-dashboard fieldset {
    border-color: var(--ttm-bordercolor);
    border-radius: 10px;
}
/* -------------------------------------------------------------------------
   Design tokens: map ScrollAccess vars → existing Store dashboard vars
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard {
	--accent: var(--ttm-skincolor);
	--accent-soft: #F4F4FF;
	--bg: var(--ttm-greycolor);
	--surface: var(--ttm-whitecolor);
	--text: var(--ttm-blackishcolor);
	--muted: var(--body-fonts-color);
	--border: var(--ttm-bordercolor);
	--danger: var(--dark-redcolor);
	--radius: 15px;
	--shadow: 0px 0px 25px 0px #7552A140;
	--btn-hover: #F59E0B;
	box-sizing: border-box;
	color: var(--text);
	font-family: var(--body-font-family), system-ui, sans-serif;
	font-size: var(--body-font-size);
	line-height: var(--body-line-height);
	font-weight: var(--special-element-fontweight);
	margin: 0 !important;
	padding: 50px;
	width: 100%;
	min-height: 100vh;
	background: transparent;
	max-width: 100%;
}

.ttm-accessflow-dashboard *,
.ttm-accessflow-dashboard *::before,
.ttm-accessflow-dashboard *::after {
	box-sizing: inherit;
}

/* Keep dark theme usable, still preferring Store tokens where defined */
:root[data-theme="dark"] .ttm-accessflow-dashboard,
.ttm-accessflow-dashboard[data-theme="dark"] {
	--bg: var(--ttm-secondarycolor);
	--surface: var(--ttm-blackishcolor);
	--text: var(--ttm-whitecolor);
	/*--muted: var(--body-fonts-color);*/
	--muted: #ffe6f5;
	--border: var(--ttm-bordercolor);
	--shadow: var(--ttm-boxshadow);
}

.ttm-modal-layer {
	--accent: var(--ttm-skincolor);
	--accent-soft: var(--light-purplecolor);
	--bg: var(--ttm-greycolor);
	--surface: var(--ttm-whitecolor);
	--text: var(--ttm-blackishcolor);
	--muted: var(--body-fonts-color);
	--border: var(--ttm-bordercolor);
	--danger: var(--dark-redcolor);
	--radius: 15px;
	--shadow: var(--ttm-boxshadow);
	font-family: var(--body-font-family), system-ui, sans-serif;
}

/* -------------------------------------------------------------------------
   Shell layout: mirror .ttm-dashboard / .ttm-sidebar / .ttm-dashboard-content
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard .shell {
	display: block;
	position: relative;
	min-height: calc(100vh - 100px);
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}

.ttm-accessflow-dashboard .side {
   position: fixed;
    top: 0px;
    left: 0px;
    width: 288px;
    height: calc(100vh - 0px);
    min-height: calc(100vh - 0px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 60px 25px 25px;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    overflow-y: auto;
    z-index: 20;
}

.ttm-accessflow-dashboard .brand {
	display: block;
	margin-bottom: 30px;
	color: var(--text);
	font-family: var(--special-element-fontfamily), var(--body-font-family), sans-serif;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
}

/* Hidden on desktop; shown inside the @media (max-width: 900px) block */
.ttm-accessflow-dashboard .side-close {
	display: none;
}

.ttm-accessflow-dashboard .side nav {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttm-accessflow-dashboard .side nav a {
	display: block;
	padding: 13px 18px;
	border-radius: 10px;
	color: var(--ttm-secondarycolor);
	text-decoration: none;
	font-weight: var(--special-element-fontweight);
	transition: background 0.2s ease, color 0.2s ease;
}
.ttm-accessflow-dashboard .side nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
}

#home-launch-footer a{
	color: var(--text);
}	
#home-launch-footer a:hover{
	color: var(--accent);
}
.ttm-accessflow-dashboard .side nav a svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ttm-accessflow-dashboard .side nav a:hover,
.ttm-accessflow-dashboard .side nav a.active {
	background: var(--accent-soft);
    color: var(--ttm-secondarycolor);
}

.ttm-accessflow-dashboard .side footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 16px;
}

.ttm-accessflow-dashboard .main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin-left: 320px;
	background: transparent;
	gap: 30px;
}

.ttm-accessflow-dashboard .main > header {
	display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0px;
    background: transparent;
    border: 0;
    border-radius: 15px;
    box-shadow: none;
}

.ttm-accessflow-dashboard .crumb {
    margin: 0;
    font-family: var(--special-element-fontfamily), var(--body-font-family), sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 46px;
    color: var(--text);
    flex: 1;
}

.ttm-accessflow-dashboard #ttm-af-content {
	flex: 1;
	padding: 0;
	overflow: visible;
}

.ttm-accessflow-dashboard .page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ttm-accessflow-dashboard .page-title,
.ttm-accessflow-dashboard .hero {
	gap: 20px;
    background: var(--surface);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;			
}

.ttm-accessflow-dashboard h1,
.ttm-accessflow-dashboard h2,
.ttm-accessflow-dashboard h3,
.ttm-accessflow-dashboard h4 {
	color: var(--text);
	font-family: var(--special-element-fontfamily), var(--body-font-family), sans-serif;
	font-size: 20px;
    line-height: 30px;
    margin-bottom: 5px;
}
.ttm-accessflow-dashboard h1 {
    font-size: 20px;
}
.ttm-accessflow-dashboard .eyebrow {
  font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #3D59E6;
    text-transform: uppercase;
    margin-bottom: 0;
}

.ttm-accessflow-dashboard .muted {
	color: var(--muted);
}

/*------------------------------------------------------------------------
 Notification icon
--------------------------------------------------------------------------*/
.ttm-accessflow-dashboard #ttm-af-notifications{
	position: relative;
}

.ttm-accessflow-dashboard #ttm-af-notifications .ttm-af-notif-count{
	position: absolute;
    right: -10px;
    top: -8px;
    background: var(--accent);
    color: var(--ttm-secondarycolor);
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 12px;
}

/* -------------------------------------------------------------------------
   Cards / panels / stats — match .ttm-card
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard .panel,
.ttm-accessflow-dashboard .stats > article,
.ttm-accessflow-dashboard .site,
.ttm-accessflow-dashboard .invoice,
.ttm-accessflow-dashboard .issue-card,
.ttm-accessflow-dashboard .plan-card {
	background: var(--surface);
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 30px;
}

.ttm-accessflow-dashboard .stats {
	gap: 20px;
}

.ttm-accessflow-dashboard .grid,
.ttm-accessflow-dashboard .plan-grid {
	gap: 20px;
}

.ttm-accessflow-dashboard .list,
.ttm-accessflow-dashboard .sites {
	gap: 16px;
}

.ttm-accessflow-dashboard .site,
.ttm-accessflow-dashboard .invoice,
.ttm-accessflow-dashboard .issue-card {
	padding: 20px 24px;
	margin-bottom: 20px;
}

/* -------------------------------------------------------------------------
   Forms — match Store dashboard field styling
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard .form,
.ttm-accessflow-dashboard label {
	gap: 8px;
	margin-bottom: 16px;
	font-weight: var(--special-element-fontweight);
	color: var(--text);
}  
.ttm-accessflow-dashboard #settings-form{
   display: flex;
   /* align-items: center; */
   justify-content: space-between;
   gap: 12px;
   padding: 20px;
   background: var(--surface);
   border: 0;
   border-radius: 15px;
   box-shadow: var(--shadow);
}

.ttm-accessflow-dashboard input,
.ttm-accessflow-dashboard select,
.ttm-accessflow-dashboard textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 15px;
	border: 2px solid var(--border);
	border-radius: 50px;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	box-shadow: none;
	    background: #ffffff;
}
.ttm-accessflow-dashboard select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    color: var(--ttm-secondarycolor);
}

.ttm-accessflow-dashboard textarea {
	min-height: 120px;
	background: transparent;
	border-radius: 10px;
	color: var(--body-fonts-color);
}

.ttm-accessflow-dashboard input:focus,
.ttm-accessflow-dashboard select:focus,
.ttm-accessflow-dashboard textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: unset;
	background-color: var(--ttm-whitecolor) !important;
}

.ttm-accessflow-dashboard input::placeholder,
.ttm-accessflow-dashboard textarea::placeholder {
	color: var(--muted);
}

/* -------------------------------------------------------------------------
   Buttons — match .ttm-dashboard-btn / Store button tokens
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard button,
.ttm-accessflow-dashboard .primary,
.ttm-accessflow-dashboard .secondary,
.ttm-accessflow-dashboard .ghost,
.ttm-accessflow-dashboard .danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: var(--button-topbottom-padding) 22px;
	border-radius: var(--ttm-button-shape);
	border: 2px solid transparent;
	font-family: var(--button-font-family), var(--body-font-family), sans-serif;
	font-size: var(--button_fontsize);
	font-weight: var(--button-font-weight);
	text-transform: var(--button-text-transform);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	line-height: var(--button_fontsize);
	    width: auto;
    max-width: max-content;
}

/* Author styles above use inline-flex, which otherwise overrides the browser's
   native [hidden] rule and leaves inactive controls visible but unclickable. */
.ttm-accessflow-dashboard button[hidden] {
	display: none !important;
}

.ttm-accessflow-dashboard .billing-plans-panel .billing-plan-tools {
	margin: 20px 0 24px;
}

.ttm-accessflow-dashboard .billing-current-panel .billing-current-plan-cancel {
	margin-top: 16px;
}

.ttm-accessflow-dashboard .primary {
	background: var(--accent);
	color: var(--ttm-secondarycolor);
	border-color: var(--accent);
}

.trial-banner-copy p {
    margin: 0;
}
.ttm-accessflow-dashboard .secondary,
.ttm-accessflow-dashboard .ghost {
	background: var(--surface);
	border-color: var(--border);
	color: var(--text);
}


.ttm-accessflow-dashboard .ghost:hover {
	background: var(--accent-soft);
	border-color: var(--accent-soft);
	color: var(--ttm-secondarycolor);
}

.ttm-accessflow-dashboard .danger {
	background: var(--light-redcolor);
	color: var(--danger);
	border-color: transparent;
}

.ttm-accessflow-dashboard .danger:hover {
	background: var(--danger);
	color: var(--ttm-whitecolor);
}

.ttm-accessflow-dashboard .icon,
.ttm-accessflow-dashboard .avatar {
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--border);
	background: var(--surface);
	color: var(--text);
	box-shadow: none;
	max-width: inherit;
}

.ttm-accessflow-dashboard .side footer .ghost {
	justify-content: flex-start;
	min-height: 44px;
	padding: 12px 18px;
	border-radius: 10px;
}

/* -------------------------------------------------------------------------
   Notices / badges — Store semantic colors
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard .webflow-notice,
.ttm-accessflow-dashboard .disclaimer,
.ttm-accessflow-dashboard .pro-trial-banner,
.ttm-accessflow-dashboard .pro-upgrade-banner,
.ttm-accessflow-dashboard .billing-checkout-notice {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	background: var(--surface);
	display: flex;
    flex-direction: column;
    gap: 5px;
}
.ttm-accessflow-dashboard .disclaimer p {
    margin: 0;
}

ol.onboarding-steps li.onboarding-step {
    margin-bottom: 20px;
    list-style: none;
    list-style: none;
    flex-wrap: wrap;
}
#onboarding-wizard span.onboarding-index {
    margin-right: 5px;
}
.ttm-accessflow-dashboard .webflow-notice-success,
.ttm-accessflow-dashboard .billing-checkout-notice.is-success {
	background: var(--light-greencolor);
	border-color: var(--dark-greencolor);
	color: var(--dark-greencolor);
}

.ttm-accessflow-dashboard .webflow-notice-error,
.ttm-accessflow-dashboard .billing-checkout-notice.is-error {
	background: var(--light-redcolor);
	border-color: var(--dark-redcolor);
	color: var(--dark-redcolor);
	box-shadow: unset;
}

.ttm-accessflow-dashboard .webflow-notice-warning {
	background: #fef9c3;
	border-color: #ca8a04;
	color: #713f12;
	box-shadow: unset;
}

.ttm-accessflow-dashboard .status {
	color: var(--accent);
}

.ttm-accessflow-dashboard .badge,
.ttm-accessflow-dashboard .grade-badge,
.ttm-accessflow-dashboard .trend-badge,
.ttm-accessflow-dashboard .trial-badge,
.ttm-accessflow-dashboard .plan-current-badge {
	border-radius: var(--ttm-button-shape);
	font-family: var(--body-font-family), sans-serif;
}

/* -------------------------------------------------------------------------
   Auth screen — same tokens / card language
--------------------------------------------------------------------------- */
.ttm-accessflow-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 100px);
	padding: 20px 0;
}

.ttm-accessflow-auth .auth-shell {
	width: min(920px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 30px;
	align-items: stretch;
}

.ttm-accessflow-auth .auth-brand,
.ttm-accessflow-auth .auth-card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 30px;
}

.ttm-accessflow-auth .auth-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--ttm-secondarycolor);
	font-size: 22px;
}

.ttm-accessflow-auth .auth-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px;
	background: var(--bg);
	border-radius: var(--ttm-button-shape);
}

.ttm-accessflow-auth .auth-tab {
	flex: 1;
	min-height: 44px;
	border: 0;
	border-radius: var(--ttm-button-shape);
	background: transparent;
	color: var(--muted);
	font-family: var(--button-font-family), var(--body-font-family), sans-serif;
	font-weight: var(--button-font-weight);
}

.ttm-accessflow-auth .auth-tab.active {
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
}

.ttm-accessflow-auth .auth-alert {
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 16px;
}

.ttm-accessflow-auth .auth-alert.is-error {
	background: var(--light-redcolor);
	color: var(--dark-redcolor);
}

.ttm-accessflow-auth .auth-alert.is-success {
	background: var(--light-greencolor);
	color: var(--dark-greencolor);
}

.ttm-accessflow-auth .auth-submit {
	width: 100%;
	margin-top: 8px;
}

/* -------------------------------------------------------------------------
   Toolbar settings / misc controls still use shared tokens
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard .toolbar-position-btn {
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: 10px;
	color: var(--text);
}

.ttm-accessflow-dashboard .toolbar-position-btn.is-active {
	border-color: var(--accent);
	background: var(--accent);
	box-shadow: none;
}
.ttm-accessflow-dashboard #toolbar-embed-feature-list .toolbar-feature {
    flex-direction: row;
}
.ttm-accessflow-dashboard .toolbar-feature {
	border-color: var(--border);
	background: var(--surface);
}

/* -------------------------------------------------------------------------
   Responsive — align with Store dashboard breakpoints
--------------------------------------------------------------------------- */
.ttm-accessflow-dashboard #home-activity {
	max-height: 320px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 12px;
	scrollbar-width: thin;
	scrollbar-gutter: stable;
	overflow-wrap: anywhere;
}

.ttm-accessflow-dashboard #home-activity:focus-visible {
	outline: 2px solid var(--accent, #635bff);
	outline-offset: 3px;
}

@media (max-width: 1199px) {
	.ttm-accessflow-dashboard {
		padding: 30px;
	}

	.ttm-accessflow-dashboard .side {
		width: 250px;
		left: 30px;
		top: 30px;
		height: calc(100vh - 60px);
		min-height: calc(100vh - 60px);
	}

	.ttm-accessflow-dashboard .main {
		margin-left: 280px;
	}

	#ttm-af-content .onboarding-step .onboarding-step-icon:after {
		content: unset!important;
	}
}

@media (max-width: 991px) {
	.ttm-accessflow-dashboard {
		padding: 20px;
	}

	.ttm-accessflow-dashboard .side {
		top: 20px;
		left: 20px;
		height: calc(100vh - 40px);
		min-height: calc(100vh - 40px);
	}

	.ttm-accessflow-dashboard .main > header {
		padding: 18px;
	}

	.ttm-accessflow-dashboard .crumb {
		font-size: 20px;
	}

	.ttm-accessflow-dashboard .panel,
	.ttm-accessflow-dashboard .stats > article {
		padding: 20px;
	}

	.ttm-accessflow-auth .auth-shell {
		grid-template-columns: 1fr;
	}

	#ttm-af-content .onboarding-steps {
		display: block!important;
	}

	.ttm-overview {
	    display: block!important;
	}
}

@media (max-width: 900px) {
	.ttm-accessflow-dashboard .side {
		display: none;
		position: fixed;
		inset: 20px auto 20px 20px;
		width: min(288px, 88vw);
		height: auto;
		min-height: 0;
		max-height: calc(100vh - 40px);
		z-index: 1000;
	}

	.ttm-accessflow-dashboard .side.open {
		display: flex;
		animation: ttm-slide-in 0.2s ease;
	}

	@keyframes ttm-slide-in {
		from { opacity: 0; transform: translateX(-12px); }
		to   { opacity: 1; transform: translateX(0); }
	}

	/* Close button — only visible on mobile */
	.ttm-accessflow-dashboard .side-close {
		display: flex;
		align-items: center;
		justify-content: center;
		align-self: flex-end;
		width: 32px;
		height: 32px;
		margin-bottom: 8px;
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 8px;
		cursor: pointer;
		color: var(--text);
		font-size: 20px;
		line-height: 1;
		transition: background 0.15s ease;
	}

	.ttm-accessflow-dashboard .side-close:hover {
		background: var(--accent-soft);
	}

	.ttm-accessflow-dashboard .main {
		margin-left: 0;
	}

	.ttm-accessflow-dashboard .mobile-menu {
		display: inline-flex;
	}

	.ttm-accessflow-dashboard .grid {
		grid-template-columns: none!important;
	}
}

@media (max-width: 767px) {
	.ttm-accessflow-dashboard {
		padding: 15px;
	}

	.ttm-accessflow-dashboard .main > header {
		padding: 15px;
		border-radius: 12px;
	}

	.ttm-accessflow-dashboard .page {
		gap: 20px;
	}

	.ttm-accessflow-dashboard .panel,
	.ttm-accessflow-dashboard .stats > article,
	.ttm-accessflow-dashboard .site,
	.ttm-accessflow-dashboard .invoice,
	.ttm-accessflow-dashboard .issue-card {
		padding: 16px;
		border-radius: 12px;
	}

	.ttm-accessflow-dashboard button,
	.ttm-accessflow-dashboard .primary,
	.ttm-accessflow-dashboard .secondary,
	.ttm-accessflow-dashboard .ghost,
	.ttm-accessflow-dashboard .danger {
		width: auto;
		min-height: 44px;
		padding: 12px 18px;
	}
}

/* Admin bar offset */
/*@media (min-width: 901px) {
	body.admin-bar .ttm-accessflow-dashboard .side {
		top: calc(50px + 32px);
		height: calc(100vh - 100px - 32px);
		min-height: calc(100vh - 100px - 32px);
	}
}*/

@media (min-width: 901px) and (max-width: 1199px) {
	body.admin-bar .ttm-accessflow-dashboard .side {
		top: calc(30px + 32px);
		height: calc(100vh - 60px - 32px);
		min-height: calc(100vh - 60px - 32px);
	}
}
.ttm-accessflow-dashboard .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
    color: var(--ttm-secondarycolor);
}
.ttm-accessflow-dashboard .select2-container--default .select2-selection--single {
    border-radius: 50px;
    height: 45px;
    background: #ffffff;
}
.ttm-accessflow-dashboard .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .ttm-accessflow-dashboard .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-radius: 10px;
}

.ttm-accessflow-dashboard #portal-issues,
.ttm-accessflow-dashboard .portal-issue-list {
	display: grid;
	gap: 16px;
	background: transparent;
	box-shadow: none;
	padding: 0;
	min-height: 0;
}

.ttm-accessflow-dashboard #portal-issues > .empty,
.ttm-accessflow-dashboard .portal-issue-list > .empty {
	display: block;
	margin: 0;
	padding: 20px 24px;
	background: var(--surface);
	border-radius: 15px;
	box-shadow: var(--shadow);
	color: var(--muted);
}

.ttm-accessflow-dashboard .issue-assignee {
	margin: 0 0 8px;
}
.ttm-accessflow-dashboard form#branding-form input {
    margin-top: 8px;
}
.ttm-accessflow-dashboard form#branding-form input[type="color"] {
    border: 0;
    width: 20px;
    padding: 0;
    border-radius: 50%;
    min-height: 20px;
    margin: 0 0 0 10px;
    height: 24px;
}
.ttm-accessflow-dashboard fieldset legend {
    color: var(--ttm-secondarycolor);
    width: auto;
    padding: 0 10px;
    font-size: 18px;
    margin-bottom: 5px;
}
div#privacy-settings-host h3 {
    font-size: 20px;
}
.ttm-accessflow-dashboard .ttm-modal-layer.open button[data-action='close-modal'].ghost {
    padding: 0;
    width: 35px;
    height: 34px;
    min-height: auto;
    font-size: 20px;
}
.ttm-accessflow-dashboard .ttm-modal-layer.open div#issue-results .panel.issue-card {
    overflow: visible;
    margin: 0 8px 15px;
}
.ttm-accessflow-dashboard div#scan-history article.site.scan-row {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

/* =============================================================================
   Dynamic billing plan cards — monthly/yearly toggle
   ============================================================================= */

/* ── Interval toggle ──────────────────────────────────────────────────────── */
.ttm-billing-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.ttm-billing-toggle__option {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
	padding: 6px 14px;
	border-radius: 20px;
	border: 2px solid transparent;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ttm-billing-toggle__option:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

.ttm-billing-toggle__option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ttm-billing-savings-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	background: #d1fae5;
	color: #065f46;
	letter-spacing: 0.03em;
	margin-left: 4px;
}

/* ── Plan cards grid ──────────────────────────────────────────────────────── */
#ttm-plan-cards-root {
	width: 100%;
}

.plan-cards-grid {
	display: flex;
    gap: 30px;
    align-items: start;
    justify-content: space-between;
}

.ttm-accessflow-dashboard .plan-card {
	width: 100%;
}

/* ── Individual plan card ─────────────────────────────────────────────────── */
.plan-card {
	background: var(--surface);
	border: 2px solid var(--border, #e5e7eb);
	border-radius: var(--radius, 14px);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.plan-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.plan-card--current {
	border-color: var(--accent);
}

.plan-card--recommended {
	border-color: var(--accent);
}

/* Recommended banner */
.plan-card__recommended-banner {
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.06em;
	padding: 6px 12px;
	text-transform: uppercase;
}

/* Inner padding */
.plan-card__inner {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
}

/* Plan name */
.plan-card__name {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--muted);
	text-transform: uppercase;
}

/* Price */
.plan-card__price {
	font-size: 28px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.1;
}

.plan-card__price-amount { display: inline; }

/* Trial badge */
.plan-card__trial-badge {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fef9c3;
	color: #713f12;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
}

.plan-card__trial-end {
	font-size: 11px;
	font-weight: 400;
	color: #92400e;
}

/* Limits */
.plan-card__limits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: var(--text);
}

.plan-card__limits li strong {
	color: var(--accent);
}

/* CTA wrap */
.plan-card__cta-wrap {
	margin-top: 4px;
}

.plan-card__cta {
	width: 100%;
	text-align: center;
	justify-content: center;
	min-height: 40px;
	font-size: 14px;
	font-weight: 600;
}

/* Features list */
.plan-card__features {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--border, #e5e7eb);
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--text);
}

.plan-card__features li::before {
	content: '✓ ';
	color: #16a34a;
	font-weight: 700;
}

/* Scheduled badge on card */
.plan-card .plan-card-action {
	padding: 0 20px 16px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.plan-cards-grid {
		grid-template-columns: 1fr;
	}

	.ttm-billing-toggle {
		flex-direction: row;
		gap: 4px;
	}

	.ttm-billing-toggle__option {
		font-size: 13px;
		padding: 5px 10px;
	}
}



/**/

.ttm-overview {
    display: flex;
    flex: 1;
    gap: 30px;
}

.ttm-overview .view {
    flex: 1;
}

.ttm-accessflow-dashboard .disclaimer {
	padding: 30px 30px 30px 64px;
    border: none;
    position: relative;
}

.ttm-accessflow-dashboard .disclaimer strong {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    line-height: 30px;
}

#ttm-af-content .disclaimer strong::before { 
    content: '';
    position: absolute;
    top: 37px;
    left: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #18b978;
    background-image: url(../images/white-checked.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.ttm-accessflow-dashboard .hero p.muted {
    margin-bottom: 0;
}

.ttm-accessflow-dashboard .hero {
	align-items: center;
	margin-bottom: 10px;
}

.ttm-accessflow-dashboard .main #home-onboarding .onboarding-panel {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

#ttm-af-content .onboarding-steps {
	display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}


#ttm-af-content .onboarding-step {
	flex: 1;
    position: relative;
    gap: 15px;
    padding: 30px;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0px 0px 25px 0px #0E18320D;
}

section#onboarding-wizard .onboarding-head {
	align-items: center;
    margin-bottom: 10px;
}

section#onboarding-wizard .onboarding-head .eyebrow {
    display: none;
}

.ttm-accessflow-dashboard .side nav a.active svg {
    stroke: var(--ttm-skincolor);
}


#ttm-af-content .onboarding-step .onboarding-step-icon {
    position: relative;
    height: 60px;
    width: 60px;
    margin: 25px 0;
}

#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-connect,
#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-setup,
#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-install {
    position: relative;
}

#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-connect:before,
#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-setup:before,
#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-install:before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color:  var(--accent-soft);
    background-image: url(../images/connect-site.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px 25px;
}

#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-setup:before {
	background-image: url(../images/step-scan-web.svg);
}

#ttm-af-content .onboarding-step .onboarding-step-icon .step-icon-install:before {
	background-image: url(../images/step-fix-issue-manually.svg);
}


#ttm-af-content .onboarding-step .onboarding-step-icon:after {
    content: '';
    position: absolute;
    top: 20px;
    right: auto;
    left: 70px;
    width: 340px;
    height: 20px;
    background-image: url(../images/long-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
}

#onboarding-wizard span.onboarding-index {
    color: var(--body-fonts-color);
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 1px;
}

#ttm-af-content .onboarding-step strong {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 10px;
}

div#home-trial-banner .pro-trial-banner:after {
    content: '';
    position: absolute;
    top: 10px;
    right: auto;
    left: 10px;
    width: 21px;
    height: 21px;
    background-image: url(../images/crown.svg);
    background-repeat: no-repeat;
    background-position: center;
}


#home-trial-banner {
	  position: relative;
	  overflow: hidden;
}

#home-trial-banner:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 376px;
    height: 194px;
    transform: translate(-50%, -50%);
    background-image: url(../images/pro-banner-img.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}


.ttm-accessflow-dashboard .primary {
    position: relative;
    padding: 10px 50px 10px 30px;
    box-shadow: 0px 7px 15px 0px rgba(0, 208, 127, 0.30);
}

.ttm-accessflow-dashboard .primary:after {
    content: "";
    position: absolute;
    right: 8px;
    top: 20%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--ttm-secondarycolor);
    background-image: url(../images/arrow-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    transform-origin: center center;
    transition: transform 0.5s ease-out;
}

.ttm-accessflow-dashboard .primary:hover:after {
    transform: scale(1.2);
}

.ttm-accessflow-dashboard .page-title .billing-actions button:after {
    content: unset!important;
}

.ttm-accessflow-dashboard .main #home-onboarding .onboarding-panel .muted.onboarding-progress {
    margin-bottom: 0px;
}


.ttm-accessflow-dashboard .stats > article {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px;
}

.ttm-accessflow-dashboard .stats > article .stat-icon {
	width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.ttm-accessflow-dashboard .stats > article .stat-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

/* Purple */
.ttm-accessflow-dashboard .stats > article .stat-icon-purple {
	background: #eee7ff;
	color: #7c3aed;
}

/* Red */
.stat-icon-red {
	background: #ffe8ed;
	color: #e11d48;
}

/* Orange */
.stat-icon-orange {
	background: #fff1dc;
	color: #ea580c;
}

/* Green */
.stat-icon-green {
	background: #dcfce7;
	color: #16a34a;
}

.ttm-accessflow-dashboard .stats > article .stat-content {
	display: flex;
	flex-direction: column;
}

.stat-content > span:first-child {
	
	font-size: 20px;
	line-height: 30px;
}

.stat-content strong {
	color: #17203a;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
}

.score-headline {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ttm-accessflow-dashboard .secondary {
    position: relative;
    padding: 10px 50px 10px 30px;
    box-shadow: 0px 7px 15px 0px rgba(0, 208, 127, 0.30);
    background-color: var(--ttm-secondarycolor);
    color: var(--surface);
}

.ttm-accessflow-dashboard .secondary:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 18%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    background-image: url(../images/arrow-icon-black.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    transform-origin: center center;
    transition: transform 0.5s ease-out;
}


.ttm-accessflow-dashboard .secondary:hover:after {
    transform: scale(1.2);
}


select#portal-client-switcher {
    background-color: transparent;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
}


footer {
    box-sizing: border-box;
    padding: 15px;
    background: #fff;
    border: 1px solid #d9d2f7;
    border-radius: 12px;
    color: #171c38;
}

/* =========================
   Appearance
========================= */

footer #ttm-af-theme {
    position: relative;

    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0;
    margin: 0 0 16px;

    background: transparent;
    border: 0;
    border-bottom: 1px solid #ddd9e8;

    color: #171c38;
    font-size: 17px;
    font-weight: 500;

    cursor: pointer;
}

/* Hide original "· Light" / "· Dark" text */
footer #ttm-af-theme {
    font-size: 0;
}

/* Appearance text */
footer #ttm-af-theme::before {
    content: "Appearance";

    font-size: 17px;
    font-weight: 500;
    color: #171c38;
}


/* =========================
   Toggle - LIGHT active
========================= */

footer #ttm-af-theme::after {
    content: "";

    width: 82px;
    height: 42px;

    flex: 0 0 82px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 82px 42px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='42' viewBox='0 0 82 42'%3E%3Crect x='0.5' y='0.5' width='81' height='41' rx='21' fill='%23f7f5ff' stroke='%23d8d3ef'/%3E%3Ccircle cx='21' cy='21' r='16' fill='%2300d889'/%3E%3Cg stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='21' cy='21' r='5.5' fill='none'/%3E%3Cpath d='M21 11v3M21 28v3M11 21h3M28 21h3M14 14l2 2M26 26l2 2M28 14l-2 2M16 26l-2 2'/%3E%3C/g%3E%3Cpath d='M62 12a9 9 0 1 0 7 15a8 8 0 0 1-7-15z' fill='none' stroke='%23596071' stroke-width='2'/%3E%3C/svg%3E");
}


/* =========================
   Toggle - DARK active
========================= */

footer #ttm-af-theme[aria-pressed="true"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='42' viewBox='0 0 82 42'%3E%3Crect x='0.5' y='0.5' width='81' height='41' rx='21' fill='%23f7f5ff' stroke='%23d8d3ef'/%3E%3Ccircle cx='61' cy='21' r='16' fill='%2300d889'/%3E%3Cg stroke='%23596071' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='21' cy='21' r='5.5' fill='none'/%3E%3Cpath d='M21 11v3M21 28v3M11 21h3M28 21h3M14 14l2 2M26 26l2 2M28 14l-2 2M16 26l-2 2'/%3E%3C/g%3E%3Cpath d='M62 12a9 9 0 1 0 7 15a8 8 0 0 1-7-15z' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E");
}


/* =========================
   Sign out
========================= */

footer > a.ghost {
    display: flex;
    align-items: center;

    min-height: 42px;

    margin-top: 8px;
    padding: 0;

    color: #171c38;
    background: transparent;

    border: 0;

    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}



footer > a.ghost::before {
    content: "";

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    margin-right: 11px;

    display: inline-block;

    border-radius: 50%;

    background-color: #00d889;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='15' fill='%2300d889'/%3E%3Cpath d='M15 7v8' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10.5 9.5a9 9 0 1 0 9 0' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
}

