.ah-rfq-cta { margin: 1rem 0; }
.ah-rfq-open {
  display: inline-block;
  background: #FFBB00;
  color: #111 !important;
  font-weight: 700;
  border: 0;
  border-radius: 4px;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}
.ah-rfq-open:hover { filter: brightness(0.95); }
.ah-rfq-note { margin: 0.5rem 0 0; font-size: 0.875rem; color: #555; }
.ah-rfq-modal[hidden] { display: none !important; }
.ah-rfq-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ah-rfq-modal__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
}
.ah-rfq-modal__panel {
  position: relative; z-index: 1;
  background: #fff; color: #222;
  width: 100%; max-width: 480px;
  border-radius: 8px; padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  max-height: 90vh; overflow: auto;
}
.ah-rfq-modal__x {
  position: absolute; top: .4rem; right: .6rem;
  border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.ah-rfq-modal__title { margin: 0 1.5rem .35rem 0; font-size: 1.35rem; }
.ah-rfq-modal__product { margin: 0 0 1rem; font-size: .95rem; }
.ah-rfq-modal__sku { display: block; color: #666; font-size: .85rem; }
.ah-rfq-field { display: block; margin: 0 0 .75rem; }
.ah-rfq-field span { display: block; font-size: .8rem; margin-bottom: .25rem; font-weight: 600; }
.ah-rfq-field input,
.ah-rfq-field textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid #ccc; border-radius: 4px; padding: .55rem .65rem; font: inherit;
}
.ah-rfq-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.ah-rfq-submit {
  background: #111; color: #fff !important; border: 0; border-radius: 4px;
  padding: .7rem 1.1rem; font-weight: 700; cursor: pointer;
}
.ah-rfq-cancel {
  background: #eee; border: 0; border-radius: 4px; padding: .7rem 1rem; cursor: pointer;
}
.ah-rfq-status { margin: .75rem 0 0; font-size: .9rem; }
.ah-rfq-status.is-ok { color: #0a7a32; }
.ah-rfq-status.is-err { color: #b00020; }
html.ah-rfq-open, html.ah-rfq-open body { overflow: hidden; }

body.marine-engines .ah-rfq-open,
.store-default .ah-rfq-open { background: #00CEFF; }

body.ah-rfq-product .product-info-main .price-box .price,
body.ah-rfq-product .product-info-price .price-final_price .price,
body.ah-rfq-product .product-info-main .box-tocart .action.tocart:not(.ah-rfq-open),
body.ah-rfq-product .product-info-main #product-addtocart-button:not(.ah-rfq-open) {
  display: none !important;
}

/* Deduped: never show legacy text placeholder beside the CTA button */
.ah-rfq-price-placeholder { display: none !important; }
.ah-rfq-offer-schema[hidden] { display: none !important; }

/* When RFQ CTA is on the page, collapse empty Hyvä price chrome */
.card:has([data-ah-rfq-cta]) [role="group"][aria-label="Price"]:empty,
.card:has([data-ah-rfq-cta]) [role="group"][aria-label="Price"]:has(.ah-rfq-offer-schema),
body.ah-rfq-product [role="group"][aria-label="Price"]:empty,
body.ah-rfq-product [role="group"][aria-label="Price"]:has(.ah-rfq-offer-schema) {
  display: none !important;
}
