/* Schovat původní CF7 checkboxy */
.wpcf7 .wpcf7-form-control-wrap[data-name="rating"] .wpcf7-form-control { 
  position: absolute !important; 
  left: -9999px !important; 
  top: auto !important; 
  width: 1px !important; 
  height: 1px !important; 
  overflow: hidden !important; 
}

/* Wrapper pro hvězdy */
.wpcf7 .nps-stars-ui {
  --size: 28px;
  --off: #c9cdd3;
  --on: #f6b800;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0.25rem 0 1rem 0;
}

.wpcf7 .nps-stars-ui .nps-star {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  width: var(--size);
  height: var(--size);
  padding: 0;
  line-height: 1;
}

.wpcf7 .nps-stars-ui .nps-star::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 .9l3.09 6.26 6.91 1-5 4.87 1.18 6.89L12 17.77 5.82 19.92 7 13.13 2 8.16l6.91-1L12 .9z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 .9l3.09 6.26 6.91 1-5 4.87 1.18 6.89L12 17.77 5.82 19.92 7 13.13 2 8.16l6.91-1L12 .9z'/></svg>") center/contain no-repeat;
  background: var(--off);
  transition: background 0.12s ease;
}

.wpcf7 .nps-stars-ui .nps-star.is-on::before {
  background: var(--on);
}

.wpcf7 .nps-stars-ui .nps-star:hover::before {
  filter: brightness(1.1);
}

.wpcf7 .nps-stars-ui .nps-star:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Kompaktnější textarea */
.wpcf7 textarea[name="review_text"] {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

/* Jméno a email vedle sebe */
.wpcf7 .nps-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wpcf7 .nps-form-row > p {
  flex: 1;
  min-width: 250px;
  margin: 0 0 1rem 0;
}

.wpcf7 .nps-form-row input[type="text"],
.wpcf7 .nps-form-row input[type="email"] {
  width: 100%;
  box-sizing: border-box;
}

/* Mobilní layout */
@media (max-width: 640px) {
  .wpcf7 .nps-form-row {
    flex-direction: column;
  }
  
  .wpcf7 .nps-form-row > p {
    min-width: 100%;
  }
}