/**
 * ZOT Marketing — front (sticky + popup + reviews widget)
 */

.zot-marketing-sticky {
  --zot-mkt-bg: #0f172a;
  --zot-mkt-fg: #f8fafc;
  --zot-mkt-call: #0d9488;
  --zot-mkt-wa: #16a34a;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99980;
  background: var(--zot-mkt-bg);
  color: var(--zot-mkt-fg);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.25);
  padding: env(safe-area-inset-bottom, 0) 0 0;
}

.zot-marketing-sticky--mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .zot-marketing-sticky--mobile-only {
    display: block;
  }

  body.zot-marketing-has-sticky {
    padding-bottom: 3.75rem;
  }
}

@media (min-width: 768px) {
  .zot-marketing-sticky:not(.zot-marketing-sticky--mobile-only) {
    display: block;
  }
}

.zot-marketing-sticky__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 3.25rem;
}

.zot-marketing-sticky__list > li {
  flex: 1;
  margin: 0;
}

.zot-marketing-sticky__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.zot-marketing-sticky__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.zot-marketing-sticky__btn--call {
  background: var(--zot-mkt-call);
}

.zot-marketing-sticky__btn--wa {
  background: var(--zot-mkt-wa);
}

.zot-marketing-sticky__list > li:only-child .zot-marketing-sticky__btn {
  border-radius: 0;
}

/* Popup */
.zot-marketing-popup[hidden] {
  display: none !important;
}

.zot-marketing-popup {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .zot-marketing-popup {
    align-items: center;
  }
}

.zot-marketing-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.zot-marketing-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  color: #0f172a;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

@media (min-width: 640px) {
  .zot-marketing-popup__panel {
    border-radius: 12px;
    margin: 1rem;
  }
}

.zot-marketing-popup__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem 0.4rem;
}

.zot-marketing-popup__close:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

.zot-marketing-popup__title {
  margin: 0 1.5rem 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.zot-marketing-popup__body {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.95rem;
}

.zot-marketing-popup__field {
  margin: 0 0 0.75rem;
}

.zot-marketing-popup__field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.zot-marketing-popup__field input,
.zot-marketing-popup__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.zot-marketing-popup__consent {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #334155;
}

.zot-marketing-popup__consent label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.zot-marketing-popup__consent input {
  margin-top: 0.2rem;
}

.zot-marketing-popup__hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.zot-marketing-popup__submit {
  display: inline-block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #0d9488;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.zot-marketing-popup__submit:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.zot-marketing-popup__flash {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.zot-marketing-popup__flash--ok {
  background: #ecfdf5;
  color: #065f46;
}

.zot-marketing-popup__flash--err {
  background: #fef2f2;
  color: #991b1b;
}

/* Reviews widget */
.zot-marketing-reviews {
  padding: 1rem 0;
}

.zot-marketing-reviews__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.zot-marketing-reviews__rating {
  margin: 0 0 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.zot-marketing-reviews__score {
  font-weight: 700;
  font-size: 1.25rem;
}

.zot-marketing-reviews__count {
  color: #64748b;
  font-size: 0.9rem;
}

.zot-marketing-reviews__link {
  display: inline-block;
  font-weight: 600;
  color: #0d9488;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zot-marketing-reviews__link:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
