/* Archive-wide overrides (desktop + mobile): hide controls that cannot work
   in the frozen archive. Loaded by every page. */

/* Share buttons (product + blog), blog "more actions", blog search */
[data-hook^="ProductSocialDataHooks.SocialIcon"],
ul:has(> li [data-hook^="ProductSocialDataHooks.SocialIcon"]),
[data-hook^="share-button__"],
[data-hook="more-button"][aria-label="Lisää toimintoja"],
[data-hook="actions-menu-btn"],
a.search-button,
[data-tdp-hidden] { display: none !important; }

/* Image zoom / expand buttons (no lightbox in the archive) */
[data-hook="ProductImageDataHook.ExpandIcon"],
[data-hook="image-expand-button"] { display: none !important; }

/* Links whose target no longer exists: plain text */
a[data-tdp-dead] { pointer-events: none; cursor: default; }

/* "Shop archived" notice */
.tdp-toast { position: fixed; left: 0; right: 0; bottom: 24px; margin: 0 auto; width: max-content; box-sizing: border-box; transform: translateY(20px); z-index: 2147483647;
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 8px; background: #3a3128; color: #fff;
  font: 14px/1.45 lato-light, lato, Arial, sans-serif; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.tdp-toast.tdp-show { opacity: 1; transform: translateY(0); }

/* Blog category dropdown (rebuilt by archive-ui.js) */
.tdp-catmenu { position: absolute; z-index: 2147483000; min-width: 220px; margin-top: 6px; padding: 6px 0; background: #fff;
  border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.tdp-catmenu a { display: block; padding: 10px 16px; color: #3a3128; text-decoration: none; font: 15px/1.3 lato-light, lato, Arial, sans-serif; }
.tdp-catmenu a[aria-current="page"] { font-weight: 700; }
.tdp-catmenu a:active, .tdp-catmenu a:hover { background: #f3eee6; }

/* FAQ answers (archive-ui.js) */
[data-hook="faq-root"] .rah-static { transition: height .3s ease; }
[data-tdp-faq-panel][hidden] { display: none !important; }

/* ---- Round 6 (2026-10-24) ---- */

/* D3 prices and price promotions hidden; visibility keeps every layout box */
[data-hook="product-price"],
[data-hook="formatted-primary-price"],
[data-hook="sr-formatted-primary-price"],
[data-hook="prices-container"],
[data-hook="product-item-price-to-pay"],
[data-hook="product-item-price-before-discount"],
[data-hook^="sr-product-item-price"],
[data-hook="PriceBreakdownDataHook.root"],
[data-hook="product-discount-rule-name"],
[data-hook="ProductPrice.productPrice"],
[data-tdp-promo] { visibility: hidden !important; }

/* D4 buy buttons: greyed out with an "Arkistoitu" badge (click shows the archive notice) */
button[aria-disabled="true"][data-hook] { position: relative; opacity: .6; cursor: not-allowed !important; filter: grayscale(.4); }
button[aria-disabled="true"][data-hook] { overflow: visible !important; }
/* badge sits on the top border, never over the label */
button[aria-disabled="true"][data-hook]::after { content: "Arkistoitu"; position: absolute; top: -8px; right: 10px; z-index: 2;
  padding: 2px 6px; border-radius: 8px; background: #D2BD99; color: #3a3128;
  font: 600 10px/1.3 lato, Arial, sans-serif; letter-spacing: .03em; text-transform: none; pointer-events: none; }

/* D4 page notice under the archive banner (cart, gift cards, terms) */
.tdp-page-archived { position: relative; z-index: 999998; background: #f3ece0; color: #3a3128; text-align: center;
  padding: 8px 16px; border-bottom: 1px solid #e2d6bf; font: 14px/1.5 lato-light, lato, Arial, sans-serif; }

/* D4 rebuilt account / wishlist pages */
.tdp-account { box-sizing: border-box; max-width: 640px; margin: 0 auto; padding: 72px 20px 96px; text-align: center;
  color: #3a3128; font: 17px/1.6 lato-light, lato, Arial, sans-serif; }
.tdp-account h1 { margin: 0 0 24px; font: 400 44px/1.15 forum, Georgia, serif; color: #322c2f; }
.tdp-account p { margin: 0 0 16px; }
.tdp-account a { color: #7c6742; font-weight: 600; }
.tdp-account-links a { display: inline-block; margin: 16px 10px 0; padding: 12px 22px; border-radius: 2px; background: #47524b; color: #fff;
  text-decoration: none; font-weight: 400; letter-spacing: .04em; }
@media (max-width: 750px) { .tdp-account { padding: 40px 16px 64px; font-size: 16px; } .tdp-account h1 { font-size: 34px; } }

/* D2 inert forms: greyed controls; the replaced thank-you text is the visible note */
form[id^="comp-"] :is(input, textarea, button)[disabled],
form[data-testid="search-box-form"] :is(input, button)[disabled] { cursor: not-allowed !important; opacity: .6; }
/* Wix hides these thank-you texts with an id rule (#comp-x{visibility:hidden!important}) */
#comp-ko44fxbk[data-tdp-form-note], #comp-li90mfph[data-tdp-form-note], [data-tdp-form-note] { visibility: visible !important; opacity: 1 !important; }
[data-tdp-form-note] a { color: inherit; text-decoration: underline; }

/* D2 newsletter success text ("Merci, alennuskoodi on nyt matkalla...") would promise a discount code */
#comp-l7fwarng { visibility: hidden !important; }

/* Review fixes (round 6): price filter and gift-card amounts are prices too (D3) */
li[data-hook^="filter-type-PRICE"],
[data-hook="rise-gift-card-product-variants-box-selection"],
fieldset[data-hook="ProductVariants.variants"] { visibility: hidden !important; }
/* disabled fields must look disabled everywhere (gift card) */
input[disabled], textarea[disabled] { background-color: #ece7de !important; cursor: not-allowed !important; }
/* links to pages that no longer exist: no navigation, but the click shows a notice (archive-ui.js) */
a[data-tdp-dead] { pointer-events: auto !important; cursor: not-allowed !important; }
