/* Gyors ajánlat: lebegő gomb és mobil alsó panel. */
#quick-offer-button {
  position: fixed;
  right: 16px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  z-index: 99997;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid rgba(17, 17, 17, 0.88);
  border-radius: 999px;
  background: #ffc107;
  color: #111;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: width 180ms ease, padding 180ms ease, transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

#quick-offer-button:hover,
#quick-offer-button:focus-visible {
  background: #ffc107;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 11px 27px rgba(0, 0, 0, 0.35);
  outline: none;
}

.quick-offer-icon {
  width: 30px;
  height: 36px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.quick-offer-text {
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition: max-width 180ms ease, opacity 120ms ease;
}

#quick-offer-panel {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.58);
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

#quick-offer-panel.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s;
}

.quick-offer-content {
  position: absolute;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(430px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(47, 51, 56, 0.96);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  transform: translateY(28px);
  transition: transform 200ms ease;
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

#quick-offer-panel.is-open .quick-offer-content {
  transform: translateY(0);
}

.quick-offer-handle {
  display: none;
}

.quick-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quick-offer-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
}

.quick-offer-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.quick-offer-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #343a40;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.quick-offer-content a:last-child {
  margin-bottom: 0;
}

.quick-offer-content a:hover,
.quick-offer-content a:focus-visible {
  border-color: #ffc107;
  color: #fff;
  text-decoration: none;
  outline: none;
}

body.quick-offer-open {
  overflow: hidden;
}

@media (max-width: 576px) {
  #quick-offer-button {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
  }

  #quick-offer-button.is-compact {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 9px 12px;
    gap: 0;
    border-radius: 50%;
  }

  #quick-offer-button.is-compact .quick-offer-text {
    max-width: 0;
    opacity: 0;
  }

  .quick-offer-content {
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 10px 10px 0 0;
  }

  .quick-offer-handle {
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
  }

  .quick-offer-content a {
    min-height: 52px;
    font-size: 1rem;
  }

  #quick-offer-button.quick-offer-attention {
    animation: quick-offer-pulse 700ms ease 2;
  }
}

@keyframes quick-offer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@media (prefers-reduced-motion: reduce) {
  #quick-offer-button,
  .quick-offer-text,
  #quick-offer-panel,
  .quick-offer-content {
    transition: none;
    animation: none !important;
  }
}
