/*
Theme Name: Cutting Paths
Description: Cutting Paths design on Bricks. Site behaviour lives in the Cutting Paths Marketplace must-use plugin, not here.
Template: bricks
Version: 0.2.0
Author: Cutting Paths
Text Domain: cuttingpaths
*/

/* ------------------------------------------------------------------ Poppins, self-hosted (latin subset, ~8 KB per weight) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.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; }

/* ------------------------------------------------------------------ Themes
   Dark is the default: the Bricks palette holds the dark values. Light mode overrides the same variables here.
   The attribute is set on <html> by a tiny inline script in <head> before anything paints (functions.php). */
html { color-scheme: dark; --accent-hover: #0a2bc4; }
/* Dark mode: a softer blue for buttons and fills (white text still passes 4.5:1); light mode keeps the brand #0e39ff */
html:not([data-theme="light"]) { --accent: #5068e0; --accent-hover: #465cc9; }
body { background: var(--background); color: var(--text); font-family: "Poppins", system-ui, sans-serif; }
a { color: var(--link); }
html[data-theme="light"] {
	color-scheme: light;
	--background: #ffffff;
	--surface: #ffffff;
	--surface-soft: #f5f6fa;
	--ink: #1b1f2b;
	--text: #3f4554;
	--muted: #5b6170;
	--line: #e6e8ef;
	--line-strong: #c9cddb;
	--link: #0a2bc4;
	--tint: #eef1ff;
	--strong: #1b1f2b;
	--on-strong: #ffffff;
	--band: #1b1f2b;
	--accent-line: #0e39ff;
}

/* Logo: two tiny SVG files, one per theme */
html[data-theme="light"] .cp-logo-dark,
html:not([data-theme="light"]) .cp-logo-light { display: none !important; }

/* ------------------------------------------------------------------ Icons
   Drawn with CSS masks from tiny SVG files in img/, coloured by currentColor, so they follow both themes
   and need no icon font. Usage: .cp-ico + .cp-ico--name on any element, or the element rules below. */
.cp-ico::before,
#cp-theme-toggle::before,
#cp-account::before,
#cp-search button::before {
	content: "";
	display: block;
	width: 2rem; height: 2rem;
	background: currentColor;
	-webkit-mask: var(--cp-ico) center / contain no-repeat;
	mask: var(--cp-ico) center / contain no-repeat;
}
#cp-theme-toggle { --cp-ico: url("img/icon-sun.svg"); }
html[data-theme="light"] #cp-theme-toggle { --cp-ico: url("img/icon-moon.svg"); }
#cp-theme-toggle::before { width: 1.8rem; height: 1.8rem; }
#cp-account { --cp-ico: url("img/icon-user.svg"); }
#cp-account::before { width: 2.2rem; height: 2.2rem; }
#cp-search button { --cp-ico: url("img/icon-search.svg"); }
.cp-ico--heart { --cp-ico: url("img/icon-heart.svg"); }
.cp-ico--bookmark { --cp-ico: url("img/icon-bookmark.svg"); }
.cp-ico--share { --cp-ico: url("img/icon-share.svg"); }
.cp-ico--chev { --cp-ico: url("img/icon-chev.svg"); }
.cp-ico--upload { --cp-ico: url("img/icon-upload.svg"); }

/* ------------------------------------------------------------------ Header account menu (cp-design-page/site-header.php) */
.cp-headicons { display: flex; align-items: center; gap: 1rem; }
.cp-cart {
	position: relative; display: flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem; flex: none;
	border-radius: 99.9rem; background: var(--tint); color: var(--link); text-decoration: none; --cp-ico: url("img/icon-cart.svg");
}
.cp-cart::before {
	content: ""; width: 2.2rem; height: 2.2rem; background: currentColor;
	-webkit-mask: var(--cp-ico) center / contain no-repeat; mask: var(--cp-ico) center / contain no-repeat;
}
.cp-cart:hover { color: var(--ink); }
.cp-cart__count {
	position: absolute; top: -0.4rem; right: -0.4rem; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: 99.9rem;
	background: var(--accent); color: #ffffff; font-size: 1.1rem; font-weight: 700; line-height: 2rem; text-align: center;
}
@media (max-width: 767px) { .cp-cart { width: 4rem; height: 4rem; } }
.cp-cart[hidden] { display: none; }
.cp-acct { position: relative; }
.cp-acct__toggle { position: relative; display: flex; width: 4.4rem; height: 4.4rem; padding: 0; border: 2px solid var(--line-strong); border-radius: 99.9rem; background: var(--surface); cursor: pointer; }
.cp-acct__toggle img { width: 100%; height: 100%; border-radius: 99.9rem; object-fit: cover; }
.cp-acct__toggle[aria-expanded="true"] { border-color: var(--accent-line); }
/* (avatar badge replaced by the cart icon) */
.cp-acct__badge { display: none; position: absolute; top: -0.4rem; right: -0.6rem; min-width: 2rem; height: 2rem; padding: 0 0.5rem; border-radius: 99.9rem; background: var(--accent); color: #ffffff; font-size: 1.1rem; font-weight: 700; line-height: 2rem; text-align: center; }
.cp-acct__panel {
	position: absolute; right: 0; top: calc(100% + 0.8rem); z-index: 50; width: 26rem; padding: 0.8rem;
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: 1.4rem; box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .35);
}
.cp-acct__panel[hidden] { display: none; }
.cp-acct__who { margin: 0; padding: 0.8rem 1.2rem 1rem; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 1.5rem; }
.cp-acct__list { display: flex; flex-direction: column; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.cp-acct__list a { display: block; padding: 1rem 1.2rem; border-radius: 0.8rem; color: var(--ink); text-decoration: none; font-size: 1.5rem; }
.cp-acct__list a:hover, .cp-acct__list a:focus-visible { background: var(--tint); color: var(--link); }

/* ------------------------------------------------------------------ Header: scroll rows without visible scrollbars */
#cp-chips, #cp-nav { scrollbar-width: none; }
#cp-chips::-webkit-scrollbar, #cp-nav::-webkit-scrollbar { display: none; }
.cp-navlink { white-space: nowrap; }

/* Phones and tablets: logo + actions on one row, then search, then the menu as one swipeable row */
@media (max-width: 1099px) {
	#cp-mainbar #cp-search-slot { order: 3; flex: 1 1 100%; }
	#cp-mainbar #cp-nav { order: 4; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
	#cp-mainbar #cp-actions { margin-left: auto; }
	#cp-mainbar { gap: 1.2rem; padding: 1.2rem 1.6rem; }
	#cp-logo img { width: 15rem; height: auto; }
	#cp-actions { gap: 0.8rem; }
	#cp-upload { padding: 0.9rem 1.4rem; font-size: 1.4rem; }
	#cp-account { width: 4rem; height: 4rem; }
	#cp-nav { margin: 0 -0.4rem; }
	.cp-navlink { padding: 0.6rem 0.8rem; font-size: 1.4rem; }
	#cp-chipbar { padding: 0 1.6rem 1.2rem; }
	.cp-chip { padding: 0.6rem 1.2rem; font-size: 1.3rem; }
	#cp-topbar-inner { padding: 0.4rem 1.6rem; }
}

/* ------------------------------------------------------------------ Header search (Bricks Search element) */
#cp-search, #cp-search form { width: 100%; }
#cp-search form {
	display: flex; align-items: stretch;
	border: 2px solid var(--accent-line); border-radius: 1.2rem; overflow: hidden;
	background: var(--surface);
}
#cp-search input[type="search"] {
	flex: 1; min-width: 0; height: 4.6rem;
	border: 0; outline: none; padding: 0 1.6rem;
	font: inherit; font-size: 1.5rem; color: var(--ink); background: transparent;
}
#cp-search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
#cp-search form:focus-within { outline: 2px solid var(--accent-line); outline-offset: 2px; }
#cp-search button {
	display: flex; align-items: center; justify-content: center;
	width: 5.6rem; padding: 0; border: 0; cursor: pointer;
	background: var(--accent); color: #ffffff;
	font-size: 0; /* the word "Search" stays as the accessible name; the icon shows instead */
	height: auto !important; align-self: stretch; margin: 0; border-radius: 0;
}
#cp-search button:hover { background: var(--accent-hover); }
#cp-search input[type="search"] { height: 4.4rem; }
#cp-search form { border-width: 1.5px; }
#cp-404-search button { height: auto !important; align-self: stretch; }

/* Keyboard focus that is visible on both themes */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--accent-line, #6680ff);
	outline-offset: 2px;
}

/* Links inside running text are underlined, so they never rely on colour alone (WCAG 1.4.1) */
:is(#cp-page-content, #cp-post-content, #cp-post-comments, #cp-prod-tabs .woocommerce-Tabs-panel, .woocommerce-privacy-policy-text, .cpbg-help, .cp-store__about, .woocommerce-MyAccount-content)
	:is(p, li, figcaption, dd, td) a:not(.cp-content-button):not(.button):not(.btn) {
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}

/* Image captions in posts and pages */
:is(#cp-page-content, #cp-post-content) :is(figure, .wp-caption) { max-width: 100%; background: transparent; border: 0; padding: 0; }
:is(#cp-page-content, #cp-post-content) :is(figcaption, .wp-caption-text) { color: var(--muted); font-size: 1.4rem; text-align: center; padding-top: 0.6rem; }

/* WooCommerce "show password" eye: a full-size tap target */
.woocommerce .show-password-input { min-width: 3.2rem; min-height: 3.2rem; }

/* WPBakery tabs still used in some page content (box generator "Most liked" etc.) */
#cp-page-content .wpb_tabs_nav { display: flex; flex-wrap: wrap; gap: 0 2.4rem; margin: 0 0 1.6rem; padding: 0; list-style: none; background: transparent !important; border-bottom: 1px solid var(--line); }
#cp-page-content .wpb_tabs_nav li { margin: 0; background: transparent !important; border: 0 !important; float: none; }
#cp-page-content .wpb_tabs_nav li a { display: block; padding: 1.2rem 0.2rem; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--text) !important; background: transparent !important; text-decoration: none !important; font-weight: 500; }
#cp-page-content .wpb_tabs_nav li.ui-tabs-active a, #cp-page-content .wpb_tabs_nav li a:hover { color: var(--ink) !important; border-bottom-color: var(--accent-line); }
#cp-page-content .wpb_tab, #cp-page-content .wpb_tour_tabs_wrapper { background: transparent !important; border: 0 !important; padding: 0 !important; }

.screen-reader-text,
.cp-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ Design card (markup: mu-plugins/cp-design-card.php) */
.cp-loop-item { display: flex; min-width: 0; }
.cp-card {
	display: flex; flex-direction: column; width: 100%; min-width: 0;
	background: var(--surface); border: 1px solid var(--line); border-radius: 1.4rem; overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.cp-card:hover { transform: translateY(-2px); box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, .28); }
html[data-theme="light"] .cp-card:hover { box-shadow: 0 1rem 2.8rem rgba(27, 31, 43, .12); }
.cp-card__media { display: block; aspect-ratio: 1 / 1; background: var(--surface-soft); }
.cp-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-card__body { display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: 1.4rem 1.4rem 0.6rem; }
.cp-card__title { margin: 0; font-size: 1.5rem; line-height: 1.35; font-weight: 600; min-height: 2.7em; }
.cp-card__title a {
	color: var(--ink); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cp-card__title a::after { content: ""; } /* keeps the clamp from eating the focus ring */
.cp-card__title a:hover { color: var(--link); }
.cp-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.cp-card__maker { display: flex; align-items: center; gap: 0.8rem; min-width: 0; color: var(--text); text-decoration: none; font-size: 1.3rem; }
.cp-card__maker:hover { color: var(--link); }
.cp-card__avatar { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 99.9rem; object-fit: cover; }
.cp-card__maker-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-card__price { flex: none; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.cp-card__price del { color: var(--muted); font-weight: 400; margin-right: 0.4rem; }
.cp-card__price ins { text-decoration: none; }
.cp-card__price--free { padding: 0.3rem 1rem; border-radius: 99.9rem; background: var(--tint); color: var(--link); font-weight: 600; font-size: 1.3rem; }

/* Like / save / share: three equal columns, icons centred, each a 40px tap target */
.cp-card__actions {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
	margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed var(--line);
	color: var(--muted); font-size: 1.3rem;
}
.cp-card__action { display: flex; justify-content: center; min-width: 0; }
.cp-card__action .wpulike, .cp-card__action .wp_ulike_general_class { display: flex; align-items: center; padding: 0; box-shadow: none; }
.cp-card__action .wp_ulike_general_class { gap: 0.2rem; }
.cp-card__action button.wp_ulike_btn,
.cp-card__action .cp-save,
.cp-card__share {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 4rem; min-height: 4rem; padding: 0; margin: 0;
	border: 0; border-radius: 0.8rem; background: transparent; color: var(--muted); cursor: pointer;
}
.cp-card__action button.wp_ulike_btn:hover, .cp-card__action .cp-save:hover, .cp-card__share:hover { color: var(--link); }
/* Heart drawn from the theme's icon so it follows the text colour in both themes */
.cp-card__action .wp_ulike_put_image::after {
	background: currentColor; width: 1.8rem; height: 1.8rem;
	-webkit-mask: url("img/icon-heart.svg") center / contain no-repeat; mask: url("img/icon-heart.svg") center / contain no-repeat;
}
.cp-card__action .wp_ulike_put_image.wp_ulike_btn_is_active { color: #e5484d; }
.cp-card__action .wp_ulike_put_image.wp_ulike_btn_is_active::after {
	background: currentColor;
	-webkit-mask-image: url("img/icon-heart-fill.svg"); mask-image: url("img/icon-heart-fill.svg");
}
.cp-card__action .count-box { color: var(--muted); font-size: 1.3rem; font-weight: 500; line-height: 1; padding: 0 0.2rem 0 0; }
.cp-card__action .cp-save .cp-save-icon { width: 1.8rem; height: 1.8rem; }
.cp-card__action .cp-save.is-saved { color: var(--link); }
.cp-card__share .cp-ico::before { width: 1.8rem; height: 1.8rem; }
.cp-card__share.is-copied { color: var(--link); }

/* ------------------------------------------------------------------ Design listing (template "Designs listing") */
.cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; width: 100%; }
#cp-list-head { background: var(--surface-soft); border-bottom: 1px solid var(--line); }
#cp-list-head-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 2.8rem 2.4rem 3.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
#cp-crumbs, #cp-crumbs a { font-size: 1.4rem; color: var(--muted); }
#cp-crumbs a:hover { color: var(--link); }
#cp-crumbs .separator::before { content: "/"; margin: 0 0.8rem; color: var(--line-strong); }
#cp-crumbs .navigation { display: flex; flex-wrap: wrap; align-items: center; }
#cp-list-title { margin: 0.4rem 0 0; font-size: 3.8rem; line-height: 1.15; color: var(--ink); font-weight: 700; }
#cp-list-count { margin: 0; font-size: 1.6rem; color: var(--text); }
#cp-list-desc { margin: 0.4rem 0 0; max-width: 72rem; font-size: 1.6rem; line-height: 1.6; color: var(--text); }
#cp-list-desc:empty { display: none; }
#cp-list-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 3.2rem 2.4rem 7.2rem; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 3.2rem; }
#cp-list-side {
	flex: 1 1 25rem; max-width: 29rem; min-width: 0;
	padding: 2.2rem; border: 1px solid var(--line); border-radius: 1.6rem; background: var(--surface);
}
#cp-list-results { flex: 999 1 56rem; min-width: 0; display: flex; flex-direction: column; gap: 3.6rem; }
#cp-list-results .cp-grid { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
#cp-list-pager { align-self: center; }
#cp-list-pager .page-numbers, #cp-list-pager ul { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
#cp-list-pager a.page-numbers, #cp-list-pager span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 4.4rem; height: 4.4rem; padding: 0 1.2rem;
	border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500;
}
#cp-list-pager span.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #ffffff; }
#cp-list-pager span.page-numbers.dots { border: 0; background: transparent; }

/* The filters box (markup from mu-plugins/cp-filters.php, behaviour from its filters.js) restyled for both themes */
#cp-list-side .cp-filters-sort select {
	min-height: 4.4rem; padding: 0 1.2rem; border: 1px solid var(--line-strong); border-radius: 1rem;
	background: var(--surface); color: var(--ink); font: inherit; font-size: 1.5rem;
}
#cp-list-side .cp-filters-title { font-size: 1.6rem; color: var(--ink); }
#cp-list-side .cp-filters-section + .cp-filters-section { padding-top: 1.8rem; border-top: 1px dashed var(--line); }
#cp-list-side .cp-filters-item label { color: var(--ink); font-size: 1.5rem; min-height: 3.6rem; }
#cp-list-side .cp-filters-item input[type=checkbox] { width: 1.8rem; height: 1.8rem; accent-color: var(--accent); }
/* Dark mode: native unchecked boxes render plain gray, so draw them with a faint accent tint instead. */
html:not([data-theme="light"]) :is(#cp-list-side .cp-filters-item, .woocommerce-form, #cp-post-comments, .fluentform) input[type=checkbox] {
	-webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; flex: none;
	width: 1.8rem; height: 1.8rem; margin: 0; border: 1.5px solid rgba(80, 104, 224, .6); border-radius: 0.4rem;
	background: rgba(80, 104, 224, .14); cursor: pointer;
}
html:not([data-theme="light"]) :is(#cp-list-side .cp-filters-item, .woocommerce-form, #cp-post-comments, .fluentform) input[type=checkbox]:hover { border-color: var(--accent); }
html:not([data-theme="light"]) :is(#cp-list-side .cp-filters-item, .woocommerce-form, #cp-post-comments, .fluentform) input[type=checkbox]:checked { border-color: var(--accent); background: var(--accent); }
html:not([data-theme="light"]) :is(#cp-list-side .cp-filters-item, .woocommerce-form, #cp-post-comments, .fluentform) input[type=checkbox]:checked::before {
	content: ""; width: 1rem; height: 1rem; background: #ffffff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
html:not([data-theme="light"]) :is(#cp-list-side .cp-filters-item, .woocommerce-form, #cp-post-comments, .fluentform) input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#cp-list-side .cp-filters-count { color: var(--muted); font-size: 1.3rem; }
#cp-list-side .cp-filters-chip { border-color: var(--accent-line); background: var(--tint); color: var(--link); font-weight: 600; }
#cp-list-side .cp-filters-chip:hover, #cp-list-side .cp-filters-chip:focus-visible { background: var(--accent); border-color: var(--accent); color: #ffffff; }
#cp-list-side .cp-filters-reset { color: var(--text); }
#cp-list-side .cp-filters-toggle { border-color: var(--accent-line); background: var(--surface); color: var(--link); border-radius: 1rem; min-height: 4.4rem; }
#cp-list-side .cp-filters.is-open .cp-filters-toggle, #cp-list-side .cp-filters-done { background: var(--accent); color: #ffffff; border-radius: 1rem; }
.cp-filters-empty { color: var(--text); }
.cp-filters-results { margin: 0; padding: 0; }

@media (max-width: 991px) {
	.cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#cp-list-side { max-width: none; flex-basis: 100%; padding: 1.4rem; }
	#cp-list-side .cp-filters:not(.is-open) .cp-filters-sort { margin-bottom: 0; }
	#cp-list-side .cp-filters-active:not([hidden]) { margin: 1.2rem 0 0; }
}
@media (max-width: 767px) {
	.cp-grid, #cp-list-results .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
	#cp-list-title { font-size: 2.8rem; }
	#cp-list-inner { padding: 2rem 1.6rem 5.6rem; gap: 2rem; }
	#cp-list-head-inner { padding: 2rem 1.6rem 2.4rem; }
	.cp-card__body { padding: 1.2rem 1rem 0.4rem; }
	.cp-card__title { font-size: 1.4rem; }
}

/* ------------------------------------------------------------------ Design page (template "Design page", blocks from mu-plugins/cp-design-page.php) */
#cp-prod-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 2.4rem 2.4rem 7.2rem; display: flex; flex-direction: column; gap: 2.4rem; }
.cp-crumbs, .cp-crumbs a { font-size: 1.4rem; color: var(--muted); }
.cp-crumbs a:hover { color: var(--link); }
.cp-crumbs a, #cp-crumbs a { display: inline-block; padding: 0.3rem 0; }
.cp-crumbs .separator::before { content: "/"; margin: 0 0.8rem; color: var(--line-strong); }
.cp-crumbs .navigation { display: flex; flex-wrap: wrap; align-items: center; }
#cp-prod-top { display: flex; flex-wrap: wrap; gap: 4.4rem; align-items: flex-start; width: 100%; }
#cp-prod-media { flex: 1 1 52rem; min-width: 0; }
#cp-prod-summary { flex: 1 1 38rem; min-width: 0; display: flex; flex-direction: column; gap: 2rem; }

/* Gallery (WooCommerce's own, placed by Bricks) */
/* WooCommerce hides the gallery (opacity 0) until its script runs; on a slow phone that delays the main photo by seconds. Show it at once. */
#cp-gallery .woocommerce-product-gallery { margin: 0; opacity: 1 !important; }
#cp-gallery .woocommerce-product-gallery__image img,
#cp-gallery .flex-viewport { border-radius: 1.8rem; }
#cp-gallery .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; background: var(--surface-soft); }
#cp-gallery .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
#cp-gallery .flex-control-thumbs li { width: auto !important; margin: 0 !important; float: none !important; }
#cp-gallery .flex-control-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.2rem; border: 1px solid var(--line); opacity: 0.75; cursor: pointer; }
#cp-gallery .flex-control-thumbs img.flex-active, #cp-gallery .flex-control-thumbs img:hover { opacity: 1; border: 2px solid var(--accent-line); }
#cp-gallery .woocommerce-product-gallery__trigger { background: var(--surface); color: var(--ink); border-radius: 99.9rem; }

/* Title row and the "more" menu */
#cp-prod-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }
#cp-prod-title { margin: 0; font-size: 3rem; line-height: 1.15; color: var(--ink); font-weight: 700; }
.cp-menu { position: relative; flex: none; }
.cp-menu__toggle {
	display: flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem; padding: 0;
	border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--ink); font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.cp-menu__list {
	position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 20; min-width: 22rem; padding: 0.6rem;
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: 1.2rem; box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .3);
	display: flex; flex-direction: column;
}
.cp-menu__list[hidden] { display: none; }
.cp-menu__list a, .cp-menu__list button {
	display: block; width: 100%; padding: 1rem 1.2rem; border: 0; border-radius: 0.8rem; background: transparent;
	color: var(--ink); font: inherit; font-size: 1.5rem; text-align: left; text-decoration: none; cursor: pointer;
}
.cp-menu__list a:hover, .cp-menu__list button:hover, .cp-menu__list a:focus-visible, .cp-menu__list button:focus-visible { background: var(--tint); color: var(--link); }

#cp-prod-excerpt, #cp-prod-excerpt p { margin: 0; font-size: 1.7rem; line-height: 1.6; color: var(--text); }
#cp-prod-rating .star-rating { color: #f5b301; }
/* Makers sometimes paste descriptions with inline colours and fonts from other sites; let the theme win, in both themes */
#cp-prod-excerpt :is(span, p, strong, em, b, i, u, div, li, br, h2, h3, h4, h5, font)[style],
#cp-prod-tabs .woocommerce-Tabs-panel :is(span, p, strong, em, b, i, u, div, li, br, h2, h3, h4, h5, font)[style] {
	color: inherit !important; background-color: transparent !important; font-family: inherit !important;
}

/* Remix of */
.cp-remix-of { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--accent-line); border-radius: 1.2rem; background: var(--tint); }
.cp-remix-of__img { width: 4.8rem; height: 4.8rem; border-radius: 0.8rem; object-fit: cover; flex: none; }
.cp-remix-of__text { margin: 0; color: var(--text); font-size: 1.5rem; }
.cp-remix-of__text a { color: var(--link); font-weight: 600; }

/* Maker card */
.cp-maker { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--surface); }
.cp-maker__link { display: flex; align-items: center; gap: 1.4rem; min-width: 0; color: var(--ink); text-decoration: none; }
.cp-maker__avatar { width: 4.8rem; height: 4.8rem; border-radius: 99.9rem; object-fit: cover; flex: none; }
.cp-maker__text { display: flex; flex-direction: column; min-width: 0; }
.cp-maker__label, .cp-maker__meta { font-size: 1.3rem; color: var(--muted); }
.cp-maker__name { font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.cp-maker__link:hover .cp-maker__name { color: var(--link); }
.cp-follow {
	flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 4.4rem; padding: 0 1.8rem;
	border: 1px solid var(--accent-line); border-radius: 1rem; background: transparent; color: var(--link);
	font: inherit; font-weight: 600; font-size: 1.4rem; text-decoration: none; cursor: pointer;
}
.cp-follow.following-active, .cp-follow[aria-pressed="true"] { background: var(--tint); }
.cp-follow .follow-spinner, .cp-follow .following-icon { display: none !important; }

/* Buy box */
#cp-prod-buybox { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.2rem; border-radius: 1.6rem; background: var(--surface-soft); border: 1px solid var(--line); }
.cp-buy { display: flex; flex-direction: column; gap: 1.6rem; }
.cp-buy__price { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; font-size: 3.4rem; font-weight: 700; color: var(--ink); }
.cp-buy__price del { color: var(--muted); font-size: 0.6em; font-weight: 400; }
.cp-buy__price ins { text-decoration: none; }
.cp-buy__free { color: var(--ink); }
.cp-buy__note { font-size: 1.4rem; font-weight: 400; color: var(--text); }
.cp-buy form.cart { display: flex; flex-direction: column; gap: 1.2rem; margin: 0; }
.cp-buy .quantity { display: none; } /* digital files: always one */
.cp-buy .single_add_to_cart_button, .cp-buy .cp-download-submit {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 5.6rem; padding: 0 2rem;
	border: 0; border-radius: 1.2rem; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; font-size: 1.7rem;
	text-decoration: none; cursor: pointer;
}
.cp-buy .single_add_to_cart_button:hover, .cp-buy .cp-download-submit:hover { background: var(--accent-hover); color: #ffffff; }
.cp-buy .variations, .cp-buy .variations tbody, .cp-buy .variations tr { display: block; width: 100%; border-collapse: collapse; margin: 0; }
.cp-buy .variations th, .cp-buy .variations td { display: block; width: 100%; padding: 0 0 0.6rem; text-align: left; border: 0; background: none; }
.cp-buy .variations label { color: var(--ink); font-weight: 600; font-size: 1.5rem; }
.cp-buy .variations select { width: 100%; min-height: 4.4rem; padding: 0 1.2rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); color: var(--ink); font: inherit; }
.cp-buy .reset_variations { font-size: 1.3rem; color: var(--link); }
.cp-buy .woocommerce-variation-price { font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.cp-buy .somdn-shortcode-wrap, .cp-buy .somdn-download-wrap, .cp-buy .somdn-download-form { width: 100%; margin: 0; }

/* Like, save, share: three equal buttons */
.cp-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cp-actions__item { display: flex; min-width: 0; }
.cp-actions__item > *, .cp-actions .wpulike, .cp-actions .wp_ulike_general_class { width: 100%; }
.cp-actions .wp_ulike_general_class, .cp-actions .cp-save, .cp-actions__share {
	display: flex; align-items: center; justify-content: center; gap: 0.8rem; min-height: 4.6rem; padding: 0 1rem;
	border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); box-shadow: none;
	color: var(--ink); font: inherit; font-size: 1.4rem; cursor: pointer;
}
.cp-actions button.wp_ulike_btn { padding: 0; min-width: 2.4rem; min-height: 2.4rem; background: transparent; border: 0; color: inherit; }
.cp-actions .wp_ulike_put_image::after {
	background: currentColor; width: 1.8rem; height: 1.8rem;
	-webkit-mask: url("img/icon-heart.svg") center / contain no-repeat; mask: url("img/icon-heart.svg") center / contain no-repeat;
}
.cp-actions .wp_ulike_put_image.wp_ulike_btn_is_active { color: #e5484d; }
.cp-actions .wp_ulike_put_image.wp_ulike_btn_is_active::after { -webkit-mask-image: url("img/icon-heart-fill.svg"); mask-image: url("img/icon-heart-fill.svg"); }
.cp-actions .count-box { color: var(--ink); font-size: 1.4rem; font-weight: 500; line-height: 1; padding: 0; }
.cp-actions .cp-save .cp-save-icon { width: 1.8rem; height: 1.8rem; stroke-width: 2; }
.cp-actions .cp-save .cp-save-text { color: inherit; font-size: 1.4rem; }
.cp-actions .cp-save.is-saved { color: var(--link); }
.cp-actions__share .cp-ico::before { width: 1.8rem; height: 1.8rem; }
.cp-actions .wp_ulike_general_class:hover, .cp-actions .cp-save:hover, .cp-actions__share:hover { border-color: var(--accent-line); color: var(--link); }

/* Thickness chips */
.cp-thickness__label { margin: 0 0 1rem; font-weight: 600; color: var(--ink); font-size: 1.5rem; }
.cp-chiplist { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.cp-chiplist__item { padding: 0.6rem 1.2rem; border-radius: 99.9rem; background: var(--surface-soft); border: 1px solid var(--line); font-size: 1.4rem; color: var(--ink); }

/* Tabs (WooCommerce's own tab markup and script) */
#cp-prod-tabs { margin-top: 3.2rem; width: 100%; }
#cp-prod-tabs .wc-tabs { display: flex; flex-wrap: wrap; gap: 0 2.8rem; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
#cp-prod-tabs .wc-tabs::before, #cp-prod-tabs .wc-tabs::after { display: none; }
#cp-prod-tabs .wc-tabs li { margin: 0; padding: 0; border: 0; background: none; }
#cp-prod-tabs .wc-tabs li a {
	display: block; padding: 1.4rem 0.2rem; border-bottom: 3px solid transparent; margin-bottom: -1px;
	color: var(--text); font-size: 1.5rem; font-weight: 500; text-decoration: none;
}
#cp-prod-tabs .wc-tabs li.active a { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent-line); }
#cp-prod-tabs .woocommerce-Tabs-panel { max-width: 82rem; padding: 2.8rem 0 0.8rem; margin: 0; color: var(--text); font-size: 1.6rem; line-height: 1.75; }
#cp-prod-tabs .woocommerce-Tabs-panel h2 { font-size: 2.2rem; color: var(--ink); margin: 0 0 1.2rem; }
#cp-prod-tabs .woocommerce-Tabs-panel a { color: var(--link); }
#cp-prod-tabs .woocommerce-Tabs-panel img { max-width: 100%; height: auto; border-radius: 1rem; }
#cp-prod-tabs .woocommerce-Tabs-panel iframe { max-width: 100%; border-radius: 1rem; }
#cp-prod-tabs textarea, #cp-prod-tabs input[type="text"], #cp-prod-tabs input[type="email"] {
	width: 100%; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); color: var(--ink); font: inherit;
}
#cp-prod-tabs .comment-respond .submit, #cp-prod-tabs button, #cp-prod-tabs .button {
	min-height: 4.4rem; padding: 0 1.8rem; border: 0; border-radius: 1rem; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; cursor: pointer;
}

/* License tab (markup: mu-plugins/cp-marketplace/licenses/license-N.html) */
#cp-prod-tabs .license-tab-container { display: flow-root; max-width: 64rem; padding: 2.4rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--surface); }
#cp-prod-tabs .license-data { padding-bottom: 1.4rem; }
#cp-prod-tabs .cc-image { float: right; width: 8.8rem; height: auto; margin: 0 0 1rem 1.6rem; border-radius: 0.4rem; background: #ffffff; padding: 0.4rem; }
#cp-prod-tabs .license-title { font-size: 1.8rem; font-weight: 600; }
#cp-prod-tabs .license-subtitle { font-size: 1.4rem; font-weight: 500; color: var(--muted); }
#cp-prod-tabs .license-checks { line-height: 2.2; color: var(--ink); }
#cp-prod-tabs .ch-mark { width: 1.8rem; height: 1.8rem; vertical-align: -0.3rem; margin-right: 0.8rem; }
/* Remixes tab button (old Porto classes) */
#cp-prod-tabs #remix-tab-container .btn {
	display: inline-flex; align-items: center; min-height: 4.4rem; padding: 0 1.8rem; margin-top: 0.8rem;
	border-radius: 1rem; background: var(--accent); color: #ffffff; font-weight: 600; text-decoration: none;
}
#cp-prod-tabs #remix-tab-container .btn i { display: none; }
#cp-prod-tabs .product_meta { display: flex; flex-direction: column; gap: 0.8rem; }

/* More from this maker / More like this */
.cp-more-from, .cp-related { width: 100%; margin-top: 4rem; }
.cp-section-head--plain { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 2.4rem; width: 100%; }
.cp-section-head--plain .cp-h2 { margin: 0; font-size: 2.6rem; line-height: 1.2; color: var(--ink); font-weight: 700; padding-bottom: 1rem; border-bottom: 3px dashed var(--accent-line); }
.cp-section-head--plain .cp-more { font-weight: 600; text-decoration: none; color: var(--link); font-size: 1.5rem; }

/* ------------------------------------------------------------------ Regular pages (template "Page": title + the page's own content) */
#cp-page-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 4rem 2.4rem 7.2rem; display: flex; flex-direction: column; gap: 2.4rem; }
#cp-page-title { margin: 0; font-size: 3.8rem; line-height: 1.15; color: var(--ink); font-weight: 700; }
#cp-page-content { width: 100%; color: var(--text); font-size: 1.6rem; line-height: 1.7; }
#cp-page-content :is(h1, h2, h3, h4) { color: var(--ink); line-height: 1.25; margin: 1.6em 0 0.6em; font-weight: 700; }
#cp-page-content h1 { font-size: 3.2rem; }
#cp-page-content h2 { font-size: 2.6rem; }
#cp-page-content h3 { font-size: 2rem; }
#cp-page-content h4 { font-size: 1.7rem; }
#cp-page-content > :first-child { margin-top: 0; }
#cp-page-content p { margin: 0 0 1em; }
#cp-page-content a { color: var(--link); }
#cp-page-content img { max-width: 100%; height: auto; border-radius: 1rem; }
#cp-page-content ul, #cp-page-content ol { padding-left: 2.2rem; margin: 0 0 1em; }
#cp-page-content :is(span, p, strong, em, b, i, u, div, li, h2, h3, h4, font)[style] { color: inherit !important; background-color: transparent !important; font-family: inherit !important; }

#cp-page-content .cp-grid { margin: 2.4rem 0 3.2rem; }
#cp-page-content .cp-card__title { margin: 0; font-size: 1.5rem; }
#cp-page-content .cp-card__title a { color: var(--ink); }
#cp-page-content .cp-card a { text-decoration: none; }
#cp-page-content .cp-card__maker { color: var(--text); }
.cp-content-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 5.2rem; padding: 0 2.6rem;
	border-radius: 1.2rem; background: var(--accent); color: #ffffff !important; font-weight: 600; text-decoration: none !important;
}
.cp-content-button:hover { background: var(--accent-hover); }
/* Legacy WPBakery / Porto buttons still in older posts ([vc_btn], [porto_buttons]): same look as .cp-content-button.
   !important because their own CSS, inline styles and the content link color would otherwise win. */
/* Bricks skip links (shown on keyboard focus): black background by default, unreadable with the light-mode link color */
.skip-link { background: var(--accent) !important; color: #ffffff !important; border-radius: 0 0 1rem 1rem; font-weight: 600; }
.vc_btn3-container { margin: 2.4rem 0; }
a.vc_general.vc_btn3, a.porto-btn {
	display: inline-flex !important; align-items: center; justify-content: center; min-height: 5.2rem; padding: 1.2rem 2.6rem !important;
	border: 0 !important; border-radius: 1.2rem !important; background: var(--accent) !important; background-image: none !important;
	color: #ffffff !important; font-family: inherit !important; font-size: 1.6rem !important; font-weight: 600 !important; line-height: 1.35 !important;
	text-align: center; text-decoration: none !important; text-shadow: none !important; box-shadow: none !important;
}
a.vc_general.vc_btn3:hover, a.vc_general.vc_btn3:focus, a.porto-btn:hover, a.porto-btn:focus { background: var(--accent-hover) !important; color: #ffffff !important; }
a.vc_general.vc_btn3:focus-visible, a.porto-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vc_btn3 .vc_btn3-icon, .porto-btn .porto-btn-hover { display: none !important; }
/* Fee split bar [cp_fee_bar] (cp-design-page/fee-bar.php): homepage bottom band + Seller FAQ */
.cp-fees { --fee-maker: var(--accent); --fee-site: #a7b4f5; --fee-pay: #596075; display: flex; flex-direction: column; gap: 1.6rem; }
html[data-theme="light"] .cp-fees { --fee-site: #93a3ff; --fee-pay: #b9bfcf; }
.cp-fees__head { display: flex; flex-direction: column; gap: 0.6rem; }
.cp-fees__title { margin: 0; color: var(--ink); font-size: 2.2rem; line-height: 1.25; }
.cp-fees__lead { margin: 0; color: var(--text); font-size: 1.6rem; line-height: 1.6; }
.cp-fees__bar { display: flex; gap: 0.4rem; width: 100%; height: 1.2rem; }
.cp-fees__seg { min-width: 0.8rem; border-radius: 0.3rem; }
.cp-fees__seg:first-child { border-radius: 99.9rem 0.3rem 0.3rem 99.9rem; }
.cp-fees__seg:last-child { border-radius: 0.3rem 99.9rem 99.9rem 0.3rem; }
.cp-fees__seg--maker { flex: 85; }
.cp-fees__seg--site { flex: 10; }
.cp-fees__seg--pay { flex: 5; }
.cp-fees__seg--maker, .cp-fees__dot--maker { background: var(--fee-maker); }
.cp-fees__seg--site, .cp-fees__dot--site { background: var(--fee-site); }
.cp-fees__seg--pay, .cp-fees__dot--pay { background: var(--fee-pay); }
.cp-fees__legend { display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; margin: 0; padding: 0; list-style: none; }
.cp-fees__item { display: flex; align-items: center; gap: 0.8rem; margin: 0; color: var(--text); font-size: 1.5rem; }
.cp-fees__item strong { color: var(--ink); }
.cp-fees__dot { flex: none; width: 1rem; height: 1rem; border-radius: 99.9rem; }
.cp-fees__note { margin: 0; color: var(--muted); font-size: 1.4rem; line-height: 1.6; }
.cp-fees--compact { width: 100%; margin: 1.6rem 0 2.4rem; }
#cp-page-content .cp-fees__legend { margin: 0; padding: 0; }
#cp-page-content .cp-fees__item { margin: 0; }
/* Seller FAQ fee calculator (raw HTML block on the page) */
#cp-page-content .wpb_raw_html input#_regular_price { width: 100%; max-width: 32rem; min-height: 4.4rem; padding: 0 1.2rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); color: var(--ink); font: inherit; }
#cp-page-content .wpb_raw_html #websiteFees { margin-top: 0.8rem; color: var(--text); }
#cp-fees { border-top: 1px solid var(--line); background: var(--surface-soft); }
#cp-fees .cp-fees { width: 100%; max-width: 123.2rem; margin: 0 auto; padding: 4.8rem 2.4rem 5.6rem; }
@media (max-width: 767px) { #cp-fees .cp-fees { padding: 3.6rem 1.6rem 4.4rem; } }

/* ------------------------------------------------------------------ Blog (templates "Blog" and "Blog post"; cards from cp-design-page/blog.php) */
#cp-blog-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 4rem 2.4rem 7.2rem; display: flex; flex-direction: column; gap: 1.6rem; }
#cp-blog-title { margin: 0; font-size: 3.8rem; color: var(--ink); }
#cp-blog-intro { margin: 0 0 1.6rem; font-size: 1.7rem; color: var(--text); }
.cp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; width: 100%; }
.cp-post-item { display: flex; min-width: 0; }
.cp-post-card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 1.6rem; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cp-post-card:hover { transform: translateY(-2px); box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, .25); }
.cp-post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-soft); }
.cp-post-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-post-card__body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.8rem; flex: 1; }
.cp-post-card__cat { align-self: flex-start; padding: 0.3rem 1rem; border-radius: 99.9rem; background: var(--tint); color: var(--link); font-size: 1.2rem; font-weight: 600; }
.cp-post-card__title { margin: 0; font-size: 1.9rem; line-height: 1.3; }
.cp-post-card__title a { color: var(--ink); text-decoration: none; }
.cp-post-card__title a:hover { color: var(--link); }
.cp-post-card__excerpt { margin: 0; color: var(--text); font-size: 1.5rem; line-height: 1.6; }
.cp-post-card__meta { margin: auto 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 1.3rem; }
#cp-blog-pager { align-self: center; margin-top: 2.4rem; }

#cp-post-inner { width: 100%; max-width: 80rem; margin: 0 auto; padding: 3.2rem 2.4rem 7.2rem; display: flex; flex-direction: column; gap: 1.8rem; }
#cp-post-back { align-self: flex-start; color: var(--link); font-weight: 600; font-size: 1.4rem; text-decoration: none; }
#cp-post-back::before { content: "\2190\00a0"; }
#cp-post-title { margin: 0; font-size: 4rem; line-height: 1.15; color: var(--ink); }
.cp-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; margin: 0; color: var(--muted); font-size: 1.4rem; }
.cp-post-meta img { width: 3.2rem; height: 3.2rem; border-radius: 99.9rem; }
.cp-post-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
#cp-post-image, #cp-post-image img { width: 100%; height: auto; border-radius: 1.6rem; }
#cp-post-content { color: var(--text); font-size: 1.7rem; line-height: 1.8; }
#cp-post-content :is(h2, h3, h4) { color: var(--ink); line-height: 1.3; margin: 1.6em 0 0.6em; }
#cp-post-content h2 { font-size: 2.6rem; }
#cp-post-content h3 { font-size: 2.1rem; }
#cp-post-content p { margin: 0 0 1.1em; }
#cp-post-content a { color: var(--link); }
#cp-post-content img { max-width: 100%; height: auto; border-radius: 1.2rem; }
#cp-post-content :is(ul, ol) { padding-left: 2.4rem; margin: 0 0 1.1em; }
#cp-post-content :is(span, p, strong, em, b, i, u, div, li, h2, h3, h4, font)[style] { color: inherit !important; background-color: transparent !important; font-family: inherit !important; }
#cp-post-content :is(pre, code) { background: var(--surface-soft); border-radius: 0.6rem; }
.cp-actions--post { grid-template-columns: repeat(2, minmax(0, 14rem)); }
#cp-post-comments { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px dashed var(--line); color: var(--text); }
#cp-post-comments :is(h2, h3) { color: var(--ink); }
#cp-post-comments textarea, #cp-post-comments input:not([type=submit]):not([type=checkbox]) { width: 100%; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); color: var(--ink); font: inherit; }
#cp-post-comments input[type=submit] { min-height: 4.4rem; padding: 0 1.8rem; border: 0; border-radius: 1rem; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 991px) { .cp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.cp-post-grid { grid-template-columns: minmax(0, 1fr); }
	#cp-blog-inner, #cp-post-inner { padding: 2.4rem 1.6rem 5.6rem; }
	#cp-blog-title { font-size: 3rem; }
	#cp-post-title { font-size: 2.8rem; }
}

/* ------------------------------------------------------------------ 404 (template "Page not found") */
#cp-404-inner { width: 100%; max-width: 72rem; margin: 0 auto; padding: 8rem 2.4rem 9.6rem; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
#cp-404-code { margin: 0; padding: 0.4rem 1.4rem; border: 1px dashed var(--accent-line); border-radius: 99.9rem; color: var(--link); font-weight: 700; letter-spacing: 0.1em; }
#cp-404-title { margin: 0; font-size: 4.4rem; line-height: 1.1; color: var(--ink); }
#cp-404-text { margin: 0; font-size: 1.7rem; color: var(--text); max-width: 52rem; }
#cp-404-search { width: 100%; max-width: 56rem; }
#cp-404-search form { display: flex; align-items: stretch; border: 2px solid var(--accent-line); border-radius: 1.2rem; overflow: hidden; background: var(--surface); }
#cp-404-search input[type="search"] { flex: 1; min-width: 0; height: 5.2rem; border: 0; outline: none; padding: 0 1.6rem; font: inherit; font-size: 1.6rem; color: var(--ink); background: transparent; }
#cp-404-search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
#cp-404-search button { min-width: 10rem; padding: 0 1.8rem; border: 0; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; cursor: pointer; }
#cp-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 0.8rem; }
.cp-404-link { display: inline-flex; align-items: center; min-height: 4.4rem; padding: 0 1.6rem; border: 1px solid var(--line); border-radius: 99.9rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.cp-404-link:hover { border-color: var(--accent-line); color: var(--link); }
@media (max-width: 767px) { #cp-404-inner { padding: 5.6rem 1.6rem 7.2rem; } #cp-404-title { font-size: 3.2rem; } }

/* Cardboard box generator: built for a light page, so it gets its own light panel in both themes */
.cp-boxgen {
	color-scheme: light;
	--background: #ffffff; --surface: #ffffff; --surface-soft: #f5f6fa; --ink: #1b1f2b; --text: #3f4554; --muted: #5b6170;
	--line: #e6e8ef; --line-strong: #c9cddb; --link: #0a2bc4; --tint: #eef1ff; --accent-line: #0e39ff;
	background: #f5f6fa; color: #3f4554; padding: 3.2rem; border-radius: 2rem;
}
.cp-boxgen .cpbg-title, .cp-boxgen :is(h1, h2, h3) { color: #1b1f2b; }
.cp-boxgen .cpbg-intro { color: #3f4554; }
@media (max-width: 767px) { .cp-boxgen { padding: 1.6rem; border-radius: 1.4rem; } }

/* ------------------------------------------------------------------ WooCommerce pages: cart, checkout, account, login (classic markup) */
.woocommerce :is(input.input-text, select, textarea), .woocommerce form .form-row :is(input.input-text, select, textarea),
.select2-container--default .select2-selection--single {
	width: 100%; min-height: 4.6rem; padding: 0.8rem 1.4rem; border: 1px solid var(--line-strong); border-radius: 1rem;
	background: var(--surface); color: var(--ink); font: inherit; font-size: 1.5rem; box-sizing: border-box;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 2.8rem; }
.select2-dropdown { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.woocommerce form .form-row { margin: 0 0 1.4rem; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: 0.6rem; color: var(--ink); font-weight: 600; font-size: 1.4rem; }
.woocommerce form .form-row .required { color: #ff7a7a; text-decoration: none; }
.woocommerce :is(.button, button.button, a.button, input.button, #place_order, .checkout-button),
.woocommerce-page :is(.button, #place_order) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 4.8rem; padding: 0 2.2rem;
	border: 0; border-radius: 1.2rem; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; font-size: 1.5rem;
	text-decoration: none; cursor: pointer;
}
.woocommerce :is(.button, #place_order, .checkout-button):hover { background: var(--accent-hover); color: #ffffff; }
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 2rem; padding: 1.4rem 1.8rem;
	border: 1px solid var(--line-strong); border-left-width: 1px; border-radius: 1.2rem; background: var(--surface); color: var(--ink); list-style: none;
}
.woocommerce-message { border-color: #2f9e6a !important; }
.woocommerce-error { border-color: #d64545 !important; }
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
.woocommerce :is(.woocommerce-message, .woocommerce-info) .button { min-height: 4rem; }

/* Tables (cart, order review, orders) */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 1.4rem; overflow: hidden; background: var(--surface); margin: 0 0 2.4rem; }
.woocommerce table.shop_table :is(th, td) { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); text-align: left; color: var(--ink); vertical-align: middle; }
.woocommerce table.shop_table thead th { border-top: 0; background: var(--surface-soft); font-size: 1.4rem; color: var(--text); font-weight: 600; }
.woocommerce table.shop_table img { width: 6.4rem; height: auto; border-radius: 0.8rem; }
.woocommerce table.shop_table a { color: var(--link); font-weight: 600; text-decoration: none; }
.woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 99.9rem; color: var(--muted) !important; font-size: 2rem; text-decoration: none; }
.woocommerce a.remove:hover { background: #d64545; color: #ffffff !important; }
/* Digital files: always one of each, so no quantity box or "Update cart" */
.woocommerce-cart-form :is(.product-quantity, button[name="update_cart"]) { display: none !important; }
.woocommerce-cart-form .actions:not(:has(.coupon)) { display: none; }
.cart-collaterals .cart_totals { max-width: 46rem; margin-left: auto; padding: 2.2rem; border: 1px solid var(--line); border-radius: 1.6rem; background: var(--surface-soft); }
.cart-collaterals .cart_totals h2 { margin: 0 0 1.2rem; font-size: 2.2rem; color: var(--ink); }
.cart-collaterals .cart_totals table.shop_table { border: 0; background: transparent; margin-bottom: 1.6rem; }
.cart-collaterals .cart_totals table.shop_table :is(th, td) { padding: 1rem 0; background: transparent; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 5.6rem; font-size: 1.7rem; }
.cart-empty.woocommerce-info { font-size: 1.7rem; }
.return-to-shop .button { margin-top: 0.4rem; }

/* Checkout */
form.woocommerce-checkout.bricks-default-checkout { width: 100%; max-width: none; margin: 0; column-gap: 4.8rem; }
.woocommerce-checkout #customer_details { display: block; margin-bottom: 3.2rem; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: auto; float: none; }
.woocommerce-checkout h3 { margin: 0 0 1.6rem; font-size: 2.2rem; color: var(--ink); }
.woocommerce-checkout #order_review { padding: 2.2rem; border: 1px solid var(--line); border-radius: 1.6rem; background: var(--surface-soft); }
#payment { background: transparent !important; border-radius: 1.2rem; }
#payment ul.payment_methods { margin: 0 0 1.6rem; padding: 0; list-style: none; border: 0 !important; }
#payment ul.payment_methods li { padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--ink); }
#payment div.payment_box { background: var(--surface) !important; color: var(--text) !important; border-radius: 1rem; }
#payment div.payment_box::before { display: none; }
#place_order { width: 100%; min-height: 5.6rem; font-size: 1.7rem; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { color: var(--text); font-size: 1.4rem; }

/* My account */
.woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: 3.2rem; align-items: flex-start; }
.woocommerce-MyAccount-navigation { flex: 1 1 22rem; max-width: 26rem; float: none !important; width: auto !important; }
#cp-page-content .woocommerce-MyAccount-navigation { background: transparent; min-width: 0; }
#cp-page-content .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; padding: 0.8rem; list-style: none; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--surface); }
#cp-page-content .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
#cp-page-content .woocommerce-MyAccount-navigation a { display: block; padding: 1rem 1.2rem; line-height: 1.4; border-radius: 0.8rem; color: var(--ink); font-weight: 500; text-decoration: none; }
#cp-page-content .woocommerce-MyAccount-navigation .is-active a, #cp-page-content .woocommerce-MyAccount-navigation a:hover { background: var(--tint); color: var(--link); font-weight: 600; }
#cp-page-content .woocommerce-MyAccount-content fieldset { margin: 2.4rem 0 1.6rem; padding: 1.6rem 2rem 0.6rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--surface-soft); }
#cp-page-content .woocommerce-MyAccount-content legend { padding: 0 0.8rem; color: var(--ink); font-weight: 600; font-size: 1.6rem; }
#cp-page-content .woocommerce-MyAccount-content em, #cp-page-content .woocommerce-MyAccount-content .description { color: var(--muted); font-size: 1.3rem; }
.woocommerce-MyAccount-content { flex: 999 1 50rem; min-width: 0; float: none !important; width: auto !important; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { flex-basis: 100%; }
/* Logged out: log in and register side by side */
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem; width: 100%; }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { width: auto; float: none; padding: 2.4rem; border: 1px solid var(--line); border-radius: 1.6rem; background: var(--surface); }
.woocommerce-account .u-columns h2 { margin: 0 0 1.6rem; font-size: 2.4rem; color: var(--ink); }
.woocommerce form.login, .woocommerce form.register { margin: 0; padding: 0; border: 0; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: 1.6rem; color: var(--text); }
.woocommerce-LostPassword a { color: var(--link); }

@media (max-width: 767px) {
	#cp-page-inner { padding: 2.4rem 1.6rem 5.6rem; }
	#cp-page-title { font-size: 2.8rem; }
	.woocommerce-account .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-MyAccount-navigation { max-width: none; flex-basis: 100%; }
	.woocommerce table.shop_table_responsive tr td::before { color: var(--text); }
}

/* Maker store header (mu-plugins/cp-design-page/maker-store.php) */
#cp-store-head-inner { width: 100%; max-width: 128rem; margin: 0 auto; padding: 2.4rem 2.4rem 0; }
.cp-store { display: flex; flex-direction: column; gap: 1.6rem; width: 100%; }
.cp-store__cover { aspect-ratio: 1060 / 300; max-height: 30rem; width: 100%; border-radius: 2rem; overflow: hidden; background: var(--tint); }
.cp-store__cover--default { aspect-ratio: auto; height: 16.8rem; padding: 1.4rem; box-sizing: border-box; }
.cp-store__cover--default::before { content: ""; display: block; height: 100%; border: 2px dashed var(--accent-line); border-radius: 1.2rem; opacity: 0.6; }
.cp-store__banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-store__id { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2rem; margin-top: -6.4rem; padding-left: 2.8rem; }
.cp-store__avatar { width: 13.2rem; height: 13.2rem; border-radius: 99.9rem; object-fit: cover; border: 6px solid var(--background); background: #ffffff; flex: none; }
.cp-store__names { flex: 1 1 28rem; min-width: 0; padding-bottom: 0.6rem; }
.cp-store__title { margin: 0; font-size: 3.4rem; line-height: 1.15; color: var(--ink); font-weight: 700; }
.cp-store__follows { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin: 0.4rem 0 0; font-size: 1.5rem; color: var(--text); }
.cp-store__following { padding: 0.4rem 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 0.3rem; cursor: pointer; }
.cp-store__buttons { display: flex; gap: 1rem; padding-bottom: 0.6rem; }
.cp-store__buttons .cp-follow { background: var(--accent); border-color: var(--accent); color: #ffffff; padding: 0 2.4rem; }
.cp-store__buttons .cp-follow.following-active, .cp-store__buttons .cp-follow[aria-pressed="true"] { background: var(--tint); color: var(--link); border-color: var(--accent-line); }
.cp-store__stats { display: flex; flex-wrap: wrap; gap: 1.4rem 0; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.cp-store__stat { display: flex; flex-direction: column; padding: 0 2.2rem; border-left: 1px dashed var(--line-strong); }
.cp-store__stat:first-child { padding-left: 0; border-left: 0; }
.cp-store__num { font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.cp-store__label { font-size: 1.3rem; color: var(--text); }
.cp-store__about { margin: 0; max-width: 72rem; font-size: 1.6rem; line-height: 1.6; color: var(--text); }
.cp-store__links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.cp-store__links a { display: inline-flex; align-items: center; min-height: 3.6rem; padding: 0 1.4rem; border: 1px solid var(--line); border-radius: 99.9rem; color: var(--text); text-decoration: none; font-size: 1.4rem; }
.cp-store__links a:hover { color: var(--link); border-color: var(--accent-line); }
.cp-following-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; list-style: none; max-height: 60vh; overflow-y: auto; }
.cp-following-list a { display: flex; align-items: center; gap: 1.2rem; padding: 0.8rem 1rem; border-radius: 1rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.cp-following-list a:hover { background: var(--tint); color: var(--link); }
.cp-following-list img { width: 3.2rem; height: 3.2rem; border-radius: 99.9rem; object-fit: cover; }
@media (max-width: 767px) {
	#cp-store-head-inner { padding: 1.6rem 1.6rem 0; }
	.cp-store__id { margin-top: -4.8rem; padding-left: 1.2rem; gap: 1.2rem; }
	.cp-store__avatar { width: 9.6rem; height: 9.6rem; border-width: 4px; }
	.cp-store__title { font-size: 2.6rem; }
	.cp-store__stat { padding: 0 1.4rem; }
	.cp-store__num { font-size: 2rem; }
}

/* YouTube preview (cp-design-page.php): thumbnail + play button until pressed */
.cp-yt { position: relative; width: 100%; max-width: 64rem; aspect-ratio: 16 / 9; border-radius: 1.2rem; overflow: hidden; background: #000; margin: 1.6rem 0; }
.cp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-yt__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.cp-yt__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.cp-yt__icon { position: absolute; left: 50%; top: 50%; width: 6.8rem; height: 4.8rem; transform: translate(-50%, -50%); border-radius: 1.2rem; background: #e00; }
.cp-yt__icon::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 1rem 0 1rem 1.7rem; border-color: transparent transparent transparent #fff; }
.cp-yt__play:hover .cp-yt__icon, .cp-yt__play:focus-visible .cp-yt__icon { background: #c00; }
.cp-report-context { font-size: 1.6rem; color: var(--text); }
#cp-report-inner { width: 100%; max-width: 64rem; margin: 0 auto; padding: 4.8rem 2.4rem 7.2rem; display: flex; flex-direction: column; gap: 1.6rem; }
#cp-report-title { margin: 0; font-size: 3.4rem; color: var(--ink); }
#cp-report-inner .ff-el-section-break { display: none; }
/* Fluent Forms (report, contact and any form placed in page content) */
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-el-input--label label { color: var(--ink); font-weight: 600; }
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-el-form-control {
	min-height: 4.6rem; padding: 0.8rem 1.4rem; border: 1px solid var(--line-strong); border-radius: 1rem;
	background: var(--surface); color: var(--ink); font: inherit; font-size: 1.5rem;
}
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-el-form-control::placeholder { color: var(--muted); opacity: 1; }
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-el-form-control:focus { border-color: var(--accent-line); outline: 2px solid var(--accent-line); outline-offset: 1px; }
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-el-is-required.asterisk-right label::after { color: #ff7a7a; }
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-btn-submit {
	min-height: 4.8rem; padding: 0 2.4rem; border: 0; border-radius: 1.2rem;
	background: var(--accent) !important; color: #ffffff !important; font: inherit; font-weight: 600; cursor: pointer;
}
:is(#cp-report-inner, #cp-page-content, .cp-dialog) .ff-message-success { border: 1px solid #2f9e6a; border-radius: 1.2rem; background: var(--surface); color: var(--ink); }
:is(#cp-report-inner, #cp-page-content) .ff-el-section-title { color: var(--ink); }

/* Report dialog */
.cp-dialog { width: min(56rem, calc(100vw - 3.2rem)); padding: 2.4rem; border: 1px solid var(--line-strong); border-radius: 1.6rem; background: var(--surface); color: var(--text); }
.cp-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.cp-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.cp-dialog__head h2 { margin: 0; font-size: 2.2rem; color: var(--ink); }
.cp-dialog__close { width: 4.4rem; height: 4.4rem; border: 0; border-radius: 1rem; background: var(--surface-soft); color: var(--ink); font-size: 2.4rem; cursor: pointer; }
.cp-dialog input, .cp-dialog textarea, .cp-dialog select { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.cp-dialog .ff-el-section-break { display: none; } /* the form repeats the dialog title */
.cp-dialog .ff-el-input--label label { color: var(--ink); font-weight: 600; }
.cp-dialog .ff-btn-submit {
	min-height: 4.6rem; padding: 0 2.2rem; border: 0; border-radius: 1rem;
	background: var(--accent) !important; color: #ffffff !important; font: inherit; font-weight: 600; cursor: pointer;
}

@media (max-width: 767px) {
	#cp-prod-inner { padding: 1.6rem 1.6rem 5.6rem; gap: 1.8rem; }
	#cp-prod-top { gap: 2.4rem; }
	#cp-prod-title { font-size: 2.6rem; }
	.cp-buy__price { font-size: 2.8rem; }
	#cp-prod-tabs .wc-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 2rem; }
	#cp-prod-tabs .wc-tabs li a { white-space: nowrap; }
}

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