.cf-container { 
  border:1px solid #eee; 
  padding:16px; 
  max-width:720px; 
  background:#fff;
}

.cf-messages { 
  max-height:500px; 
  overflow:auto; 
  padding-bottom:12px; 
}

.cf-msg { 
  margin:10px 0; 
  padding:10px; 
  border-radius:8px; 
}

.cf-msg.question { 
  background:#f6f6f8; 
}

.cf-msg.user { 
  background:#d1e7ff; 
  text-align:right; 
}

.cf-msg.result { 
  background:#eef7e6; 
}

.cf-answer {
  margin:6px 6px 0 0; 
  padding:8px 12px; 
  cursor:pointer; 
  border:0; 
  border-radius:6px; 
  background:#f0f0f0; 
}



.pallars-cf-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pallars-cf-wrapper button {
  cursor: pointer;
}

.pallars-cf-question {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-12);
}

.pallars-cf-answer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

button.pallars-cf-answer {
  color: var(--color-textMain);
  padding: var(--spacing-8) var(--spacing-24);
  border: 1px solid var(--color-textMain);
  border-radius: 40px;
  text-decoration: none;
  background-color: transparent;
  transition: background-color .5s ease;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--h-5);
  font-weight: 300;
}

button.pallars-cf-answer:hover {
  background-color: var(--color-accent-40);
  border-color: var(--color-accent);
}

/* Resultados */
.pallars-cf-results {
  width: 100%;
}

.result-content {
  display: flex;
  justify-content: flex-start;
  gap: var(--spacing-24);
  -webkit-overflow-scrolling: touch;
  overflow-x: scroll;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  width: 100%; 
  min-width: 100%;
}

.result-content .carnet-card {
  flex: 0 0 40%; 
  scroll-snap-align: start;
  flex-direction: column;
}

button.pallars-cf-reset {
  border: none;
  font-family: inherit;
  text-decoration: underline;
  background-color: transparent;
}

button.pallars-cf-reset:hover {
  color: var(--color-accent);
}

.carnet-card .wp-block-button__link {
  height: auto;
}

