/*
 * Plugin pages in the dark look (theme 1.3.0): LearnPress's profile and checkout and
 * WooCommerce's shop, cart, checkout and account, all inside <div class="nx-plugin-page">,
 * and (theme 1.3.2) LearnPress's lesson and quiz view (#popup-course), see the end.
 * Loaded after home-skin.css on those views and on course pages (inc/assets.php).
 */
.nx-plugin-page {
	--nx-focus: #ffb02e;
	--lp-primary-color: #ffb02e;
	--lp-secondary-color: #151622;
	color: #f7f4ecc7;
	color-scheme: dark;
	background: #0d0d15;
	border: 1px solid #ffffff14;
	box-shadow: 0 40px 80px -48px #000c;
}

.nx-plugin-page :is(h1, h2, h3, h4, h5, h6, strong, b, label, legend, th, dt),
.nx-plugin-page a:hover {
	color: #f7f4ec;
}

.nx-plugin-page a {
	color: #ffb02e;
}

/* Fields */
:is(.nx-plugin-page, #popup-course) :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), select, textarea),
.nx-plugin-page .select2-selection {
	color: #f7f4ec !important;
	background: #12121c !important;
	border: 1px solid #ffffff24 !important;
	border-radius: .6rem;
}

:is(.nx-plugin-page, #popup-course) ::placeholder {
	color: #f7f4ec66;
}

/* LearnPress and WooCommerce draw light grey lines: faint white ones here */
.nx-plugin-page :is(div, ul, li, a, article, section, nav, fieldset, hr) {
	border-color: #ffffff1a !important;
}

.nx-plugin-page :is(.course-item, .lp-profile-content) :is(a:not(.lp-button), h3, h4, .course-title) {
	color: #f7f4ec;
}

.nx-plugin-page :is(.lp-btn-to-edit-avatar, .lp-btn-to-edit-cover-image) {
	color: #ffb02e;
	background: #12121c;
	border: 1px solid #ffb02e66;
}

/* Buttons: the amber pill of the site */
.nx-plugin-page :is(.lp-button, button[type="submit"], input[type="submit"], .button, .wc-block-components-button),
#popup-course .lp-button {
	color: #1a1206;
	background: linear-gradient(90deg, #ffcf23, #ff8d3a);
	border: 0;
	border-radius: 999px;
	font-weight: 600;
}

:is(.nx-plugin-page, #popup-course) :is(.lp-button, .button):hover {
	color: #1a1206;
	filter: brightness(1.06);
}

/* Tables */
.nx-plugin-page table,
.nx-plugin-page :is(th, td) {
	border-color: #ffffff1a !important;
	background: transparent;
}

.nx-plugin-page thead th,
.nx-plugin-page tfoot :is(th, td) {
	background: #151622;
}

/* Notices: a dark box with an amber edge */
.nx-plugin-page :is(.learn-press-message, .lp-message, .woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner),
#popup-course :is(.learn-press-message, .lp-message) {
	color: #f7f4ecd9;
	background: #151622;
	border: 1px solid;
	border-left: 3px solid;
	border-radius: .75rem;
	border-left-color: #ffb02e !important;
}

:is(.nx-plugin-page, #popup-course) :is(.learn-press-message, .lp-message).error,
.nx-plugin-page .woocommerce-error {
	border-left-color: #ff6b5a !important;
}

/* LearnPress profile */
.nx-plugin-page :is(.lp-user-profile, .lp-profile-content, .lp-profile-left, .lp-profile-right, .lp-content-area, #profile-content-header, .lp-profile-content-area) {
	background: transparent;
}

.nx-plugin-page .lp-profile-username {
	color: #f7f4ec;
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs, .learn-press-tabs__nav) {
	background: #12121c;
	border: 1px solid #ffffff14;
	border-radius: .9rem;
	overflow: hidden;
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs) :is(li, li > a, ul) {
	border-color: #ffffff12 !important;
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs) li.active > a {
	color: #1a1206 !important;
	background: linear-gradient(90deg, #ffcf23, #ff8d3a);
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs, .learn-press-tabs__nav) li a {
	color: #f7f4ecc7;
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs) li:is(.active, :hover),
.nx-plugin-page .learn-press-tabs__tab.active {
	background: #ffb02e1f;
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs) li:hover:not(.active) > a {
	color: #ffb02e;
}

.nx-plugin-page :is(.profile-tab-sections, .lp-profile-nav-tabs) li.active > a i {
	color: inherit;
}

.nx-plugin-page :is(.statistic-box, .lp-profile-course, .learn-press-courses .course, .lp-archive-courses .course-item, .dashboard-statistic__row > *, .profile-orders, .lp-list-table, .learn-press-filters, .lp-form-fields, .course-content) {
	background: #151622;
	border-color: #ffffff14;
}

.nx-plugin-page .statistic-box :is(.statistic-box__text__number, .statistic-box__text__label) {
	color: #f7f4ec;
}

.nx-plugin-page .statistic-box__icon {
	background: #ffb02e1f;
	color: #ffb02e;
}

.nx-plugin-page :is(.learn-press-filters, .learn-press-tabs) a {
	color: #f7f4ecb3;
}

.nx-plugin-page :is(.learn-press-filters, .learn-press-tabs) :is(.active, [aria-selected="true"]) {
	color: #ffb02e;
}

.nx-plugin-page .lp-profile-cover,
.nx-plugin-page .lp-user-cover-image__inner {
	background-color: #12121c;
}

.nx-plugin-page .learn-press-progress__active,
.nx-plugin-page .lp-course-progress-bar span {
	background: #ffb02e;
}

/* WooCommerce account, cart and checkout */
.nx-plugin-page .woocommerce-MyAccount-navigation ul {
	padding: 0;
	list-style: none;
	border: 1px solid #ffffff14;
	border-radius: .9rem;
	overflow: hidden;
	background: #12121c;
}

.nx-plugin-page .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: .75rem 1rem;
	color: #f7f4ecc7;
}

.nx-plugin-page .woocommerce-MyAccount-navigation li.is-active a {
	color: #ffb02e;
	background: #ffb02e1f;
}

.nx-plugin-page :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .cart_totals, .woocommerce-checkout-review-order, #customer_details, .wc-block-cart, .wc-block-checkout) {
	padding: clamp(1rem, .8rem + 1vw, 1.75rem);
	background: #151622;
	border: 1px solid #ffffff14 !important;
	border-radius: 1rem;
}

.nx-plugin-page .wc-block-components-sidebar-layout :is(.wc-block-components-panel, .wc-block-components-totals-wrapper) {
	border-color: #ffffff1a;
}

.nx-plugin-page .woocommerce-products-header__title,
.nx-plugin-page .page-title {
	margin-bottom: 1rem;
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

.nx-plugin-page .woocommerce-loop-product__title,
.nx-plugin-page .price {
	color: #f7f4ec;
}

/* LearnPress lesson and quiz view (#popup-course): dark panels, amber marks, and the lesson
 * text set like the site's prose (pages.css 9). Ids outrank learnpress.css and pages.css 15. */
#popup-course {
	--lp-primary-color: #ffb02e;
	--nx-focus: #ffb02e;
	color: #f7f4ecc7;
	color-scheme: dark;
	background: #07070c;
}

#popup-course :is(#popup-header, #popup-footer, #popup-sidebar, .lp-addon-content-bar__head, .popup-right-sidebar__item, .popup-right-sidebar__toggle) {
	background: #0d0d15;
}

#popup-course :is(#popup-content, #lp-addon-content-bar) {
	background: #07070c;
}

#popup-course :is(#popup-header, #popup-footer, #popup-sidebar, .lp-course-curriculum, .course-section, .course-item, #lp-addon-content-bar, .lp-addon-content-bar__head, .course-item-nav > div) {
	border-color: #ffffff14 !important;
}

#popup-course :is(h1, h2, h3, h4, h5, h6, strong, b, .course-item-title, .item-name, .section-title),
#popup-course #popup-header .course-title a,
#popup-course .course-item a {
	color: #f7f4ec;
}

#popup-course :is(.course-section-header, .lp-loading-change) {
	background: #12121c;
}

#popup-course :is(.section-count, .course-item i, [class^="lp-icon"], [class*=" lp-icon"], .course-item-nav a) {
	color: #f7f4ec99;
}

#popup-course .course-item:is(:hover, .current) {
	background: #ffb02e14;
}

#popup-course .course-item.current :is(a, .course-item-title, .item-name) {
	color: #ffb02e;
}

#popup-course .course-item-nav a:hover,
#popup-course :is(#sidebar-toggle, .back-course):hover {
	color: #ffb02e;
}

#popup-course :is(.learn-press-progress__active, .lp-progress-bar__active) {
	background: #ffb02e;
}

/* The lesson text */
#popup-course .content-item-summary > :is(h1, .course-item-title) {
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -.01em;
}

#popup-course .content-item-description {
	max-width: var(--nx-measure);
	font-size: 1.0625rem;
	line-height: 1.75;
}

#popup-course .content-item-description :is(h1, h2) {
	margin-top: 2em;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	line-height: 1.2;
}

#popup-course .content-item-description h3 {
	margin-top: 1.75em;
	font-size: clamp(1.25rem, 1.125rem + .5vw, 1.5rem);
	line-height: 1.3;
}

#popup-course .content-item-description :is(h1, h2, h3):first-child {
	margin-top: 0;
}

#popup-course .content-item-description :is(ul, ol) {
	padding-left: 1.25em;
}

#popup-course .content-item-description li + li {
	margin-top: .5em;
}

#popup-course .content-item-description li::marker {
	color: #ffb02e;
}

#popup-course .content-item-description blockquote {
	padding-left: 1.25em;
	border-left: 2px solid #ffb02e;
	color: #f7f4ec;
	font-style: italic;
}

#popup-course .content-item-description :is(th, td) {
	padding: .5em .75em;
	border: 1px solid #ffffff1f;
}

#popup-course .content-item-description :is(code, pre) {
	border-radius: .4rem;
	background: #151622;
}

/* The comment form under a lesson: a dark field (above), the secondary button on dark */
#popup-course .comment-form input[type="submit"] {
	border-color: #ffffff3d;
	color: #f7f4ec;
}

#popup-course .comment-form input[type="submit"]:hover {
	border-color: #ffb02e;
	background: #ffb02e14;
}
