/*
 * Cyber Week 30 Nov – 2 Dec 2026: the whole store in the Cyber Monday banner's style (deep navy, electric blue,
 * neon cyan glow). Loaded only while rumfot_is_cyber() is true (functions.php), so it switches itself off.
 */

body.rf-cyber {
	--cy-navy: #040824;
	--cy-navy-2: #071447;
	--cy-panel: #0A1A55;
	--cy-blue: #2563EB;
	--cy-cyan: #38D9FF;
	--cy-ice: #A5F3FC;
	--cy-pink: #FF2BD6;
	--cy-glow: 0 0 22px rgb(56 217 255 / .45);

	/* Theme palette, repainted */
	--wp--preset--color--base: var(--cy-navy);
	--wp--preset--color--base-2: var(--cy-navy-2);
	--wp--preset--color--surface: var(--cy-panel);
	--wp--preset--color--contrast: #EAF6FF;
	--wp--preset--color--contrast-2: #A9BEDF;
	--wp--preset--color--accent: var(--cy-cyan);
	--wp--preset--color--accent-2: #1E3A8A;
	--wp--preset--color--line: rgb(56 217 255 / .22);

	background:
		radial-gradient(60% 40% at 85% 0%, rgb(37 99 235 / .35), transparent 70%),
		radial-gradient(50% 35% at 0% 30%, rgb(56 217 255 / .10), transparent 70%),
		linear-gradient(180deg, var(--cy-navy) 0%, #050D35 50%, var(--cy-navy) 100%) fixed;
	background-color: var(--cy-navy);
	color: #EAF6FF;
	color-scheme: dark;
}
/* Faint blueprint grid behind everything */
body.rf-cyber::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgb(56 217 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(56 217 255 / .05) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%);
}
.rf-cyber .wp-site-blocks { position: relative; z-index: 0; }
.rf-cyber ::selection { background: var(--cy-cyan); color: var(--cy-navy); }
.rf-cyber a { text-decoration-color: rgb(56 217 255 / .5); }
.rf-cyber a:hover { color: var(--cy-cyan); }

/* Linen texture sections become plain navy panels */
.rf-cyber .rf-linen { background-image: none !important; background-color: transparent !important; }

/* Top bar: neon strip */
.rf-cyber .rf-topbar {
	background: linear-gradient(90deg, var(--cy-blue), #1D4ED8 30%, #0EA5E9 70%, var(--cy-blue)) !important;
	color: #fff !important; position: relative;
}
.rf-cyber .rf-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cy-ice); box-shadow: 0 0 12px var(--cy-cyan); }
.rf-cyber .rf-topbar a:hover, .rf-cyber .rf-topbar a:focus-visible { color: var(--cy-navy); }

/* Header: dark glass with a glowing bottom edge */
.rf-cyber .rf-header {
	background-color: rgb(4 8 36 / .82) !important;
	border-bottom-color: rgb(56 217 255 / .35) !important;
	box-shadow: 0 1px 0 rgb(56 217 255 / .15), 0 10px 30px -18px rgb(56 217 255 / .6);
}
@media (max-width: 781px) { .rf-cyber .rf-header { background-color: var(--cy-navy) !important; } }
.rf-cyber .rf-logo img { filter: brightness(0) invert(1) drop-shadow(0 0 10px rgb(56 217 255 / .55)); }
.rf-cyber .rf-header .wp-block-navigation a:hover,
.rf-cyber .rf-header .wp-block-navigation .current-menu-item > a { color: var(--cy-cyan); text-shadow: 0 0 12px rgb(56 217 255 / .7); }
.rf-cyber .wp-block-navigation__responsive-container.is-menu-open { background: var(--cy-navy) !important; color: #EAF6FF !important; }
.rf-cyber .wc-block-mini-cart__badge { background: var(--cy-cyan) !important; color: var(--cy-navy) !important; border-color: var(--cy-navy) !important; box-shadow: 0 0 10px var(--cy-cyan); }
.rf-cyber .wc-block-mini-cart__drawer .components-modal__frame,
.rf-cyber .wc-block-mini-cart__drawer .wc-block-components-drawer__content { background: var(--cy-navy-2) !important; color: #EAF6FF; }

/* Headings: a touch of glow; italic accents in cyan */
.rf-cyber h1, .rf-cyber h2, .rf-cyber h3 { color: #F2FAFF; }
.rf-cyber h1 em, .rf-cyber h2 em { color: var(--cy-cyan); text-shadow: 0 0 18px rgb(56 217 255 / .45); }

/* Buttons: electric gradient with glow */
.rf-cyber .wp-element-button,
.rf-cyber .wp-block-button__link,
.rf-cyber .wc-block-components-button:not(.is-link),
.rf-cyber .woocommerce a.button, .rf-cyber .woocommerce button.button, .rf-cyber button.single_add_to_cart_button {
	background: linear-gradient(90deg, var(--cy-blue), #0EA5E9) !important;
	color: #fff !important; border-color: transparent !important;
	box-shadow: 0 0 18px rgb(56 217 255 / .35);
	transition: box-shadow .2s, transform .2s;
}
.rf-cyber .wp-element-button:hover,
.rf-cyber .wp-block-button__link:hover,
.rf-cyber .wc-block-components-button:not(.is-link):hover,
.rf-cyber .woocommerce a.button:hover, .rf-cyber .woocommerce button.button:hover, .rf-cyber button.single_add_to_cart_button:hover {
	box-shadow: 0 0 28px rgb(56 217 255 / .7); transform: translateY(-1px);
}
/* The search icon button in the header stays plain */
.rf-cyber .rf-header .wp-block-search__button { background: transparent !important; box-shadow: none !important; color: #EAF6FF !important; }

/* Product cards: dark glass tiles that light up on hover */
.rf-cyber .wc-block-product,
.rf-cyber .wc-block-grid__product,
.rf-cyber ul.products li.product {
	border-radius: 14px; transition: box-shadow .25s, transform .25s;
}
.rf-cyber .wc-block-product:hover,
.rf-cyber ul.products li.product:hover { box-shadow: 0 0 0 1px rgb(56 217 255 / .45), 0 12px 34px -12px rgb(56 217 255 / .55); transform: translateY(-2px); }
.rf-cyber .wc-block-components-product-image img,
.rf-cyber .wp-block-woocommerce-product-image img,
.rf-cyber .wc-block-product img { border-radius: 12px; }

/* Prices: sale price in cyan, old price dim */
.rf-cyber .wc-block-components-product-price ins,
.rf-cyber .price ins,
.rf-cyber .wc-block-components-product-price__value.is-discounted { color: var(--cy-cyan) !important; text-shadow: 0 0 14px rgb(56 217 255 / .45); text-decoration: none; }
.rf-cyber .wc-block-components-product-price del,
.rf-cyber .price del { color: #7F93B8 !important; }

/* Sale badge: neon pill */
.rf-cyber .wc-block-components-product-sale-badge, .rf-cyber.woocommerce span.onsale, .rf-cyber .woocommerce span.onsale {
	background: linear-gradient(90deg, var(--cy-cyan), var(--cy-ice)) !important; color: var(--cy-navy) !important;
	box-shadow: 0 0 14px rgb(56 217 255 / .7);
}

/* Category tiles */
.rf-cyber .rf-cat a { background: var(--cy-panel) !important; border-color: rgb(56 217 255 / .25) !important; color: #EAF6FF !important; }
.rf-cyber .rf-cat a:hover { box-shadow: 0 0 0 1px var(--cy-cyan), 0 0 30px -6px rgb(56 217 255 / .7); }

/* "Nýtt" label on the latest products */
.rf-cyber .rf-latest li::before { background: var(--cy-pink) !important; color: #fff !important; box-shadow: 0 0 12px rgb(255 43 214 / .7); }

/* Forms (search, cart, checkout, account): dark fields with a cyan focus ring */
.rf-cyber input[type="text"], .rf-cyber input[type="email"], .rf-cyber input[type="tel"], .rf-cyber input[type="search"],
.rf-cyber input[type="number"], .rf-cyber input[type="password"], .rf-cyber textarea, .rf-cyber select,
.rf-cyber .wc-block-components-text-input input, .rf-cyber .wc-block-components-textarea,
.rf-cyber .wc-blocks-components-select__select, .rf-cyber .wc-block-components-combobox .components-form-token-field__input,
.rf-cyber .wc-block-components-combobox input {
	background-color: #0B1648 !important; color: #EAF6FF !important; border-color: rgb(56 217 255 / .35) !important;
}
.rf-cyber input:focus, .rf-cyber textarea:focus, .rf-cyber select:focus { outline: 2px solid var(--cy-cyan) !important; outline-offset: 1px; box-shadow: 0 0 14px rgb(56 217 255 / .4) !important; }
.rf-cyber .wc-block-components-text-input label, .rf-cyber .wc-blocks-components-select__label, .rf-cyber .wc-block-components-combobox label { color: #A9BEDF !important; }
.rf-cyber .wc-block-components-radio-control__input, .rf-cyber .wc-block-components-checkbox__input { background-color: #0B1648 !important; border-color: rgb(56 217 255 / .55) !important; }
.rf-cyber .wc-block-components-radio-control__input:checked::before { background: var(--cy-cyan) !important; }
.rf-cyber .wc-block-components-checkbox__mark { fill: var(--cy-cyan) !important; }
.rf-cyber .wc-block-components-radio-control-accordion-option,
.rf-cyber .wc-block-components-radio-control__option { border-color: rgb(56 217 255 / .25) !important; }
.rf-cyber .wc-block-components-panel, .rf-cyber .wc-block-components-totals-wrapper,
.rf-cyber .wc-block-components-order-summary-item, .rf-cyber .wc-block-checkout__sidebar,
.rf-cyber .wp-block-woocommerce-checkout-order-summary-block { border-color: rgb(56 217 255 / .22) !important; }
.rf-cyber .wc-block-components-order-summary-item__quantity { background: var(--cy-navy) !important; color: #EAF6FF !important; border-color: var(--cy-cyan) !important; }
.rf-cyber .wc-block-components-quantity-selector { background: #0B1648; border-color: rgb(56 217 255 / .35) !important; }
.rf-cyber .wc-block-components-quantity-selector input, .rf-cyber .wc-block-components-quantity-selector button { color: #EAF6FF !important; background: transparent !important; }
.rf-cyber .wc-block-components-notice-banner { color: #0A0A0B; }

/* Product page details */
.rf-cyber .rf-delivery li svg, .rf-cyber .rf-info svg { stroke: var(--cy-cyan); }
.rf-cyber .woocommerce-product-gallery img, .rf-cyber .wp-block-woocommerce-product-image-gallery img { border-radius: 14px; }
.rf-cyber .rf-noprice { color: var(--cy-ice); }

/* Footer: glowing top edge */
.rf-cyber footer.wp-block-group {
	border-top: 1px solid rgb(56 217 255 / .35);
	box-shadow: 0 -10px 40px -24px rgb(56 217 255 / .7);
	background: linear-gradient(180deg, #050D35, var(--cy-navy)) !important;
}

/* Scrollbar */
.rf-cyber { scrollbar-color: var(--cy-blue) var(--cy-navy); }

/* Banner countdown (only shown during Cyber Week) */
.rf-bf__count { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: var(--wp--preset--spacing--30) !important; font-size: .95rem; color: rgb(255 255 255 / .85); }
.rf-bf__count-time { display: inline-flex; align-items: baseline; gap: .15rem; font-variant-numeric: tabular-nums; }
.rf-bf__count b {
	display: inline-block; min-width: 2.1em; padding: .25rem .35rem; text-align: center; font-size: 1.35rem; font-weight: 700; color: #fff;
	background: rgb(4 8 36 / .7); border: 1px solid rgb(56 217 255 / .5); border-radius: 8px; box-shadow: 0 0 14px rgb(56 217 255 / .35) inset, 0 0 12px rgb(56 217 255 / .25);
}
.rf-bf__count i { font-style: normal; font-size: .75rem; color: var(--cy-ice); margin: 0 .45rem 0 .2rem; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
	.rf-cyber .wc-block-product, .rf-cyber ul.products li.product, .rf-cyber .wp-element-button { transition: none; }
}

/* Category tile labels: dark glass instead of white */
.rf-cyber .rf-cat__label { background: rgb(4 8 36 / .72) !important; border: 1px solid rgb(56 217 255 / .3); color: #EAF6FF; }
.rf-cyber .rf-cat a:hover .rf-cat__label, .rf-cyber .rf-cat a:focus-visible .rf-cat__label { background: rgb(4 8 36 / .88) !important; border-color: var(--cy-cyan); }
.rf-cyber .rf-cat__count { color: var(--cy-ice); }
.rf-cyber .rf-cat__go { border-color: rgb(56 217 255 / .5) !important; color: var(--cy-cyan) !important; }
.rf-cyber .rf-cat a:hover .rf-cat__go { background: var(--cy-cyan) !important; color: var(--cy-navy) !important; }

/* Accent bands (the "Um Rúmföt.is" statement): electric gradient like the banner */
.rf-cyber .has-accent-background-color {
	background: radial-gradient(60% 90% at 80% 20%, rgb(56 217 255 / .35), transparent 70%), linear-gradient(120deg, #0B1E7A, var(--cy-blue) 55%, #0EA5E9) !important;
	color: #fff !important; border-top: 1px solid rgb(165 243 252 / .5); border-bottom: 1px solid rgb(165 243 252 / .5);
}
.rf-cyber .has-accent-background-color * { color: #fff !important; }
.rf-cyber .has-accent-background-color .rf-eyebrow { color: var(--cy-ice) !important; }

/* Sale price highlight: cyan instead of yellow */
.rf-cyber .wc-block-components-product-price ins, .rf-cyber.woocommerce .price ins, .rf-cyber .woocommerce .price ins {
	background: linear-gradient(transparent 62%, rgb(56 217 255 / .35) 62%) !important; color: #fff !important; text-shadow: none;
}
