.cije-rf {
  margin: 0 0 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #d8ded5;
  border-radius: 16px;
  background: #f7f8f3;
  color: #1f2933;
}

.cije-rf__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.cije-rf__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.cije-rf__intro p {
  margin: 0;
}

.cije-rf__count {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e5efe4;
  color: #245d2b;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.cije-rf__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cije-rf__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.cije-rf__field input,
.cije-rf__field select {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0.65rem 2.25rem 0.65rem 0.75rem;
  border: 1px solid #9eaaa0;
  border-radius: 8px;
  background-color: #fff;
  color: #17211a;
  font: inherit;
}

.cije-rf__field input {
  padding-right: 0.75rem;
}

.cije-rf__field--station {
  grid-column: span 2;
}

.cije-rf__field input:focus-visible,
.cije-rf__field select:focus-visible,
.cije-rf__submit:focus-visible,
.cije-rf__clear:focus-visible {
  outline: 3px solid #f2b632;
  outline-offset: 3px;
}

.cije-rf__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cije-rf__submit {
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  background: #2e7d32;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cije-rf__submit:hover {
  border-color: #1f5f24;
  background: #1f5f24;
}

.cije-rf__clear {
  color: #245d2b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cije-rf-card {
  margin-top: 1rem;
}

.cije-rf-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d8ded5;
  border-radius: 12px;
  background: #f7f8f3;
}

.cije-rf-card__fact {
  min-width: 0;
  margin: 0;
}

.cije-rf-card__fact dt {
  margin: 0 0 0.2rem;
  color: #59645c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cije-rf-card__fact dd {
  margin: 0;
  color: #17211a;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cije-rf-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid #9eaaa0;
  border-radius: 999px;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.cije-rf-card__badge::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

.cije-rf-card__badge--certified-halal,
.cije-rf-card__badge--vegan {
  border-color: #9ec5a0;
  background: #e5efe4;
  color: #245d2b;
}

.cije-rf-card__badge--muslim-friendly,
.cije-rf-card__badge--vegan-options {
  border-color: #e4c45d;
  background: #fff6d8;
  color: #705600;
}

.cije-rf-card__badge--pork-free,
.cije-rf-card__badge--vegetarian-friendly {
  border-color: #e4ae72;
  background: #fff0df;
  color: #7a3b00;
}

.cije-rf-card__badge:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cije-rf-card__badge:focus-visible {
  outline: 3px solid #f2b632;
  outline-offset: 3px;
}

.cije-rf-card__caution {
  display: flex;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.8rem;
  border-left: 4px solid #d28a21;
  border-radius: 6px;
  background: #fff8eb;
  color: #553600;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cije-rf-card__caution strong {
  flex: 0 0 auto;
}

.cije-rf-card__summary {
  margin: 0.8rem 0 0;
  color: #34413a;
  line-height: 1.65;
}

.cije-rf-summary {
  margin: 0 0 1.75rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #d8ded5;
  border-radius: 14px;
  background: #f7f8f3;
  color: #17211a;
  overflow-wrap: anywhere;
}

.cije-rf-summary__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.entry-content .cije-rf-summary h2 {
  margin: 0;
  color: #17211a;
  font-size: 1.4rem;
  line-height: 1.3;
}

.entry-content .cije-rf-summary h3 {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
}

.entry-content .cije-rf-summary__date {
  margin: 0.45rem 0 1rem;
  color: #59645c;
  font-size: 0.875rem;
}

.cije-rf-summary__facts {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8ded5;
}

.cije-rf-summary__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "notes cautions";
  gap: 1rem;
  align-items: start;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cije-rf-summary__notes {
  grid-area: notes;
  min-width: 0;
}

.cije-rf-summary__cautions {
  grid-area: cautions;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid #d28a21;
  border-radius: 6px;
  background: #fff8eb;
  color: #553600;
}

.entry-content .cije-rf-summary__checks ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.entry-content .cije-rf-summary__checks li {
  margin: 0 0 0.4rem;
}

.entry-content .cije-rf-summary__checks p {
  margin: 0 0 0.65rem;
}

.entry-content .cije-rf-summary__checks :last-child {
  margin-bottom: 0;
}

.cije-rf-summary__evidence {
  color: #245d2b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cije-rf-summary__evidence:focus-visible {
  outline: 3px solid #f2b632;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cije-rf-summary__facts {
    grid-template-columns: 1fr;
  }

  .cije-rf-summary__checks {
    grid-template-columns: 1fr;
    grid-template-areas: "cautions" "notes";
  }
}

@media (max-width: 920px) {
  .cije-rf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cije-rf {
    border-radius: 12px;
  }

  .cije-rf__intro {
    display: block;
  }

  .cije-rf__count {
    display: inline-block;
    margin-top: 0.75rem !important;
    white-space: normal;
  }

  .cije-rf__grid {
    grid-template-columns: 1fr;
  }

  .cije-rf__field--station {
    grid-column: span 1;
  }

  .cije-rf-card__facts {
    grid-template-columns: 1fr;
  }

  .cije-rf-card__caution {
    display: block;
  }

  .cije-rf-card__caution strong {
    display: block;
    margin-bottom: 0.1rem;
  }

  .cije-rf__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cije-rf__submit {
    width: 100%;
  }

  .cije-rf__clear {
    align-self: center;
    padding: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cije-rf *,
  .cije-rf *::before,
  .cije-rf *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
