/* ===== Reviews and More - Frontend Toasts, Grid & Anywhere Form ===== */

/* TOASTS */

.ram-toast-wrapper {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 320px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ram-toast {
  background: #152039;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-12px) translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ram-toast--visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
  pointer-events: auto;
}

.ram-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ram-toast-photo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}

.ram-toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ram-toast-stars {
  font-size: 13px;
  line-height: 1;
}

.ram-star {
  color: #d9d9d9;
  margin-right: 1px;
}

.ram-star--filled {
  color: #ffd76a;
}

.ram-toast-title {
  font-size: 13px;
  font-weight: 600;
}

.ram-toast-product a {
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.ram-toast-product a:hover {
  border-bottom-color: #ffffff;
}

.ram-toast-snippet,
.ram-toast-meta {
  font-size: 11px;
  color: #d9d9d9;
}

.ram-toast-inner--review {
  border-left: 3px solid #ffd76a;
}

.ram-toast-inner--order {
  border-left: 3px solid #4ade80;
}

.ram-toast-inner--views {
  border-left: 3px solid #60a5fa;
}

@media (max-width: 480px) {
  .ram-toast-wrapper {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* GRID DE OPINIONES */

.ram-reviews-grid {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.ram-reviews-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ram-reviews-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .ram-reviews-grid.ram-reviews-grid--cols-3,
  .ram-reviews-grid.ram-reviews-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ram-reviews-grid {
    grid-template-columns: 1fr !important;
  }
}

.ram-review-card {
  background: #152039;
  border-radius: 16px;
  border: 1px solid #d9d9d9;
  padding: 16px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.ram-review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ram-review-card-photo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
}

.ram-review-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ram-review-card-stars {
  font-size: 13px;
}

.ram-review-card-user {
  font-size: 12px;
  color: #d9d9d9;
}

.ram-review-card-opinion {
  font-size: 13px;
  line-height: 1.5;
}

.ram-review-card-product a {
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.ram-review-card-product a:hover {
  border-bottom-color: #ffffff;
}

/* FORMULARIO REVIEW ANYWHERE */

.ram-anywhere-wrap {
  max-width: 720px;
  margin: 24px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Forzar texto blanco en todo el bloque del shortcode */
.ram-anywhere-wrap,
.ram-anywhere-wrap * {
  color: #ffffff !important;
}

.ram-anywhere-form {
  background: #152039;
  border-radius: 18px;
  border: 1px solid #d9d9d9;
  padding: 20px 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

.ram-anywhere-notice {
  background: #111827;
  border-left: 4px solid #4ade80;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.ram-anywhere-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ram-anywhere-field label,
.ram-anywhere-label {
  font-size: 13px;
  font-weight: 500;
}

.ram-anywhere-field .required {
  color: #f97373;
}

.ram-anywhere-field input[type="text"],
.ram-anywhere-field input[type="email"],
.ram-anywhere-field select,
.ram-anywhere-field textarea {
  background: #111827;
  border-radius: 10px;
  border: 1px solid #374151;
  padding: 8px 10px;
  font-size: 13px;
}

.ram-anywhere-field textarea {
  resize: vertical;
}

.ram-anywhere-field input[type="file"] {
  font-size: 12px;
}

.ram-anywhere-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .ram-anywhere-row {
    grid-template-columns: 1fr;
  }
}

.ram-anywhere-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.ram-anywhere-rating input {
  display: none;
}

.ram-anywhere-rating label {
  cursor: pointer;
  font-size: 22px;
  color: #4b5563;
  transition: color 0.15s ease;
}

.ram-anywhere-rating input:checked ~ label,
.ram-anywhere-rating label:hover,
.ram-anywhere-rating label:hover ~ label {
  color: #ffd76a;
}

.ram-anywhere-actions {
  margin-top: 8px;
  text-align: right;
}

.ram-anywhere-btn {
  background: #ffffff;
  color: #152039 !important;
  border-radius: 999px;
  border: none;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.ram-anywhere-btn:hover {
  transform: translateY(-1px);
}


/* Hover y selección en amarillo para las estrellas */
.ram-anywhere-rating input:checked ~ label,
.ram-anywhere-rating label:hover,
.ram-anywhere-rating label:hover ~ label {
  color: #ffd76a;
}

/* Focus accesible en la estrella seleccionada */
.ram-anywhere-rating input:focus-visible + label {
  outline: 2px solid #ffd76a;
  outline-offset: 3px;
  color: #ffd76a;
}
