/*
Theme Name: Hiro Paper JP
Theme URI: https://hiropaper.jp/
Author: Hiro Paper
Description: Hiro Paperの日本向けWooCommerceサイト用に設計された、シンプルなダークテーマです。
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: hiro-paper-jp
*/

:root {
	--hpjp-bg: #0a161d;
	--hpjp-surface: #0f2029;
	--hpjp-surface-2: #132b37;
	--hpjp-surface-3: #173746;
	--hpjp-text: #f7fafc;
	--hpjp-muted: #afbec8;
	--hpjp-border: #35515e;
	--hpjp-brand: #22bde9;
	--hpjp-brand-hover: #55d3f5;
	--hpjp-action: #0f5275;
	--hpjp-action-hover: #14688f;
	--hpjp-success: #49c987;
	--hpjp-warning: #ffc857;
	--hpjp-error: #ff6b78;
	--hpjp-focus: #67d9fb;
	--hpjp-container: 1180px;
	--hpjp-narrow: 840px;
	--hpjp-gutter: clamp(16px, 3vw, 32px);
	--hpjp-radius: 8px;
	--hpjp-shadow: 0 12px 36px rgb(0 0 0 / 20%);
	--hpjp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--hpjp-bg);
	color: var(--hpjp-text);
	font-family: var(--hpjp-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

.site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
	width: 100%;
	padding-block: clamp(28px, 5vw, 64px);
}

.front-page-main {
	padding-top: clamp(20px, 3vw, 42px);
}

.site-container {
	width: min(100% - (2 * var(--hpjp-gutter)), var(--hpjp-container));
	margin-inline: auto;
}

.narrow-container {
	max-width: var(--hpjp-narrow);
}

.content-container,
.entry-content,
.front-page-content {
	min-width: 0;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

figure {
	margin-inline: 0;
}

a {
	color: var(--hpjp-brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--hpjp-brand-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--hpjp-focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 1.35em 0.55em;
	color: var(--hpjp-text);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

h1 {
	font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
	font-size: clamp(1.55rem, 3.5vw, 2.1rem);
}

h3 {
	font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

p,
ul,
ol,
blockquote,
pre,
table {
	margin-block: 0 1.35em;
}

hr {
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid var(--hpjp-border);
}

blockquote {
	margin-inline: 0;
	padding: 0.75rem 1.25rem;
	border-left: 4px solid var(--hpjp-brand);
	background: var(--hpjp-surface);
}

code,
kbd,
pre,
samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: #071117;
}

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

.screen-reader-text:focus,
.skip-link:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	border-radius: 4px;
	background: var(--hpjp-text);
	color: var(--hpjp-bg);
	font-weight: 700;
}

/* Header */
.site-header {
	--hpjp-logo-width: 164px;
	--hpjp-logo-height: 58px;
	z-index: 100;
	position: relative;
	flex: 0 0 auto;
	border-bottom: 1px solid var(--hpjp-border);
	background: rgb(7 20 27 / 96%);
	box-shadow: 0 2px 14px rgb(0 0 0 / 18%);
}

.header-inner {
	display: grid;
	min-height: 76px;
	grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
	align-items: center;
	gap: 24px;
}

.site-branding {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: flex-start;
}

.custom-logo-link {
	display: inline-flex;
	width: auto;
	max-width: var(--hpjp-logo-width);
	height: var(--hpjp-logo-height);
	align-items: center;
	overflow: hidden;
}

.site-header .site-branding .custom-logo-link img.custom-logo {
	display: block;
	width: auto !important;
	max-width: var(--hpjp-logo-width) !important;
	height: var(--hpjp-logo-height) !important;
	max-height: var(--hpjp-logo-height) !important;
	object-fit: contain;
}

.site-title {
	color: var(--hpjp-text);
	font-size: 1.15rem;
	font-weight: 800;
	text-decoration: none;
}

.primary-navigation .menu,
.footer-navigation .menu {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: clamp(18px, 3vw, 36px);
	list-style: none;
}

.primary-navigation .menu-item {
	position: relative;
}

.primary-navigation a {
	display: block;
	padding-block: 24px;
	color: var(--hpjp-text);
	font-size: 0.96rem;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}

.primary-navigation a::after {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	height: 2px;
	background: var(--hpjp-brand);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 160ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
	transform: scaleX(1);
}

.primary-navigation .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% - 10px);
	left: 50%;
	min-width: 210px;
	padding: 8px;
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
	box-shadow: var(--hpjp-shadow);
	list-style: none;
	transform: translateX(-50%);
}

.primary-navigation .sub-menu a {
	padding: 9px 12px;
	border-radius: 4px;
}

.primary-navigation .sub-menu a::after {
	display: none;
}

.primary-navigation .sub-menu a:hover {
	background: var(--hpjp-surface-2);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	display: block;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.header-icon-link,
.menu-toggle {
	display: inline-grid;
	position: relative;
	width: 42px;
	height: 42px;
	padding: 8px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hpjp-text);
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.header-icon-link:hover,
.menu-toggle:hover {
	background: var(--hpjp-surface-2);
	color: var(--hpjp-brand-hover);
}

.header-icon-link svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.header-cart-count {
	display: grid;
	position: absolute;
	top: 1px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding-inline: 4px;
	place-items: center;
	border: 2px solid #07141b;
	border-radius: 999px;
	background: var(--hpjp-brand);
	color: #041017;
	font-size: 0.67rem;
	font-weight: 800;
	line-height: 1;
}

.menu-toggle {
	display: none;
	cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
	display: block;
	position: absolute;
	width: 21px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle > span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle > span:nth-child(3) { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: rotate(-45deg); }

/* Content */
.content-card {
	padding: clamp(20px, 4vw, 42px);
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
	box-shadow: var(--hpjp-shadow);
}

.entry-header,
.archive-header {
	margin-bottom: clamp(24px, 4vw, 42px);
}

.entry-title,
.archive-title {
	margin-top: 0;
}

.entry-meta,
.archive-description {
	color: var(--hpjp-muted);
	font-size: 0.9rem;
}

.entry-thumbnail {
	margin-bottom: 2rem;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: var(--hpjp-radius);
}

.entry-content > :first-child,
.front-page-content .entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child,
.front-page-content .entry-content > :last-child {
	margin-bottom: 0;
}

.post-list {
	display: grid;
	gap: 22px;
}

.post-summary .entry-title {
	font-size: 1.5rem;
}

.post-summary .entry-title a {
	color: var(--hpjp-text);
	text-decoration: none;
}

.post-summary .entry-title a:hover {
	color: var(--hpjp-brand-hover);
}

.nav-links {
	display: flex;
	margin-top: 2rem;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.page-links,
.comments-area {
	margin-top: 2rem;
}

.comments-area .comment-list {
	padding-left: 1.25rem;
}

.comments-area .children {
	margin-top: 1rem;
}

.comments-area .comment-body {
	margin-bottom: 1rem;
	padding: 14px;
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface-2);
}

.search-form {
	display: flex;
	align-items: end;
	gap: 10px;
}

.search-form label {
	flex: 1;
}

.page-numbers,
.post-navigation a {
	display: inline-flex;
	padding: 8px 12px;
	border: 1px solid var(--hpjp-border);
	border-radius: 5px;
	background: var(--hpjp-surface);
	color: var(--hpjp-text);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
	border-color: var(--hpjp-brand);
	color: var(--hpjp-brand-hover);
}

.error-404 {
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--hpjp-brand);
	font-size: clamp(4rem, 15vw, 8rem);
	font-weight: 850;
	line-height: 1;
}

/* Forms and buttons */
button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	min-height: 44px;
	padding: 10px 18px;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 5px;
	background: var(--hpjp-action);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--hpjp-action-hover);
	color: #fff;
}

button:active,
.button:active,
.wp-element-button:active {
	transform: translateY(1px);
}

button:disabled,
input:disabled,
.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

label {
	color: var(--hpjp-text);
	font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
select,
textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--hpjp-border);
	border-radius: 5px;
	background: #09141a;
	color: var(--hpjp-text);
	font: inherit;
	line-height: 1.4;
}

textarea {
	min-height: 130px;
	resize: vertical;
}

select {
	color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
	color: #8297a4;
	opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--hpjp-brand);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--hpjp-text);
	box-shadow: 0 0 0 1000px #09141a inset;
	transition: background-color 9999s ease-out;
}

table {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
}

th,
td {
	padding: 12px;
	border: 1px solid var(--hpjp-border);
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--hpjp-surface-2);
	color: var(--hpjp-text);
}

/* WordPress blocks */
.alignwide,
.alignfull {
	width: 100%;
	max-width: 100%;
}

.wp-block-image img,
.wp-block-video video,
.wp-block-cover,
.wp-block-media-text {
	border-radius: var(--hpjp-radius);
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-separator {
	border-color: var(--hpjp-border);
}

/* WooCommerce shared */
.woocommerce-main {
	min-height: 55vh;
}

.woocommerce,
.woocommerce-page {
	--wc-form-color-background: #09141a;
	--wc-form-color-text: var(--hpjp-text);
	--wc-form-color-border: var(--hpjp-border);
	--wc-primary: var(--hpjp-brand);
	--wc-red: var(--hpjp-error);
	--wc-green: var(--hpjp-success);
	color: var(--hpjp-text);
}

.woocommerce a {
	color: var(--hpjp-brand);
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-product-rating,
.woocommerce .product_meta,
.woocommerce .woocommerce-ordering,
.woocommerce small,
.wc-block-components-product-metadata {
	color: var(--hpjp-muted);
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--hpjp-muted);
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--hpjp-brand-hover);
}

.woocommerce span.onsale {
	min-width: 0;
	min-height: 0;
	padding: 5px 9px;
	border-radius: 4px;
	background: var(--hpjp-brand);
	color: #041017;
	font-size: 0.78rem;
	line-height: 1.25;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 34px);
	margin: 2rem 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.woocommerce ul.products li.product:hover {
	border-color: #4a7487;
	box-shadow: var(--hpjp-shadow);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
	margin-bottom: 14px;
	border-radius: 6px;
	background: #fff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	color: var(--hpjp-text);
	font-size: 1rem;
	line-height: 1.5;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--hpjp-brand-hover);
	font-weight: 750;
}

.woocommerce ul.products li.product .button {
	margin-top: 12px;
}

.woocommerce .star-rating,
.woocommerce .stars a {
	color: var(--hpjp-warning);
}

.woocommerce div.product {
	min-width: 0;
}

.woocommerce div.product div.images img {
	border-radius: var(--hpjp-radius);
	background: #fff;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	border-bottom: 1px solid var(--hpjp-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-color: var(--hpjp-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-color: var(--hpjp-border);
	background: var(--hpjp-surface);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--hpjp-surface-2);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--hpjp-text);
}

.woocommerce div.product form.cart .variations select,
.woocommerce .quantity .qty {
	background: #09141a;
	color: var(--hpjp-text);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 5px;
	background: var(--hpjp-action);
	color: #fff;
	font-weight: 700;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--hpjp-action-hover);
	color: #fff;
}

.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-color: var(--hpjp-border);
}

.woocommerce table.shop_table {
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	background: var(--hpjp-surface-2);
	color: var(--hpjp-text);
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	padding: 14px 18px 14px 50px;
	border: 1px solid var(--hpjp-border);
	border-top-width: 3px;
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
	color: var(--hpjp-text);
}

.woocommerce-info { border-top-color: var(--hpjp-brand); }
.woocommerce-message { border-top-color: var(--hpjp-success); }
.woocommerce-error { border-top-color: var(--hpjp-error); }

.woocommerce-info::before { color: var(--hpjp-brand); }
.woocommerce-message::before { color: var(--hpjp-success); }
.woocommerce-error::before { color: var(--hpjp-error); }

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	border-color: var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
.select2-dropdown,
.select2-search--dropdown .select2-search__field {
	border-color: var(--hpjp-border);
	background: #09141a;
	color: var(--hpjp-text);
}

.select2-container--default .select2-selection--single {
	height: 46px;
	padding: 8px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--hpjp-text);
	line-height: 28px;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--hpjp-surface-3);
	color: var(--hpjp-text);
}

.woocommerce-checkout #payment {
	border: 1px solid var(--hpjp-border);
	background: var(--hpjp-surface);
	color: var(--hpjp-text);
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--hpjp-surface-2);
	color: var(--hpjp-text);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--hpjp-surface-2);
}

.woocommerce-MyAccount-navigation ul {
	margin: 0 0 2rem;
	padding: 0;
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
	list-style: none;
}

.woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid var(--hpjp-border);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
	background: var(--hpjp-surface-2);
	color: var(--hpjp-brand-hover);
}

/* WooCommerce Cart and Checkout blocks */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	min-height: 50vh;
	color: var(--hpjp-text);
}

.wc-block-components-sidebar-layout,
.wc-block-components-main,
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-panel,
.wc-block-components-checkout-step,
.wc-block-checkout__terms,
.wc-block-checkout__actions {
	color: var(--hpjp-text);
}

.wc-block-components-sidebar {
	padding: clamp(16px, 3vw, 28px);
	border: 1px solid var(--hpjp-border);
	border-radius: var(--hpjp-radius);
	background: var(--hpjp-surface);
}

.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-components-checkout-step,
.wc-block-cart-items,
.wc-block-cart-items th,
.wc-block-cart-items td {
	border-color: var(--hpjp-border) !important;
}

.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-product-name,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-cart-item__prices,
.wc-block-components-order-summary-item__description,
.wc-block-components-address-card__address-section,
.wc-block-components-radio-control__label,
.wc-block-components-checkbox__label {
	color: var(--hpjp-text) !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-address-form select,
.wc-block-components-select .wc-block-components-select__select {
	border-color: var(--hpjp-border) !important;
	background: #09141a !important;
	color: var(--hpjp-text) !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-block-components-select .wc-block-components-select__label {
	color: var(--hpjp-muted) !important;
}

.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option,
.wc-block-checkout__payment-method .wc-block-components-radio-control {
	border-color: var(--hpjp-border) !important;
	background: var(--hpjp-surface) !important;
	color: var(--hpjp-text) !important;
}

.wc-block-components-radio-control-accordion-content {
	background: var(--hpjp-surface-2);
	color: var(--hpjp-text);
}

.wc-block-components-notice-banner {
	border-color: var(--hpjp-border) !important;
	background: var(--hpjp-surface) !important;
	color: var(--hpjp-text) !important;
}

.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border: 0 !important;
	background: var(--hpjp-action) !important;
	color: #fff !important;
}

.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--hpjp-action-hover) !important;
}

.wc-block-components-quantity-selector {
	border-color: var(--hpjp-border) !important;
	background: #09141a;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	background: transparent !important;
	color: var(--hpjp-text) !important;
}

.wc-block-components-validation-error,
.wc-block-components-error {
	color: #ff9aa3 !important;
}

.wc-block-components-payment-method-icons img,
.wc-block-components-payment-method-icon {
	background: #fff;
	border-radius: 3px;
}

.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
	background: var(--hpjp-border) !important;
}

/* Footer */
.site-footer {
	flex: 0 0 auto;
	padding-block: 24px;
	border-top: 1px solid var(--hpjp-border);
	background: #07141b;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-copyright {
	margin: 0;
	color: var(--hpjp-muted);
	font-size: 0.82rem;
}

.footer-navigation a {
	color: var(--hpjp-muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.footer-navigation a:hover {
	color: var(--hpjp-brand-hover);
}

@media (max-width: 900px) {
	.header-inner {
		grid-template-columns: 1fr auto;
		gap: 12px;
	}

	.menu-toggle {
		display: inline-grid;
	}

	.primary-navigation {
		display: none;
		grid-column: 1 / -1;
		padding-bottom: 14px;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation .menu {
		display: block;
		border: 1px solid var(--hpjp-border);
		border-radius: var(--hpjp-radius);
		background: var(--hpjp-surface);
	}

	.primary-navigation .menu-item + .menu-item {
		border-top: 1px solid var(--hpjp-border);
	}

	.primary-navigation a {
		padding: 12px 16px;
	}

	.primary-navigation a::after {
		display: none;
	}

	.primary-navigation .sub-menu {
		display: block;
		position: static;
		min-width: 0;
		padding: 0 0 8px 18px;
		border: 0;
		background: transparent;
		box-shadow: none;
		transform: none;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.site-header {
		--hpjp-logo-width: 120px;
		--hpjp-logo-height: 50px;
	}

	.header-inner {
		min-height: 68px;
	}

	.header-actions {
		gap: 2px;
	}

	.header-icon-link,
	.menu-toggle {
		width: 39px;
		height: 39px;
	}

	.site-main {
		padding-block: 24px 40px;
	}

	.content-card {
		padding: 18px;
	}

	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li {
		display: block;
		margin: 0 0 6px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-navigation .menu {
		flex-wrap: wrap;
		gap: 8px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
