﻿.acc-notify-me,
.acc-newsletter-form,
.acc-otp-form,
.acc-login-box,
.acc-lead-box,
.acc-lead-popup {
  --acc-radius: 16px;
  --acc-radius-sm: 12px;
  box-sizing: border-box;
  font-family: inherit;
}

.acc-notify-me,
.acc-newsletter-form,
.acc-otp-form,
.acc-login-box,
.acc-lead-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--acc-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.acc-lead-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  max-width: 320px;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--acc-radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  /* Keep absolute close button relative to this box. */
  isolation: isolate;
}

.acc-lead-popup strong {
  display: block;
  margin: 0;
  padding: 0 0 0 28px;
  line-height: 1.4;
}

.acc-notify-me input,
.acc-newsletter-form input,
.acc-otp-form input,
.acc-login-box input,
.acc-lead-box input,
.acc-lead-popup input {
  flex: 1 1 140px;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: var(--acc-radius-sm);
  background: #fff;
  box-shadow: none;
}

.acc-notify-me button,
.acc-newsletter-form button,
.acc-otp-form button,
.acc-login-box button,
.acc-lead-box button,
.acc-lead-popup .acc-lead-submit {
  border-radius: var(--acc-radius-sm);
}

/* Physical left (چپ) — not RTL start, so Iranian sites keep X on the left. */
.acc-lead-popup > .acc-lead-close,
.acc-lead-box > .acc-lead-close,
button.acc-lead-close {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 8px !important;
  float: none !important;
  grid-column: unset !important;
  grid-row: unset !important;
  z-index: 5;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.acc-lead-close:hover,
.acc-lead-close:focus {
  color: #111;
  background: transparent !important;
  outline: none;
}

.acc-lead-close:focus-visible {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.2) !important;
}
