/* Order review page ([wc_advanced_reviews_order]). Neutral on purpose: it inherits the theme's font. */
.wcar-or {
  --wcar-star: #e5a000;
  --wcar-star-edge: #a36b00;
  --wcar-ink: #1c1b19;
  --wcar-muted: #625d56;
  --wcar-line: #e7e4df;
  --wcar-field: #cfc9c0;
  --wcar-card: #ffffff;
  --wcar-soft: #f6f5f3;
  --wcar-ok-bg: #e6f0e9;
  --wcar-ok: #24533a;
  --wcar-error-bg: #fdf0ee;
  --wcar-error: #8a1c12;
  --wcar-store: #e8eef0;
  color: var(--wcar-ink);
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.5;
}

.wcar-or *,
.wcar-or *::before,
.wcar-or *::after {
  box-sizing: border-box;
}

.wcar-or-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wcar-or-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.wcar-or-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcar-or-intro__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--wcar-muted);
}

.wcar-or-intro__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
}

.wcar-or-intro__text {
  margin: 0;
  color: var(--wcar-muted);
  max-width: 620px;
}

.wcar-or-alert {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--wcar-error-bg);
  color: var(--wcar-error);
}

/* Product card */
.wcar-or-card {
  background: var(--wcar-card);
  border: 1px solid var(--wcar-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  scroll-margin-top: 24px;
}

.wcar-or-card__product {
  flex: 1 1 140px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wcar-or-card__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0;
}

.wcar-or-card__name h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.wcar-or-card__name p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--wcar-muted);
}

.wcar-or-pill {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0eeea;
  color: var(--wcar-muted);
}

.wcar-or-card.is-filled .wcar-or-pill {
  background: var(--wcar-ok-bg);
  color: var(--wcar-ok);
}

.wcar-or-card__fields {
  flex: 999 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Fields */
.wcar-or-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.wcar-or-field legend {
  padding: 0;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.wcar-or-help {
  margin: -2px 0 8px;
  font-size: 14px;
  color: var(--wcar-muted);
}

.wcar-or-stars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: -8px;
}

.wcar-or-stars label {
  width: 44px;
  height: 44px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.wcar-or-stars svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #8f887e;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.wcar-or-stars--large label {
  width: 52px;
  height: 52px;
}

.wcar-or-stars--large svg {
  width: 38px;
  height: 38px;
}

.wcar-or-stars label.is-on svg,
.wcar-or-stars input:checked + label svg {
  fill: var(--wcar-star);
  stroke: var(--wcar-star-edge);
}

.wcar-or-stars input:focus-visible + label {
  outline: 3px solid #2f6fdb;
  outline-offset: 2px;
}

.wcar-or-stars__word {
  margin-left: 10px;
  font-size: 14px;
  color: var(--wcar-muted);
}

.wcar-or-stars--large + .wcar-or-stars__word,
.wcar-or-stars--large .wcar-or-stars__word {
  font-size: 18px;
  font-weight: 600;
  color: var(--wcar-ink);
}

.wcar-or-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wcar-or-chip {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--wcar-field);
  border-radius: 999px;
  background: #fff;
  color: var(--wcar-ink);
  font-size: 15px;
  cursor: pointer;
}

.wcar-or-chips input:checked + .wcar-or-chip {
  background: var(--wcar-ink);
  border-color: var(--wcar-ink);
  color: #fff;
}

.wcar-or-chips input:focus-visible + .wcar-or-chip {
  outline: 3px solid #2f6fdb;
  outline-offset: 2px;
}

.wcar-or-row {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcar-or-row label {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.wcar-or-row input[type="text"],
.wcar-or-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--wcar-field);
  border-radius: 10px;
  background: #fff;
  color: var(--wcar-ink);
  font: inherit;
  font-size: 15px;
}

.wcar-or-row textarea {
  resize: vertical;
}

/* Photos */
.wcar-or-photos__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wcar-or-photos__label {
  font-size: 15px;
  font-weight: 600;
}

.wcar-or-photos__count {
  font-size: 13px;
  color: var(--wcar-muted);
}

.wcar-or-photos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wcar-or-photo,
.wcar-or-photo-add {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 10px;
}

.wcar-or-photo {
  background: #e3ddd2 center / cover no-repeat;
}

.wcar-or-photo.is-uploading::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wcar-ink) var(--wcar-progress, 0%), #fff var(--wcar-progress, 0%));
}

.wcar-or-photo__remove {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcar-or-photo__remove span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--wcar-ink);
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
}

.wcar-or-photo-add {
  border: 1.5px dashed #a9a298;
  background: #faf9f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wcar-or-photo-add svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.wcar-or-photo-add:focus-within {
  outline: 3px solid #2f6fdb;
  outline-offset: 2px;
}

.wcar-or-photo-add[hidden] {
  display: none;
}

.wcar-or-photos__error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--wcar-error-bg);
  color: var(--wcar-error);
  font-size: 14px;
}

/* Store */
.wcar-or-store {
  background: var(--wcar-store);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wcar-or-store h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.wcar-or-store > p {
  margin: 0;
  color: #46504f;
}

.wcar-or-store .wcar-or-stars svg {
  stroke: #6e7978;
}

/* Sticky submit bar */
.wcar-or-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  border-top: 1px solid #e2ded8;
  box-shadow: 0 -6px 20px rgba(28, 27, 25, 0.06);
}

.wcar-or-bar__inner {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.wcar-or-bar__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wcar-or-bar__text span {
  font-size: 14px;
  color: var(--wcar-muted);
}

/* Buttons */
.wcar-or-button {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--wcar-ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wcar-or-button:hover,
.wcar-or-button:focus {
  color: #fff;
}

.wcar-or-button--ghost {
  background: #fff;
  color: var(--wcar-ink);
  border: 1px solid var(--wcar-field);
  font-weight: 600;
}

.wcar-or-button--ghost:hover,
.wcar-or-button--ghost:focus {
  color: var(--wcar-ink);
}

.wcar-or-button[disabled],
.wcar-or-button[aria-disabled="true"] {
  background: #dad5ce;
  color: #5e5952;
  cursor: not-allowed;
}

/* States: invalid, done, nothing */
.wcar-or-state {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wcar-or-state p {
  margin: 0;
}

.wcar-or-state__title {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
}

.wcar-or-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--wcar-ok-bg);
  color: var(--wcar-ok);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcar-or-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wcar-or-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wcar-line);
  border-radius: 16px;
  background: #fff;
}

.wcar-or-results li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 18px;
  margin: 0;
}

.wcar-or-results li + li {
  border-top: 1px solid #efece7;
}

.wcar-or-results li span:first-child {
  font-weight: 600;
}

.wcar-or-results li span:last-child {
  color: var(--wcar-muted);
}

.wcar-or-results li span.is-sent {
  color: var(--wcar-ok);
}

@media (max-width: 600px) {
  .wcar-or-card {
    padding: 18px;
    gap: 16px;
  }

  .wcar-or-card__product {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .wcar-or-card__image {
    width: 64px;
    flex: none;
  }

  .wcar-or-card__name {
    flex: 1 1 160px;
  }

  .wcar-or-bar__inner .wcar-or-submit {
    width: 100%;
  }
}
