/* LAVORA WALLS form pages (final frontend list, 2026-10-23): the return request (/pages/returns), samples
   (/pages/samples) and the product page's Reviews. Layout only; the fields, choices and notices are
   assets/lavora-forms.css, the split picture is the sign-in page's (lavora-own.css .lavora-signin-*).
   Spacing, corners and colours are the theme's tokens (--sp-*, --rounded-*, --color-*). */

.lavora-page-form {
  display: grid;
  gap: var(--sp-8);
  text-align: start;
}

.lavora-page-form__head {
  gap: var(--sp-3);
}

.lavora-page-form--wide {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

@media screen and (min-width: 1024px) {
  .lavora-page-form--wide .heading.title-md {
    font-size: clamp(2rem, 1rem + 1.6vw, 3rem);
  }
}

/* samples: the designs as picture cards */
.lavora-samples__designs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}

@media screen and (min-width: 768px) {
  .lavora-samples__designs {
    gap: var(--sp-3);
  }
}

.lavora-samples__design {
  gap: var(--sp-3);
  padding: var(--sp-2);
  padding-bottom: var(--sp-3);
}

.lavora-samples__design .lavora-form__choice-title {
  padding-inline: var(--sp-1);
}

.lavora-samples__design:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.lavora-samples__image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--rounded-button) * .75);
  background-color: rgb(var(--color-placeholder));
}

.lavora-samples__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* reviews */
.lavora-reviews__body {
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.lavora-reviews__empty {
  gap: var(--sp-3);
  justify-items: start;
  padding: var(--sp-6);
  border-radius: var(--rounded-card);
  background-color: rgb(var(--color-placeholder));
}

.lavora-reviews__empty .lavora-form__note {
  max-width: 40rem;
}

.lavora-reviews__form,
.lavora-reviews__body > .lavora-form__notice {
  max-width: 44rem;
}

.lavora-reviews__stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
}

.lavora-reviews__stars label {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgb(var(--color-foreground));
  cursor: pointer;
}

.lavora-reviews__stars svg {
  fill: transparent;
  transition: fill .2s;
}

.lavora-reviews__stars input:checked ~ label svg,
.lavora-reviews__stars label:hover svg,
.lavora-reviews__stars label:hover ~ label svg {
  fill: currentColor;
}

.lavora-reviews__stars input:focus-visible + label {
  outline: 2px solid rgb(var(--color-keyboard-focus, 11 97 205));
  outline-offset: -2px;
  border-radius: var(--rounded-button);
}

@media screen and (min-width: 1024px) {
  .lavora-reviews__body {
    margin-top: var(--sp-10);
  }

  .lavora-reviews__empty {
    padding: var(--sp-8);
  }
}
