/*
 * Rat's Loot: shared layout of the retro themes. The skins (theme-*.css) set the variables and the look.
 * Rules that must always hold:
 *   - one pixel font everywhere, only at whole multiples of its grid (other sizes look blurry);
 *   - all pixel art is drawn at 2x, the same scale as the text;
 *   - pointing at something only changes colours or shows a cursor that already has its space:
 *     nothing moves and nothing changes size;
 *   - only one cursor is visible at a time, so cursors only follow the pointer.
 */
@font-face { font-family: "PixelMplus10"; src: url(fonts/pixelmplus10.woff2?v=1795382966) format("woff2"); font-display: block; }
@font-face { font-family: "PixelMplus10"; font-weight: 700; src: url(fonts/pixelmplus10-bold.woff2?v=1795382966) format("woff2"); font-display: block; }
@font-face { font-family: "PixelMplus10"; src: url(fonts/pixelmplus10-jp.woff2?v=1795382966) format("woff2"); font-display: swap; unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; }
@font-face { font-family: "PixelMplus12"; src: url(fonts/pixelmplus12.woff2?v=1795382966) format("woff2"); font-display: block; }
@font-face { font-family: "PixelMplus12"; font-weight: 700; src: url(fonts/pixelmplus12-bold.woff2?v=1795382966) format("woff2"); font-display: block; }
@font-face { font-family: "PixelMplus12"; src: url(fonts/pixelmplus12-jp.woff2?v=1795382966) format("woff2"); font-display: swap; unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Press Start 2P"; src: url(fonts/pressstart2p.woff2?v=1795380636) format("woff2"); font-display: block; }

:root { --rl-page: 1240px; --rl-side: 252px; --rl-gap: 16px; --rl-pad: 16px; }

/* ---------- text: one size everywhere, one larger size for product names and prices ---------- */
html { -webkit-text-size-adjust: 100%; }
html body, html body *:not(svg):not(path):not(model-viewer):where(:not(#wpadminbar, #wpadminbar *)) { font-family: var(--rl-font) !important; letter-spacing: 0 !important; font-synthesis: none; font-style: normal !important; }
html body, html body :is(p, li, a, span, div, td, th, label, button, input, select, textarea, small, em, strong, b, figcaption, summary, dd, dt, address,
	mark, bdi, legend, nav, ul, ol, table, form, section, article, aside, header, footer, main, h1, h2, h3, h4, h5, h6, caption, blockquote, cite, time, abbr, i, u, s, del, ins):where(:not(#wpadminbar, #wpadminbar *)) {
	font-size: var(--rl-fs) !important; line-height: var(--rl-lh) !important;
}
html body, html body :is(p, li, a, span, div, td, th, label, button, input, select, textarea, small, em, figcaption, summary, dd, dt, bdi, legend):where(:not(#wpadminbar, #wpadminbar *)) { font-weight: 400 !important; }
html body :is(h1, h2, h3, h4, h5, h6) { font-weight: var(--rl-weight-h, 400) !important; color: var(--rl-head); margin: var(--rl-lh) 0 calc(var(--rl-lh) / 2) !important; text-wrap: initial; }
html body :is(h1, h2, h3, h4, h5, h6, strong, b, th) :is(a, span) { font-weight: inherit !important; }
html body :is(strong, b, th) { font-weight: var(--rl-weight-h, 400) !important; color: var(--rl-strong, inherit); }
html body.single-product h1.wp-block-post-title, html body h1.product_title {
	font-size: var(--rl-fs-big) !important; line-height: var(--rl-lh-big) !important; margin: 0 0 8px !important; color: var(--rl-text);
}
html body { color: var(--rl-text); margin: 0; }
html body a { color: var(--rl-link); text-underline-offset: 4px; text-decoration-thickness: 2px !important; }
html body p { margin: 0 0 calc(var(--rl-lh) / 2); }
img, video, model-viewer, iframe, canvas { image-rendering: auto; }
[hidden] { display: none !important; }
* { transition: none !important; }
html { scroll-behavior: auto; }
::selection { background: var(--rl-accent); color: #000; text-shadow: none; }

/* ---------- windows ---------- */
.rl-win, header.wp-block-template-part > .wp-block-group, footer.wp-block-template-part > .wp-block-group {
	border: var(--rl-win-w) solid transparent; border-image: var(--rl-win) var(--rl-win-slice) fill / var(--rl-win-w) stretch;
	background: none !important; box-sizing: border-box; image-rendering: pixelated;
}
/* the big content window of a page (item list, product, cart ...) */
body:not(.rl-listing) main#wp--skip-link--target, body.rl-archive main#wp--skip-link--target::before, .rl-section {
	border: var(--rl-list-w) solid transparent; border-image: var(--rl-list) var(--rl-list-slice) fill / var(--rl-list-w) stretch;
	background: none !important; box-sizing: border-box; image-rendering: pixelated;
}
.wp-site-blocks { background: transparent !important; padding: 0 !important; position: relative; }
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* ---------- header ---------- */
header.wp-block-template-part { padding: 12px 12px 0; position: relative; z-index: 20; }
header.wp-block-template-part > .wp-block-group { max-width: var(--rl-page); margin: 0 auto !important; padding: 0 !important; }
header.wp-block-template-part .wp-block-group { padding-top: 0 !important; padding-bottom: 0 !important; }
header.wp-block-template-part .wp-block-group .wp-block-group { margin: 0 !important; }
header.wp-block-template-part > .wp-block-group > .wp-block-group { padding-left: 8px !important; padding-right: 8px !important; }
header .alignwide { max-width: none !important; min-height: 52px; gap: 12px !important; }
header .alignwide > .wp-block-group { gap: 12px !important; }
header .wp-block-site-title { margin: 0 !important; white-space: nowrap; }
header .wp-block-site-title a { text-decoration: none !important; }
header .wp-block-navigation { gap: 0 !important; }
header .wp-block-navigation__container { gap: 4px !important; }
header .wp-block-navigation a { text-decoration: none !important; color: var(--rl-text) !important; }
header .wp-block-navigation .wp-block-navigation-item__content { position: relative; padding: 4px 8px 4px var(--rl-cur-space) !important; display: block; }
header .wp-block-navigation__submenu-container { min-width: 240px !important; padding: 4px !important; top: 100% !important; left: 0 !important; right: auto !important; }
header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; }
header .wp-block-navigation__submenu-icon { margin: 0 4px 0 -4px !important; align-self: center; height: 8px !important; width: 14px !important; padding: 0 !important;
	background: var(--rl-i-down) no-repeat center / 14px 8px !important; image-rendering: pixelated; border: 0 !important; }
header .wp-block-navigation__submenu-icon svg { display: none !important; }
/* account and cart: pixel icons instead of the line drawings */
header .wc-block-customer-account__link, header .wc-block-mini-cart__button { display: block !important; width: 40px; height: 40px; padding: 0 !important; border: 0 !important; position: relative;
	background: var(--rl-i-account) no-repeat center / 24px 24px !important; image-rendering: pixelated; opacity: 1 !important; }
header .wc-block-mini-cart__button { background-image: var(--rl-i-cart) !important; background-size: 26px 22px !important; cursor: pointer; }
header .wc-block-customer-account__link svg, header .wc-block-customer-account__link .wc-block-customer-account__visual, header .wc-block-mini-cart__button svg,
header .wc-block-mini-cart__quantity-badge > svg { display: none !important; }
header .wc-block-mini-cart__quantity-badge { display: block !important; position: static; }
header .wc-block-mini-cart__badge { position: absolute !important; top: -6px !important; right: -8px !important; left: auto !important; margin: 0 !important; transform: none !important;
	min-width: 20px !important; height: 20px !important; padding: 0 4px !important; box-sizing: border-box; border-radius: 0 !important;
	background: var(--rl-accent) !important; color: var(--rl-badge-ink, #000) !important; text-shadow: none !important;
	font-size: var(--rl-fs-small, var(--rl-fs)) !important; line-height: 20px !important; text-align: center; display: flex; align-items: center; justify-content: center; }
header .wc-block-mini-cart__badge:empty { display: none !important; }
header .wp-block-woocommerce-customer-account, header .wp-block-woocommerce-mini-cart { margin: 0 !important; display: block; }
.rl-currency { margin: 0; display: flex; align-items: center; }

/* ---------- page frame ---------- */
main#wp--skip-link--target { max-width: var(--rl-page); width: calc(100% - 24px); margin: var(--rl-main-top, 16px) auto 0 !important; position: relative; box-sizing: border-box; }
body:not(.rl-listing) main#wp--skip-link--target { padding: var(--rl-pad-top, 12px) var(--rl-pad) 24px !important; }
main#wp--skip-link--target :is(.has-global-padding, .alignfull, .alignwide) { padding-left: 0 !important; padding-right: 0 !important; }
main#wp--skip-link--target :is(.alignwide, .alignfull), main#wp--skip-link--target .is-layout-constrained > *, body:not(.rl-listing) main#wp--skip-link--target > * {
	max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
main#wp--skip-link--target > :first-child, main .entry-content > :first-child { margin-top: 0 !important; }

/* shop pages: side windows on the left, the item list window on the right */
body.rl-listing main#wp--skip-link--target { padding: 0 !important; }
body.rl-archive main#wp--skip-link--target, body.rl-listing:not(.rl-archive) main .entry-content {
	display: grid; grid-template-columns: var(--rl-side) minmax(0, 1fr); column-gap: var(--rl-gap); align-items: start; position: relative;
}
body.rl-listing main .entry-content { max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.rl-archive main#wp--skip-link--target > * { grid-column: 2; position: relative; z-index: 1;
	padding-left: calc(var(--rl-list-w) + var(--rl-pad)) !important; padding-right: calc(var(--rl-list-w) + var(--rl-pad)) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
body.rl-archive main#wp--skip-link--target::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rl-side) + var(--rl-gap)); right: 0; z-index: 0; }
body.rl-archive main#wp--skip-link--target > .rl-side + * { margin-top: calc(var(--rl-list-w) + var(--rl-pad-top, 12px)) !important; }
body.rl-archive main#wp--skip-link--target > *:last-child { margin-bottom: calc(var(--rl-list-w) + 20px) !important; }
body.rl-archive .woocommerce-breadcrumb { margin: 0 0 8px !important; }
body.rl-archive main#wp--skip-link--target > .wp-block-group { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px !important; min-height: var(--rl-field-h); }
body.rl-archive .wc-block-store-notices:has(.woocommerce-notices-wrapper:empty) { display: none; }
.rl-main { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: var(--rl-gap); max-width: none !important; margin: 0 !important; }
.rl-main > * { margin: 0 !important; max-width: none !important; }
.rl-section { position: relative; padding: var(--rl-pad-top, 12px) var(--rl-pad) 16px !important; margin: 0 !important; }
.rl-section > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.rl-section > :first-child { margin-top: 0 !important; }
.rl-section > :last-child { margin-bottom: 0 !important; }
.rl-section > .woocommerce { margin: 8px 0 !important; }
.rl-note { margin: 0 !important; padding: 0 4px; }

body.rl-archive main#wp--skip-link--target > .rl-side { padding: 0 !important; }
.rl-side { grid-column: 1 !important; grid-row: 1 / span 40; align-self: start; position: sticky !important; top: 12px; display: flex; flex-direction: column; gap: 12px;
	padding: 0 !important; margin: 0 !important; z-index: 2 !important; }
.rl-gold { display: block; text-decoration: none !important; color: var(--rl-text) !important; }
.rl-gold-row { display: flex; justify-content: space-between; gap: 12px; }
.rl-gold-label { white-space: nowrap; }
.rl-gold-amount { white-space: nowrap; text-align: right; }
.rl-menu ul { list-style: none; margin: 0; padding: 0; }
.rl-menu a { display: block; position: relative; padding: 4px 4px 4px var(--rl-cur-space); text-decoration: none !important; color: var(--rl-text) !important; }

/* a cursor that always has its place; only its visibility changes, and only while the pointer is there */
.rl-menu a::before, header .wp-block-navigation .wp-block-navigation-item__content::before {
	content: ""; position: absolute; left: var(--rl-cur-left, 4px); top: 50%; width: var(--rl-cur-w); height: var(--rl-cur-h); margin-top: calc(var(--rl-cur-h) / -2);
	background: var(--rl-cur) no-repeat center / 100% 100%; image-rendering: pixelated; visibility: hidden;
}
@media (hover: hover) {
	.rl-menu a:hover::before, header .wp-block-navigation .wp-block-navigation-item__content:hover::before { visibility: visible; }
}

/* ---------- description box ---------- */
#rl-msg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-sizing: border-box; pointer-events: none; }
.rl-msg-in { position: relative; display: grid; grid-template-columns: var(--rl-msg-pic) minmax(0, 1fr); column-gap: 16px; align-items: center; box-sizing: border-box;
	width: min(var(--rl-page), calc(100vw - 24px)); height: var(--rl-msg-h); margin: 0 auto; }
.rl-msg-pic { width: var(--rl-msg-pic); height: var(--rl-msg-pic); box-sizing: border-box; background: #fff url(img/chest.png?v=1795440907) no-repeat center / 64px 64px; image-rendering: pixelated; overflow: hidden; }
.rl-msg-pic img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.rl-msg-text { overflow: hidden; height: calc(var(--rl-lh) * 3); }
.rl-msg-name { display: block; white-space: nowrap; overflow: hidden; height: var(--rl-lh); }
.rl-msg-desc { display: block; overflow: hidden; height: calc(var(--rl-lh) * 2); }
.rl-msg-more { position: absolute; right: 4px; bottom: 6px; width: 14px; height: 8px; background: var(--rl-more) no-repeat center / 14px 8px; image-rendering: pixelated; animation: rl-blink 1s steps(1) infinite; }
@keyframes rl-blink { 50% { visibility: hidden; } }
body.rl-listing { padding-bottom: calc(var(--rl-msg-h) + var(--rl-msg-space, 28px)); }

/* ---------- item lists: shared ---------- */
:is(.wc-block-product-template, ul.products) { list-style: none; margin: 0 !important; padding: 0 !important; max-width: none !important; }
ul.products::before, ul.products::after { display: none !important; }
:is(.wc-block-product-template, ul.products) > li { margin: 0 !important; width: auto !important; max-width: none !important; float: none !important; position: relative; min-width: 0; box-sizing: border-box; text-align: left; }
ul.products > li > a.woocommerce-LoopProduct-link, ul.products > li.product-category > a { display: contents !important; text-decoration: none !important; }
:is(.wc-block-product-template, ul.products) > li img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain !important; background: #fff; margin: 0 !important; }
.wc-block-components-product-image { margin: 0 !important; background: #fff; width: 100%; }
.wc-block-components-product-image a { display: block; }
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title, .woocommerce-loop-category__title) {
	margin: 0 !important; padding: 0; text-align: left !important; font-weight: 400 !important; color: var(--rl-text) !important; overflow-wrap: anywhere; }
:is(.wc-block-product-template, ul.products) > li .wp-block-post-title a { color: var(--rl-text) !important; text-decoration: none !important; }
:is(.wc-block-product-template, ul.products) > li :is(.wp-block-woocommerce-product-price, .price) { margin: 0 !important; display: block; }
:is(.wc-block-product-template, ul.products) > li .wc-block-components-product-price { text-align: inherit !important; display: block; }
.wp-block-woocommerce-product-button { margin: 0 !important; }
.added_to_cart, .wc-block-components-product-button .added_to_cart { display: none !important; }
.screen-reader-text { position: absolute !important; }
.woocommerce-result-count { margin: 0 !important; }
.woocommerce-ordering { margin: 0 !important; }
.wp-block-query-pagination { margin: 20px 0 0 !important; gap: 8px !important; align-items: center; justify-content: center; }
.wp-block-query-pagination > * { margin: 0 !important; }
.wp-block-query-pagination-numbers { display: flex; gap: 4px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { text-decoration: none !important; padding: 4px 8px; display: block; }
.rl-dec { display: inline-block; }

/* ---------- buttons, fields ---------- */
html body :is(.wp-element-button, .wp-block-button__link, .button, button.single_add_to_cart_button, .wc-block-components-button, input[type=submit]) {
	border-radius: 0 !important; box-shadow: none !important; text-transform: none !important; transform: none !important; text-decoration: none !important;
	cursor: pointer; white-space: nowrap; text-align: center; box-sizing: border-box; outline-offset: 2px; opacity: 1 !important; min-height: var(--rl-field-h); margin: 0;
}
html body .wc-block-components-button__text { display: block; }
html body :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=url], select, textarea) {
	border-radius: 0 !important; box-shadow: none !important; box-sizing: border-box; min-height: var(--rl-field-h); margin: 0; outline-offset: 2px; }
html body select { appearance: none; -webkit-appearance: none; padding-right: 32px !important; background-image: var(--rl-i-down) !important; background-repeat: no-repeat !important;
	background-position: right 10px center !important; background-size: 14px 8px !important; image-rendering: pixelated; cursor: pointer; }
html body :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--rl-accent) !important; outline-offset: 2px; }
.quantity { margin: 0 !important; }

/* ---------- product page ---------- */
.single-product .woocommerce-breadcrumb { margin: 0 0 12px !important; }
.single-product .wp-block-columns { gap: 32px !important; margin: 0 0 24px !important; }
.single-product .woocommerce-product-gallery { background: #fff; padding: 8px; box-sizing: border-box; width: 100% !important; float: none !important; margin: 0 !important; opacity: 1 !important; }
.single-product .woocommerce-product-gallery img { background: #fff; }
.single-product .woocommerce-product-gallery .flex-control-thumbs { margin: 8px 0 0 !important; padding: 0; display: flex; gap: 8px; list-style: none; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 72px !important; margin: 0 !important; float: none !important; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img { opacity: 1 !important; outline: 2px solid transparent; outline-offset: -2px; cursor: pointer; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { outline-color: var(--rl-accent); }
.woocommerce-product-gallery__trigger { top: 16px !important; right: 16px !important; width: 40px !important; height: 40px !important; border-radius: 0 !important;
	background: #fff url(img/zoom-dark.png?v=1795440907) no-repeat center / 24px 24px !important; image-rendering: pixelated; text-indent: -9999px !important; overflow: hidden; border: 2px solid #303030; box-sizing: border-box; }
.woocommerce-product-gallery__trigger::before, .woocommerce-product-gallery__trigger::after, .woocommerce-product-gallery__trigger > * { display: none !important; }
.single-product .wp-block-woocommerce-product-price { margin: 0 0 12px !important; }
.single-product .wp-block-post-excerpt { margin: 0 0 16px !important; }
.single-product .wp-block-post-excerpt p { margin: 0 !important; }
.single-product p.stock { margin: 0 0 12px !important; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 16px !important; }
.single-product form.cart::before, .single-product form.cart::after { display: none !important; }
.single-product form.cart .quantity, .single-product form.cart button { float: none !important; margin: 0 !important; }
.single-product .wp-block-woocommerce-product-meta { margin: 16px 0 0 !important; }
.product_meta .sku_wrapper, .wp-block-woocommerce-product-sku { display: none !important; }
.woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 8px !important; display: flex; flex-wrap: wrap; gap: 0 16px; list-style: none; border: 0 !important; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 4px 4px 4px var(--rl-cur-space) !important; position: relative; text-decoration: none !important; }
.woocommerce-tabs ul.tabs li a::before { content: ""; position: absolute; left: var(--rl-cur-left, 4px); top: 50%; width: var(--rl-cur-w); height: var(--rl-cur-h); margin-top: calc(var(--rl-cur-h) / -2);
	background: var(--rl-cur) no-repeat center / 100% 100%; image-rendering: pixelated; visibility: hidden; }
@media (hover: hover) { .woocommerce-tabs ul.tabs li a:hover::before { visibility: visible; } }
.woocommerce-tabs .panel { margin: 0 !important; padding: 0 !important; }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce-tabs .panel ul, .woocommerce-tabs .panel ol { padding-left: 28px; margin: 0 0 calc(var(--rl-lh) / 2); }
.woocommerce-tabs .panel img { max-width: 100%; height: auto; }
table.rl-info, table.shop_attributes { border-collapse: collapse; margin: 16px 0 4px !important; width: auto !important; border: 0 !important; }
table.rl-info th, table.rl-info td, table.shop_attributes th, table.shop_attributes td { text-align: left; padding: 4px 24px 4px 0 !important; border: 0 !important; border-bottom: 2px solid var(--rl-rule) !important;
	background: none !important; vertical-align: top; }
table.shop_attributes td p { margin: 0 !important; padding: 0 !important; }
.rl-3d, .rl-video, .rl-figure { margin: 8px 0 16px !important; }
.rl-3d model-viewer { border: 2px solid var(--rl-rule); box-sizing: border-box; }
.single-product .wp-block-woocommerce-product-collection { margin-top: 24px !important; }
.single-product .wp-block-woocommerce-product-collection > h2 { margin: 0 0 12px !important; }

/* ---------- footer ---------- */
footer.wp-block-template-part { padding: var(--rl-gap) 12px 12px; margin-top: 0 !important; }
footer.wp-block-template-part > .wp-block-group { max-width: var(--rl-page); margin: 0 auto !important; padding: 8px 12px !important; }
footer .wp-block-columns { margin: 0 0 8px !important; gap: 24px !important; }
footer p { margin: 0 !important; }
footer .wp-block-site-title { margin: 0 0 4px !important; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
	body.rl-archive main#wp--skip-link--target, body.rl-listing:not(.rl-archive) main .entry-content { grid-template-columns: minmax(0, 1fr); row-gap: var(--rl-gap); }
	body.rl-archive main#wp--skip-link--target { row-gap: 0; }
	body.rl-archive main#wp--skip-link--target > *, .rl-main { grid-column: 1; }
	body.rl-archive main#wp--skip-link--target > * { padding-left: calc(var(--rl-list-w) + 8px) !important; padding-right: calc(var(--rl-list-w) + 8px) !important; }
	body.rl-archive main#wp--skip-link--target::before { left: 0; top: var(--rl-side-h, 0px); }
	.rl-side { position: static !important; grid-row: auto; padding: 0 !important; }
	body.rl-archive main#wp--skip-link--target > .rl-side { padding: 0 !important; margin-bottom: var(--rl-gap) !important; }
	.rl-side .rl-menu { display: none; }
	:root { --rl-pad: 8px; }
	.single-product .wp-block-columns { gap: 16px !important; }
	footer .wp-block-columns { gap: 12px !important; }
}
/* small screens: the description box stays, a little more compact */
@media (max-width: 900px) {
	:root { --rl-msg-pic: 64px; }
	.rl-msg-in { width: calc(100vw - 16px); column-gap: 10px; }
}

/* ---------- no round corners anywhere: this is pixel art ---------- */
html body *:where(:not(#wpadminbar, #wpadminbar *)), html body *:where(:not(#wpadminbar, #wpadminbar *))::before, html body *:where(:not(#wpadminbar, #wpadminbar *))::after { border-radius: 0 !important; }

/* ---------- page titles ---------- */
/* on the home and Collectibles pages the windows carry the titles; keep the page title for screen readers only */
body.rl-listing:not(.rl-archive) main h1.wp-block-post-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0 !important; padding: 0 !important; white-space: nowrap; }
body.rl-listing:not(.rl-archive) main#wp--skip-link--target > .wp-block-group { padding: 0 !important; margin: 0 !important; }
body:not(.rl-listing) main#wp--skip-link--target > .wp-block-group { position: static !important; padding-top: 0 !important; padding-bottom: 0 !important; }
body:not(.rl-listing) main#wp--skip-link--target h1.wp-block-post-title { margin: 0 0 8px !important; }

/* ---------- tick boxes and radio buttons ---------- */
html body input[type=checkbox], html body input[type=radio] { appearance: none !important; -webkit-appearance: none !important; width: 24px !important; height: 24px !important; min-width: 24px; min-height: 0 !important;
	margin: 0 8px 0 0; padding: 0 !important; border: 2px solid var(--rl-field-line) !important; background: var(--rl-field-bg) !important; box-shadow: none !important; vertical-align: middle;
	cursor: pointer; opacity: 1 !important; flex: none; box-sizing: border-box; }
html body input[type=checkbox]:checked { background: var(--rl-field-bg) var(--rl-i-check) no-repeat center / 14px 12px !important; image-rendering: pixelated; }
html body input[type=checkbox]::before, html body input[type=checkbox]::after { display: none !important; }
html body input[type=radio]:not(.wc-block-components-radio-control__input) { position: relative; }
html body input[type=radio]::before { display: none !important; }
html body input[type=radio]:checked::before { content: "" !important; display: block !important; position: absolute !important; left: 4px !important; top: 4px !important; width: 12px !important; height: 12px !important;
	margin: 0 !important; background: var(--rl-field-ink) !important; transform: none !important; min-width: 0 !important; }
.wc-block-components-checkbox__mark { display: none !important; }
.wc-block-components-checkbox label { display: flex !important; align-items: flex-start; gap: 4px; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { margin: 2px 8px 0 0 !important; position: static !important; }
.woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; margin: 0 !important; }

/* ---------- cart and checkout (WooCommerce blocks) ---------- */
/* labels stand above their fields instead of floating inside them, so nothing moves when you type */
.wc-block-components-text-input { display: flex !important; flex-direction: column; position: static !important; margin-top: 12px !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label { order: -1; position: static !important; transform: none !important; margin: 0 0 2px !important; padding: 0 !important;
	max-width: none !important; width: auto !important; color: var(--rl-dim) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.wc-block-components-text-input input, .wc-block-components-text-input textarea { padding: 6px 10px !important; height: var(--rl-field-h) !important; min-height: 0 !important; margin: 0 !important; }
.wc-blocks-components-select { margin-top: 12px !important; }
.wc-blocks-components-select__container { display: flex !important; flex-direction: column; background: none !important; border: 0 !important; height: auto !important; width: 100%; }
.wc-blocks-components-select__select { height: var(--rl-field-h) !important; padding: 6px 32px 6px 10px !important; }
.wc-blocks-components-select__expand { display: none !important; }
.wc-block-components-address-form { margin-top: 0 !important; }
.wc-block-components-validation-error { margin-top: 2px; }
.wc-block-components-validation-error, .wc-block-components-validation-error p, .has-error label, .required { color: var(--rl-error, #f04040) !important; }
.wc-block-components-checkout-step { margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; }
.wc-block-components-checkout-step__heading { margin: 0 0 4px !important; }
.wc-block-components-checkout-step__title { margin: 0 !important; }
.wc-block-components-checkout-step__container::after { display: none !important; }
.wc-block-checkout__main, .wc-block-checkout__sidebar, .wc-block-cart__main, .wc-block-cart__sidebar { padding-top: 0 !important; }
/* express checkout: a plain heading above the button */
.wc-block-components-express-payment { margin: 0 0 12px !important; padding: 0 !important; }
.wc-block-components-express-payment__title-container { display: block !important; position: static !important; margin: 0 0 8px !important; padding: 0 !important; }
.wc-block-components-express-payment__title-container::before, .wc-block-components-express-payment__title-container::after { display: none !important; }
.wc-block-components-express-payment__title { margin: 0 !important; padding: 0 !important; position: static !important; }
.wc-block-components-express-payment__content { border: 0 !important; padding: 0 !important; }
.wc-block-components-express-payment-continue-rule { margin: 12px 0 !important; }
.wc-block-components-express-payment-continue-rule::before, .wc-block-components-express-payment-continue-rule::after { border-color: var(--rl-rule) !important; border-width: 2px 0 0 !important; opacity: 1 !important; }
/* radio lists (shipping, payment) */
.wc-block-components-radio-control__option { padding-left: 52px !important; }
.wc-block-components-radio-control .wc-block-components-radio-control__input { left: 14px !important; top: 50% !important; margin: -12px 0 0 !important; transform: none !important; }
.wc-block-components-radio-control--highlight-checked::after, .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--rl-rule) !important; border-color: transparent !important; }
.wc-block-components-radio-control--highlight-checked::after { border: 2px solid var(--rl-rule) !important; }
.wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option::after { background: var(--rl-rule) !important; height: 2px !important; }
/* order summary, totals */
.wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper { border-color: var(--rl-rule) !important; }
.wp-block-woocommerce-checkout-order-summary-block { border-width: 2px !important; }
.wc-block-components-order-summary-item__quantity { background: var(--rl-accent) !important; color: var(--rl-badge-ink, #000) !important; border: 0 !important; box-shadow: none !important;
	min-width: 24px !important; height: 24px !important; padding: 0 4px !important; text-shadow: none !important; display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; }
.wc-block-components-product-metadata__description { display: none !important; }
.wc-block-components-order-summary-item__image, .wc-block-cart-item__image { background: #fff; }
.wc-block-components-totals-item { padding-left: 0 !important; padding-right: 0 !important; }
.wc-block-cart-items th, .wc-block-cart-items td, .wc-block-cart-items, table.wc-block-cart-items .wc-block-cart-items__row { border-color: var(--rl-rule) !important; }
.wc-block-cart-items .wc-block-cart-items__header th { color: var(--rl-dim) !important; text-transform: none !important; }
.wc-block-components-totals-coupon, .wc-block-cart__totals-title { text-transform: none !important; }
.wc-block-components-product-name { text-decoration: none !important; color: var(--rl-text) !important; }
.wc-block-components-quantity-selector { border: 2px solid var(--rl-field-line) !important; background: var(--rl-field-bg) !important; width: auto !important; display: inline-flex !important; box-sizing: border-box; margin: 4px 12px 4px 0 !important; }
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { border: 0 !important; min-height: 0 !important; height: 36px !important; width: 48px !important; min-width: 0 !important;
	background: transparent !important; text-align: center; padding: 0 !important; -moz-appearance: textfield; color: var(--rl-field-ink) !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-height: 0 !important; height: 36px; min-width: 36px !important; color: var(--rl-field-ink) !important; opacity: 1 !important;
	background: none !important; border: 0 !important; border-image: none !important; padding: 0 !important; box-shadow: none !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button::before { display: none !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { color: var(--rl-dim) !important; }
.wc-block-cart-item__quantity { display: flex !important; align-items: center; padding: 0 !important; }
.wc-block-cart-item__remove-link { width: 28px !important; height: 28px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: var(--rl-i-close) no-repeat center / 20px 20px !important;
	image-rendering: pixelated; cursor: pointer; min-height: 0 !important; }
.wc-block-cart-item__remove-link svg { display: none !important; }
.wc-block-components-panel__button { padding-right: 32px !important; background: var(--rl-i-down) no-repeat right 4px center / 14px 8px !important; image-rendering: pixelated; }
.wc-block-components-panel__button > svg { display: none !important; }
.wc-block-cart__submit, .wc-block-cart__submit-container { margin: 0 !important; padding: 0 !important; position: static !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { width: 100% !important; display: flex !important; align-items: center; justify-content: center; }
.wc-block-cart .wp-block-woocommerce-cart-express-payment-block { margin: 12px 0 !important; }
.wc-block-checkout__actions_row { padding: 0 !important; }
.wc-block-components-checkout-return-to-cart-button svg { display: none !important; }
.wc-block-components-checkout-return-to-cart-button { padding-left: 0 !important; }
/* the cart link in the short header of the checkout page */
.wc-block-cart-link { display: block !important; width: 40px; height: 40px; background: var(--rl-i-cart) no-repeat center / 26px 22px !important; image-rendering: pixelated; }
.wc-block-cart-link svg { display: none !important; }

/* ---------- mini cart drawer ---------- */
.wc-block-components-drawer__screen-overlay { background: rgba(0, 0, 0, .6) !important; }
.wc-block-components-drawer, .wc-block-components-drawer__content, .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents, .wc-block-mini-cart__template-part,
.wc-block-mini-cart__footer, .wp-block-woocommerce-filled-mini-cart-contents-block, .wp-block-woocommerce-empty-mini-cart-contents-block {
	background: var(--rl-field-bg) !important; color: var(--rl-text) !important; }
.wc-block-components-drawer { border-left: 4px solid var(--rl-field-line) !important; box-sizing: border-box; }
.wc-block-mini-cart__title { margin: 16px 16px 8px !important; padding: 0 !important; color: var(--rl-head) !important; mask-image: none !important; -webkit-mask-image: none !important; background: none !important; }
.wc-block-mini-cart__items { padding: 0 16px !important; }
.wc-block-mini-cart__footer { padding: 12px 16px 16px !important; border-top: 2px solid var(--rl-rule) !important; }
.wc-block-mini-cart__footer-actions { gap: 12px !important; }
.wc-block-components-drawer__close-wrapper { top: 8px !important; right: 8px !important; }
.wc-block-components-drawer .wc-block-components-drawer__close { width: 40px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-image: none !important;
	background: var(--rl-i-close) no-repeat center / 20px 20px !important; image-rendering: pixelated; opacity: 1 !important; }
.wc-block-components-drawer .wc-block-components-drawer__close svg, .wc-block-components-drawer .wc-block-components-drawer__close::before { display: none !important; }

/* ---------- my account ---------- */
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce form .form-row { padding: 0 !important; margin: 0 0 12px !important; display: block; }
.woocommerce form .form-row label { display: block; margin: 0 0 2px; color: var(--rl-dim); }
.woocommerce form .form-row input.input-text { width: 100%; max-width: 480px; }
.woocommerce form .form-row .password-input { display: block; max-width: 480px; }
.woocommerce form .form-row .password-input input { max-width: none; }
.woocommerce form.login .form-row:has(> button) { display: flex !important; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 16px; }
.woocommerce-MyAccount-navigation a { text-decoration: none !important; }
.woocommerce h2 { margin-top: 0 !important; }

/* ---------- details ---------- */
/* the editor's "small / large" text sizes would give blurry pixel text: one size only */
html body [class*="-font-size"] { font-size: var(--rl-fs) !important; line-height: var(--rl-lh) !important; }
.wc-block-components-order-summary-item__image { align-self: flex-start; width: 48px !important; height: 48px; padding: 0 !important; margin: 4px 16px 0 0 !important; overflow: visible !important; }
.wc-block-components-order-summary-item__image > img { width: 48px !important; height: 48px !important; max-width: none !important; object-fit: contain; display: block; }
.wc-block-components-order-summary-item__quantity { top: -10px !important; right: -10px !important; left: auto !important; transform: none !important; position: absolute !important; }
.wc-block-checkout__sidebar .wc-block-components-totals-item, .wc-block-checkout__sidebar .wc-block-components-panel__button, .wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title { padding-left: 16px !important; padding-right: 16px !important; }
.wc-block-checkout__sidebar .wc-block-components-panel__button { padding-right: 40px !important; background-position: right 16px center !important; }
.wc-block-components-drawer__close-wrapper { position: absolute !important; top: 8px !important; right: 12px !important; left: auto !important; width: 40px; height: 40px; z-index: 5; }
.wc-block-components-drawer .wc-block-components-drawer__close { position: static !important; display: block !important; margin: 0 !important; }

/* ---------- phone menu (the header menu behind the menu button) ---------- */
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { width: 40px !important; height: 40px !important; padding: 0 !important; border: 0 !important;
	background: var(--rl-i-menu) no-repeat center / 20px 20px !important; image-rendering: pixelated; cursor: pointer; }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { display: none !important; }
.wp-block-navigation__responsive-container-close { background-image: var(--rl-i-close) !important; top: 4px !important; right: 4px !important; position: absolute !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 12px !important; box-sizing: border-box; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 44px !important; }
.wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation-item) { align-items: flex-start !important; width: 100%; gap: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 8px 8px 8px var(--rl-cur-space) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; border-image: none !important; background: none !important;
	padding: 0 0 0 24px !important; position: static !important; min-width: 0 !important; width: 100% !important; box-sizing: border-box; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }

@media (max-width: 600px) {
	/* the header has room for the logo, currency, cart and the menu button; the account link is in the footer */
	header .wp-block-woocommerce-customer-account { display: none !important; }
	header .alignwide, header .alignwide > .wp-block-group { gap: 8px !important; }
	header .alignwide > .wp-block-group > nav { order: 3; }
	html body.single-product h1.wp-block-post-title, html body h1.product_title { font-size: var(--rl-fs) !important; line-height: var(--rl-lh) !important; }
	body.rl-archive main#wp--skip-link--target > .wp-block-group { flex-direction: column; align-items: stretch; gap: 8px; }
	body.rl-archive .woocommerce-ordering select { width: 100%; }
}

/* ---------- signed-in admins: the WordPress bar on top keeps its own look, and the side windows stay below it ---------- */
body.admin-bar .rl-side { top: 44px; }

/* ---------- list pictures ---------- */
.rl-thumb { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; width: 100%; }
.rl-thumb img { display: block; width: 100% !important; height: 100% !important; }
.wc-block-components-product-image { overflow: hidden; }
/* The product photos have a white margin of 8% around the product. In lists the product fills its square:
   the margin is cut off and the rest is enlarged to the full square (1 / 0.84). */
:is(.wc-block-product-template, ul.products) > li img, .rl-msg-pic img { clip-path: inset(8%); transform: scale(1.1905); }

/* ---------- a little more air in tables and lists ---------- */
table.rl-info th, table.rl-info td, table.shop_attributes th, table.shop_attributes td { padding-top: 8px !important; padding-bottom: 8px !important; }
.woocommerce-tabs .panel li { margin-bottom: 4px; }

/* ---------- drop-down lists: where the browser allows it, the list itself is drawn in the pixel look too ---------- */
@supports (appearance: base-select) {
	html body select, html body select::picker(select) { appearance: base-select; }
	html body select { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; background-image: none !important; padding-right: 10px !important; }
	html body select::picker-icon { content: ""; flex: none; width: 14px; height: 8px; background: var(--rl-i-down) no-repeat center / 14px 8px; image-rendering: pixelated; }
	html body select::picker(select) { border: var(--rl-win-w) solid transparent; border-image: var(--rl-win) var(--rl-win-slice) fill / var(--rl-win-w) stretch; background: none; padding: 4px;
		margin: 4px 0; image-rendering: pixelated; color: var(--rl-text); box-shadow: none; }
	html body select option { font-family: var(--rl-font); font-size: var(--rl-fs); line-height: var(--rl-lh); padding: 4px 12px 4px var(--rl-cur-space); position: relative;
		background: none; color: var(--rl-text); cursor: pointer; white-space: nowrap; min-height: 0; }
	html body select option::checkmark { display: none; }
	html body select option:checked { color: var(--rl-accent); background: none; }
	html body select option::before { content: ""; position: absolute; left: var(--rl-cur-left, 4px); top: 50%; width: var(--rl-cur-w); height: var(--rl-cur-h); margin-top: calc(var(--rl-cur-h) / -2);
		background: var(--rl-cur) no-repeat center / 100% 100%; image-rendering: pixelated; visibility: hidden; }
	html body select option:hover, html body select option:focus-visible { background: var(--rl-pick-hover, none); outline: 0 !important; }
	html body select option:hover::before, html body select option:focus-visible::before { visibility: visible; }
}
@supports (appearance: base-select) {
	html body .rl-currency select { gap: 6px; padding-left: 6px !important; padding-right: 6px !important; }
}
@media (max-width: 600px) {
	header .alignwide, header .alignwide > .wp-block-group { gap: 6px !important; }
	header.wp-block-template-part > .wp-block-group > .wp-block-group { padding-left: 6px !important; padding-right: 4px !important; }
}

/* ---------- gallery of a product with a 3D model: a square stage, small pictures below that switch it ---------- */
.rl-gallery { background: #fff; padding: 8px; box-sizing: border-box; width: 100%; }
.rl-gallery-stage { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.rl-gallery-item { position: absolute; inset: 0; display: none; }
.rl-gallery-item.is-on { display: block; }
.rl-gallery-item a, .rl-gallery-item img { display: block; width: 100%; height: 100%; }
.rl-gallery-item img { object-fit: contain; }
.rl-gallery model-viewer { display: block; width: 100%; height: 100%; background: #fff; --poster-color: #fff; }
html body .rl-gallery-hint { margin: 8px 0 0 !important; color: #606068 !important; text-shadow: none; }
.rl-gallery-hint.is-off { visibility: hidden; }
.rl-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
html body .rl-gallery-thumbs button { width: 72px; height: 72px; min-height: 0; padding: 0; margin: 0; border: 0; background: #fff; position: relative; cursor: pointer;
	outline: 2px solid #c8c8d0; outline-offset: -2px; overflow: hidden; }
html body .rl-gallery-thumbs button.is-on { outline: 4px solid var(--rl-accent); outline-offset: -4px; }
.rl-gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
html body .rl-3d-tag { position: absolute; left: 0; bottom: 0; padding: 0 6px; background: var(--rl-accent); color: var(--rl-badge-ink, #000) !important; text-shadow: none; }

/* ---------- "page not found": text only, without the stock photo of the standard theme ---------- */
body.error404 main :is(figure, img, .wp-block-image, .wp-block-cover) { display: none !important; }
body.error404 main .wp-block-columns { display: block !important; }

/* On a computer the description bar spans the screen; its picture and text start where the item list starts,
   so the browser's link address in the bottom left corner does not cover them. */
@media (min-width: 901px) {
	#rl-msg .rl-msg-in { padding-left: calc(var(--rl-side) + var(--rl-gap) + 12px); }
}
/* admins: a small switch between the two looks, bottom right, above the description box */
.rl-theme-switch { position: fixed; right: 8px; top: 96px; z-index: 70; display: flex; flex-direction: column; gap: 4px; }
html body .rl-theme-switch a { padding: 2px 8px !important; min-height: 0 !important; }
html body .rl-theme-switch a.is-on { color: var(--rl-accent) !important; }

/* the 3D model does not turn by itself; a small icon in its corner says you can turn it */
.rl-3d-icon { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; background: #fff url(img/rotate-dark.png?v=1795440907) no-repeat center / 24px 24px; image-rendering: pixelated; border: 2px solid #303030; box-sizing: border-box; pointer-events: none; }

/* Trial: a smooth font instead of the pixel font (body class "rl-font-smooth", from ?font=smooth) */
@font-face { font-family: "RLSmooth"; src: url(fonts/smooth.woff2?v=1795440767) format("woff2"); font-display: block; }
@font-face { font-family: "RLSmooth"; font-weight: 700; src: url(fonts/smooth-bold.woff2?v=1795440770) format("woff2"); font-display: block; }
@font-face { font-family: "RLSmooth"; src: url(fonts/smooth-jp.woff2?v=1795444219) format("woff2"); font-display: block; unicode-range: U+3000-30FF, U+FF00-FFEF; }
@font-face { font-family: "RLSmooth"; font-weight: 700; src: url(fonts/smooth-bold-jp.woff2?v=1795444237) format("woff2"); font-display: block; unicode-range: U+3000-30FF, U+FF00-FFEF; }
html body.rl-font-smooth { --rl-font: "RLSmooth", system-ui, sans-serif; }
html body.rl-font-smooth, html body.rl-font-smooth * { -webkit-font-smoothing: antialiased; }

/* Computers, pages with the side windows: the top bar does not repeat what the side shows (category links,
   cart). It keeps the shop name, account, language and currency. */
@media (min-width: 901px) {
	body.rl-listing header .wp-block-navigation { display: none !important; }
	body.rl-listing header .wc-block-mini-cart__button { display: none !important; }
}

/* ---- Products on sale: a red tag with the saving, the old price small and crossed out above the new price */
html body .wc-block-components-product-sale-badge, html body span.onsale {
	background: #e03028 !important; color: #fff !important; border: 2px solid #303030 !important; border-radius: 0 !important; padding: 0 8px !important;
	min-width: 0 !important; min-height: 0 !important; width: auto !important; height: auto !important; text-transform: none !important; box-shadow: none !important; text-shadow: none !important; }
html body .wc-block-components-product-sale-badge *, html body span.onsale * { color: #fff !important; text-shadow: none !important; }
html body .wc-block-components-product-sale-badge { margin: 4px !important; }
html body span.onsale { position: absolute !important; left: 6px !important; top: 6px !important; right: auto !important; margin: 0 !important; z-index: 5; }
html body :is(.price, .wc-block-components-product-price) del:not(#x) { display: block; text-decoration: line-through; }
html body :is(.price, .wc-block-components-product-price) del:not(#x), html body :is(.price, .wc-block-components-product-price) del:not(#x) :is(span, bdi) {
	font-size: var(--rl-fs) !important; line-height: var(--rl-lh) !important; }
html body :is(.price, .wc-block-components-product-price) ins:not(#x), html body :is(.price, .wc-block-components-product-price) ins:not(#x) :is(span, bdi) {
	color: var(--rl-sale, #e03028) !important; text-decoration: none !important; }
body.rl-theme-dragon-quest { --rl-sale: #ff7060; }

/* ---- Side windows on every page. Pages without an item list: aside and the page window side by side in .rl-shell */
.rl-shell { display: grid; grid-template-columns: var(--rl-side) minmax(0, 1fr); column-gap: var(--rl-gap); align-items: start;
	max-width: var(--rl-page); width: calc(100% - 24px); margin: var(--rl-main-top, 16px) auto 0; box-sizing: border-box; }
.rl-shell > main#wp--skip-link--target { grid-column: 2; width: auto; max-width: none; margin: 0 !important; min-width: 0; }
.rl-shell > .rl-side { grid-row: 1; }
.rl-menu li.rl-sub a { padding-left: calc(var(--rl-cur-space) + 16px); }
.rl-menu li.rl-sub a::before { left: calc(var(--rl-cur-left, 4px) + 16px); }
@media (max-width: 900px) {
	.rl-shell { grid-template-columns: minmax(0, 1fr); row-gap: var(--rl-gap); }
	.rl-shell > main#wp--skip-link--target, .rl-shell > .rl-side { grid-column: 1; grid-row: auto; }
}
@media (min-width: 901px) {
	body header .wp-block-navigation { display: none !important; }
	body header .wc-block-mini-cart__button { display: none !important; }
}
/* item names: the link is a plain block, so the first line always starts at the top, next to the arrow */
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title) > a { display: block !important; }
/* smooth font: no squeezed decimal point, shop name in the same font */
html body.rl-font-smooth .rl-dec { margin: 0 !important; }
html body.rl-font-smooth header .wp-block-site-title a { font-family: var(--rl-font) !important; font-weight: 700 !important; font-size: 24px !important; line-height: 28px !important; }
/* Dragon Quest side panel: smaller text, whole lines only (14 lines: the longest name and description fit) */
@media (min-width: 901px) {
	body.rl-theme-dragon-quest #rl-msg .rl-msg-text, body.rl-theme-dragon-quest #rl-msg .rl-msg-text * { font-size: 16px !important; line-height: 22px !important; }
	body.rl-theme-dragon-quest #rl-msg .rl-msg-text { height: calc(22px * 14); }
	body.rl-theme-dragon-quest #rl-msg .rl-msg-name { max-height: calc(22px * 4); margin-bottom: 0; }
}
html body .rl-shell { margin: var(--rl-main-top, 16px) auto 0 !important; }
/* cart window: a long label or a large total goes on two lines instead of sticking out */
.rl-gold-row { flex-wrap: wrap; }
.rl-gold-amount { margin-left: auto; }
.rl-language-short { display: none; }
@media (max-width: 900px) {
	.rl-language-full { display: none; }
	.rl-language-short { display: flex; }
	/* phones: pages without an item list keep the top bar's cart; no second cart window */
	.rl-shell > .rl-side { display: none; }
}
/* cart window: icon, number of items, total on one line */
.rl-gold .rl-gold-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.rl-gold-icon { flex: none; width: 26px; height: 22px; background: var(--rl-i-cart) no-repeat center / 26px 22px; image-rendering: pixelated; }
.rl-gold-n { white-space: nowrap; }
/* shop notices ("added to your cart"): text and button next to each other, the button never sticks out */
html body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner__content) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
html body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner__content) :is(.button, .wc-forward) { position: static !important; float: none !important; margin: 0 0 0 auto !important; order: 2; white-space: nowrap; }
/* notices: the button goes under the text when there is no room next to it, and its label never gets cut */
html body .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
html body .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a.button { position: static !important; float: none !important; order: 2; margin: 0 0 0 auto !important; width: auto !important; max-width: 100%; height: auto !important; min-height: var(--rl-field-h, 44px); white-space: normal !important; padding-left: 12px !important; padding-right: 12px !important; }
@media (max-width: 900px) {
	/* phones: the top bar already has the cart; no second cart window */
	.rl-side .rl-gold { display: none !important; }
	/* cart and checkout fit the screen: no column sticks out */
	html body .wc-block-cart-items, html body .wc-block-cart-items tbody, html body .wc-block-cart-items__row { max-width: 100%; box-sizing: border-box; }
	html body .wc-block-cart-item__total { min-width: 0 !important; padding-left: 8px !important; }
	html body .wc-block-cart-item__total .wc-block-components-sale-badge, html body .wc-block-cart-item__total .wc-block-components-product-badge { display: none !important; }
	html body .wc-block-cart-item__product { min-width: 0 !important; overflow-wrap: anywhere; }
	html body .wc-block-components-radio-control__option-layout, html body .wc-block-components-radio-control__label-group { flex-wrap: wrap; min-width: 0; }
	html body .wc-block-components-radio-control__option { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; }
}
html body .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a.button { width: max-content !important; overflow: visible !important; color: var(--rl-text) !important; opacity: 1 !important; line-height: var(--rl-lh) !important; display: inline-flex !important; align-items: center; }
html body .wc-block-components-notice-banner .wc-block-components-notice-banner__content { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
html body .wc-block-components-notice-banner .wc-block-components-notice-banner__content a.button { position: static !important; float: none !important; order: 2; margin: 0 0 0 auto !important; width: max-content !important; max-width: 100%; height: auto !important; min-height: var(--rl-field-h, 44px);
	white-space: nowrap !important; padding: 4px 12px !important; color: var(--rl-text) !important; opacity: 1 !important; display: inline-flex !important; align-items: center; box-sizing: border-box; }
/* cart window: word left, number right, always on one line each */
.rl-gold .rl-gold-row { display: flex !important; flex-wrap: nowrap; justify-content: space-between; gap: 10px; align-items: baseline; }
.rl-gold .rl-gold-label, .rl-gold .rl-gold-amount { white-space: nowrap; }
.rl-gold .rl-gold-label { overflow: hidden; text-overflow: clip; min-width: 0; }
/* product tabs: always one line; on a narrow screen the row scrolls sideways */
html body .woocommerce-tabs ul.tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 0 !important; }
html body .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
html body .woocommerce-tabs ul.tabs li { flex: none; white-space: nowrap; margin: 0 !important; }
html body .woocommerce-tabs ul.tabs li a { padding-right: 12px !important; }

/* ---- the pointing arrow of a list item sits IN the first line of the name (on its baseline), so it lines up with
   the letters in every browser and font. (It used to be placed by pixels from the top of the name.) */
html body :is(.wc-block-product-template, ul.products) > li .wp-block-post-title::before { content: none !important; }
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title > a, .woocommerce-loop-product__title, .woocommerce-loop-category__title)::before {
	content: "" !important; display: inline-block !important; position: static !important; width: var(--rl-cur-w); height: var(--rl-cur-h); margin: 0 calc(var(--rl-cur-space) - var(--rl-cur-w) - 4px) 0 calc(4px - var(--rl-cur-space));
	background: var(--rl-cur) no-repeat center / 100% 100%; image-rendering: pixelated; visibility: hidden; vertical-align: baseline; }
html body.rl-mart-cream :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title > a, .woocommerce-loop-product__title, .woocommerce-loop-category__title)::before {
	width: 10px; height: 20px; margin: 0 10px 0 -20px; background-image: url(img/martc-cursor.png?v=1795440907); vertical-align: -2px; }
@media (hover: hover) {
	body.rl-theme-dragon-quest .wc-block-product-template > li:has(.wc-block-components-product-image:hover, .wp-block-post-title:hover) .wp-block-post-title > a::before,
	body.rl-mart-cream :is(.wc-block-product-template, ul.products) > li:hover :is(.wp-block-post-title > a, .woocommerce-loop-product__title)::before,
	ul.products > li > a:hover :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title)::before { visibility: visible !important; }
}
@media (hover: none) {
	:is(.wc-block-product-template, ul.products) > li.rl-sel :is(.wp-block-post-title > a, .woocommerce-loop-product__title)::before { visibility: visible !important; }
}

/* ==== No pointing arrows any more: the thing you point at gets a soft highlight instead (items, menu entries, tabs). */
html body { --rl-cur-space: 10px; --rl-hl: #fff3b0; }
html body.rl-theme-dragon-quest { --rl-hl: #1d2a78; }
html body.rl-theme-mart:not(.rl-mart-cream) { --rl-hl: #dcebff; }
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .wp-block-post-title > a, .woocommerce-loop-product__title, .woocommerce-loop-category__title)::before,
html body .rl-menu a::before, html body header .wp-block-navigation .wp-block-navigation-item__content::before, html body .woocommerce-tabs ul.tabs li a::before,
html body select option::before { content: none !important; display: none !important; }
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title, .woocommerce-loop-category__title),
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-woocommerce-product-price, .price) { padding-left: 10px !important; padding-right: 10px !important; }
.rl-menu li.rl-sub a { padding-left: 26px; }
@media (hover: hover) {
	html body :is(.wc-block-product-template, ul.products) > li:hover { background-color: var(--rl-hl) !important; border-image: none !important; outline: 0 !important; }
	html body .rl-menu a:hover, html body .woocommerce-tabs ul.tabs li a:hover, html body header .wp-block-navigation .wp-block-navigation-item__content:hover { background-color: var(--rl-hl); }
}
@media (hover: none) {
	html body :is(.wc-block-product-template, ul.products) > li.rl-sel { background-color: var(--rl-hl) !important; border-image: none !important; }
}
/* the cart icon stays in the top bar on computers too */
@media (min-width: 901px) { html body header .wc-block-mini-cart__button { display: block !important; } }
@media (min-width: 901px) { html body:not(#x) header .wc-block-mini-cart__button { display: block !important; } }
/* long words (Dutch, German): break at a syllable with a hyphen, never in the middle of a syllable */
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title, .woocommerce-loop-category__title),
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title) a,
html body .rl-msg-text, html body .rl-menu a, html body h1, html body .wc-block-cart-item__product { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; word-break: normal; }
/* only really long words get a hyphen (10 letters or more, at least 4 before and after the break) */
html body { hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
/* list buttons: the label never wraps */
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-button__link, .button, .add_to_cart_button) { white-space: nowrap !important; }
/* prices in a list never wrap: the size follows the width of the item (big where there is room, smaller in a
   narrow item or for a long amount such as RM1,234.56) */
html body :is(.wc-block-product-template, ul.products) > li { container-type: inline-size; }
html body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-woocommerce-product-price, .price) { white-space: nowrap !important; }
html body :is(.wc-block-product-template, ul.products) > li :is(.price, .wc-block-components-product-price):not(#x) :is(span, bdi, ins):not(#x) { font-size: clamp(20px, 16cqw, 40px) !important; line-height: 48px !important; }
html body :is(.wc-block-product-template, ul.products) > li :is(.price, .wc-block-components-product-price):not(#x) del:not(#x), html body :is(.wc-block-product-template, ul.products) > li :is(.price, .wc-block-components-product-price):not(#x) del:not(#x) :is(span, bdi) { font-size: var(--rl-fs) !important; line-height: var(--rl-lh) !important; }
/* Japanese: lines break between words (at spaces and marks), not in the middle of a katakana word */
html[lang="ja"] body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title), html[lang="ja"] body :is(.wc-block-product-template, ul.products) > li :is(.wp-block-post-title, .woocommerce-loop-product__title) a,
html[lang="ja"] body :is(h1, .rl-msg-text, .rl-menu a) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
