/* ================================================================
 *  thankyou-reviews.css — "Thank you / Order received" page + Cart page
 *  Restyles the WooCommerce "All Reviews" list at the end of the page
 *  into the same cards as the Reviews page. Nothing above it changes.
 * ================================================================ */
body.lvx-rv-style .wp-block-woocommerce-all-reviews,
body.lvx-rv-style .wc-block-all-reviews,
body.lvx-rv-style .lvx-static-reviews {
  --lvr-text: #111318; --lvr-muted: #666d75; --lvr-line: #e5e2dc;
  --lvr-gold-dark: #9c732d; --lvr-star: #f1bd38; --lvr-dark: #0a0d11;
  --lvr-shadow: 0 16px 46px rgba(0,0,0,.07);
  font-family: Inter, Arial, sans-serif;
  margin-top: 40px;
}

/* heading added above the list */
body.lvx-rv-style .lvx-ty-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
body.lvx-rv-style .lvx-ty-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 900; color: var(--lvr-gold-dark); }
body.lvx-rv-style .lvx-ty-title { font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--lvr-text); margin: 6px 0 0; }

/* "Order by" — pill like the Reviews page */
body.lvx-rv-style .wc-block-review-sort-select,
body.lvx-rv-style .wc-block-components-review-sort-select {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 20px; text-align: right;
}
body.lvx-rv-style .wc-block-components-sort-select__label,
body.lvx-rv-style .wc-block-review-sort-select label { font-size: 14px; color: var(--lvr-muted); font-weight: 600; }
body.lvx-rv-style .wc-block-components-sort-select__select,
body.lvx-rv-style .wc-block-review-sort-select select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--lvr-line) !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111318'/%3E%3C/svg%3E") no-repeat right 16px center !important;
  border-radius: 999px !important; padding: 11px 40px 11px 18px !important; min-height: 0 !important;
  font-size: 14px !important; font-weight: 700 !important; color: var(--lvr-text) !important; cursor: pointer; width: auto !important;
}

/* list -> 2 column card grid */
body.lvx-rv-style .wc-block-review-list,
body.lvx-rv-style .wc-block-components-review-list {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px; list-style: none !important; margin: 0 !important; padding: 0 !important;
}
body.lvx-rv-style .wc-block-review-list-item__item,
body.lvx-rv-style .wc-block-components-review-list-item__item {
  position: relative; overflow: hidden; list-style: none !important;
  display: flex !important; flex-direction: column;
  background: #fff; border: 1px solid var(--lvr-line); border-radius: 24px; padding: 30px !important; margin: 0 !important;
  box-shadow: var(--lvr-shadow);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body.lvx-rv-style .wc-block-review-list-item__item:hover,
body.lvx-rv-style .wc-block-components-review-list-item__item:hover {
  transform: translateY(-4px); border-color: #dcc9a2; box-shadow: 0 22px 50px rgba(0,0,0,.10);
}

/* the plain WooCommerce name / stars / date row is replaced by our head */
body.lvx-rv-style .lvx-rc .wc-block-review-list-item__info,
body.lvx-rv-style .lvx-rc .wc-block-components-review-list-item__info { display: none !important; }

/* head: avatar + name + verified + stars (same as Reviews page) */
body.lvx-rv-style .lvx-rc-head { display: flex; gap: 16px; align-items: center; order: 1; }
body.lvx-rv-style .lvx-rc-avatar {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: #121417; color: #fff;
  display: grid; place-items: center; font-family: Georgia, serif; font-size: 28px; line-height: 1;
}
body.lvx-rv-style .lvx-rc-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.lvx-rv-style .lvx-rc-name { font-size: 19px; font-weight: 800; color: var(--lvr-text); }
body.lvx-rv-style .lvx-rc-verified {
  display: inline-flex; align-items: center; gap: 5px; background: #edf7eb; color: #2d6c35;
  border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
body.lvx-rv-style .lvx-rc-verified::before { content: "✓"; }
body.lvx-rv-style .lvx-rc-stars { color: var(--lvr-star); font-size: 15px; letter-spacing: 2px; margin-top: 5px; }

/* review text */
body.lvx-rv-style .lvx-rc .wc-block-review-list-item__text,
body.lvx-rv-style .lvx-rc .wc-block-components-review-list-item__text {
  order: 2; display: block; flex-grow: 1; margin: 22px 0 26px !important; color: #444a51; font-size: 16px; line-height: 1.8;
}
body.lvx-rv-style .lvx-rc .wc-block-review-list-item__text p,
body.lvx-rv-style .lvx-rc .wc-block-components-review-list-item__text p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

/* foot: product link */
body.lvx-rv-style .lvx-rc-foot {
  order: 3; border-top: 1px solid #ece8e2; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
body.lvx-rv-style .lvx-rc-foot:empty { display: none; }
body.lvx-rv-style .lvx-rc-product {
  color: #7d838a !important; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; transition: color .2s;
}
body.lvx-rv-style .lvx-rc-product::after { content: "→"; transition: transform .2s; }
body.lvx-rv-style .lvx-rc-product:hover { color: var(--lvr-gold-dark) !important; }
body.lvx-rv-style .lvx-rc-product:hover::after { transform: translateX(3px); }

/* golden glow that follows the mouse (same as Reviews page) */
body.lvx-rv-style .lvx-rc-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle 240px at var(--mx,50%) var(--my,50%), rgba(209,163,77,.13), transparent);
}
body.lvx-rv-style .lvx-rc:hover .lvx-rc-glow { opacity: 1; }

/* scroll fade-in (same as Reviews page) */
body.lvx-rv-style .lvx-rc.lvx-hide { opacity: 0; transform: translateY(34px); }
body.lvx-rv-style .lvx-rc.lvx-show { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.8,.26,1), transform .7s cubic-bezier(.22,.8,.26,1), border-color .3s, box-shadow .3s; }

/* "Load more" — dark button like the Reviews page */
body.lvx-rv-style .wc-block-load-more,
body.lvx-rv-style .wc-block-components-load-more { display: flex; justify-content: center; margin-top: 30px; }
body.lvx-rv-style .wc-block-load-more .wp-block-button__link,
body.lvx-rv-style .wc-block-components-load-more button,
body.lvx-rv-style .wc-block-load-more button {
  display: inline-flex; align-items: center; justify-content: center;
  background: #0a0d11 !important; color: #fff !important; border: 0 !important; border-radius: 9px !important;
  padding: 14px 28px !important; font-family: Inter, Arial, sans-serif; font-weight: 800 !important; font-size: 15px !important;
  text-transform: none !important; letter-spacing: normal !important; cursor: pointer; transition: transform .25s ease;
}
body.lvx-rv-style .wc-block-load-more .wp-block-button__link:hover,
body.lvx-rv-style .wc-block-components-load-more button:hover { transform: translateY(-2px); }

@media (max-width: 920px) {
  body.lvx-rv-style .wc-block-review-list,
  body.lvx-rv-style .wc-block-components-review-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body.lvx-rv-style .wc-block-review-list-item__item,
  body.lvx-rv-style .wc-block-components-review-list-item__item { padding: 24px 20px !important; }
  body.lvx-rv-style .lvx-ty-title { font-size: 24px; }
  body.lvx-rv-style .wc-block-review-sort-select,
  body.lvx-rv-style .wc-block-components-review-sort-select { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body.lvx-rv-style .lvx-rc.lvx-hide { opacity: 1; transform: none; }
}


/* "Order by" dropdown — same as the Reviews page (Oct 2026) */
body.lvx-rv-style .lvx-sort-ready > label,
body.lvx-rv-style .lvx-sort-ready > .wc-block-components-sort-select__label,
body.lvx-rv-style .lvx-sort-ready select {
  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; border: 0 !important; opacity: 0 !important; pointer-events: none !important;
}
body.lvx-rv-style .lvx-sort-ready { position: relative; }
body.lvx-rv-style .lvx-sort { position: relative; z-index: 5; }
body.lvx-rv-style .lvx-sort.open { z-index: 60; }
body.lvx-rv-style .lvx-sort-toggle {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--lvr-line) !important; background: #fff !important; border-radius: 999px !important;
  padding: 11px 18px !important; font-family: Inter, Arial, sans-serif !important; font-size: 14px !important; font-weight: 700 !important;
  color: var(--lvr-text) !important; cursor: pointer; min-height: 0 !important; line-height: normal !important;
  text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; width: auto !important;
}
body.lvx-rv-style .lvx-sort-caret { transition: transform .2s; }
body.lvx-rv-style .lvx-sort.open .lvx-sort-caret { transform: rotate(180deg); }
body.lvx-rv-style .lvx-sort-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--lvr-line);
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.12); overflow: hidden; display: none; text-align: left;
}
body.lvx-rv-style .lvx-sort.open .lvx-sort-menu { display: block; }
body.lvx-rv-style .lvx-sort-option {
  display: block; width: 100% !important; text-align: left; border: 0 !important; border-radius: 0 !important; background: #fff !important;
  padding: 13px 16px !important; font-family: Inter, Arial, sans-serif !important; font-size: 14px !important; font-weight: 400 !important;
  color: #4a5058 !important; cursor: pointer; min-height: 0 !important; line-height: normal !important;
  text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; margin: 0 !important;
}
body.lvx-rv-style .lvx-sort-option:hover { background: #f7f5f1 !important; }
body.lvx-rv-style .lvx-sort-option.active { color: var(--lvr-text) !important; font-weight: 800 !important; background: #f3efe7 !important; }
@media (max-width: 620px) {
  body.lvx-rv-style .lvx-sort-menu { left: 0; right: auto; }
}


/* Toolbar like the Reviews page (no second heading) — Oct 2026 */
body.lvx-rv-style .lvx-ty-head { display: none !important; }
body.lvx-rv-style .lvx-sort-ready { display: none !important; }
body.lvx-rv-style .lvx-ty-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 22px; }
body.lvx-rv-style .lvx-ty-chips { display: flex; gap: 6px; background: #fff; border: 1px solid var(--lvr-line); border-radius: 999px; padding: 6px; flex-wrap: wrap; }
body.lvx-rv-style .lvx-ty-chip {
  border: 0 !important; background: transparent !important; color: #5b6168 !important; padding: 10px 18px !important; border-radius: 999px !important;
  font-family: Inter, Arial, sans-serif !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer;
  transition: background .2s, color .2s; min-height: 0 !important; line-height: normal !important;
  text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; margin: 0 !important; width: auto !important;
}
body.lvx-rv-style .lvx-ty-chip:hover { color: var(--lvr-text) !important; }
body.lvx-rv-style .lvx-ty-chip.active { background: #0a0d11 !important; color: #fff !important; }
body.lvx-rv-style .lvx-ty-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.lvx-rv-style .lvx-ty-showing { color: var(--lvr-muted); font-size: 14px; font-family: Inter, Arial, sans-serif; }
@media (max-width: 620px) {
  body.lvx-rv-style .lvx-ty-toolbar { flex-direction: column; align-items: stretch; }
  body.lvx-rv-style .lvx-ty-chips { justify-content: space-between; }
  body.lvx-rv-style .lvx-ty-chip { padding: 9px 12px !important; font-size: 13px !important; }
  body.lvx-rv-style .lvx-ty-right { justify-content: space-between; }
  body.lvx-rv-style .lvx-sort-menu { left: auto; right: 0; }
}

/* star filter: hide the reviews that don't match */
body.lvx-rv-style .wc-block-review-list-item__item.lvx-off,
body.lvx-rv-style .wc-block-components-review-list-item__item.lvx-off { display: none !important; }
body.lvx-rv-style .lvx-ty-empty { display: none; text-align: center; color: var(--lvr-muted); background: #fff; border: 1px dashed var(--lvr-line); border-radius: 20px; padding: 40px; font-family: Inter, Arial, sans-serif; }
body.lvx-rv-style .lvx-ty-empty.show { display: block; }

/* Checkout page reviews (printed by the theme) */
body.lvx-rv-style .wc-block-review-list-item__item.lvx-more-hidden,
body.lvx-rv-style .wc-block-components-review-list-item__item.lvx-more-hidden { display: none !important; }
body.lvx-rv-style .lvx-checkout-reviews { clear: both; margin-top: 50px; }
/* "Order by" must never sit on top of the sticky header (phones) */
body.lvx-rv-style .lvx-ty-toolbar, body.lvx-rv-style .wc-block-components-review-sort-select, body.lvx-rv-style .wc-block-review-sort-select { position: relative; z-index: 5; }