/* BarcodeMine lead capture. Selectors are specific on purpose: the theme styles
   bare buttons, inputs and headings, and those rules must not leak in here. */

.bmdk-lead [hidden],
.bmdk-cb-dialog [hidden] { display: none !important; }

/* ---- Floating button (bottom-left: Tawk.to and back-to-top own the right) ---- */
.bmdk-cb-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 99990;
  display: inline-flex; align-items: center; gap: 8px;
  width: auto; height: auto; min-height: 0; margin: 0; padding: 12px 18px;
  border: 0; border-radius: 999px; background: #003A8F; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  letter-spacing: normal; text-transform: none; text-decoration: none;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0, 58, 143, .32);
  transition: background-color .15s ease;
}
.bmdk-cb-fab:hover { background: #002C6E; color: #fff; }
.bmdk-cb-fab:focus-visible { outline: 3px solid #F9672F; outline-offset: 3px; }
.bmdk-cb-fab svg { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.bmdk-cb-fab-short { display: none; }
@media (max-width: 600px) {
  .bmdk-cb-fab { left: 12px; bottom: 12px; padding: 11px 15px; font-size: 14px; }
  .bmdk-cb-fab-long { display: none; }
  .bmdk-cb-fab-short { display: inline; }
}
@media print { .bmdk-cb-fab { display: none; } }

/* ---- Dialog ---- */
.bmdk-cb-dialog {
  width: min(460px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 14px; overflow: auto;
  background: #fff; color: #1A2233; box-shadow: 0 24px 64px rgba(11, 31, 58, .35);
}
.bmdk-cb-dialog:not([open]) { display: none; }
.bmdk-cb-dialog::backdrop { background: rgba(11, 31, 58, .55); }
.bmdk-cb-panel { padding: 22px 22px 18px; }
.bmdk-cb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bmdk-cb-title {
  margin: 0; padding: 0; font-family: inherit; font-size: 21px; font-weight: 700; line-height: 1.3;
  color: #1A2233; letter-spacing: normal; text-transform: none;
}
.bmdk-cb-close {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-height: 0; margin: -6px -8px 0 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #5B6577; cursor: pointer; box-shadow: none;
  transition: background-color .15s ease, color .15s ease;
}
.bmdk-cb-close:hover { background: #F1F3F7; color: #1A2233; }
.bmdk-cb-close:focus-visible { outline: 3px solid #003A8F; outline-offset: 1px; }
.bmdk-cb-close svg { width: 20px; height: 20px; fill: currentColor; }
.bmdk-cb-sub { margin: 6px 0 16px; font-size: 14.5px; line-height: 1.5; color: #3C4658; }

/* ---- Forms ---- */
.bmdk-lead { font-family: inherit; color: #1A2233; text-align: left; }
.bmdk-lead-form { margin: 0; }
.bmdk-lead-field { margin: 0 0 12px; }
.bmdk-lead .bmdk-lead-form label {
  display: block; margin: 0 0 5px; font-size: 14px; font-weight: 600; line-height: 1.3;
  color: #1A2233; letter-spacing: normal; text-transform: none;
}
.bmdk-lead-opt { font-weight: 400; color: #5B6577; }
.bmdk-lead .bmdk-lead-form input[type="text"],
.bmdk-lead .bmdk-lead-form input[type="tel"],
.bmdk-lead .bmdk-lead-form input[type="email"],
.bmdk-lead .bmdk-lead-form select,
.bmdk-lead .bmdk-lead-form textarea {
  display: block; width: 100%; max-width: none; height: auto; min-height: 44px; box-sizing: border-box;
  margin: 0; padding: 10px 12px; border: 1px solid #C3CBD8; border-radius: 8px;
  background: #fff; color: #1A2233; box-shadow: none;
  /* 16px stops iPhones zooming into the page when a field is tapped. */
  font-family: inherit; font-size: 16px; line-height: 1.4;
}
.bmdk-lead .bmdk-lead-form textarea { min-height: 76px; resize: vertical; }
.bmdk-lead .bmdk-lead-form input:focus-visible,
.bmdk-lead .bmdk-lead-form select:focus-visible,
.bmdk-lead .bmdk-lead-form textarea:focus-visible {
  border-color: #003A8F; outline: 3px solid rgba(0, 58, 143, .3); outline-offset: 0;
}
.bmdk-lead .bmdk-lead-form [aria-invalid="true"] { border-color: #B42318; }
.bmdk-lead-err { margin: 5px 0 0; font-size: 13px; line-height: 1.4; color: #B42318; }
.bmdk-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 440px) { .bmdk-lead-row { grid-template-columns: 1fr; } }

.bmdk-lead-field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.bmdk-lead .bmdk-lead-field--check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #003A8F; }
.bmdk-lead .bmdk-lead-form .bmdk-lead-field--check label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.45; color: #3C4658; }
.bmdk-lead-field--check .bmdk-lead-err { grid-column: 1 / -1; }

.bmdk-lead-note { margin: 2px 0 14px; font-size: 12.5px; line-height: 1.5; color: #5B6577; }
.bmdk-lead-note a { color: #003A8F; text-decoration: underline; }

.bmdk-lead .bmdk-lead-submit,
.bmdk-lead .bmdk-lead-done,
.bmdk-lead-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: auto; min-height: 48px; margin: 0; padding: 12px 20px;
  border: 0; border-radius: 8px; background: #F9672F; color: #fff; box-shadow: none;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  letter-spacing: normal; text-transform: none; text-decoration: none; cursor: pointer;
  /* The theme's reset.css animates every property of every button over 350ms. */
  transition: background-color .15s ease, color .15s ease;
}
.bmdk-lead-button { width: auto; }
.bmdk-lead .bmdk-lead-submit:hover,
.bmdk-lead .bmdk-lead-done:hover,
.bmdk-lead-button:hover { background: #D9521F; color: #fff; }
.bmdk-lead .bmdk-lead-submit:focus-visible,
.bmdk-lead .bmdk-lead-done:focus-visible,
.bmdk-lead-button:focus-visible { outline: 3px solid #003A8F; outline-offset: 2px; }
.bmdk-lead .bmdk-lead-submit[disabled] { opacity: .7; cursor: progress; }
.bmdk-lead-status { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: #B42318; }
.bmdk-lead-status:empty { display: none; }

.bmdk-lead-success:focus { outline: none; }
.bmdk-lead-success-title { margin: 4px 0 6px; font-size: 18px; font-weight: 700; color: #067647; }
.bmdk-lead-success-msg { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #1A2233; }
.bmdk-lead-wa { display: inline-block; margin: 0 0 14px; font-weight: 600; color: #067647; text-decoration: underline; }

/* Off-screen rather than display:none, which some bots check for. */
.bmdk-hp {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* ---- Winning against the theme's forced button style ----
   mydecor-child/functions.php (barcodemine_fix_green_color_clash) forces every
   <button> on the site to #333333, 12px text, 4px padding and 1.2 line height,
   all !important. Only !important with a more specific selector beats that, so
   exactly those properties are restated here. Measured on the live theme: without
   this the call-back button rendered 26px tall in dark grey. */
.bmdk-cb-fab.bmdk-cb-fab {
  background-color: #003A8F !important; border-color: #003A8F !important; color: #fff !important;
  padding: 12px 18px !important; font-size: 15px !important; line-height: 1.2 !important;
}
.bmdk-cb-fab.bmdk-cb-fab:hover { background-color: #002C6E !important; border-color: #002C6E !important; color: #fff !important; }
@media (max-width: 600px) {
  .bmdk-cb-fab.bmdk-cb-fab { padding: 11px 15px !important; font-size: 14px !important; }
}
.bmdk-cb-dialog .bmdk-cb-close.bmdk-cb-close {
  background-color: transparent !important; border-color: transparent !important; color: #5B6577 !important;
  padding: 0 !important; font-size: 0 !important; line-height: 0 !important;
}
.bmdk-cb-dialog .bmdk-cb-close.bmdk-cb-close:hover {
  background-color: #F1F3F7 !important; border-color: #F1F3F7 !important; color: #1A2233 !important;
}
.bmdk-lead .bmdk-lead-submit.bmdk-lead-submit,
.bmdk-lead .bmdk-lead-done.bmdk-lead-done {
  background-color: #F9672F !important; border-color: #F9672F !important; color: #fff !important;
  padding: 12px 20px !important; font-size: 16px !important; line-height: 1.2 !important;
}
.bmdk-lead .bmdk-lead-submit.bmdk-lead-submit:hover,
.bmdk-lead .bmdk-lead-done.bmdk-lead-done:hover {
  background-color: #D9521F !important; border-color: #D9521F !important; color: #fff !important;
}

/* The theme strips the native arrow from drop-downs; without it they look like
   text boxes and nobody knows they open. */
.bmdk-lead .bmdk-lead-form select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%235B6577' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px 18px;
}

/* ---- Inline boxes and prompts ---- */
.bmdk-lead-box { margin: 32px 0; padding: 22px; border: 1px solid #DCE3EE; border-radius: 12px; background: #F6F8FC; }
.bmdk-lead-box-title { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; color: #1A2233; }
.bmdk-lead-box-text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: #3C4658; }
/* clear: themes float the quantity box and Add to cart button. */
.bmdk-lead-prompt { clear: both; margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: #3C4658; }
.bmdk-lead-prompt a { color: #003A8F; font-weight: 600; text-decoration: underline; }
