/* path: wp-content/themes/bedrebyttede/assets/css/components/reviews.css */
.bb-review {
  display: flex;
  flex-direction: column;
  gap: var(--space-5, 20px);
  padding: var(--space-6, 24px);
  background: var(--surface, #ffffff);
  color: var(--text, #13221b);
  min-height: min(100%, 460px);
}

.bb-review__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.bb-review__title {
  margin: 0;
  font-size: clamp(var(--fs-xl), 0.9vw + 1.1rem, 1.75rem);
}

.bb-review__intro {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--text-2, #405147);
  line-height: var(--lh-relaxed, 1.65);
}

.bb-review__counter {
  margin: 0;
  font-weight: 600;
  color: var(--text-3, #6a7a72);
}

.bb-review__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
}

.bb-review__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.bb-review__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--surface-2, #f8faf9);
  border: var(--border-1, 1px) solid var(--line, #dce5e1);
  border-radius: var(--radius-2, 10px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-weight: 600;
  color: var(--text, #13221b);
  cursor: pointer;
  transition: background var(--dur-2, 200ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}

.bb-review__toggle[aria-expanded="true"] {
  background: var(--brand-100, #d7e7e1);
  color: var(--brand-700, #1e4d3a);
  border-color: var(--brand-300, #4e8e7d);
}

.bb-review__toggle:focus-visible {
  outline: 2px solid var(--brand, #2d6a5b);
  outline-offset: 2px;
}

.bb-review__chevron {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

.bb-review__chevron::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-2, 200ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}

.bb-review__toggle[aria-expanded="true"] .bb-review__chevron::before {
  transform: rotate(-135deg);
}

.bb-review__panel {
  display: block;
}

.bb-review__panel[hidden] {
  display: none !important;
}

.bb-review__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
}

.bb-review__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-round, 999px);
  border: var(--border-1, 1px) solid var(--line, #dce5e1);
  background: var(--surface, #ffffff);
  color: var(--text-2, #405147);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: transform var(--dur-2, 200ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1)),
    box-shadow var(--dur-2, 200ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1)),
    background-color var(--dur-2, 200ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}

.bb-review__tag:hover,
.bb-review__tag:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(9, 23, 15, .06));
  outline: none;
}

.bb-review__tag[aria-pressed="true"],
.bb-review__tag.is-selected {
  border-color: var(--brand-300, #4e8e7d);
  box-shadow: var(--shadow-1, 0 1px 2px rgba(9, 23, 15, .06));
}

.bb-review__tag--positive[aria-pressed="true"],
.bb-review__tag--positive.is-selected {
  background: var(--brand-100, #d7e7e1);
  color: var(--brand-700, #1e4d3a);
}

.bb-review__tag--negative[aria-pressed="true"],
.bb-review__tag--negative.is-selected {
  background: var(--surface-2, #f8faf9);
  color: var(--text, #13221b);
}

.bb-review__status {
  font-size: var(--fs-sm);
  color: var(--text-3, #6a7a72);
  min-height: 1.25rem;
}

.bb-review__status--error {
  color: var(--danger, #ef4444);
}

.bb-review__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 12px);
}

.bb-review__actions {
  display: flex;
  gap: var(--space-2, 8px);
  margin-left: auto;
}

.bb-review__submit {
  min-width: 180px;
}

.bb-review[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}

.bb-review__tag[disabled],
.bb-review__tag[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 39.99rem) {
  .bb-review {
    padding: var(--space-5, 20px) var(--space-4, 16px);
  }

  .bb-review__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .bb-review__submit {
    width: 100%;
  }
}