/* Loads on every page. Dark-site fixes for theme popups and badges. Header/footer untouched. */

/* Sale badge: was black text on black */
body.kon-dark span.onsale,
body.kon-dark .onsale,
body.kon-dark .woocommerce span.onsale {
	background: #fff !important;
	color: #000 !important;
	-webkit-text-fill-color: #000;
	border-radius: 0 !important;
	font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	min-width: 0; min-height: 0; line-height: 1; padding: 6px 10px;
}

/* "Someone purchased ..." popup (Kushi Pro > Suggested products) */
body.kon-dark .suggested-product-list .suggested-product-data {
	background: #111 !important;
	border: 1px solid #2e2e2e;
	color: #fff;
}
body.kon-dark .suggested-product-list .suggested-product-content span,
body.kon-dark .suggested-product-list .suggested-product-content a { color: #fff !important; }
body.kon-dark .suggested-product-list .suggested-product-content a:hover { text-decoration: underline; }
body.kon-dark .suggested-product-list .suggested-product-content .suggested-product-time { color: #a8a8a8 !important; }
body.kon-dark .suggested-product-list .suggested-product-data a.wdt_close,
body.kon-dark .suggested-product-list .suggested-product-data a.wdt_close:hover,
body.kon-dark .suggested-product-list .suggested-product-data a.wdt_close:focus {
	background: #fff !important; color: #000 !important; border-color: #fff !important;
}

/* "Added to cart" notice (Kushi Pro > Cart notification) */
body.kon-dark .wdt-shop-cart-widget.cart-notification-widget {
	background: #111 !important;
	border: 1px solid #2e2e2e;
	color: #fff;
}
body.kon-dark .wdt-shop-cart-widget.cart-notification-widget a,
body.kon-dark .wdt-shop-cart-widget.cart-notification-widget .wdt-shop-cart-widget-content-info,
body.kon-dark .wdt-shop-cart-widget.cart-notification-widget .wdt-shop-cart-widget-content-info * { color: #fff !important; }
body.kon-dark .wdt-shop-cart-widget.cart-notification-widget .wdt-shop-cart-widget-close-button:before { color: #fff !important; }

/* ------------------------------------------------------------------
 * Form / cart messages ("please fill the required fields", "order cancelled", "added to cart", ...)
 * The theme forced a near-white box (#fafafa) while the text stayed white on a dark site.
 * ------------------------------------------------------------------ */
body.kon-dark .woocommerce .woocommerce-message,
body.kon-dark .woocommerce .woocommerce-info,
body.kon-dark .woocommerce .woocommerce-error,
body.kon-dark .woocommerce-notices-wrapper .woocommerce-message,
body.kon-dark .woocommerce-notices-wrapper .woocommerce-info,
body.kon-dark .woocommerce-notices-wrapper .woocommerce-error,
body.kon-dark .woocommerce-NoticeGroup .woocommerce-error,
body.kon-dark .woocommerce-notice,
body.kon-dark ul.woocommerce-error,
body.kon-dark .woocommerce-checkout .woocommerce-error {
	background-color: #111 !important;
	color: #fff !important;
	border: 1px solid #2e2e2e !important;
	border-top: 3px solid #fff !important;
	border-radius: 0 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .5) !important;
	padding: 16px 22px !important;
	font-size: 14px; line-height: 1.6;
	list-style: none;
}
body.kon-dark .woocommerce .woocommerce-error,
body.kon-dark .woocommerce-notices-wrapper .woocommerce-error,
body.kon-dark .woocommerce-NoticeGroup .woocommerce-error,
body.kon-dark ul.woocommerce-error { border-top-color: #ff6b6b !important; }
body.kon-dark .woocommerce-error li,
body.kon-dark .woocommerce-message,
body.kon-dark .woocommerce-info,
body.kon-dark .woocommerce-error li strong,
body.kon-dark .woocommerce-error li a,
body.kon-dark .woocommerce-notice a,
body.kon-dark .woocommerce-message a:not(.button),
body.kon-dark .woocommerce-info a:not(.button) { color: #fff !important; }
body.kon-dark .woocommerce-error li { margin: 0 0 4px; padding: 0; background: none; }
body.kon-dark .woocommerce-message .button,
body.kon-dark .woocommerce-info .button {
	background: #fff !important; color: #000 !important; border: 1px solid #fff !important; border-radius: 0 !important;
	padding: 8px 16px !important; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
/* red outline on the field that was not filled */
body.kon-dark .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.kon-dark .woocommerce form .form-row.woocommerce-invalid select,
body.kon-dark .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #ff6b6b !important; }
body.kon-dark .woocommerce form .form-row.woocommerce-invalid label { color: #ff9b9b !important; }
body.kon-dark .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: #4a4a4a !important; }

/* small inline message used instead of a browser alert (see storefront.js) */
.kon-inline-note {
	margin: 0 0 12px; padding: 12px 16px; font-size: 13px; line-height: 1.5;
	background: #111; color: #fff; border: 1px solid #2e2e2e; border-left: 3px solid #ff6b6b;
	animation: konNote .35s ease;
}
body:not(.kon-dark) .kon-inline-note { background: #fff; color: #111; border-color: #e4e4e4; border-left-color: #d33; }
@keyframes konNote { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
 * MY ACCOUNT on a black site: dates, status, totals, menu item and forms were dark-on-dark
 * ------------------------------------------------------------------ */
body.kon-dark.woocommerce-account { color: #fff; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
body.kon-dark.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { color: #fff !important; opacity: 1 !important; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-navigation ul li { border-color: #2e2e2e !important; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { font-weight: 700; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content :is(p, h1, h2, h3, h4, label, address, strong, em, small, mark, time, td, th, li, dt, dd, legend, .amount, .woocommerce-Price-amount, .woocommerce-Price-currencySymbol):not(.button),
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content a:not(.button) { color: #fff !important; -webkit-text-fill-color: #fff; opacity: 1 !important; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content mark { background: transparent !important; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content table,
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content th,
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content td { border-color: #2e2e2e !important; background-color: transparent; }
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-number,
body.kon-dark.woocommerce-account .woocommerce-orders-table__cell-order-number { background: #1a1a1a !important; }
body.kon-dark.woocommerce-account .woocommerce-Address,
body.kon-dark.woocommerce-account .woocommerce-Addresses .col-1,
body.kon-dark.woocommerce-account .woocommerce-Addresses .col-2 { color: #fff; }
/* buttons in the orders table / account pages stay readable */
body.kon-dark.woocommerce-account .woocommerce-MyAccount-content .button { color: #fff; }
/* login / register / edit-account forms */
body.kon-dark.woocommerce-account input.input-text,
body.kon-dark.woocommerce-account input[type="text"],
body.kon-dark.woocommerce-account input[type="email"],
body.kon-dark.woocommerce-account input[type="password"],
body.kon-dark.woocommerce-account input[type="tel"],
body.kon-dark.woocommerce-account textarea,
body.kon-dark.woocommerce-account select,
body.kon-dark.woocommerce-account .select2-container--default .select2-selection--single,
body.kon-dark.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
	background-color: #111 !important; color: #fff !important; -webkit-text-fill-color: #fff; border: 1px solid #3a3a3a !important; border-radius: 0 !important;
}
body.kon-dark.woocommerce-account ::placeholder { color: #8a8a8a !important; opacity: 1; }
body.kon-dark.woocommerce-account .woocommerce form.login,
body.kon-dark.woocommerce-account .woocommerce form.register,
body.kon-dark.woocommerce-account .woocommerce form.woocommerce-form { background: transparent !important; border-color: #2e2e2e !important; color: #fff; }
body.kon-dark.woocommerce-account .woocommerce-form label,
body.kon-dark.woocommerce-account .woocommerce-form p,
body.kon-dark.woocommerce-account .woocommerce-form a { color: #fff !important; }

/* ------------------------------------------------------------------
 * MENUS on a black site (only the dropdown / mega-menu panel and the phone menu; top bar untouched)
 * ------------------------------------------------------------------ */

/* desktop: dropdowns + mega menu panel */
body.kon-dark .wdt-header-menu ul.wdt-primary-nav li > ul.sub-menu,
body.kon-dark .wdt-header-menu ul li.has-mega-menu > ul,
body.kon-dark .wdt-header-menu ul li.has-mega-menu > ul > li.menu-item-object-wdt_mega_menus {
	background-color: #0b0b0b !important;
	border: 1px solid #2a2a2a;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
/* the Elementor sections inside the mega menu must not paint their own white background */
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .elementor-section,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .elementor-container,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .elementor-column,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .elementor-widget-wrap,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .elementor-element-populated,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .e-con,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .e-con-inner { background-color: transparent !important; }
/* readable text everywhere in the panel */
body.kon-dark .wdt-header-menu ul.wdt-primary-nav li > ul.sub-menu a,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus :is(h1, h2, h3, h4, h5, h6, p, li, span, a, strong, .elementor-heading-title, .elementor-icon-list-text, .wdt-content-title, .wdt-content-title a) {
	color: #fff !important; -webkit-text-fill-color: #fff;
}
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .wdt-content-subtitle,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus .wdt-content-subtitle * { color: #a8a8a8 !important; -webkit-text-fill-color: #a8a8a8; }
body.kon-dark .wdt-header-menu ul.wdt-primary-nav li > ul.sub-menu a:hover,
body.kon-dark .wdt-header-menu li.menu-item-object-wdt_mega_menus a:hover { color: #fff !important; opacity: .7; }
body.kon-dark .wdt-header-menu ul.wdt-primary-nav li > ul.sub-menu li { border-color: #2a2a2a !important; background: transparent; }

/* phone menu: black panel, white links (they were default dark blue) */
body.kon-dark .mobile-menu,
body.kon-dark .mobile-nav-container .mobile-menu,
body.kon-dark .mobile-menu ul,
body.kon-dark .mobile-menu ul li ul,
body.kon-dark .mobile-menu ul.sub-menu { background-color: #0b0b0b !important; color: #fff !important; }
body.kon-dark .mobile-menu ul li,
body.kon-dark .mobile-menu li { color: #fff !important; border-color: #262626 !important; background: transparent; }
body.kon-dark .mobile-menu ul li a,
body.kon-dark .mobile-menu li a,
body.kon-dark .mobile-menu ul li.go-back a,
body.kon-dark .mobile-menu ul li.see-all a { color: #fff !important; -webkit-text-fill-color: #fff; border-color: #262626 !important; }
body.kon-dark .mobile-menu ul li a:hover,
body.kon-dark .mobile-menu ul li a:focus,
body.kon-dark .mobile-menu li.current-menu-item > a,
body.kon-dark .mobile-menu li.current-menu-ancestor > a,
body.kon-dark .mobile-menu li.current_page_item > a { color: #fff !important; background-color: #161616 !important; }
body.kon-dark .mobile-menu ul li.close-nav a:before,
body.kon-dark .mobile-menu ul li.close-nav a:after { background-color: #fff !important; }
body.kon-dark .mobile-menu :is(input, select) { background: #111 !important; color: #fff !important; border-color: #3a3a3a !important; }
