/* === Brandfarve: rgb(77,106,120) === */
:root{ --hf-brand: rgb(77,106,120); }

/* FÅ ET TILBUD – knap ved produktet */
button.hf-offer-btn.button{
  margin-left:10px;
  background: var(--hf-brand);
  border-color: var(--hf-brand);
  color:#fff;
  padding:10px 14px;
  font-size:13px;
  line-height:1;
  width:auto;
  white-space:nowrap;

  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
}
button.hf-offer-btn.button:hover{filter:brightness(1.1)}
.hf-offer-icon{width:16px;height:16px;fill:currentColor;display:inline-block}

/* SEND TILBUDSANMODNING – knap i popup */
button.hf-offer-submit.button{
  margin-top:14px;
  width:100%;
  background: var(--hf-brand);
  border-color: var(--hf-brand);
  color:#fff;
}
button.hf-offer-submit.button:hover{filter:brightness(1.1)}

/* FORCE mod tema-overrides */
.single-product form.cart button.hf-offer-btn,
.single-product form.cart button.hf-offer-btn.button{
  background: var(--hf-brand) !important;
  border-color: var(--hf-brand) !important;
  color:#fff !important;
}
#hf-offer-modal button.hf-offer-submit,
#hf-offer-modal button.hf-offer-submit.button{
  background: var(--hf-brand) !important;
  border-color: var(--hf-brand) !important;
  color:#fff !important;
}

/* Border-radius: match temaets primære knap hvis muligt */
:root{ --hf-btn-radius: 10px; }
.single-product form.cart .single_add_to_cart_button{
  --hf-btn-radius: var(--btn-brd-radius, 10px);
}
.single-product form.cart button.hf-offer-btn,
#hf-offer-modal button.hf-offer-submit{
  border-radius: var(--hf-btn-radius) !important;
}

/* Mobil: gør "Få et tilbud" fuld bredde og undgå 2-linje rod */
@media (max-width: 768px){
  .single-product form.cart button.hf-offer-btn{
    width:100% !important;
    margin-left:0 !important;
    margin-top:10px !important;
    display:flex !important;
  }
}

/* Modal: centreret og scrollbart indhold */
.hf-offer-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:999999;
  align-items:center;
  justify-content:center;
}
.hf-offer-modal.is-open{display:flex}

.hf-offer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}

.hf-offer-dialog{
  position:relative;
  width:min(560px,calc(100vw - 32px));
  background:#fff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);

  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline:none;
  z-index:1;
}

@media (max-width: 520px){
  .hf-offer-dialog{ padding:16px; }
  /* gør beskedfeltet mindre på mobil */
  .hf-offer-form textarea{ min-height: 84px; }
  /* skjul "vi svarer typisk..." på mobil */
  .hf-offer-assurance{ display:none !important; }
}

.hf-offer-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer}
.hf-offer-header h3{margin:0 0 8px;font-size:18px}
.hf-offer-product-title{font-weight:700;margin-bottom:4px}
.hf-offer-product-meta{font-size:13px;opacity:.75}
.hf-offer-form label{display:block;font-size:13px;margin-top:12px}
.hf-offer-form input[type=text],.hf-offer-form input[type=email],.hf-offer-form input[type=tel],.hf-offer-form input[type=file],.hf-offer-form textarea{
  width:100%;margin-top:6px;border-radius:10px;border:1px solid #ddd;padding:10px 12px;outline:none
}
.hf-offer-help{display:block;opacity:.75;margin-top:6px}
.hf-offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hf-offer-phone{grid-column:1/-1}
.hf-offer-consent{display:flex;gap:10px;align-items:flex-start;margin-top:12px}
.hf-offer-assurance{margin-top:10px;font-size:12.5px;opacity:.8}
.hf-offer-status{margin-top:10px;font-size:13px}
.hf-offer-status.is-success{color:#1a7f37}
.hf-offer-status.is-error{color:#b42318}
.hf-offer-status-close{
  margin-left:10px;
  border:0;
  background:transparent;
  text-decoration:underline;
  cursor:pointer;
  font-size:13px;
  padding:0;
}

/* Honeypot should be invisible */
.hf-honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Body lock: stop baggrundsscroll (også på iOS) */
body.hf-offer-lock{
  position: fixed;
  width:100%;
  overflow:hidden;
}
@media(max-width:520px){.hf-offer-grid{grid-template-columns:1fr}}
