
.rating-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  max-width: 380px;
  margin: 0 auto;
  padding: 18px 18px 16px;

  display: flex;
  gap: 12px;

  background: rgba(255, 255, 255, 0.96);
  color: #1f2933;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);

  font-family: inherit;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.rating-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rating-toast[hidden] {
  display: none;
}

.rating-toast-icon {
  flex: 0 0 auto;
  font-size: 1.45rem;
  line-height: 1;
  margin-top: 2px;
}

.rating-toast-content {
  padding-right: 22px;
}

.rating-toast-content strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.rating-toast-content p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
}

.rating-toast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 9px 15px;

  border-radius: 999px;
  background: #1f2933;
  color: #ffffff;

  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.rating-toast-button:hover {
  transform: translateY(-1px);
  background: #111827;
}

.rating-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 30px;
  height: 30px;

  border: none;
  border-radius: 50%;

  background: transparent;
  color: #6b7280;

  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.rating-toast-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111827;
}

@media (min-width: 720px) {
  .rating-toast {
    left: auto;
    right: 24px;
    bottom: 24px;
    margin: 0;
  }
}


@media (max-width: 719px) {

  .rating-toast{
    left:12px;
    right:12px;
    bottom:12px;

    padding:14px 14px 13px;
    border-radius:18px;

    max-width:none;
  }

  .rating-toast-icon{
    font-size:1.2rem;
  }

  .rating-toast-content strong{
    font-size:.92rem;
    margin-bottom:4px;
  }

  .rating-toast-content p{
    font-size:.82rem;
    line-height:1.4;
    margin-bottom:10px;
  }

  .rating-toast-button{
    min-height:34px;
    padding:8px 13px;
    font-size:.82rem;
  }

  .rating-toast-close{
    width:26px;
    height:26px;
    font-size:1.15rem;
    top:8px;
    right:8px;
  }

}

@media (prefers-color-scheme: dark) {
  .rating-toast {
    background: rgba(25, 27, 32, 0.94);
    color: #f9fafb;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  }

  .rating-toast-content p {
    color: #d1d5db;
  }

  .rating-toast-button {
    background: #f9fafb;
    color: #111827;
  }

  .rating-toast-button:hover {
    background: #e5e7eb;
  }

  .rating-toast-close {
    color: #d1d5db;
  }

  .rating-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
}

/* iPhone Safe Area */
.rating-toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
}

@media (min-width: 720px) {
    .rating-toast {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
}