/* =========================================================================
   FindHostingDeals brand layer for Couponis
   Loads after Couponis' style.css and its inline Theme Options colors.

   1. Tokens
   2. Base type and color
   3. Header: top bar, search, navigation, account actions
   4. Links, buttons, pagination, tabs
   5. Coupon cards and badges
   6. Deal action buttons (GET CODE / GET DEAL / PRINT CODE)
   7. Category icons (hosting SVG set)
   8. Icon font swaps (hosting icon set)
   9. Footer
   ========================================================================= */


/* 1. TOKENS ----------------------------------------------------------- */

:root {
	--fhd-navy: #0F1A2E;
	--fhd-navy-raised: #1C2A45;
	--fhd-navy-line: #33425E;
	--fhd-teal: #0A7C86;
	--fhd-teal-deep: #08636B;
	--fhd-teal-mist: #E3F4F5;
	--fhd-amber: #FFB020;
	--fhd-amber-deep: #F09A00;
	--fhd-amber-cream: #FFF4DC;
	--fhd-cloud: #F5F7FA;
	--fhd-line: #DCE3EC;
	--fhd-slate: #5A6778;
	--fhd-ink-soft: #3B4557;
	--fhd-on-dark: #C9D4E2;
	--fhd-success: #17773F;
	--fhd-success-tint: #E6F3EB;
	--fhd-danger: #C2362B;
	--fhd-white: #FFFFFF;

	--fhd-font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
	--fhd-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fhd-font-code: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--fhd-radius-card: 16px;
	--fhd-radius-control: 10px;
	--fhd-radius-pill: 999px;
	--fhd-control-height: 44px;
	--fhd-search-height: 48px;
	--fhd-logo-max-height: 44px;
	--fhd-card-shadow: 0 6px 18px rgba(15, 26, 46, 0.06);
}


/* 2. BASE TYPE AND COLOR ---------------------------------------------- */

body,
body[class*=" "] {
	font-family: var(--fhd-font-body);
	color: var(--fhd-ink-soft);
	background-color: var(--fhd-cloud);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.header-alike,
.continue-read {
	font-family: var(--fhd-font-heading);
	font-weight: 700;
	color: var(--fhd-navy);
	letter-spacing: -0.01em;
}

.navbar-default .navbar-nav li a,
.navbar-default .navbar-nav .open .dropdown-menu > li > a,
body .elementor-widget-tabs .elementor-tab-title,
body .elementor-widget-tabs .elementor-tab-title a {
	font-family: var(--fhd-font-body);
}

::selection {
	background: var(--fhd-amber);
	color: var(--fhd-navy);
}

:focus-visible {
	outline: 3px solid var(--fhd-amber);
	outline-offset: 2px;
}


/* 3. HEADER ----------------------------------------------------------- */

.top-header {
	background-color: var(--fhd-navy);
	padding: 18px 0;
}

.top-header h2 {
	color: var(--fhd-white);
	font-family: var(--fhd-font-heading);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: -0.02em;
	margin: 0;
}

.top-header .logo img {
	max-height: var(--fhd-logo-max-height);
	width: auto;
}

.header-categories a {
	color: var(--fhd-on-dark);
}

.header-categories a:hover {
	color: var(--fhd-white);
}

.main-search input,
.main-search input:focus,
.main-search input:active,
.main-search input:focus:active {
	height: var(--fhd-search-height);
	width: 420px;
	max-width: 100%;
	background: var(--fhd-white);
	color: var(--fhd-navy);
	border-radius: var(--fhd-radius-control);
	padding: 0 110px 0 16px;
	font-size: 15px;
	box-shadow: none;
}

.main-search input::placeholder {
	color: var(--fhd-slate);
}

.main-search a.submit-form,
.main-search a.submit-form:visited {
	line-height: var(--fhd-search-height);
	background: var(--fhd-amber);
	color: var(--fhd-navy);
	font-family: var(--fhd-font-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	padding: 0 20px;
	border-radius: 0 var(--fhd-radius-control) var(--fhd-radius-control) 0;
}

.main-search a.submit-form:hover,
.main-search a.submit-form:focus {
	background: var(--fhd-amber-deep);
	color: var(--fhd-navy);
}

.main-search .store-search-results {
	border-radius: var(--fhd-radius-control);
	border: 1px solid var(--fhd-line);
	box-shadow: var(--fhd-card-shadow);
}

/* Navigation sits inside the navy header, like the mockup. */
.navigation,
.navigation.sticky-nav {
	background: var(--fhd-navy);
	border-top: 1px solid var(--fhd-navy-raised);
	box-shadow: none;
}

.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:visited {
	color: var(--fhd-on-dark);
	font-size: 15px;
	font-weight: 500;
	border-radius: 8px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > li.current_page_item > a,
.navbar-default .navbar-nav > li.current_page_item > a:visited,
.navbar-default .navbar-nav > li.current_page_ancestor > a,
.navbar-default .navbar-nav > li.current_page_ancestor > a:visited {
	color: var(--fhd-white);
	background: var(--fhd-navy-raised);
}

/* Desktop dropdowns are white panels with navy text. */
.navigation .dropdown-menu {
	border: 1px solid var(--fhd-line);
	border-radius: var(--fhd-radius-control);
	box-shadow: var(--fhd-card-shadow);
	padding: 6px 0;
}

.navbar-default .navbar-nav .dropdown-menu > li > a,
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
	color: var(--fhd-navy);
	font-weight: 500;
}

.navbar-default .navbar-nav .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .dropdown-menu > li.current_page_item > a {
	color: var(--fhd-teal);
	background: var(--fhd-teal-mist);
}

/* Phones: the menu opens inside the navy bar, so sub-items stay light. */
@media (max-width: 767px) {
	.navbar-default .navbar-nav .open .dropdown-menu {
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.navbar-default .navbar-nav .open .dropdown-menu > li > a {
		color: var(--fhd-on-dark);
	}

	.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
		color: var(--fhd-white);
		background: var(--fhd-navy-raised);
	}
}

.navbar-toggle,
.navbar-toggle:hover,
.navbar-toggle:focus {
	color: var(--fhd-amber);
}

/* Submit / account / logout: outlined square buttons, as in the mockup. */
.special-action li {
	margin-left: 8px;
}

.special-action li:first-child a,
.special-action li:nth-child(3) a {
	margin: 0;
}

.special-action a,
.special-action a:visited {
	color: var(--fhd-white);
	font-size: 20px;
	width: var(--fhd-control-height);
	height: var(--fhd-control-height);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--fhd-navy-line);
	border-radius: var(--fhd-radius-control);
}

.special-action a:hover,
.special-action a:focus {
	color: var(--fhd-amber);
	border-color: var(--fhd-amber);
}


/* 4. LINKS, BUTTONS, PAGINATION, TABS --------------------------------- */

a,
a:visited,
a.read-coupon-more,
a.read-coupon-more:visited {
	color: var(--fhd-teal);
}

a:hover,
a:focus,
a:active,
a.read-coupon-more:hover {
	color: var(--fhd-teal-deep);
}

.form-submit #submit,
.form-submit a,
.tagcloud a,
.btn,
a.btn,
a.visit-store,
.post-password-form input[type="submit"] {
	background-color: var(--fhd-teal);
	color: var(--fhd-white);
	border-radius: var(--fhd-radius-control);
	font-family: var(--fhd-font-body);
	font-weight: 700;
	letter-spacing: 0.02em;
	min-height: var(--fhd-control-height);
	padding-top: 12px;
	padding-bottom: 12px;
}

.form-submit #submit:hover,
.form-submit a:hover,
.tagcloud a:hover,
.btn:hover,
.btn:focus,
a.btn:hover,
a.visit-store:hover {
	background-color: var(--fhd-teal-deep);
	color: var(--fhd-white);
	opacity: 1;
}

.pagination a,
.pagination > span {
	border-radius: 8px;
}

.pagination a:hover,
.pagination > span {
	background-color: var(--fhd-teal);
	color: var(--fhd-white);
}

.widget-title:after,
.owl-dot.active {
	border-color: var(--fhd-teal);
}

.nav.nav-tabs > li > a:hover,
.nav.nav-tabs > li.active > a,
.nav.nav-tabs > li.active > a:hover,
.nav.nav-tabs > li.active > a:focus,
body .kc_tabs_nav > .ui-tabs-active > a {
	background-color: var(--fhd-teal);
	color: var(--fhd-white);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
	border-radius: var(--fhd-radius-control);
	border-color: var(--fhd-line);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
	border-color: var(--fhd-teal);
	box-shadow: 0 0 0 3px var(--fhd-teal-mist);
}


/* 5. COUPON CARDS AND BADGES ------------------------------------------ */

.white-block,
.kc_tabs:not(.coupon-tabs) .ui-tabs .kc_tabs_nav ~ .kc_tab.ui-tabs-body-active {
	border: 1px solid var(--fhd-line);
	border-radius: var(--fhd-radius-card);
	box-shadow: none;
}

.white-block.coupon-box {
	margin-bottom: 18px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.white-block.coupon-box:hover {
	border-color: #C3CFDD;
	box-shadow: var(--fhd-card-shadow);
}

.share-coupon,
.expired-overlay {
	border-radius: var(--fhd-radius-card);
}

.coupon-box h4,
.coupon-box a h4 {
	color: var(--fhd-navy);
	font-weight: 700;
}

.coupon-box a h4:hover {
	color: var(--fhd-teal);
}

.coupon-image,
.store-logo {
	border-radius: 12px;
	border-color: var(--fhd-line);
}

.coupon-image:hover,
.store-logo:hover {
	border-color: var(--fhd-teal);
}

.coupon-top-meta,
.coupon-bottom-meta a,
.coupon-bottom-meta a:visited {
	color: var(--fhd-slate);
}

.coupon-bottom-meta a:hover,
.save-coupon.added,
.save-store.added,
.save-store:hover {
	color: var(--fhd-teal);
}

.expire {
	color: var(--fhd-slate);
	font-size: 13px;
	font-weight: 500;
}

/* Phones: Couponis turns "used" and expiry into small corner tags. */
@media (max-width: 768px) {
	.coupon-list .used,
	.coupon-list .expire {
		background: var(--fhd-cloud);
		color: var(--fhd-slate);
		border-radius: var(--fhd-radius-pill);
		font-weight: 600;
	}
}

.badges {
	border-radius: var(--fhd-radius-pill);
	font-family: var(--fhd-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 5px 10px;
}

.exclusive,
.similar-badge {
	background-color: var(--fhd-amber);
	color: var(--fhd-navy);
}

.online-code {
	background-color: var(--fhd-teal-mist);
	color: var(--fhd-teal-deep);
}

.in-store-code {
	background-color: var(--fhd-navy);
	color: var(--fhd-white);
}

.online-sale {
	background-color: var(--fhd-success-tint);
	color: var(--fhd-success);
}


/* 6. DEAL ACTION BUTTONS ---------------------------------------------- */

/* Shared shell: Couponis draws the frame on the <a>. */
.coupon-code-modal,
.coupon-action-button.header-alike {
	border: 2px dashed var(--fhd-amber);
	border-radius: var(--fhd-radius-control);
	background: var(--fhd-amber-cream);
	overflow: hidden;
	font-family: var(--fhd-font-body);
	font-weight: 700;
}

.coupon-action-button.header-alike:hover {
	opacity: 1;
}

.code-text,
.code-text-full {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--fhd-control-height);
	padding: 10px 14px;
	font-size: 13.5px;
	letter-spacing: 0.03em;
	line-height: 1.2;
}

/* GET CODE: amber tab over the dashed code strip. */
.code-text {
	background-color: var(--fhd-amber);
	color: var(--fhd-navy);
	width: 78%;
	height: 100%;
	border-radius: 7px 0 0 7px;
}

.coupon-action-button:hover .code-text {
	background-color: var(--fhd-amber-deep);
}

.partial-code {
	background: var(--fhd-amber-cream);
	color: var(--fhd-navy);
	font-family: var(--fhd-font-code);
	font-weight: 600;
	min-height: var(--fhd-control-height);
	padding: 12px 14px;
}

.coupon-action-button:hover .partial-code,
.coupon-action-button:focus .partial-code {
	color: var(--fhd-navy);
}

/* GET DEAL: solid teal. Applies before the script runs too. */
.coupon-action-button.header-alike:has(.code-text-full),
.coupon-action-button.header-alike[data-fhd-type="deal"] {
	border: 2px solid var(--fhd-teal);
	background: var(--fhd-teal);
}

.code-text-full {
	background-color: var(--fhd-teal);
	color: var(--fhd-white);
}

.coupon-action-button:hover .code-text-full {
	background-color: var(--fhd-teal-deep);
}

.coupon-action-button.header-alike:has(.code-text-full):hover {
	border-color: var(--fhd-teal-deep);
}

/* PRINT CODE: navy outline (tagged by assets/js/fhd-brand.js). */
.coupon-action-button.header-alike[data-fhd-type="print"] {
	border: 2px solid var(--fhd-navy);
	background: var(--fhd-white);
}

.coupon-action-button[data-fhd-type="print"] .code-text-full {
	background-color: var(--fhd-white);
	color: var(--fhd-navy);
}

.coupon-action-button[data-fhd-type="print"]:hover .code-text-full {
	background-color: var(--fhd-cloud);
}

/* Revealed code in the coupon popup. */
a.coupon-code-modal,
a.coupon-code-modal:visited,
a.coupon-code-modal:hover,
a.coupon-code-modal:focus,
a.coupon-code-modal:focus:active {
	background-color: var(--fhd-amber-cream);
	color: var(--fhd-navy);
	font-family: var(--fhd-font-code);
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* Button icons: terminal for codes, server tag for deals, invoice for print. */
.code-text::before,
.code-text-full::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--fhd-button-icon) center / contain no-repeat;
	mask: var(--fhd-button-icon) center / contain no-repeat;
}

.code-text {
	--fhd-button-icon: url("../icons/get-code.svg");
}

.code-text-full {
	--fhd-button-icon: url("../icons/get-deal.svg");
}

.coupon-action-button[data-fhd-type="print"] .code-text-full {
	--fhd-button-icon: url("../icons/print-code.svg");
}


/* 7. CATEGORY ICONS --------------------------------------------------- */

/*
 * Couponis inlines uploaded category SVGs and paints them with fill + stroke.
 * The hosting icons are line icons (marked data-fhd-icon), so keep them unfilled.
 */
svg[data-fhd-icon] {
	fill: none !important;
	stroke-width: 1.75;
}

.widget_widget_categories li svg[data-fhd-icon] {
	stroke: var(--fhd-slate);
}

.widget_widget_categories li:hover svg[data-fhd-icon],
.categories-carousel-list .owl-item svg[data-fhd-icon],
.category-block svg[data-fhd-icon],
.categories-list li:hover svg[data-fhd-icon],
.categories-list li svg[data-fhd-icon] {
	stroke: var(--fhd-teal);
}

/* On teal backgrounds the icon turns white so it stays visible. */
.category-block:hover svg[data-fhd-icon],
.tax-coupon-category .category-icon-wrap svg[data-fhd-icon],
.tax-coupon-category .taxonomy-header svg[data-fhd-icon] {
	stroke: var(--fhd-white);
}

.category-block .white-block {
	transition: background-color 0.15s ease;
}

.category-block:hover .white-block,
.tax-coupon-category .category-icon-wrap {
	background-color: var(--fhd-teal);
	color: var(--fhd-white);
}

.header-categories svg[data-fhd-icon] {
	stroke: var(--fhd-on-dark);
}

.header-categories a:hover svg[data-fhd-icon] {
	stroke: var(--fhd-white);
}


/* 8. ICON FONT SWAPS -------------------------------------------------- */

/*
 * Couponis uses Simple Line Icons and Font Awesome glyphs. These are swapped
 * for the hosting icon set by masking an SVG with the text color, so every
 * existing color and hover rule keeps working.
 */
.icon-star::before,
.icon-heart::before,
.icon-share::before,
.icon-bubbles::before,
.icon-clock::before,
.icon-lock-open::before,
.icon-user::before,
.icon-magnifier::before,
.fa-search::before,
.special-action .icon-tag::before {
	content: "" !important;
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	vertical-align: -0.2em;
	background-color: currentColor;
	-webkit-mask: var(--fhd-glyph) center / contain no-repeat;
	mask: var(--fhd-glyph) center / contain no-repeat;
}

.icon-star,
.icon-heart        { --fhd-glyph: url("../icons/save-coupon.svg"); }
.icon-share        { --fhd-glyph: url("../icons/share.svg"); }
.icon-bubbles      { --fhd-glyph: url("../icons/comments.svg"); }
.icon-clock        { --fhd-glyph: url("../icons/expires-renews.svg"); }
.icon-lock-open    { --fhd-glyph: url("../icons/verified.svg"); }
.icon-user         { --fhd-glyph: url("../icons/my-account.svg"); }
.icon-magnifier,
.fa-search         { --fhd-glyph: url("../icons/search-hosts.svg"); }
.special-action .icon-tag { --fhd-glyph: url("../icons/submit-coupon.svg"); }


/* 9. FOOTER ----------------------------------------------------------- */

.copyrights,
.copyrights a,
.copyrights a:visited {
	background: var(--fhd-navy);
	color: var(--fhd-on-dark);
}

.copyrights {
	font-size: 14px;
	padding: 24px 0;
}

.copyrights a:hover,
.copyrights a:focus {
	color: var(--fhd-amber);
}

.footer-subscribe i.icon-envelope {
	color: var(--fhd-teal);
}

.to_top.btn {
	background: var(--fhd-navy);
	border-radius: var(--fhd-radius-control);
}

.to_top.btn:hover {
	background: var(--fhd-teal);
}
