/*!
 * Developed by ZEMTA
 */

.preferred-source-inline {
  margin: 10px 0;
  display: flex;
  justify-content: flex-start;
}

.preferred-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.preferred-source-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.preferred-source-btn svg {
  flex-shrink: 0;
}

.preferred-source-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  width: min(420px, calc(100vw - 24px));
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}

.preferred-source-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.preferred-source-toast-body {
  position: relative;
  padding: 20px 44px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .18);
}

.preferred-source-toast-body h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.preferred-source-toast-body p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

.preferred-source-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.preferred-source-toast-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.preferred-source-toast .preferred-source-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.preferred-source-toast-never {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0;
}

.preferred-source-toast-never:hover {
  color: #111827;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .preferred-source-toast {
    bottom: 84px;
  }

  .preferred-source-btn {
    padding-left: 0;
    padding-right: 0;
    padding-top: inherit;
    padding-bottom: inherit;
  }

  .preferred-source-btn span {
    font-size: 12px;
  }
}
