/*
Theme Name: Docy Child
Theme URI: https://spider-themes.net/
Description: Docy Child Theme
Author: Spider Themes
Author URI: https://spider-themes.net/
Template: docy
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: docy-child
*/

/* -------------------------------------------------------------------------
   Account / Freemius portal (page-id-5459 only)
   https://spider-themes.net/account/#!/login

   Header/navbar (.navbar.menu_one / #sticky) is absolute ~109px and must stay
   visible ABOVE the Freemius iframe. Shell height = viewport minus header.
   ------------------------------------------------------------------------- */
html:has(body.page-id-5459),
body.page-id-5459 {
	--st-account-header: 109px; /* measured #sticky navbar on /account/ */
	--st-account-vh: calc(100vh - var(--st-account-header));
	height: 100vh;
	height: 100dvh;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	max-height: 100vh;
	max-height: 100dvh;
}

@supports (height: 100dvh) {
	body.page-id-5459 {
		--st-account-vh: calc(100dvh - var(--st-account-header));
	}
}

/* Keep theme header/navbar visible and above Freemius shell */
body.page-id-5459 header.header,
body.page-id-5459 .header,
body.page-id-5459 #sticky.navbar,
body.page-id-5459 .navbar.menu_one {
	z-index: 100001 !important;
}

/* Theme .body_wrapper often forces ~100vh; with .mkt-topbar that overflows the viewport */
body.page-id-5459 .body_wrapper {
	min-height: 0 !important;
	height: auto !important;
	overflow: visible !important;
	padding-top: var(--st-account-header) !important;
}

body.page-id-5459 #main-content,
body.page-id-5459 .page_pad.page_wrapper {
	min-height: var(--st-account-vh);
	width: 100%;
}

body.page-id-5459 .container.editor-content {
	min-height: var(--st-account-vh);
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Freemius Members dashboard: fill remaining viewport BELOW header */
body.page-id-5459 #fs_dashboard_container {
	position: fixed !important;
	top: var(--st-account-header) !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: var(--st-account-vh) !important;
	min-height: var(--st-account-vh) !important;
	max-height: var(--st-account-vh) !important;
	z-index: 100000 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

body.page-id-5459 #fs_dashboard_container iframe {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: 100% !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

body.page-id-5459 .page_pad.page_wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

body.page-id-5459 #main-content {
	padding: 0 !important;
	margin: 0 !important;
}

/* Mobile: navbar can be shorter; allow a bit of flex */
@media (max-width: 991px) {
	body.page-id-5459 {
		--st-account-header: 70px;
	}
}
