/*
Theme Name: Fathomless
Description: Child theme for Uncode theme
Author: Undsgn
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.3.3
Text Domain: uncode
*/


/**
 * Navigation
 */
	.drop-menu > li > a {
		font-family: Inter;
	}
	@media (min-width: 960px) {
	#menu-primary-menu.menu-smart > li > a:hover,
		#menu-primary-menu.menu-smart > li > ul > li > a:hover {
			color: #FFF !important;
		}
		.menu-horizontal ul.menu-smart > li > ul:not(.mega-menu-inner):not(.unmenu-inner-ul) {
			top: 80% !important;
		}
	}

/**
 * Uncode Content Overwrites
 */
	.uncode_text_column > p > a {
		color: #63bcbf;
	}
	.uncode_text_column > p > a:hover {
		text-decoration: underline;
	}
	.icon-box-left .icon-box-icon, .icon-box-right .icon-box-icon, .icon-box-left .icon-box-content, .icon-box-right .icon-box-content {
	vertical-align: middle;
	}
	.btn:not(.btn-custom-typo):not(.btn-inherit):not(.uncode-nav-container) {
		font-family: 'Crimson Text', Inter !important;
	}

/**
 * Subscriber Management Form Styling
 */

#sm-login-form p,
#sm-registration-form p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 20px;
}

#sm-login-form label,
#sm-registration-form label {
	flex: 0 0 104px;
	margin: 0 !important;
	font-weight: bold;
	text-align: right;
	padding-right: 20px;
	box-sizing: border-box;
	line-height: 1.2;
	font-size: 12px;
}

#sm-login-form input[type="text"],
#sm-login-form input[type="password"],
#sm-registration-form input[type="text"],
#sm-registration-form input[type="email"],
#sm-registration-form input[type="password"] {
	flex: 1;
	min-width: 200px;
	margin: 0 !important;
}

p.reg-username {
	margin-top: 0 !important;
}

/* Captcha, Remember Me, and Submit Alignment */
#sm-login-form .login-remember,
#sm-login-form .login-submit,
#sm-login-form .g-recaptcha,
#sm-login-form [class*="captcha"],
#sm-registration-form .reg-submit,
#sm-registration-form .reg-captcha {
	padding-left: 104px;
	justify-content: flex-start;
}

#sm-registration-form .reg-captcha:empty {
	display: none;
}

#sm-login-form .login-remember label {
	flex: none;
	width: auto;
	text-align: left;
	padding-right: 0;
	display: flex;
	align-items: center;
}

#sm-login-form .login-remember input[type="checkbox"] {
	margin-right: 8px !important;
	width: 16px !important;
	height: 16px !important;
	flex: none;
	min-width: 0;
	vertical-align: middle;
}

/**
 * Subscriber Legal Gatekeeper & Modal Styling
 */

#sm-gatekeeper-container {
	margin-bottom: 40px;
}

#sm-gatekeeper-container .sm-gate-row label a,
.sm-gate-agreed-msg a {
	text-decoration: underline !important;
	color: #63bcbf !important;
}

.sm-gate-row {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.sm-gate-check {
	margin-right: 15px !important;
	margin-top: 0 !important;
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Modal Core */
.sm-modal-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.85);
	z-index: 100000;
	justify-content: center;
	align-items: center;
}

.sm-modal-overlay.active {
	display: flex;
}

.sm-modal-open {
	overflow: hidden !important;
}

.sm-modal-content {
	background: #111;
	color: #eee;
	width: 90%;
	max-width: 800px;
	max-height: 85vh;
	border: 1px solid #333;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.sm-modal-header {
	padding: 20px;
	border-bottom: 1px solid #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sm-modal-header h3 {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
}

.sm-modal-close {
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
}

.sm-modal-body {
	padding: 30px;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.6;
	overscroll-behavior: contain;
}

.sm-modal-footer {
	padding: 20px;
	border-top: 1px solid #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #181818;
}

.sm-modal-footer button {
	background-color: #000 !important;
	color: #fff !important;
}

.sm-modal-agree {
	width: 18px !important;
	height: 18px !important;
	margin-right: 10px !important;
	vertical-align: middle;
}

/* Form container visibility control */
.ft-frontend-forms {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease-in;
}

.ft-frontend-forms.revealed {
	display: block !important;
	opacity: 1 !important;
}

/**
 * Subscriber Primary Navigation Styling
 */

#sm-user-nav-item {
	height: auto !important;
	margin-left: 14px;
	display: inline-block !important;
	vertical-align: middle !important;
}

#sm-user-nav-item a.sm-user-nav-link {
	display: inline-block !important;
	padding: 10px 20px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 15px;
	text-decoration: none;
	border-radius: 60px;
	transition: all 0.2s ease-in-out;
	line-height: 15px;
}

/* Color contexts for Dark Header */
.menu-dark #sm-user-nav-item a.sm-user-nav-link {
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff !important;
}

.menu-dark #sm-user-nav-item a.sm-user-nav-link:hover {
	border-color: rgba(255, 255, 255, 1);
	opacity: 0.8;
}

/* Color contexts for Light Header */
.menu-light #sm-user-nav-item a.sm-user-nav-link {
	border: 1px solid rgba(0, 0, 0, 0.15);
	color: #000000 !important;
}

.menu-light #sm-user-nav-item a.sm-user-nav-link:hover {
	border-color: rgba(0, 0, 0, 0.8);
	opacity: 0.8;
}

/**
 * FTM Comment Form Aesthetics
 */

.ft-comment-user-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	gap: 12px;
}

.ft-comment-user-header img.avatar {
	border-radius: 50%;
	display: block;
}

.ft-comment-user-name {
	font-weight: 700;
	font-size: 14px;
}

.ft-comment-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
}

.ft-comment-submit-btn,
.ft-comment-action-btn {
	display: inline-block;
	padding: 10px 20px !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s ease;
	cursor: pointer;
	border: none;
	line-height: 1;
}

.ft-comment-submit-btn {
	background-color: #000;
	color: #ffffff !important;
}

.ft-comment-action-btn {
	background-color: #f0f0f0;
	color: #333333 !important;
}

.ft-comment-submit-btn:hover,
.ft-comment-action-btn:hover {
	opacity: 0.8;
}

#submit.ft-comment-submit-btn {
	margin-top: 0 !important;
	font-family: inherit !important;
	border-radius: 4px !important;
}

.ft-cta-margin {
	margin-top: 18px;
}

.comment-form p:not(.stars) {
	margin-top: 0 !important;
}

.comment-form textarea {
	background-color: #ffffff !important;
	border-radius: 12px !important;
	border: 1px solid rgba(0,0,0,0.1);
	color: #000000 !important;
}

#respond #reply-title {
	margin: 0 !important;
}

/**
 * FTM Recent Comments Styling
 */

.ft-recent-comments-wrap {
	margin-top: 30px;
}

.ft-recent-comment-item {
	padding: 20px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ft-recent-comment-item:last-child {
	border-bottom: none;
}

.ft-comment-meta {
	font-size: 12px;
	color: #63bcbf;
	margin-bottom: 8px;
}

.ft-comment-excerpt {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 10px;
}

/**
 * FTM Full Comments List Styling
 */

.ft-full-comments-wrap {
	margin-top: 50px;
	padding: 50px 30px !important;
	border-top: none;
}

.ft-full-comments-wrap ol.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ft-full-comments-wrap li.comment {
	margin-bottom: 30px;
}

.ft-full-comments-wrap .comment-body {
	position: relative;
	padding-left: 65px;
}

.ft-full-comments-wrap .vcard img.avatar {
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
}

.ft-full-comments-wrap .comment-metadata {
	font-size: 12px;
	margin-bottom: 10px;
	color: #999;
}

.ft-full-comments-wrap .comment-content {
	font-size: 16px;
	line-height: 1.7;
	padding-top: 0px !important;
}

.ft-full-comments-wrap .reply {
	margin-top: 15px;
}

.ft-full-comments-wrap ol.children {
	list-style: none;
	margin: 20px 0 0 40px;
	padding-left: 20px;
	border-left: 1px solid #eee;
}

@media (max-width: 600px) {
	#sm-login-form p,
	#sm-registration-form p {
		flex-direction: column;
		align-items: flex-start;
	}

	#sm-login-form label,
	#sm-registration-form label {
		flex: 0 0 auto;
		margin-bottom: 8px !important;
		text-align: left;
		padding-right: 0;
	}

	#sm-login-form input,
	#sm-registration-form input {
		width: 100%;
	}

	#sm-login-form .login-remember,
	#sm-login-form .login-submit,
	#sm-registration-form .reg-submit,
	#sm-login-form .reg-captcha,
	#sm-registration-form .reg-captcha {
		padding-left: 0;
	}

	.ft-comment-form-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.ft-comment-submit-btn,
	.ft-comment-action-btn {
		text-align: center;
		width: 100%;
	}

	.ft-full-comments-wrap ol.children {
		margin-left: 15px;
		padding-left: 15px;
	}
}