/**
 * ReWear Studio: rules theme.json cannot express.
 * Tokens come from theme.json custom properties (--wp--preset--*, --wp--custom--*).
 * Visual language: denim topstitching, a swing hang tag, rose and chambray grounds.
 */

:root {
	--rw-line: 1px solid var(--wp--preset--color--line);
	--rw-ink-line: 2px solid var(--wp--preset--color--ink);
	--rw-tag-shape: polygon(18% 0, 82% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
	--rw-string: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='32' viewBox='0 0 28 32'%3E%3Cpath d='M14 30 C 2 18, 4 4, 14 2 C 24 4, 26 18, 14 30' fill='none' stroke='%23C98A1E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */

h1, h2, h3, h4, h5, h6,
.wp-block-site-title {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

.wp-block-site-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.45rem;
	line-height: 1;
	letter-spacing: -0.01em;
}

.wp-block-site-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

::selection {
	background: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--ink);
}

/* ---------- Focus & accessibility ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--thread);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

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

[id] {
	scroll-margin-top: 2rem;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.rw-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-rose-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--paper);
}

.wp-block-button.rw-btn-light > .wp-block-button__link {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.wp-block-button.rw-btn-light > .wp-block-button__link:hover {
	background: var(--wp--preset--color--rose);
	border-color: var(--wp--preset--color--rose);
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* ---------- Full-width sections sit flush ---------- */

.wp-block-post-content > .alignfull + .alignfull,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Signature 1: topstitching ---------- */

.rw-stitched {
	position: relative;
	border-radius: var(--wp--custom--radius--large);
}

.rw-stitched::after {
	content: "";
	position: absolute;
	inset: 7px;
	border: 2px dashed var(--wp--preset--color--thread);
	border-radius: 6px;
	pointer-events: none;
}

/* ---------- Signature 2: the swing hang tag ---------- */

.rw-hang {
	position: relative;
	display: inline-block;
	padding-top: 28px;
	margin: 0;
}

.rw-hang::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 28px;
	height: 32px;
	margin-left: -14px;
	background: var(--rw-string) no-repeat center / contain;
	z-index: 1;
}

.rw-tag {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	min-width: 7.2rem;
	padding: 1.6rem 0.9rem 0.7rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	border: var(--rw-ink-line);
	clip-path: var(--rw-tag-shape);
	transform: rotate(-5deg);
	transform-origin: 50% 0;
	text-align: center;
	line-height: 1;
}

/* Diagonal shoulders: clip-path cuts the border, so redraw the corners. */
.rw-tag {
	background:
		linear-gradient(to bottom left, transparent calc(50% - 1.4px), var(--wp--preset--color--ink) calc(50% - 1.4px), var(--wp--preset--color--ink) calc(50% + 1.4px), transparent calc(50% + 1.4px)) top right / 18% 16% no-repeat,
		linear-gradient(to bottom right, transparent calc(50% - 1.4px), var(--wp--preset--color--ink) calc(50% - 1.4px), var(--wp--preset--color--ink) calc(50% + 1.4px), transparent calc(50% + 1.4px)) top left / 18% 16% no-repeat,
		var(--wp--preset--color--paper);
}

/* The eyelet. */
.rw-tag::before {
	content: "";
	position: absolute;
	top: 0.55rem;
	left: 50%;
	width: 0.6rem;
	height: 0.6rem;
	margin-left: -0.3rem;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--rose);
}

.rw-tag__price {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	line-height: 1;
}

.rw-tag__grade {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--denim);
}

.rw-tag__grade:empty { display: none; }

/* ---------- Header ---------- */

.rw-notice p {
	margin: 0;
}

.rw-brand__icon {
	margin: 0;
	flex-shrink: 0;
}

.rw-primary-nav {
	font-size: 0.95rem;
	font-weight: 500;
}

.rw-primary-nav .wp-block-navigation-item > a {
	padding: 0.25rem 0.1rem;
	text-decoration: none;
}

.rw-primary-nav .wp-block-navigation-item > a:hover,
.rw-primary-nav .wp-block-navigation-item.current-menu-item > a,
.rw-primary-nav .wp-block-navigation-item > a[aria-current] {
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--wp--preset--color--thread);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.rw-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--custom--gutter);
}

.rw-primary-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.rw-primary-nav .is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0.9rem;
}

.rw-primary-nav .is-menu-open .wp-block-navigation-item > a {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
}

@media (max-width: 599px) {
	.rw-header .alignwide { gap: 0.25rem; }
	.rw-brand { margin-right: auto; }
	.rw-primary-nav { order: 3; }
	.rw-notice p { font-size: 0.8rem !important; }
}

@media (min-width: 600px) and (max-width: 1099px) {
	.rw-header .alignwide {
		flex-wrap: wrap !important;
		row-gap: 0.6rem;
	}
	.rw-brand { margin-right: auto; }
	.rw-primary-nav {
		order: 3;
		flex-basis: 100%;
	}
	.rw-primary-nav .wp-block-navigation__container {
		justify-content: flex-start;
		gap: 0.4rem 1.1rem;
	}
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--thread) !important;
	color: var(--wp--preset--color--ink) !important;
	font-weight: 700;
}

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

.rw-footer .wp-block-site-title a { color: var(--wp--preset--color--paper); }

.rw-footer__tagline {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--paper);
	line-height: 1.25;
}

.rw-footer__heading {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 0.9rem;
}

.rw-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.55rem;
}

.rw-footer a { text-decoration: none; }

.rw-footer a:hover {
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--wp--preset--color--thread);
	text-underline-offset: 5px;
}

.rw-footer__rule {
	border-color: rgba(230, 234, 243, 0.25) !important;
	opacity: 1;
}

@media (max-width: 781px) {
	.rw-footer .wp-block-columns { row-gap: var(--wp--preset--spacing--50); }
}

/* ---------- Shared bits ---------- */

.rw-lead-line {
	font-weight: 600;
	margin-bottom: 0;
}

.rw-strip { margin-top: 1.1rem; }

.rw-statement {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
	padding-left: 1rem;
	border-left: 3px dashed var(--wp--preset--color--thread);
}

/* Chambray panel: soft information card. */
.rw-panel {
	background: var(--wp--preset--color--chambray);
	border-radius: var(--wp--custom--radius--large);
	padding: 1.3rem 1.4rem 1.25rem;
}

.has-chambray-background-color .rw-panel { background: var(--wp--preset--color--paper); }

.rw-panel > * { margin: 0; }

.rw-plain-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.6rem;
}

.rw-photo { margin: 0; }

.rw-photo img {
	width: 100%;
	border-radius: var(--wp--custom--radius--medium);
}

/* ---------- Hero ---------- */

.rw-hero__title {
	line-height: 0.95;
	letter-spacing: -0.015em;
}

.rw-hero__lede { max-width: 44ch; }

.rw-hero__media {
	position: relative;
}

.rw-hero__photo {
	margin: 0;
}

.rw-hero__photo img {
	width: 100%;
	border-radius: var(--wp--custom--radius--medium);
}

.rw-hero__media > .rw-hang {
	position: absolute;
	left: -26px;
	bottom: -34px;
}

@media (max-width: 781px) {
	.rw-hero__media > .rw-hang { left: 12px; bottom: -40px; }
}

/* ---------- Category photo cards ---------- */

.rw-cat-card {
	position: relative;
}

.rw-cat-card > * { margin: 0; }

.rw-cat-card__photo { margin: 0; overflow: hidden; border-radius: var(--wp--custom--radius--medium); }

.rw-cat-card__photo img {
	width: 100%;
	border-radius: var(--wp--custom--radius--medium);
	transition: transform 0.3s ease;
}

.rw-cat-card:hover .rw-cat-card__photo img { transform: scale(1.03); }

.rw-cat-card__title { margin-top: 0.5rem !important; }

.rw-cat-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* Whole card is the link. */
.rw-cat-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.rw-cat-card p { color: var(--wp--preset--color--muted); }

.rw-more {
	margin-top: auto !important;
	font-weight: 600;
	color: var(--wp--preset--color--denim) !important;
}

.rw-cat-card:hover .rw-cat-card__title a,
.rw-cat-card__title a:focus-visible {
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--wp--preset--color--thread);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* ---------- Reasons, values, grades ---------- */

.rw-why h2 { margin: 0 0 var(--wp--preset--spacing--40); }

.rw-reason > *,
.rw-reason .wp-block-image { margin: 0; }

.rw-reason__icon img {
	background: var(--wp--preset--color--paper);
	border-radius: 50% !important;
	padding: 6px;
}

.rw-reason p { color: var(--wp--preset--color--night-light); }

.rw-value {
	border-top: 2px dashed var(--wp--preset--color--thread);
	padding-top: 0.9rem;
}

.rw-value > * { margin: 0; }
.rw-value p { color: var(--wp--preset--color--muted); }

.rw-grade {
	border: var(--rw-line);
	border-radius: var(--wp--custom--radius--large);
	padding: 1rem 1.1rem;
	background: var(--wp--preset--color--paper);
}

.rw-grade > * { margin: 0; }

.rw-grade__name,
.rw-grade-pill {
	display: inline-block;
	align-self: flex-start;
	padding: 0.2rem 0.6rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--chambray);
	color: var(--wp--preset--color--denim);
	font-weight: 700;
	font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.rw-faq {
	border-bottom: var(--rw-line);
	padding: 1rem 0;
}

.rw-faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--medium);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.rw-faq summary::-webkit-details-marker { display: none; }

.rw-faq summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1;
	width: 1.8rem;
	height: 1.8rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--rose);
	flex-shrink: 0;
}

.rw-faq[open] summary::after {
	content: "\2212";
	background: var(--wp--preset--color--denim);
	color: var(--wp--preset--color--paper);
}

.rw-faq[open] summary { margin-bottom: 0.6rem; }
.rw-faq p { margin: 0; max-width: 65ch; }

.rw-grades { margin-top: var(--wp--preset--spacing--60) !important; }

/* ---------- Newsletter ---------- */

.rw-newsletter p { color: var(--wp--preset--color--night-light); }

/* ---------- Shop: header, pills, filters ---------- */

.rw-page-header .wp-block-column > * { margin-block: 0; }
.rw-page-header .wp-block-column > * + * { margin-block-start: 1rem; }

.rw-chips {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rw-chips li { margin: 0; }

.rw-chips a {
	display: inline-block;
	padding: 0.5rem 0.95rem;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.rw-chips a:hover { background: var(--wp--preset--color--rose); }

.rw-chips a[aria-current="page"] {
	background: var(--wp--preset--color--denim);
	border-color: var(--wp--preset--color--denim);
	color: var(--wp--preset--color--paper);
}

.rw-delivery-note {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.rw-sort-row {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.rw-sort-row select {
	font: inherit;
	padding: 0.45rem 2rem 0.45rem 0.75rem;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--small);
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.wc-block-breadcrumbs,
.woocommerce-breadcrumb { color: var(--wp--preset--color--muted); }

.rw-filters {
	font-size: var(--wp--preset--font-size--small);
}

.rw-filters h2 { margin: 0 0 0.5rem; }

.rw-filters h3 {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	margin: 1.25rem 0 0.5rem !important;
	padding-top: 1rem;
	border-top: var(--rw-line);
}

.rw-filters .wc-block-product-filter-checkbox-list__input {
	accent-color: var(--wp--preset--color--denim);
}

.rw-filters .wc-block-product-filters__open-overlay {
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--small);
	padding: 0.6rem 1rem;
	font-weight: 600;
	background: var(--wp--preset--color--paper);
}

@media (max-width: 781px) {
	.rw-shop-layout__filters { flex-basis: auto !important; }
}

/* ---------- Product cards ---------- */

.rw-product-card {
	position: relative;
	height: 100%;
}

.rw-product-card > * {
	width: 100%;
	margin: 0;
}

.rw-card-photo {
	position: relative;
	margin: 0 !important;
	overflow: visible;
}

.rw-card-photo img {
	border-radius: var(--wp--custom--radius--medium);
	background: #f4f3f5;
}

.rw-hang--card {
	position: absolute;
	right: 10px;
	top: -6px;
	z-index: 2;
	pointer-events: none;
}

.rw-hang--card .rw-tag {
	min-width: 5.6rem;
	padding: 1.4rem 0.6rem 0.55rem;
}

.rw-hang--card .rw-tag__price { font-size: 1.25rem; }
.rw-hang--card .rw-tag__grade { font-size: 0.75rem; }

.rw-product-card .wp-block-post-title {
	margin-top: 0.85rem !important;
}

.rw-product-card .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rw-product-card .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--wp--preset--color--thread);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.rw-card-meta {
	margin: 0.2rem 0 0 !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.rw-product-card .wp-block-woocommerce-product-summary {
	line-height: 1.45;
}

.rw-product-card .wc-block-components-product-summary { padding: 0; }
.rw-product-card .wc-block-components-product-summary p { margin: 0; }

.rw-product-card__buy {
	margin-top: auto !important;
	padding-top: 0.6rem;
	align-items: center;
}

.rw-price .wc-block-components-product-price,
.rw-product-card .wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	color: var(--wp--preset--color--ink);
	margin: 0 !important;
}

.rw-product-card .wc-block-components-product-button {
	margin: 0 !important;
	align-items: flex-end;
}

.rw-product-card .wp-block-button__link,
.rw-product-card .wc-block-components-product-button__button {
	font-size: 0.9rem !important;
	padding: 0.7rem 1rem !important;
	margin: 0 !important;
	white-space: nowrap;
	border-radius: var(--wp--custom--radius--small) !important;
}

.rw-product-card .added_to_cart {
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.35rem;
}

/* ---------- Single product ---------- */

.rw-product__summary > * + * { margin-block-start: 1.1rem; }

.rw-product-cats { font-size: var(--wp--preset--font-size--small); font-weight: 600; }

.rw-product__summary .wp-block-post-excerpt__excerpt { margin: 0; }

.rw-product__summary .quantity { display: none; }

.rw-product__summary .single_add_to_cart_button {
	background: var(--wp--preset--color--denim) !important;
	color: var(--wp--preset--color--paper) !important;
	border: 2px solid var(--wp--preset--color--denim) !important;
	border-radius: var(--wp--custom--radius--small) !important;
	font-weight: 600;
	padding: 0.95rem 1.8rem !important;
}

.rw-product__summary .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink) !important;
}

.rw-product__gallery .wp-block-woocommerce-product-image-gallery { max-width: none; }

.rw-product__gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
}

.rw-product__gallery .woocommerce-product-gallery__image img,
.rw-product__gallery .flex-viewport {
	border-radius: var(--wp--custom--radius--medium);
}

.rw-product__gallery .woocommerce-product-gallery__wrapper {
	background: #f4f3f5;
	border-radius: var(--wp--custom--radius--medium);
}

/* "Condition & measurements": the hang tag as a panel. */
.rw-tag-panel {
	max-width: 28rem;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--chambray);
	padding: 1.3rem 1.4rem 1.2rem;
}

.rw-tag-panel__title {
	font-size: 1.35rem;
	margin: 0 0 0.7rem;
}

.rw-tag-panel dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1rem;
	margin: 0;
	font-size: 0.93rem;
}

.rw-tag-panel dt { color: var(--wp--preset--color--muted); }
.rw-tag-panel dd { margin: 0; font-weight: 600; }
.rw-tag-panel .rw-grade-pill { margin-right: 0.35rem; font-size: 0.82rem; background: var(--wp--preset--color--paper); }

.rw-tag-panel__one {
	margin: 0.9rem 0 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--wp--preset--color--denim);
}

.rw-tag-panel__sample {
	margin: 0.3rem 0 0;
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
}

.rw-product-details { margin-top: var(--wp--preset--spacing--60) !important; }

.rw-product-details .wc-tabs li a {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.rw-product-details .woocommerce-Tabs-panel {
	max-width: 720px;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.rw-product-details .woocommerce-Tabs-panel > h2:first-child { display: none; }

.rw-product-details .woocommerce-Tabs-panel h2 {
	font-size: var(--wp--preset--font-size--large);
	margin-top: var(--wp--preset--spacing--40);
}

.rw-product-details .woocommerce-Tabs-panel ul { padding-left: 1.2rem; }

/* ---------- Style Journal ---------- */

.rw-post-card .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--medium);
}

.rw-post-card .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rw-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--wp--preset--color--thread);
	text-underline-offset: 6px;
}

.rw-post-card .wp-block-post-excerpt__excerpt { margin: 0; }

.rw-prose {
	font-size: 1.125rem;
	line-height: 1.7;
}

.rw-prose > * + h2,
.rw-prose > * + h3 { margin-top: var(--wp--preset--spacing--50); }

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

.rw-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--small);
	padding: 0.75rem 1rem;
	font: inherit;
}

.rw-search .wp-block-search__button { margin-left: 0.5rem; }

/* ---------- Forms (Fluent Forms inside [rewear_form]) ---------- */

.rw-form .ff-el-input--label label {
	font-weight: 600;
	font-size: 0.95rem;
}

.rw-form .ff-el-form-control {
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 1px solid #8a8490;
	border-radius: var(--wp--custom--radius--small);
	padding: 0.8rem 1rem;
	min-height: 3rem;
}

.rw-form .ff-el-form-control::placeholder { color: #6b6572; }

.rw-form .ff-el-form-control:focus {
	outline: 3px solid var(--wp--preset--color--thread);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--ink);
	box-shadow: none;
}

.rw-form .ff-el-is-error .ff-el-form-control { border-color: #b3261e; }

.rw-form .error.text-danger {
	color: #b3261e;
	font-size: 0.875rem;
	margin-top: 0.35rem;
}

.rw-form input[type="checkbox"] {
	accent-color: var(--wp--preset--color--denim);
	width: 1.1rem;
	height: 1.1rem;
}

.rw-form .ff-btn-submit {
	font: inherit;
	font-weight: 600 !important;
	font-size: 1rem !important;
	border-radius: var(--wp--custom--radius--small) !important;
	padding: 0.95rem 1.6rem !important;
	background-color: var(--wp--preset--color--denim) !important;
	color: var(--wp--preset--color--paper) !important;
	border: 2px solid var(--wp--preset--color--denim) !important;
}

.rw-form .ff-btn-submit:hover {
	background-color: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink) !important;
	opacity: 1;
}

.rw-form .ff-message-success {
	border: 0;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--chambray);
	color: var(--wp--preset--color--ink);
	box-shadow: none;
	padding: 1.25rem 1.5rem;
}

/* Newsletter sits on night: light labels, rose button. */
.rw-form--newsletter .ff-el-input--label label,
.rw-form--newsletter .ff_t_c,
.rw-form--newsletter .ff-el-tc label { color: var(--wp--preset--color--night-light); }

.rw-form--newsletter .ff_t_c a,
.rw-form--newsletter .ff-el-tc a { color: var(--wp--preset--color--paper); }

.rw-form--newsletter .ff-el-form-control { border-color: var(--wp--preset--color--paper); }

.rw-form--newsletter input[type="checkbox"] { accent-color: var(--wp--preset--color--rose); }

.rw-form--newsletter .ff-btn-submit {
	background-color: var(--wp--preset--color--rose) !important;
	border-color: var(--wp--preset--color--rose) !important;
	color: var(--wp--preset--color--ink) !important;
}

.rw-form--newsletter .ff-btn-submit:hover {
	background-color: var(--wp--preset--color--paper) !important;
	border-color: var(--wp--preset--color--paper) !important;
}

.rw-form--newsletter .error.text-danger { color: #ffd2cc; }

.rw-form--newsletter .ff-message-success { background: var(--wp--preset--color--rose); }

/* ---------- Basket & checkout ---------- */

.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-mini-cart__footer .wc-block-components-button {
	border-radius: var(--wp--custom--radius--small);
	font-weight: 600;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
}

/* One-of-a-kind items: hide quantity steppers in the basket. */
.wc-block-components-quantity-selector:has(input[max="1"]) { display: none; }

/* ---------- Small screens ---------- */

@media (max-width: 599px) {
	.rw-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.5rem 0.9rem !important;
	}

	.rw-cat-card p:not(.rw-more) { font-size: var(--wp--preset--font-size--small); }
	.rw-cat-card__title { font-size: 1.15rem !important; }

	.rw-stitched { padding-left: 1.4rem !important; padding-right: 1.4rem !important; }
}
