/*
Theme Name:   Couponis Child
Theme URI:    https://allsoftwarediscount.com/
Description:  Child theme for Couponis used by allsoftwarediscount.com. Carries the brand identity, the coupon card restyle and the head tags the parent theme no longer provides.
Author:       Vyacheslav Belov
Author URI:   https://allsoftwarediscount.com/
Template:     couponis
Version:      0.4.0
Text Domain:  couponis-child
*/

/* ==========================================================================
   Tokens

   After the ONLYOFFICE redesign: indigo night for the header and the dark
   bands, a light grey page with white cards, blue for links and controls.
   Orange marks the coupon action and nothing else — when every control
   shouts, the one button a visitor came to press stops standing out. The teal
   of the logo stays for the brand and the "Checked" mark.

   The Couponis options in functions.php carry the same values into the
   parent's inline CSS; change them in both places.
   ========================================================================== */

:root {
	--ss-ink: #333333;          /* headings and text on light grounds */
	--ss-night: #13142f;        /* header and dark bands */
	--ss-night-glow: #000869;   /* the deep blue of the glows */
	--ss-violet: #5012a2;       /* the violet of the glows */
	--ss-on-night: #e7e8ee;     /* text on night */
	--ss-on-night-muted: #ccdbfb;
	--ss-night-edge: rgba(255, 255, 255, 0.1);

	--ss-blue: #3541f5;         /* links, active states, secondary controls */
	--ss-blue-deep: #2530d4;
	--ss-blue-wash: #eef0ff;

	/* The coupon action. Darker than ONLYOFFICE's #ff5938 so white text
	   reaches 4.6:1; the gradient and glow are theirs. */
	--ss-cta: #d93a0b;
	--ss-cta-deep: #b83000;
	--ss-cta-fill: linear-gradient(0deg, #b83000 0, #d93a0b 40%);
	--ss-cta-glow: 0 8px 16px -3px rgba(244, 89, 12, 0.4), 0 4px 6px -4px rgba(244, 89, 12, 0.5);
	--ss-cta-wash: #fff4ef;
	--ss-cta-edge: #f08a63;

	--ss-teal: #1ab1b7;         /* brand, from the logo */
	--ss-teal-deep: #0a7f85;    /* the "Checked" mark: 4.8:1 on white */
	--ss-teal-wash: #e6f5f6;

	--ss-paper: #ffffff;
	--ss-wash: #f3f4f7;         /* page background, so white cards separate */
	--ss-edge: #e7e8ee;
	--ss-muted: #585a6d;
	--ss-shadow: 0 9px 20px -3px rgba(109, 145, 199, 0.1);

	/* Glass, for surfaces laid over night */
	--ss-glass: rgba(156, 153, 231, 0.3);
	--ss-glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 55%);
	--ss-glass-edge: rgba(255, 255, 255, 0.12);

	--ss-font-head: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--ss-font-text: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--ss-code: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

	/* Lucide "search", as in icons.css, for the search fields' own icons. */
	--ss-search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");

	/* Lucide "languages", for the language button. */
	--ss-languages-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m5 8 6 6' /%3E%3Cpath d='m4 14 6-6 2-3' /%3E%3Cpath d='M2 5h12' /%3E%3Cpath d='M7 2h1' /%3E%3Cpath d='m22 22-5-10-5 10' /%3E%3Cpath d='M14 18h6' /%3E%3C/svg%3E");

	--ss-radius: 10px;          /* controls: buttons, fields, code boxes */
	--ss-radius-card: 16px;     /* cards and panels */
	--ss-gap: 20px;
}

/* ==========================================================================
   Fonts

   Sora for headings, navigation and buttons, Open Sans for running text —
   the pairing of the ONLYOFFICE redesign. JetBrains Mono is for promo codes
   only: a code has to be retyped without mistakes, and this face tells O from
   0 and I from l.

   All three are served from fonts/ in this theme (SIL OFL, licences next to
   the files), never from Google — see softsaver_design_options() for why.
   Latin and Latin Extended cover EN, DE, FR, IT and ES. The families are
   applied through the Couponis options in functions.php, not here.
   ========================================================================== */

@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/sora-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/sora-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/open-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/open-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/open-sans-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Open Sans';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/open-sans-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Page rhythm

   The parent theme leaves roughly 200px of empty space between the navigation
   and the first content block, and more again on mobile — enough that on a
   phone no coupon is visible without scrolling.
   ========================================================================== */

body {
	background: var(--ss-wash);
	color: var(--ss-ink);
}

/* The parent theme pushes <main> down by 100px to clear an ad slot that is not
   in use. On a phone that gap alone costs a coupon of visible content. */
main {
	margin-top: 28px;
}

.advertise-wrap:empty,
.advertise:empty {
	display: none;
}

/* ==========================================================================
   Header

   The header of design D: one 68px glass bar — logo, menu, a dark search
   field, the language button — pinned to the top of the window.

   Couponis prints it as two stacked bars, .top-header (logo, search) and
   .navigation (menu), 183px together. The wrappers between <header> and its
   real parts are dissolved with display: contents, and <header> lays those
   parts out itself: one row on wide screens; logo and search over the menu
   on tablets; logo and burger over the search on phones. The markup stays the
   parent's, so theme updates and its phone-menu script are unaffected.

   The theme's own sticky bar (a clone of the menu alone) is switched off in
   softsaver_design_options(): the header itself stays on screen.
   ========================================================================== */

header {
	position: relative;
	z-index: 1000;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"logo search"
		"nav  nav"
		"paste paste";
	align-items: center;
	column-gap: 24px;
	padding-inline: max(15px, calc((100% - 720px) / 2));
	/* Night glass: over the light page it reads as a lifted slate bar, and
	   content scrolling under it blurs through. */
	background: rgba(19, 20, 47, 0.78);
	-webkit-backdrop-filter: saturate(1.5) blur(14px);
	backdrop-filter: saturate(1.5) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

header .top-header,
header .top-header > .container,
header .top-header .flex-wrap,
header .navigation,
header .navigation > .container,
header .navigation > .container > .flex-wrap {
	display: contents;
}

/* display: contents keeps inherited properties: the parent centres the logo
   row on phones through text-align on the dissolved wrapper. */
header .top-header .flex-left {
	grid-area: logo;
	padding: 14px 0;
	text-align: left;
}

header .top-header .flex-right {
	grid-area: search;
	justify-self: end;
	width: min(340px, 100%);
}

header .navigation > .container > .flex-wrap > .flex-left {
	grid-area: nav;
	margin-left: 0;
	padding: 8px 0 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Account icons, printed only when registration is open. */
header .navigation > .container > .flex-wrap > .flex-right {
	grid-area: nav;
	justify-self: end;
}

header .navigation .nav-paste {
	grid-area: paste;
}

header .logo img {
	display: block;
	width: auto;
	height: 44px;
}

/* Under the logo, the first item's padding is pulled back so its label lines
   up with the logo's edge. */
@media (min-width: 769px) and (max-width: 1199px) {
	header .navbar-default .navbar-nav {
		margin-left: -12px;
	}
}

@media (min-width: 992px) {
	header {
		padding-inline: max(15px, calc((100% - 940px) / 2));
	}
}

/* One row. The menu column is sized by its content, the search takes what is
   left and the language button has a column of its own: the French menu
   leaves the search 250px of the 1140px container, and the container does not
   grow past 1200px, so neither does the fit. */
@media (min-width: 1200px) {
	header {
		position: sticky;
		top: 0;
		grid-template-columns: auto auto minmax(180px, 1fr) 84px;
		grid-template-areas: "logo nav search lang";
		padding-inline: max(15px, calc((100% - 1140px) / 2));
	}

	.admin-bar header {
		top: 32px;
	}

	header .top-header .flex-left {
		padding: 16px 0;
	}

	header .logo img {
		height: 36px;
	}

	header .navigation > .container > .flex-wrap > .flex-left {
		padding: 0;
		border-top: 0;
	}

	header .navbar-default .navbar-nav {
		display: flex;
		flex-wrap: nowrap;
		gap: 2px;
		white-space: nowrap;
	}

	/* Bootstrap gives the navbar a 50px minimum and puts the items at its top,
	   which sat the menu 7px above the centre line of the search and the
	   language button. */
	header .nav-copy .navbar {
		min-height: 0;
	}

	/* The language switcher is the menu's Polylang item. It leaves the menu for
	   the last column as a button of its own; the list and the navbar give up
	   their positioning so the item places itself against <header>. */
	header .nav-copy .navbar,
	header .nav-copy .navbar-collapse,
	header .nav-copy .navbar-nav {
		position: static;
	}

	header .nav-copy .navbar-nav > li.pll-parent-menu-item {
		position: absolute;
		top: 50%;
		right: max(15px, calc((100% - 1140px) / 2));
		transform: translateY(-50%);
	}

	header .navigation .navbar-default .navbar-nav > li.pll-parent-menu-item > a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: 40px;
		padding: 0 10px;
		border: 1px solid rgba(255, 255, 255, 0.16);
		border-radius: 9px;
		font-size: 14px;
	}

	header .navigation .navbar-default .navbar-nav > li.pll-parent-menu-item > a::before {
		content: "";
		width: 16px;
		height: 16px;
		background-color: currentColor;
		-webkit-mask: var(--ss-languages-icon) center / contain no-repeat;
		mask: var(--ss-languages-icon) center / contain no-repeat;
	}

	header .nav-copy .navbar-nav > li.pll-parent-menu-item > .dropdown-menu {
		left: auto;
		right: 0;
	}
}

/* Phones: the burger joins the logo row, the search goes under it. */
@media (max-width: 768px) {
	header {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"logo   nav"
			"search search"
			"paste  paste";
	}

	header .top-header .flex-left {
		padding: 12px 0;
		margin: 0;
	}

	header .logo img {
		height: 36px;
	}

	header .top-header .flex-right {
		justify-self: stretch;
		width: 100%;
		margin: 0 0 12px;
	}

	header .navigation > .container > .flex-wrap > .flex-left {
		padding: 0;
		border-top: 0;
	}

	header .navbar-toggle.button-white {
		display: inline-grid;
		place-items: center;
		width: 42px;
		height: 42px;
		border-radius: var(--ss-radius);
		font-size: 22px;
	}

	header .navigation .nav-paste {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	header .navigation .nav-paste:has(.collapse:not(.in)) {
		border-top: 0;
	}
}

/* --- Menu ----------------------------------------------------------------- */

/* The parent's inline CSS colours hover and the current item with the accent
   — blue, which on night drops to 2.9:1 — so these selectors carry
   .navigation to outrank it. The current page is marked by white text alone,
   as in design D; a pill answers the pointer. */
.navigation .navbar-default .navbar-nav li a {
	color: var(--ss-on-night);
	border-radius: 9px;
	padding-left: 12px;
	padding-right: 12px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.navigation .navbar-default .navbar-nav > li:first-child > a {
	padding-left: 12px;
}

@media (min-width: 768px) {
	/* Bootstrap's 15px above and below made the pill taller than the text. */
	.navigation .navbar-default .navbar-nav > li > a {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

.navigation .navbar-default .navbar-collapse {
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.navigation .navbar-default .navbar-nav li a:hover,
.navigation .navbar-default .navbar-nav li a:focus,
.navigation .navbar-default .navbar-nav .open > a,
.navigation .navbar-default .navbar-nav .open > a:hover,
.navigation .navbar-default .navbar-nav .open > a:focus {
	color: #ffffff;
	background: rgba(156, 153, 231, 0.18);
}

.navigation .navbar-default .navbar-nav li.current_page_item > a,
.navigation .navbar-default .navbar-nav li.current_page_item > a:visited,
.navigation .navbar-default .navbar-nav li.current_page_ancestor > a,
.navigation .navbar-default .navbar-nav li.current_page_ancestor > a:visited {
	color: #ffffff;
}

/* Dropdowns open as white cards under the bar. */
.navigation .dropdown-menu {
	background: var(--ss-paper);
	border-radius: 12px;
	padding: 8px;
	margin-top: 6px;
	box-shadow: 0 18px 40px -12px rgba(0, 1, 34, 0.45);
}

.navigation .navbar-default .navbar-nav .dropdown-menu li a,
.navigation .navbar-default .navbar-nav .open .dropdown-menu > li > a {
	color: var(--ss-ink);
	padding: 8px 12px;
	border-radius: 8px;
	background: transparent;
}

.navigation .navbar-default .navbar-nav .dropdown-menu li a:hover,
.navigation .navbar-default .navbar-nav .dropdown-menu li.current_page_item > a,
.navigation .navbar-default .navbar-nav .dropdown-menu li.current-lang > a,
.navigation .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
	color: var(--ss-blue);
	background: var(--ss-blue-wash);
}

/* Burger and account icons */
.navbar-toggle,
.special-action a {
	color: var(--ss-on-night-muted);
}

.navbar-toggle:hover,
.special-action a:hover {
	color: #ffffff;
}

.navigation .navbar-toggle.button-white {
	border-color: rgba(255, 255, 255, 0.16);
	color: var(--ss-on-night);
	background: transparent;
}

.navigation .navbar-toggle.button-white:hover {
	background: rgba(156, 153, 231, 0.18);
	color: #ffffff;
}

/* On phones the theme pastes the menu under the bar; it stays on night. */
@media (max-width: 769px) {
	.navigation .nav-paste .navbar-nav {
		margin: 8px 0 4px;
	}

	.navigation .navbar-default .navbar-nav .dropdown-menu {
		background: transparent;
		box-shadow: none;
		padding: 0 0 0 12px;
		margin: 0;
	}

	.navigation .navbar-default .navbar-nav .dropdown-menu li a,
	.navigation .navbar-default .navbar-nav .open .dropdown-menu > li > a {
		color: var(--ss-on-night-muted);
	}

	.navigation .navbar-default .navbar-nav .dropdown-menu li a:hover,
	.navigation .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
		color: #ffffff;
		background: rgba(156, 153, 231, 0.18);
	}
}

/* --- Search ---------------------------------------------------------------

   A dark glass field with the icon inside, as in design D. There is no
   visible button: Enter submits, and the theme's "Search" link stays for
   screen readers. The store suggestions still open below as a white card. */

header .main-search::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 12px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: var(--ss-on-night-muted);
	-webkit-mask: var(--ss-search-icon) center / contain no-repeat;
	mask: var(--ss-search-icon) center / contain no-repeat;
	pointer-events: none;
}

header .main-search input,
header .main-search input:focus,
header .main-search input:active,
header .main-search input:focus:active {
	width: 100%;
	height: 40px;
	min-height: 0;
	padding: 0 12px 0 38px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-size: 14px;
	box-shadow: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

header .main-search input::placeholder {
	color: var(--ss-on-night-muted);
	opacity: 1;
}

header .main-search input:hover {
	border-color: rgba(255, 255, 255, 0.28);
}

header .main-search input:focus {
	border-color: rgba(204, 219, 251, 0.6);
	background: rgba(255, 255, 255, 0.1);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(53, 65, 245, 0.35);
}

header .main-search a.submit-form {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

header .store-search-spin {
	color: var(--ss-on-night-muted);
}

.store-search-results {
	top: calc(100% + 8px);
	border-radius: 12px;
	box-shadow: 0 18px 40px -12px rgba(0, 1, 34, 0.45);
}

@media (max-width: 768px) {
	header .main-search input,
	header .main-search input:focus,
	header .main-search input:active,
	header .main-search input:focus:active {
		height: 44px;
		font-size: 15px;
	}
}

/* ==========================================================================
   Home hero

   Printed by softsaver_home_hero() between the header and <main>. It carries
   the header's night straight down, so bar and hero read as one dark band,
   and draws the ONLYOFFICE glows with gradients: a violet pool low on the
   left, deep blue high on the right, and a blurred diagonal band between —
   no image files.
   ========================================================================== */

.ss-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 64px 0 76px;
	text-align: center;
	color: var(--ss-on-night);
	/* The first layer fades the top edge into the header's flat night, so the
	   glows start below the bar instead of meeting it in a seam. */
	background:
		linear-gradient(180deg, var(--ss-night) 0, rgba(19, 20, 47, 0) 120px),
		radial-gradient(55% 70% at 6% 100%, rgba(98, 2, 253, 0.42), transparent 70%),
		radial-gradient(70% 60% at 82% 18%, rgba(0, 8, 105, 0.95), transparent 72%),
		radial-gradient(45% 50% at 50% 115%, rgba(80, 18, 162, 0.5), transparent 70%),
		var(--ss-night);
}

.ss-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -20%;
	right: -20%;
	top: 34%;
	height: 56%;
	pointer-events: none;
	background: linear-gradient(90deg, var(--ss-violet), var(--ss-night-glow) 55%, transparent);
	filter: blur(80px);
	opacity: 0.7;
	transform: rotate(-9deg);
}

/* The parent hides .screen-reader-text with display: none, which hides it
   from screen readers too. Here it is visually hidden only. */
.ss-hero .screen-reader-text {
	display: block;
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ss-hero-title {
	max-width: 18ch;
	margin: 0 auto 16px;
	color: var(--ss-on-night);
	font-family: var(--ss-font-head);
	font-size: 56px;
	line-height: 64px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.ss-hero-lead {
	max-width: 58ch;
	margin: 0 auto 32px;
	color: var(--ss-on-night-muted);
	font-family: var(--ss-font-head);
	font-size: 18px;
	line-height: 28px;
	text-wrap: pretty;
}

/* A white field with the submit inside, like the header search but larger.
   Blue: searching is a control, not the coupon action. */
.ss-hero-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(640px, 100%);
	height: 60px;
	margin: 0 auto 28px;
	padding: 6px 6px 6px 18px;
	background: var(--ss-paper);
	border-radius: 12px;
	box-shadow: 0 20px 50px -20px rgba(0, 1, 34, 0.8);
}

.ss-hero-search::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: #9092a6;
	-webkit-mask: var(--ss-search-icon) center / contain no-repeat;
	mask: var(--ss-search-icon) center / contain no-repeat;
}

.ss-hero-search input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ss-ink);
	font-family: var(--ss-font-text);
	font-size: 16px;
}

.ss-hero-search input::placeholder {
	color: #9092a6;
}

.ss-hero-search:focus-within {
	box-shadow: 0 20px 50px -20px rgba(0, 1, 34, 0.8), 0 0 0 3px rgba(53, 65, 245, 0.45);
}

/* Orange, as in design D: on the home page finding a coupon is the action. */
.ss-hero-search button {
	flex: none;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 9px;
	background: var(--ss-cta);
	background-image: var(--ss-cta-fill);
	color: #ffffff;
	font-family: var(--ss-font-head);
	font-size: 16px;
	font-weight: 600;
	box-shadow: var(--ss-cta-glow);
	transition: filter 0.15s ease;
}

.ss-hero-search button:hover {
	filter: brightness(1.08);
}

/* Category chips: glass on night, the ONLYOFFICE tag treatment. */
.ss-hero-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 900px;
	margin: 0 auto;
}

.ss-hero-categories a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px 0 12px;
	border: 1px solid var(--ss-glass-edge);
	border-radius: 9px;
	background: var(--ss-glass-sheen), var(--ss-glass);
	color: #ffffff;
	font-family: var(--ss-font-head);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ss-hero-categories a:hover,
.ss-hero-categories a:focus-visible {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.4);
}

.ss-hero-categories i {
	color: var(--ss-on-night-muted);
	font-size: 17px;
}

.ss-hero-count {
	color: var(--ss-on-night-muted);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
	/* On a phone the hero's search sits a thumb's width below the header's:
	   one is enough, and the larger one stays. */
	.ss-hero-page .top-header .flex-right {
		display: none;
	}

	.ss-hero-page .top-header .flex-wrap .flex-left {
		margin-bottom: 0;
	}

	.ss-hero {
		padding: 36px 0 44px;
	}

	.ss-hero-title {
		font-size: 34px;
		line-height: 42px;
	}

	.ss-hero-lead {
		font-size: 16px;
		line-height: 24px;
		margin-bottom: 24px;
	}

	.ss-hero-search {
		height: 54px;
		padding-left: 14px;
	}

	.ss-hero-search input {
		height: 42px;
		font-size: 15px;
	}

	.ss-hero-search button {
		height: 42px;
		padding: 0 14px;
		font-size: 14px;
	}

	/* One swipeable row instead of four stacked rows of chips. */
	.ss-hero-categories {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin: 0 -15px;
		padding: 0 15px 4px;
		scrollbar-width: none;
	}

	.ss-hero-categories::-webkit-scrollbar {
		display: none;
	}
}

/* --- Featured coupon in the hero -----------------------------------------

   softsaver_hero_featured_coupon(): design D's wide glass panel under the
   chips — logo on a white tile, the type label, the title, and the coupon
   button on the right. The button is the theme's own, redrawn for night: the
   masked code sits on glass instead of the light wash. */

.ss-hero-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	align-items: center;
	gap: 16px 32px;
	width: min(860px, 100%);
	margin: 56px auto 0;
	padding: 28px 32px;
	text-align: left;
	border: 1px solid var(--ss-glass-edge);
	border-radius: 24px;
	background: var(--ss-glass-sheen), rgba(117, 114, 222, 0.28);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.ss-hero-feature-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ss-hero-feature-logo {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ss-paper);
}

.ss-hero-feature-logo img {
	display: block;
	width: auto;
	max-width: 140px;
	height: 100%;
	object-fit: contain;
}

/* The label is ONLYOFFICE's eyebrow pill: tracked capitals on blue. */
.ss-hero-feature .badges {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ss-blue);
	color: #ffffff;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ss-hero-feature-title {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.ss-hero-feature-title a,
.ss-hero-feature-title a:visited {
	color: #ffffff;
}

.ss-hero-feature-title a:hover {
	color: var(--ss-on-night-muted);
}

.ss-hero-feature-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ss-on-night-muted);
	font-size: 14px;
}

/* Inline, not flex: categories are links joined by ", " text, and a flex gap
   put a space before each comma. */
.ss-hero-feature-meta li i {
	margin-right: 6px;
}

.ss-hero-feature-meta a,
.ss-hero-feature-meta a:visited {
	color: var(--ss-on-night-muted);
}

.ss-hero-feature-meta a:hover {
	color: #ffffff;
}

/* The checked mark's deep teal is for white ground; on night, the light one. */
.ss-hero-feature .ss-checked {
	margin-top: 10px;
	color: #5fd9de;
}

.ss-hero-feature .coupon-action-button.header-alike {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.07);
}

.ss-hero-feature .coupon-action-button .partial-code {
	background: transparent;
	color: #ffffff;
}

.ss-hero-feature .coupon-action-button:hover .partial-code {
	color: #ffffff;
}

@media (max-width: 767px) {
	.ss-hero-feature {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 32px;
		padding: 22px;
		border-radius: 20px;
	}

	.ss-hero-feature-title {
		font-size: 21px;
		line-height: 28px;
	}
}

/* The first KingComposer row held the category list and the featured slider;
   with both now in the hero, the row is empty and goes. */
.ss-has-hero.ss-hero-featured main .kc_row:has(.categories-list) {
	display: none;
}

/* With the chips above, the KingComposer category list that opens the home
   page is a duplicate: it goes, and the featured coupon takes the full row as
   a wide card — image left, offer right — instead of stretching its 750px
   image. The theme's carousel measures the column when it starts, so the new
   width is the one it uses. */
.ss-has-hero main .kc_column:has(> .kc-col-container > .white-block > .categories-list) {
	display: none;
}

.ss-has-hero main .kc_column:has(> .kc-col-container > .featured-coupons) {
	width: 100%;
}

@media (min-width: 768px) {
	.ss-has-hero .featured-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
	}

	.ss-has-hero .featured-item > a img {
		display: block;
		width: 100%;
		height: auto;
	}

	.ss-has-hero .featured-caption.flex-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding: 32px 40px;
	}

	.ss-has-hero .featured-caption .flex-left,
	.ss-has-hero .featured-caption .flex-right {
		width: 100%;
		margin: 0;
	}

	.ss-has-hero .featured-caption .flex-right {
		max-width: 260px;
	}
}

.ss-has-hero .featured-caption h3 {
	margin: 12px 0 14px;
	white-space: normal;
	font-size: 26px;
	line-height: 34px;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.featured-bottom-meta,
.featured-bottom-meta a,
.featured-bottom-meta a:visited,
.featured-bottom-meta .expire {
	color: var(--ss-muted);
	font-size: 13px;
	text-transform: none;
}

.featured-bottom-meta a:hover {
	color: var(--ss-blue);
}

/* ==========================================================================
   Typography

   One family (Archivo, set through theme options) with a clear scale. Labels
   are sentence case: the parent theme shouts them in all caps, which reads as
   chrome rather than information.
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.01em;
	color: var(--ss-ink);
}

h1 { font-size: 39px; line-height: 1.15; }
h2 { font-size: 31px; line-height: 1.2; }
h3 { font-size: 25px; line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.3; }

body,
p {
	font-size: 16px;
	line-height: 1.6;
}

/* Keep body copy inside a comfortable measure. */
.coupon-box .description p,
.entry-content p {
	max-width: 68ch;
}

/* Field labels are information, not chrome. The parent theme sets them in
   tracked-out capitals, which makes "Search for" shout as loudly as the
   coupons themselves. */
label {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	color: var(--ss-muted);
}

/* ==========================================================================
   Coupon card

   The card is the only reason anyone visits, so the hierarchy is explicit:
   title, then the action, then everything else quietly.
   ========================================================================== */

/* Every white block — coupon cards, sidebar widgets, store and category
   headers, the featured slider — is one kind of panel: white, rounded, lifted
   by a soft blue shadow instead of a border, as on onlyoffice.com. `clip`
   rounds images and overlays inside without making a scroll container. */
.white-block {
	border-radius: var(--ss-radius-card);
	box-shadow: var(--ss-shadow);
	overflow: clip;
	/* The parent's 50px between panels made a sidebar of four widgets a
	   scroll of its own. */
	margin-bottom: 30px;
}

.coupon-box.white-block {
	background: var(--ss-paper);
	border: 0;
	/* The parent spaces cards 50px apart, which on a phone left two coupons
	   per screen. */
	margin-bottom: 16px;
	transition: box-shadow 0.2s ease;
}

/* The shadow deepens under the pointer: the card answers, the page stays
   still. */
.coupon-box.white-block:hover {
	box-shadow: 0 16px 34px -8px rgba(109, 145, 199, 0.28);
}

.coupon-image {
	border-color: #eef0f4;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ss-paper);
}

/* Cards show store logos (coupon_listing_image in functions.php). The parent
   crops its image to fill the box, which pressed wordmarks against the edge;
   a logo is contained with room around it instead. */
.coupon-box .coupon-image img {
	max-width: calc(100% - 28px);
	max-height: calc(100% - 28px);
	object-fit: contain;
}

/* In the grid the image is the card's top edge; the card's own radius shapes it. */
.coupon-grid .coupon-image {
	height: 150px;
	border-width: 0 0 1px;
	border-radius: 0;
}

.coupon-grid .coupon-image img {
	max-width: 56%;
	max-height: 60%;
}

/* In the grid, expire.php prints the checked mark before the image, so it
   pushed the image down on checked cards only and the row fell out of line.
   Mark and expiry date become pills over the image's top corners. */
.coupon-grid .ss-checked,
.coupon-grid .expire {
	position: absolute;
	z-index: 1;
	top: 12px;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ss-paper);
	box-shadow: 0 2px 8px -2px rgba(19, 20, 47, 0.18);
	font-size: 12px;
	line-height: 18px;
}

.coupon-grid .ss-checked {
	left: 12px;
}

.coupon-grid .expire {
	right: 12px;
}

/* On an expired grid card the label straddles the line under the 150px
   image, like a tab, and leaves the logo readable. */
.coupon-grid .expired-overlay .expired-label {
	top: 150px;
	left: 50%;
	right: auto;
	transform: translate(-50%, -50%);
}

.coupon-box h4,
.coupon-box h4 a {
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ss-ink);
}

.coupon-box h4 a:hover {
	color: var(--ss-blue);
}

.coupon-box-description {
	color: var(--ss-muted);
	font-size: 14px;
	line-height: 1.6;
}

a.read-coupon-more,
a.read-coupon-more:visited,
.show-more,
.show-less {
	color: var(--ss-blue);
}

a.read-coupon-more:hover {
	color: var(--ss-blue-deep);
}

/* The parent keeps list titles on one line and cuts them with an ellipsis. Our
   titles carry the offer itself — "20% off, $79 instead of $99 per year" — so
   the cut removed exactly the part a visitor reads the card for. Two lines fit
   every current title on a phone; anything longer still ends in an ellipsis. */
.coupon-list .flex-middle h4,
.coupon-grid h4 {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* The parent leaves 27px under the usage counter; the title belongs closer. */
.coupon-list .flex-middle ul.coupon-top-meta {
	margin-bottom: 8px;
}

/* Usage counter and card meta: present, but never competing with the title or
   the button. */
.coupon-top-meta .used,
.coupon-bottom-meta,
.coupon-bottom-meta a {
	color: var(--ss-muted);
	font-size: 13px;
}

.coupon-bottom-meta a:hover {
	color: var(--ss-blue);
}

/* --- The action button, the one loud element ---------------------------- */

/* The parent theme builds this button as a masked reveal: .partial-code sits in
   the flow and sets the size, while .code-text is absolutely positioned over
   its left 80%. That mechanism stays; the label is only stretched over the
   dashed border so the two read as one object, a code with a tab over it.
   The flat orange comes from action_btn_bg; the gradient and glow are laid
   over it. */
.coupon-action-button.header-alike {
	border: 1.5px dashed var(--ss-cta-edge);
	border-radius: var(--ss-radius);
	background: var(--ss-cta-wash);
	font-family: var(--ss-font-head);
}

/* A deal has no code behind it: the button is the label alone. */
.coupon-action-button.header-alike:has(> .code-text-full) {
	border: 0;
	background: transparent;
}

.coupon-action-button .code-text,
.coupon-action-button .code-text-full,
a.coupon-code-modal {
	background-image: var(--ss-cta-fill);
	box-shadow: var(--ss-cta-glow);
	font-family: var(--ss-font-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0;
	transition: filter 0.15s ease, width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.coupon-action-button .code-text,
.coupon-action-button .code-text-full {
	padding: 12px 16px;
}

.coupon-action-button .code-text {
	top: -1.5px;
	bottom: -1.5px;
	left: -1.5px;
	width: calc(78% + 1.5px);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--ss-radius) 0 0 var(--ss-radius);
}

.coupon-action-button .code-text-full {
	border-radius: var(--ss-radius);
}

/* On hover the tab pulls back and shows more of the code — the same promise
   the parent's mask makes, answered by the pointer. */
.coupon-action-button.header-alike:hover .code-text,
.coupon-action-button.header-alike:focus-visible .code-text {
	width: calc(64% + 1.5px);
}

.coupon-action-button.header-alike:hover .code-text,
.coupon-action-button.header-alike:hover .code-text-full,
a.coupon-code-modal:hover {
	filter: brightness(1.08);
}

/* The parent theme appends the tail of the real code next to the button behind
   a hatched gradient, as proof that a code exists. The intent is sound — it
   answers "is there actually a code behind this button?" — but rendered as
   clipped text on a striped background it reads as a layout fault.

   Setting it in the code face and prefixing dots makes it legible as what it
   is: a masked code. */
.coupon-action-button .partial-code {
	padding: 12px 14px;
	line-height: 20px;
	font-family: var(--ss-code);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ss-ink);
	/* The theme's diagonal hatch made the exposed characters look like a
	   rendering fault. A flat wash reads as a deliberately masked code. */
	background: var(--ss-cta-wash);
}

/* The code once revealed. Given a monospace face and room to breathe it reads
   as something to copy rather than as decoration. */
.coupon-box .coupon-code,
.coupon-box .code,
.coupon-code-wrap {
	font-family: var(--ss-code);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ss-ink);
	background: var(--ss-cta-wash);
	border: 1px dashed var(--ss-cta-edge);
	border-radius: var(--ss-radius);
	padding: 8px 12px;
	/* Makes a double-click select the whole code rather than one word. */
	user-select: all;
}

/* --- Trust mark --------------------------------------------------------- */

/* Rendered by the child override of includes/coupon-box/expire.php. Quiet on
   purpose: it is reassurance, not a badge competing for attention. */
.ss-checked {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--ss-teal-deep);
	white-space: nowrap;
	cursor: help;
}

/* On the coupon's own page it sits above the description, where the visitor is
   deciding whether to trust the offer — so it gets a little more presence than
   the same mark in a listing, without turning into a banner. */
.ss-checked-single {
	margin: 0 0 16px;
	padding: 6px 12px 6px 10px;
	border-left: 2px solid var(--ss-teal);
	background: var(--ss-teal-wash);
	border-radius: 0 var(--ss-radius) var(--ss-radius) 0;
	font-size: 13px;
	font-weight: 600;
}

/* --- Badges ------------------------------------------------------------- */

/* The parent sets badges in 9px capitals; as pills in the interface face they
   read as labels without shouting. Colours come from the badge options. */
.badges,
.expire-badge,
.exclusive-badge,
.sale-badge {
	border-radius: 999px;
	padding: 5px 10px;
	font-family: var(--ss-font-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Some badge strings are lowercase in the source ("online sale"), others are
   capitalised; the first letter is raised so both read as sentence case. */
.badges::first-letter {
	text-transform: uppercase;
}

.expire {
	color: var(--ss-muted);
}

/* An expired coupon is not an error — it is history that still carries SEO
   value. Grey it out rather than alarming anyone with red. */
.is-expired,
.expired-stamp {
	color: var(--ss-muted);
}

/* The parent washes an expired card with 90% white, which leaves it nearly
   invisible — a list of a store's past offers read as a column of empty
   boxes. Lighter, the card stays legible as history while the overlay still
   blocks the button. The label comes from the child's is-expired.php. */
.expired-overlay {
	background: rgba(243, 244, 247, 0.62);
}

.expired-overlay .expired-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 6px 14px;
	background: var(--ss-paper);
	border: 1px solid var(--ss-edge);
	border-radius: var(--ss-radius);
	color: var(--ss-muted);
	font-family: var(--ss-font-head);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

/* The overlay already makes the button unclickable; left visible under the
   label it reads as a half-covered control. The label takes its place. */
.white-block:has(> .expired-overlay) .coupon-action-button {
	visibility: hidden;
}

/* On a phone the card stacks and its middle is the title, so the label goes to
   the top edge, between the usage counter and the expiry date. */
@media (max-width: 767px) {
	.expired-overlay .expired-label {
		top: 16px;
		transform: translateX(-50%);
	}
}

/* In a list the label sits where the button is, as the parent's stamp did. */
@media (min-width: 768px) {
	.coupon-list .expired-overlay .expired-label {
		left: auto;
		right: 20px;
		transform: translateY(-50%);
	}
}

/* ==========================================================================
   Code modal

   Couponis opens the store in a new tab and shows the code here (#showCode,
   filled by the show_code AJAX call). The markup is the plugin's; this is
   only its look: a white card over a blurred night scrim, the code in a
   dashed box that echoes the button that opened it.
   ========================================================================== */

.modal-backdrop {
	background: #000122;
}

.modal-backdrop.in {
	opacity: 0.5;
}

@supports (backdrop-filter: blur(1px)) {
	.modal-backdrop.in {
		opacity: 1;
		background: rgba(0, 1, 34, 0.5);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}
}

@media (min-width: 768px) {
	#showCode .modal-dialog {
		width: 480px;
	}
}

#showCode .modal-content {
	border-radius: var(--ss-radius-card);
	box-shadow: 0 30px 70px -20px rgba(0, 1, 34, 0.5);
	overflow: hidden;
}

#showCode .modal-header {
	border-bottom: 0;
	padding: 28px 56px 0;
}

#showCode .modal-header h4 {
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.modal .close {
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	font-size: 22px;
	font-weight: 400;
	color: var(--ss-muted);
	background: transparent;
	border-radius: 8px;
	text-shadow: none;
	opacity: 1;
}

.modal .close:hover,
.modal .close:focus-visible {
	color: var(--ss-ink);
	background: var(--ss-blue-wash);
}

#showCode .modal-body {
	padding: 16px 28px 24px;
}

#showCode .store-image img {
	max-height: 88px;
	width: auto;
}

/* On a phone the share row and the footer have no room side by side. */
@media (max-width: 480px) {
	#showCode .modal-header {
		padding: 24px 48px 0;
	}

	#showCode .modal-body,
	#showCode .modal-body-share,
	#showCode .modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	#showCode .modal-body-share .flex-wrap,
	#showCode .modal-footer > ul {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		text-align: center;
	}

	#showCode .modal-body-share .flex-wrap > div {
		margin: 0;
	}
}

/* The code itself: large, in the code face, in the same dashed box as the
   button's tail. A click copies it — the cursor says so. */
input.coupon-code-modal,
input.coupon-code-modal:focus,
input.coupon-code-modal:hover,
input.coupon-code-modal:active,
input.coupon-code-modal:focus:active {
	width: 100%;
	height: 60px;
	margin: 16px auto 0;
	padding: 0 16px;
	background: var(--ss-cta-wash);
	border: 1.5px dashed var(--ss-cta-edge);
	border-radius: 12px;
	color: var(--ss-ink);
	font-family: var(--ss-code);
	font-size: 24px;
	font-weight: 600;
	line-height: 60px;
	letter-spacing: 0.08em;
	cursor: copy;
}

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 {
	width: 70%;
	margin: 16px auto 0;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--ss-radius);
	color: #ffffff;
	font-size: 16px;
}

.coupon-code-copied {
	margin: 10px 0 0;
	color: var(--ss-muted);
	font-size: 13px;
	text-transform: none;
}

.coupon-code-copied a {
	color: var(--ss-blue);
	font-weight: 600;
}

/* "Did it work?" — two quiet round buttons instead of large coloured icons. */
.coupon-works {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--ss-edge);
}

.coupon-works span {
	display: inline;
	color: var(--ss-muted);
	font-size: 14px;
}

.coupon-works .feedback-wrap {
	display: flex;
	gap: 8px;
	margin: 0;
}

.coupon-works a {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border: 1px solid var(--ss-edge);
	border-radius: 999px;
	font-size: 17px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.coupon-works .icon-like {
	color: #1f8a4c;
}

.coupon-works .icon-dislike {
	color: #c62828;
}

.coupon-works a:hover:has(.icon-like) {
	border-color: #1f8a4c;
	background: #eaf6ef;
}

.coupon-works a:hover:has(.icon-dislike) {
	border-color: #c62828;
	background: #fcecec;
}

#showCode .modal-body-share {
	border-top: 1px solid var(--ss-edge);
	padding: 14px 28px;
}

#showCode .modal-content-action {
	color: var(--ss-blue);
	font-family: var(--ss-font-head);
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

#showCode .post-share a {
	border-radius: 8px;
}

#showCode .modal-footer {
	border-top: 1px solid var(--ss-edge);
	background: var(--ss-wash);
	padding: 14px 28px;
}

#showCode .modal-footer > ul {
	color: var(--ss-muted);
}

#showCode .modal-footer a {
	color: var(--ss-muted);
}

#showCode .modal-footer a strong,
#showCode .modal-footer a:hover {
	color: var(--ss-blue);
}

/* ==========================================================================
   Secondary controls

   Every control that is not the coupon action is blue and stepped down, so
   the orange keeps its meaning.
   ========================================================================== */

/* The sidebar search and the store link are solid in the parent theme, so on
   a listing page three or four controls compete with the one button that
   earns money. Outlined, they stay available without shouting. */
.btn.submit-form,
.visit-store,
.button-white {
	background: transparent;
	color: var(--ss-blue);
	border: 1px solid var(--ss-blue);
	border-radius: var(--ss-radius);
	font-family: var(--ss-font-head);
	font-weight: 600;
}

.btn.submit-form:hover,
.visit-store:hover,
.button-white:hover {
	background: var(--ss-blue-wash);
	color: var(--ss-blue-deep);
}

/* The burger shares .button-white, but it sits on the night bar. */
.navigation .navbar-toggle.button-white {
	border-color: var(--ss-night-edge);
	color: var(--ss-on-night);
	background: transparent;
}

.navigation .navbar-toggle.button-white:hover {
	background: rgba(156, 153, 231, 0.16);
	color: #ffffff;
}

/* A store or category widget with nothing to list still prints its title in a
   white box — on a language with no published coupons yet, that is a column
   of empty boxes down the sidebar. */
.widget_widget_categories:not(:has(li)),
.widget_widget_stores:not(:has(.widget-content a)) {
	display: none;
}

/* ==========================================================================
   Page furniture

   Everything around the coupons: page title bands, store and category
   headers, the store and category indexes, sidebar widgets, home page boxes,
   the subscribe band and the footer. The rhythm follows onlyoffice.com: night
   at the top of every page, light for content, night again for the subscribe
   band, a light footer.
   ========================================================================== */

/* --- Labels the parent sets in capitals ----------------------------------- */

/* These strings are title case in the source; only CSS capitalised them. The
   ones capitalised in the source itself are rewritten in the .po files. */
.btn,
a.btn,
.form-submit #submit,
.form-submit a,
.pagination a,
.pagination > span,
.tagcloud a,
.search-type,
.carousel-wrap .white-block-content a,
.categories-carousel-list .owl-item a > div,
.taxonomy-count p,
a.visit-store,
.coupon-list .used,
.coupon-list .expire,
.small-action,
.store-title,
.category-block span,
.simple-slider-caption p {
	text-transform: none;
	letter-spacing: 0;
}

.btn,
a.btn,
.form-submit #submit,
a.visit-store {
	border-radius: var(--ss-radius);
	font-family: var(--ss-font-head);
	font-weight: 600;
}

/* --- Page title band ------------------------------------------------------ */

/* The white strip under the header becomes the tail of the night header —
   every inner page opens on the same dark band as the home hero, smaller. */
.main-title {
	padding: 26px 0 30px;
	border-top: 0;
	box-shadow: none;
	background:
		linear-gradient(180deg, var(--ss-night) 0, rgba(19, 20, 47, 0) 40px),
		radial-gradient(50% 180% at 92% 0%, rgba(0, 8, 105, 0.9), transparent 70%),
		radial-gradient(40% 200% at 0% 100%, rgba(80, 18, 162, 0.45), transparent 70%),
		var(--ss-night);
}

.main-title h1 {
	margin: 0;
	color: var(--ss-on-night);
	font-size: 32px;
	line-height: 40px;
	font-weight: 700;
}

.main-title .breadcrumb {
	margin: 0;
	padding: 0;
	background: transparent;
}

.main-title .breadcrumb li,
.main-title .breadcrumb a {
	color: var(--ss-on-night-muted);
}

.main-title .breadcrumb a:hover {
	color: #ffffff;
}

.main-title .breadcrumb > li:last-child {
	color: #ffffff;
}

.main-title .breadcrumb > li + li::before {
	color: rgba(204, 219, 251, 0.45);
}

/* --- Store and category headers ------------------------------------------- */

.store-logo {
	border-color: var(--ss-edge);
	border-radius: 12px;
	overflow: hidden;
	background: var(--ss-paper);
}

/* On a phone the parent stretches the logo box to the full width at half its
   height — 150px of white before the store's name. */
@media (max-width: 768px) {
	.tax-coupon-store .taxonomy-header .store-logo {
		height: 104px;
		padding-bottom: 0;
	}

	.tax-coupon-store .taxonomy-header .store-logo img {
		max-height: 72px;
	}
}

.taxonomy-header h1 {
	font-size: 30px;
	line-height: 38px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

a.visit-store {
	padding: 11px 20px;
	font-size: 15px;
}

/* The category's icon tile: night with the violet glow instead of a flat
   accent square, so the header ties back to the band above it. */
.tax-coupon-category .taxonomy-header .category-icon-wrap {
	background:
		radial-gradient(90% 90% at 100% 0%, rgba(53, 65, 245, 0.55), transparent 70%),
		radial-gradient(90% 90% at 0% 100%, rgba(98, 2, 253, 0.5), transparent 70%),
		var(--ss-night);
	color: #ffffff;
}

.tax-coupon-category .taxonomy-header .category-icon-wrap i {
	font-size: 30px;
}

.listing-style {
	color: var(--ss-muted);
}

/* --- Store index ----------------------------------------------------------- */

/* Couponis builds each store as two white blocks, logo and name. They are
   joined into one card: the logo block keeps the top of the shadow, the name
   block the bottom. */
.store-block.white-block-small-margin {
	margin-bottom: 0;
	border-radius: var(--ss-radius-card) var(--ss-radius-card) 0 0;
	clip-path: inset(-24px -24px 0 -24px);
}

.store-block.store-title {
	border-radius: 0 0 var(--ss-radius-card) var(--ss-radius-card);
	border-top: 1px solid var(--ss-edge);
	margin-bottom: 30px;
	font-family: var(--ss-font-head);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.store-block.store-title a {
	color: var(--ss-ink);
}

.store-block.store-title a:hover {
	color: var(--ss-blue);
}

.store-block.store-title .white-block-content {
	padding: 10px 12px;
}

/* Names run from one line ("Genie9") to three ("Livetecs LLC Promo Codes,
   Coupons & Deals"), so the floated columns left a ragged row. As a flex row
   every card in it takes the height of the tallest. */
.row:has(> .col-sm-2 > .store-block) {
	display: flex;
	flex-wrap: wrap;
}

.col-sm-2:has(> .store-block) {
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
}

.col-sm-2:has(> .store-block) > .store-block.store-title {
	flex: 1;
	margin-bottom: 0;
}

/* Bootstrap drops the six columns to one on phones, which made a logo the
   width of the screen and the index fifteen screens long. Two per row. */
@media (max-width: 767px) {
	.col-sm-2:has(> .store-block) {
		float: left;
		width: 50%;
	}

	.col-sm-2:has(> .store-block) {
		margin-bottom: 16px;
	}
}

/* --- Category index -------------------------------------------------------- */

.category-block span {
	font-family: var(--ss-font-head);
	font-size: 15px;
	font-weight: 600;
}

.category-block .white-block {
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* The parent floods the whole card with the accent on hover; the card lifts
   instead, as coupon cards do. */
.category-block:hover .white-block {
	background: var(--ss-paper);
	color: var(--ss-ink);
	box-shadow: 0 16px 34px -8px rgba(109, 145, 199, 0.28);
}

/* --- Sidebar widgets ------------------------------------------------------- */

.widget-title h4 {
	font-size: 16px;
	font-weight: 700;
}

.form-control,
.styled-select select,
.select2-container .select2-selection--single {
	border-color: var(--ss-edge);
	border-radius: var(--ss-radius);
	box-shadow: none;
}

.styled-select::after {
	border-radius: 0 var(--ss-radius) var(--ss-radius) 0;
}

/* Search-type toggles: tiles with the icon above the label, the chosen one in
   the accent wash. */
.search-type {
	border-color: var(--ss-edge);
	border-radius: var(--ss-radius);
	padding: 14px 4px 10px;
	font-family: var(--ss-font-head);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-type i {
	color: var(--ss-ink);
}

.search-type:hover,
input[id*="check-type"]:checked + .search-type {
	border-color: var(--ss-blue);
}

input[id*="check-type"]:checked + .search-type {
	background: var(--ss-blue-wash);
	color: var(--ss-blue);
}

input[id*="check-type"]:checked + .search-type i {
	color: var(--ss-blue);
}

/* Numbered badges in "More coupons like this" are counters, not actions. */
.white-block .similar-badge {
	background: var(--ss-night);
	border-radius: 8px;
}

/* --- Home page boxes --------------------------------------------------------- */

/* KingComposer tabs above the coupon list: an underline, not a white box. */
.coupon-tabs .kc_tabs_nav {
	border-bottom: 1px solid var(--ss-edge);
	margin-bottom: 16px;
}

.coupon-tabs .kc_tabs_nav > li > a {
	padding: 12px 16px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--ss-muted);
	font-family: var(--ss-font-head);
	font-size: 15px;
	font-weight: 600;
}

body .coupon-tabs .kc_tabs_nav > .ui-tabs-active,
body .coupon-tabs .kc_tabs_nav > .ui-tabs-active > a {
	background: transparent;
	color: var(--ss-ink);
	border-bottom-color: var(--ss-blue);
}

.coupon-tabs .kc_tabs_nav > li > a:hover {
	color: var(--ss-ink);
}

.coupon-tabs .kc_tabs_nav > li > a i {
	margin-right: 6px;
}

/* KingComposer stacks the tabs into a column on phones; one swipeable row
   keeps them reading as tabs. */
@media (max-width: 767px) {
	.coupon-tabs .kc_tabs_nav {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.coupon-tabs .kc_tabs_nav::-webkit-scrollbar {
		display: none;
	}

	.coupon-tabs .kc_tabs_nav > li {
		flex: none;
		float: none;
		width: auto;
	}

	.coupon-tabs .kc_tabs_nav > li > a {
		white-space: nowrap;
		padding: 12px 12px;
	}
}

/* Service boxes ("Latest coupons", "Fresh updates"). Their colour is an
   inline style saved in the KingComposer content, hence !important — the one
   place this stylesheet needs it. */
.service-icon {
	background: linear-gradient(135deg, var(--ss-blue), var(--ss-violet)) !important;
	color: #ffffff !important;
	box-shadow: 0 10px 22px -10px rgba(53, 65, 245, 0.7);
}

.service h4 {
	font-size: 17px;
	font-weight: 700;
}

.service p {
	color: var(--ss-muted);
}

/* "Trending stores" carousel */
.carousel-wrap .widget-title a {
	color: var(--ss-blue);
	font-family: var(--ss-font-head);
	font-size: 14px;
	font-weight: 600;
}

.stores-carousel-list .owl-item > a,
.stores-carousel-list > a {
	border-color: var(--ss-edge);
	border-radius: 12px;
	overflow: hidden;
}

/* --- Pagination ------------------------------------------------------------- */

.pagination a,
.pagination > span {
	min-width: 40px;
	height: 40px;
	line-height: 40px;
	padding: 0 12px;
	border-radius: 9px;
	font-family: var(--ss-font-head);
	font-weight: 600;
	box-shadow: var(--ss-shadow);
}

.pagination a {
	background: var(--ss-paper);
	color: var(--ss-ink);
}

/* --- Subscribe band ---------------------------------------------------------- */

.footer-subscribe {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 64px 0 56px;
	color: var(--ss-on-night);
	background:
		radial-gradient(50% 120% at 100% 100%, rgba(71, 18, 141, 0.75), transparent 70%),
		radial-gradient(45% 100% at 0% 0%, rgba(0, 8, 105, 0.85), transparent 70%),
		var(--ss-night);
}

/* The parent's inline CSS paints this icon in the accent, which on night is
   2.9:1; the extra class outranks it. */
.footer-subscribe .container i.icon-envelope {
	color: var(--ss-on-night-muted);
	font-size: 40px;
}

.footer-subscribe h4 {
	color: #ffffff;
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
	text-wrap: balance;
}

/* The field and the button as one white bar, like the hero search. */
.footer-subscribe .relative-holder {
	padding: 6px;
	background: var(--ss-paper);
	border-radius: 12px;
	box-shadow: 0 20px 50px -20px rgba(0, 1, 34, 0.8);
}

.footer-subscribe input[type="text"],
.footer-subscribe input[type="text"]:focus,
.footer-subscribe input[type="text"]:active,
.footer-subscribe input[type="text"]:focus:active {
	min-height: 44px;
	padding-right: 140px;
	border: 0;
	background: transparent;
	color: var(--ss-ink);
	font-size: 15px;
	box-shadow: none;
}

.footer-subscribe .btn {
	top: 6px;
	right: 6px;
	height: 44px;
	padding: 0 22px;
	line-height: 44px;
	border-radius: 9px;
	font-size: 15px;
}

.footer-subscribe p {
	color: var(--ss-on-night-muted);
}

.footer-subscribe .ajax-form-result {
	color: #ffffff;
}

/* --- Links in running text --------------------------------------------------- */

/* link_color is the text colour, so that card titles and lists read as text
   rather than a wall of blue. Inside the body of a page or a blog post that
   makes a link invisible, so there it gets the accent and an underline. */
.white-block-single-content p a,
.white-block-single-content li a,
.white-block-single-content td a,
.post-content p a,
.post-content li a,
.post-content td a {
	color: var(--ss-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.white-block-single-content p a:hover,
.white-block-single-content li a:hover,
.white-block-single-content td a:hover,
.post-content p a:hover,
.post-content li a:hover,
.post-content td a:hover {
	color: var(--ss-blue-deep);
}

/* --- Footer ------------------------------------------------------------------ */

.copyrights {
	padding: 22px 0;
	font-size: 14px;
	border-top: 1px solid var(--ss-edge);
}

/* ==========================================================================
   Layout

   On phones the parent theme renders the sidebar first, so the search form
   fills the entire first screen and the coupons — the content — start below
   the fold.
   ========================================================================== */

@media (max-width: 767px) {
	/* On narrow screens the theme's own script moves .search-content out of the
	   content column and appends it to the sidebar column — so the search form
	   ends up above the coupons and a phone shows no coupon at all without
	   scrolling. Reordering the columns cannot fix that, because by then both
	   live in the same column; the order has to be set on the moved element
	   itself. */
	.col-sm-4:has(> .search-content),
	.col-md-4:has(> .search-content) {
		display: flex;
		flex-direction: column;
	}

	.col-sm-4 > .search-content,
	.col-md-4 > .search-content {
		order: -1;
		margin-bottom: var(--ss-gap);
	}

	main {
		margin-top: 16px;
	}
}

/* On a narrow screen the card stacks; the action must stay reachable without
   hunting for it. */
@media (max-width: 575px) {
	.coupon-box .flex-right {
		width: 100%;
		margin-top: 12px;
	}

	.coupon-box .coupon-action,
	.coupon-box .button-action {
		width: 100%;
		text-align: center;
	}

	h1 { font-size: 28px; }
	h2 { font-size: 24px; }
	.coupon-box .coupon-title,
	.coupon-box h3 { font-size: 18px; }
}

/* ==========================================================================
   Accessibility floor
   ========================================================================== */

/* Bootstrap 3 draws the browser's focus ring on every :focus, mouse clicks
   included, so clicking a button or ticking a checkbox leaves a thick dark
   frame around it. The parent theme cancels that for plain links only. Here it
   goes for pointer clicks everywhere Bootstrap sets it; keyboard focus keeps a
   visible ring through :focus-visible below. The selectors mirror Bootstrap's
   own, so they win on specificity rather than by !important. */
.btn:focus:not(:focus-visible),
.btn:active:focus:not(:focus-visible),
.btn.active:focus:not(:focus-visible),
input[type="checkbox"]:focus:not(:focus-visible),
input[type="radio"]:focus:not(:focus-visible),
input[type="file"]:focus:not(:focus-visible) {
	outline: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.btn:focus-visible,
.dropdown-toggle:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
.coupon-action:focus-visible {
	outline: 2px solid var(--ss-blue);
	outline-offset: 2px;
}

/* On the night bands a blue ring is 2.3:1 against the ground and all but
   disappears; links there get a light one. Fields and the buttons set inside
   white fields keep the blue, which is what they sit on. */
header .navigation a:focus-visible,
header .logo:focus-visible,
header .navbar-toggle:focus-visible,
.sticky-nav a:focus-visible,
.ss-hero-categories a:focus-visible,
.main-title a:focus-visible {
	outline-color: var(--ss-on-night-muted);
}

/* Text fields and selects show :focus-visible on a mouse click as well — the
   browser treats typing into them as keyboard use. So the mark is drawn inside
   the field, where it reads as "this field is active" rather than as a frame
   around it. Bootstrap's `.form-control:focus` and the parent's
   `.styled-select select:focus` remove every outline, hence the matching
   selectors. */
input.form-control:focus-visible,
textarea.form-control:focus-visible,
.form-control:focus-visible,
.styled-select select:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--ss-blue);
	outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
