/* Společný spouštěč a panel poptávky v hlavičce. */
body.bd-header-inquiry-enabled #header .header-top > .bd-header-inquiry {
  display: none; position: relative; z-index: 65; flex: 0 0 auto;
  width: auto; min-width: 0; margin: 0; padding: 0;
}
.bd-header-inquiry__toggle {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
  margin: 0; padding: 0 8px; border: 0; border-radius: 5px;
  background: #e3f1f0; color: #0b171b; font: inherit; font-size: 14px;
  font-weight: 700; line-height: 20px; text-align: center; cursor: pointer;
}
.bd-header-inquiry__toggle:hover,
.bd-header-inquiry__toggle[aria-expanded="true"] { background: #d1e8e5; }
.bd-header-inquiry__toggle:focus-visible,
.bd-header-inquiry__close:focus-visible { outline: 2px solid #0b8577; outline-offset: -3px; }

.bd-header-inquiry-panel.bd-footer-poptavka {
  display: block; position: absolute; top: calc(100% + 25px);
  right: var(--bd-inquiry-right-offset, 0px); z-index: 70;
  width: min(680px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 100px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid #bfd4d2; border-radius: 8px; background: #e3f1f0;
  box-shadow: 0 14px 40px rgba(11, 23, 27, .22); text-align: start;
}
.bd-header-inquiry-panel[hidden] { display: none !important; }
.bd-header-inquiry-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 2; margin: 0; padding: 14px 20px;
  border-bottom: 1px solid #c9dfdd; background: #e3f1f0;
}
.bd-header-inquiry-panel__head h2 { margin: 0; color: #0b171b; font-size: 20px; font-weight: 700; line-height: 1.25; }
.bd-header-inquiry__close {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px;
  width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: #0b171b; font: 28px/1 Arial, sans-serif; cursor: pointer;
}
.bd-header-inquiry__close:hover { background: #d1e8e5; }
.bd-header-inquiry-panel .bd-footer-poptavka__fields { padding: 18px 20px 20px; }
.bd-header-inquiry-panel .bd-footer-poptavka__prototype { font-size: 13px; line-height: 1.4; }

@media (min-width: 992px) {
  body.bd-header-inquiry-enabled #header .header-top { gap: 20px; }
  body.bd-header-inquiry-enabled #header .header-top > .site-name-wrapper { flex-basis: 190px; max-width: 190px; }
  body.bd-header-inquiry-enabled #header .header-top > .search { flex: 1 1 0; max-width: none; min-width: 180px; margin: 0; }
  body.bd-header-inquiry-enabled #header .header-top > .bd-header-inquiry { display: block; flex: 0 0 110px; width: 110px; }
  body.bd-header-inquiry-enabled #header .header-top > .navigation-buttons { margin-left: 0; }
  body.bd-header-inquiry-enabled #header .header-top .cart-count { display: flex; align-items: center; gap: 12px; }
  body.bd-header-inquiry-enabled #header .header-top .cart-count::before { display: block; position: static; margin: 0; line-height: 1; }
}

@media (max-width: 991.98px) {
  body.bd-header-inquiry-enabled { --bd-mobile-inquiry-width: clamp(78px, 24vw, 96px); }
  body.bd-header-inquiry-enabled #header .site-name {
    width: calc(100% - var(--bd-mobile-cart-right) - 70px - var(--bd-mobile-inquiry-width) - var(--bd-mobile-account-space, 0px));
  }
  body.bd-header-inquiry-enabled #header .header-top > .bd-header-inquiry {
    display: block;
    position: absolute;
    top: calc(9px - var(--bd-mobile-top-row));
    right: calc(var(--bd-mobile-cart-right) + 50px + var(--bd-mobile-account-space, 0px));
    width: var(--bd-mobile-inquiry-width);
  }
  .bd-header-inquiry-panel.bd-footer-poptavka {
    position: fixed;
    top: var(--bd-mobile-header-height);
    right: 12px;
    width: min(600px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - var(--bd-mobile-header-height) - 8px);
    max-height: calc(var(--bd-inquiry-viewport-height, 100dvh) - var(--bd-mobile-header-height) - 8px);
  }
  .bd-header-inquiry-panel__head { padding: 6px 12px 6px 16px; }
  .bd-header-inquiry__close { flex-basis: 44px; width: 44px; height: 44px; }
}

/* Živý kontaktní formulář Shoptetu běží ve vlastním dokumentu stejného původu. */
.bd-inquiry-host { min-width: 0; background: #e3f1f0; }
.bd-inquiry-frame { display: block; width: 100%; height: 100px; border: 0; background: #e3f1f0; }
.bd-inquiry-loading { margin: 0; padding: 18px 20px; }
.bd-inquiry-loading[hidden] { display: none; }
html.bd-inquiry-document-root,
body.bd-inquiry-embedded { min-width: 0 !important; width: 100%; height: auto !important; margin: 0 !important; padding: 0 !important; background: #e3f1f0 !important; overflow-x: hidden; }
body.bd-inquiry-embedded .overall-wrapper,
body.bd-inquiry-embedded > .user-action,
body.bd-inquiry-embedded .siteCookies,
body.bd-inquiry-embedded .bd-maintenance-overlay { display: none !important; }
body.bd-inquiry-embedded .bd-inquiry-document { display: block; width: 100%; min-width: 0; margin: 0; padding: 18px 20px; border: 0; background: #e3f1f0; }
body.bd-inquiry-embedded #formContact { width: 100%; max-width: none; margin: 0; }
body.bd-inquiry-embedded #formContact > fieldset { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
body.bd-inquiry-embedded #formContact [hidden] { display: none !important; }
body.bd-inquiry-embedded .bd-inquiry-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 20px; }
body.bd-inquiry-embedded .bd-inquiry-field--full,
body.bd-inquiry-embedded .bd-inquiry-photo-note { grid-column: 1 / -1; }
body.bd-inquiry-embedded .bd-footer-poptavka__control { min-height: 42px; font-size: 16px; }
body.bd-inquiry-embedded .bd-footer-poptavka__control--message { min-height: 92px; }
body.bd-inquiry-embedded .bd-inquiry-photo-note { margin: 0; font-size: 13px; line-height: 1.4; }
.bd-inquiry-photo {
  min-width: 0;
  padding: 10px;
  border: 1px dashed #79aaa4;
  border-radius: 9px;
  background: #f0f8f7;
  color: #132b30;
}
.bd-inquiry-photo__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bd-inquiry-photo__actions label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 80px;
  margin: 0;
  padding: 10px 6px;
  border: 1px solid #0b8577;
  border-radius: 5px;
  background: #fff;
  color: #05695f;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.bd-inquiry-photo__actions label:has(input:disabled) {
  border-color: #a3bdb9;
  background: transparent;
  color: #496762;
  cursor: default;
}
.bd-inquiry-photo__actions label:focus-within,
.bd-inquiry-photo button:focus-visible { outline: 2px solid #05695f; outline-offset: 2px; }
.bd-inquiry-photo__actions .bd-footer-poptavka__icon {
  display: block;
  width: 26px;
  height: 26px;
}
.bd-inquiry-photo__previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.bd-inquiry-photo__previews:empty { display: none; }
.bd-inquiry-photo__thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 68px;
  max-height: 150px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #bfd4d2;
  border-radius: 6px;
  background: #e3f1f0;
}
.bd-inquiry-photo__thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bd-inquiry-photo__thumbnail span {
  max-width: 100%;
  padding: 30px 6px 6px;
  overflow-wrap: anywhere;
  text-align: center;
}
.bd-inquiry-photo__thumbnail button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #0b171b;
  color: #fff;
  font: 20px/1 Arial, sans-serif;
  cursor: pointer;
}
.bd-inquiry-photo__thumbnail button:focus-visible { outline-color: #fff; outline-offset: -3px; }
.bd-inquiry-photo__notice { display: flex; align-items: center; gap: 8px; }
.bd-inquiry-photo__notice:has(button:not([hidden])) { margin-top: 8px; }
.bd-inquiry-photo__status { margin: 0; overflow-wrap: anywhere; }
.bd-inquiry-photo__notice button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #05695f;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.bd-footer-poptavka .bd-footer-poptavka__icon--camera {
  --bd-footer-poptavka-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}
.bd-footer-poptavka .bd-footer-poptavka__icon--smartphone {
  --bd-footer-poptavka-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
}
.bd-inquiry-send-status { margin: 0; color: #132b30; font-size: 14px; line-height: 1.4; text-align: start; }
.bd-inquiry-send-status:not(:empty) { margin-top: 8px; }

body.bd-inquiry-embedded .consents { margin: 14px 0; padding: 0; font-size: 13px; }
body.bd-inquiry-embedded .consents .label { font: inherit; }
body.bd-inquiry-embedded .submit-wrapper { margin: 16px 0 0; padding: 0; }
body.bd-inquiry-embedded .bd-inquiry-submit { width: 100%; min-height: 48px; border: 0; border-radius: 5px; background: #0b8577; color: #fff; font-size: 19px; text-transform: none; }
body.bd-inquiry-embedded .bd-inquiry-submit:hover { background: #156c64; }
.bd-footer-poptavka .bd-footer-poptavka__icon--person {
  --bd-footer-poptavka-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E");
}
.bd-footer-poptavka .bd-footer-poptavka__icon--phone {
  --bd-footer-poptavka-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 2 3 4C0 10 14 24 20 21l2-4-5-3-3 3c-3-1-6-4-7-7l3-3-3-5Z'/%3E%3C/svg%3E");
}
@media (max-width: 520px) {
  body.bd-inquiry-embedded .bd-inquiry-document { padding: 14px 16px; }
  body.bd-inquiry-embedded .bd-inquiry-fields { grid-template-columns: minmax(0,1fr); gap: 14px; }
}

/* Nativní výsledek poptávky patří k odeslání uvnitř iframe. */
body.bd-inquiry-embedded .bd-inquiry-document :is(.messages, .msg-wrapper) {
  position: static;
  inset: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: auto;
}
body.bd-inquiry-embedded .bd-inquiry-document .msg {
  position: static;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--bd-notice-border, #b9d8d4);
  border-inline-start: 3px solid var(--bd-notice-accent, #087c70);
  border-radius: 8px;
  background: var(--bd-notice-fill, #e3f1f0);
  color: #0b171b;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body.bd-inquiry-embedded .bd-inquiry-document .msg > .container { width: auto; max-width: none; padding: 0; }
body.bd-inquiry-embedded .bd-inquiry-document .msg a { color: inherit; text-decoration: underline; }
body.bd-inquiry-embedded .bd-inquiry-document .msg-warning { --bd-notice-fill: #fff5df; --bd-notice-border: #edd29b; --bd-notice-accent: #955500; }
body.bd-inquiry-embedded .bd-inquiry-document .msg-error { --bd-notice-fill: #fbeceb; --bd-notice-border: #e9c1bd; --bd-notice-accent: #a12822; }
body.bd-inquiry-embedded .bd-inquiry-document .msg.hidden { display: none; }
