/* OLC Modal — Premium Eyewear Configurator
   Loaded inside Shadow DOM. Luxury optic aesthetic. */

/* WordPress's global .screen-reader-text rules don't reach inside Shadow DOM,
 * so any WC-rendered price HTML (e.g. cfg.productPriceHtml) leaks its
 * "Original price was..." / "Current price is..." accessibility spans as
 * visible text. Re-declare WP's own a11y rule locally. */
.screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
}

/* === Design Tokens === */
:host {
  all: initial;
  display: inline;
  --olc-font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --olc-font-display: 'Jost', sans-serif;
  --olc-primary: #171616;
  --olc-accent: #009897;
  --olc-accent-hover: #003e3d;
  --olc-text: #1e293b;
  --olc-text-muted: #64748b;
  --olc-bg: #ffffff;
  --olc-bg-soft: #f8f9fb;
  --olc-border: #e2e8f0;
  --olc-border-hover: #cbd5e1;
  --olc-error: #dc2626;
  --olc-error-bg: #fef2f2;
  --olc-success: #16a34a;
  --olc-radius: 16px;
  --olc-radius-sm: 10px;
  --olc-shadow: 0 25px 60px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
  --olc-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  font-family: var(--olc-font);
  font-size: 15px;
  color: var(--olc-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* === Dialog === */
.olc-dialog {
  border: none;
  border-radius: var(--olc-radius);
  padding: 0;
  max-width: 740px;
  width: 94vw;
  max-height: 88vh;
  overflow: hidden;
  background: var(--olc-bg);
  box-shadow: var(--olc-shadow);
  z-index: 2147483000;
}

.olc-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: olc-dialog-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.olc-dialog[open]::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2147482999;
  animation: olc-fade-in 200ms ease both;
}

@keyframes olc-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes olc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .olc-dialog {
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    border-radius: 0;
    animation: olc-slide-up 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes olc-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* === Step Transitions === */
.olc-step-content {
  animation-duration: 250ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

.olc-slide-in-right { animation-name: olc-slide-in-right; }
.olc-slide-in-left { animation-name: olc-slide-in-left; }
.olc-slide-out-left {
  animation-name: olc-slide-out-left;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.olc-slide-out-right {
  animation-name: olc-slide-out-right;
  position: absolute;
  top: 0; left: 0; right: 0;
}

@keyframes olc-slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes olc-slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes olc-slide-out-left {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes olc-slide-out-right {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

@media (prefers-reduced-motion: reduce) {
  .olc-dialog, .olc-dialog[open]::backdrop,
  .olc-step-content { animation: none !important; }
}

/* === Header === */
.olc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--olc-border);
  background: var(--olc-bg);
  flex-shrink: 0;
}

.olc-header h2 {
  margin: 0;
  font-family: var(--olc-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--olc-primary);
}

.olc-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--olc-bg-soft);
  border: 1px solid var(--olc-border);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--olc-text-muted);
  transition: all var(--olc-transition);
  line-height: 1;
}

.olc-close:hover {
  background: var(--olc-border);
  color: var(--olc-text);
}

.olc-close:focus-visible {
  outline: 2px solid var(--olc-accent);
  outline-offset: 2px;
}

/* === Progress === */
.olc-progress {
  position: relative;
  background: var(--olc-bg-soft);
  padding-bottom: 0;
  flex-shrink: 0;
}

.olc-progress-bar {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--olc-accent), #00c9c8);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 2px 2px 0;
}

.olc-progress-text {
  display: block;
  padding: 8px 28px;
  font-size: 11px;
  font-weight: 600;
  color: var(--olc-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  background: var(--olc-bg-soft);
}

/* === Body === */
.olc-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scroll-behavior: smooth;
  position: relative;
}

@media (max-width: 768px) {
  .olc-body { padding: 20px; }
}

.olc-body h3 {
  margin: 0 0 20px;
  font-family: var(--olc-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--olc-primary);
  letter-spacing: -0.01em;
}

/* === Footer === */
.olc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--olc-border);
  background: var(--olc-bg-soft);
  gap: 12px;
  flex-shrink: 0;
}

/* === Buttons === */
.olc-btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--olc-radius-sm);
  font-family: var(--olc-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--olc-transition);
  letter-spacing: 0.01em;
}

.olc-btn:focus-visible {
  outline: 2px solid var(--olc-accent);
  outline-offset: 2px;
}

.olc-btn-next {
  background: var(--olc-primary);
  color: #fff;
  margin-left: auto;
  min-width: 140px;
  text-align: center;
}

.olc-btn-next:hover {
  background: #003e3d;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 2px 2px rgba(0, 0, 0, 0.03),
    0 4px 4px rgba(0, 0, 0, 0.03),
    0 8px 8px rgba(0, 0, 0, 0.02);
}

.olc-btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.olc-btn-back {
  background: transparent;
  color: var(--olc-text-muted);
  border: 1px solid var(--olc-border);
}

.olc-btn-back:hover {
  background: var(--olc-bg-soft);
  color: var(--olc-text);
  border-color: var(--olc-border-hover);
}

/* === Card List === */
/* v1.1.1: stacked rows (one card per line, full-width) — cards internally render
   icon on the left, title + description on the right. Previously a responsive grid. */
.olc-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.olc-card {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  border: 1.5px solid var(--olc-border);
  border-radius: var(--olc-radius-sm);
  padding: 16px 48px 16px 16px;
  cursor: pointer;
  transition: all var(--olc-transition);
  text-align: left;
  background: var(--olc-bg);
}

.olc-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.olc-card-icon svg { display: block; }

.olc-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.olc-card:hover {
  border-color: var(--olc-accent);
}

.olc-card--selected {
  border-color: var(--olc-accent);
  background: linear-gradient(135deg, rgba(201,168,76,0.04), rgba(201,168,76,0.08));
  box-shadow: 0 0 0 1px var(--olc-accent), 0 4px 16px rgba(201,168,76,0.12);
}

.olc-card--selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--olc-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

img.olc-card-img {
  display: block;
  width: 48px;
  height: 48px;
  padding: 10px;
  object-fit: contain;
  flex-shrink: 0;
  box-sizing: content-box;
}

img.olc-card-color-frame {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

/* Add the step-heading spacing used at the top of each step. */
.olc-step-heading { margin: 0 0 16px; }
.olc-step-heading h3 { margin: 0 0 6px; }
.olc-step-heading .olc-step-desc {
  margin: 0;
  color: var(--olc-text-muted);
  font-size: 14px;
  line-height: 1.5;
}


.olc-card-title {
  font-family: var(--olc-font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--olc-primary);
  overflow-wrap: anywhere;
}

.olc-card-desc {
  font-size: 13px;
  color: var(--olc-text-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.olc-card-price {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 152, 151, 0.1);
  color: var(--olc-accent-hover);
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
}

/* === Rx Form === */
.olc-rx-form h3 { margin-bottom: 16px; }

.olc-rx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-bottom: 20px;
}

.olc-rx-table th {
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--olc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.olc-rx-table td {
  padding: 4px 6px;
  text-align: center;
  font-size: 14px;
}

.olc-rx-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--olc-primary);
  font-size: 13px;
  white-space: nowrap;
  padding-right: 16px;
}

.olc-rx-input {
  width: auto;
  min-width: 80px;
  padding: 9px 8px;
  border: 1.5px solid var(--olc-border);
  border-radius: 8px;
  text-align: center;
  font-family: var(--olc-font);
  font-size: 13px;
  color: var(--olc-text);
  background: var(--olc-bg);
  transition: all var(--olc-transition);
  cursor: pointer;
}

select.olc-rx-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: 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='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
  text-align: left;
}

.olc-rx-input:hover { border-color: var(--olc-border-hover); }

.olc-rx-input:focus {
  border-color: var(--olc-accent);
  outline: none;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 2px 2px rgba(0, 0, 0, 0.03),
    0 4px 4px rgba(0, 0, 0, 0.03),
    0 8px 8px rgba(0, 0, 0, 0.02);
}

.olc-input-error {
  border-color: var(--olc-error) !important;
  background: var(--olc-error-bg) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* PD Section */
.olc-pd-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1 1 100%;
  padding: 16px 0;
  border-top: 1px solid var(--olc-border);
  margin-top: 8px;
}

.olc-pd-wrap > * {
  flex: 1 1 auto;
}

.olc-pd-wrap label {
  font-weight: 600;
  font-size: 13px;
  color: var(--olc-primary);
}

/* PD selects inherit from .olc-rx-input — no overrides needed. */

/* Stacked eye + PD sections (replaces .olc-rx-table layout). */
.olc-rx-eye-section { margin-bottom: 18px; }
.olc-rx-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--olc-primary);
}
.olc-rx-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.olc-rx-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.olc-rx-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--olc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.olc-rx-field .olc-rx-input {
  width: 100%;
  min-width: 0;
  text-align: left;
}
.olc-rx-pd-section {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--olc-border);
}
.olc-rx-pd-toggle {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}
.olc-rx-pd-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--olc-text);
}
.olc-rx-pd-radio input { cursor: pointer; accent-color: var(--olc-accent); }

/* === Upload Drop Zone === */
.olc-upload-wrap h3 { margin-bottom: 16px; }

.olc-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  border: 2px dashed var(--olc-border);
  border-radius: var(--olc-radius-sm);
  background: var(--olc-bg-soft);
  text-align: center;
  cursor: pointer;
  transition: all var(--olc-transition);
}

.olc-dropzone:hover, .olc-dropzone--active {
  border-color: var(--olc-accent);
  background: rgba(0, 152, 151, 0.05);
}

.olc-dropzone-icon {
  font-size: 32px;
  color: var(--olc-accent);
  line-height: 1;
  margin-bottom: 4px;
}

.olc-dropzone-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--olc-text);
}

.olc-dropzone-or {
  font-size: 12px;
  color: var(--olc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.olc-dropzone-btn {
  padding: 10px 24px;
  border: 1.5px solid var(--olc-primary);
  border-radius: 8px;
  background: var(--olc-bg);
  color: var(--olc-primary);
  font-family: var(--olc-font);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--olc-transition);
}

.olc-dropzone-btn:hover {
  background: var(--olc-primary);
  color: #fff;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 2px 2px rgba(0, 0, 0, 0.03),
    0 4px 4px rgba(0, 0, 0, 0.03),
    0 8px 8px rgba(0, 0, 0, 0.02);
}

.olc-dropzone-hint {
  font-size: 12px;
  color: var(--olc-text-muted);
  margin-top: 4px;
}

/* Upload success state */
.olc-upload-done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1.5px solid var(--olc-accent);
  border-radius: var(--olc-radius-sm);
  background: rgba(0, 152, 151, 0.06);
}

.olc-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--olc-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.olc-upload-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--olc-text);
  overflow-wrap: anywhere;
}

.olc-upload-change {
  padding: 6px 14px;
  border: 1px solid var(--olc-border);
  border-radius: 6px;
  background: var(--olc-bg);
  color: var(--olc-text-muted);
  font-family: var(--olc-font);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--olc-transition);
}

.olc-upload-change:hover {
  border-color: var(--olc-accent);
  color: var(--olc-text);
}

/* === Review === */
.olc-review {
  background: var(--olc-bg-soft);
  border-radius: var(--olc-radius-sm);
  padding: 20px 24px;
  border: 1px solid var(--olc-border);
}

.olc-review-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--olc-border);
  font-size: 14px;
  color: var(--olc-text);
}

.olc-review-row:last-of-type { border-bottom: none; }

.olc-review-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 4px;
  margin-top: 8px;
  border-top: 2px solid var(--olc-primary);
  font-weight: 700;
  font-size: 18px;
  color: var(--olc-primary);
}

/* === Color Swatch (in card) === */
.olc-color-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--olc-border);
  vertical-align: middle;
  margin-right: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* === States === */
.olc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--olc-text-muted);
  font-size: 14px;
  gap: 16px;
}

.olc-loading::before {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--olc-border);
  border-top-color: var(--olc-accent);
  border-radius: 50%;
  animation: olc-spin 0.7s linear infinite;
}

@keyframes olc-spin {
  to { transform: rotate(360deg); }
}

.olc-error {
  padding: 14px 18px;
  background: var(--olc-error-bg);
  color: var(--olc-error);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(220, 38, 38, 0.15);
  margin-bottom: 16px;
}

.olc-placeholder {
  color: var(--olc-text-muted);
  font-style: italic;
  padding: 20px 0;
}

/* === Responsive Fine-tuning === */
@media (max-width: 768px) {
  .olc-header { padding: 16px 20px; }
  .olc-footer { padding: 14px 20px; }
  .olc-progress-text { right: 20px; }
  .olc-card-grid { gap: 10px; }
  .olc-card {
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 8px;
  }
  .olc-card-price { margin-left: 0; }
  .olc-card--selected::after { top: 8px; right: 8px; }
  .olc-btn { padding: 12px 20px; }
  .olc-rx-input { min-width: 70px; padding: 8px 4px; font-size: 12px; }
  .olc-review { padding: 16px; }
}

@media (max-width: 480px) {
  .olc-rx-table { font-size: 12px; }
  .olc-rx-input { min-width: 60px; font-size: 11px; }
  .olc-rx-table td:first-child { font-size: 12px; }
}

.olc-hint-warning {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #78350f;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* Step 9 review summary — relies on existing .olc-review-row / .olc-review-total */
.olc-review-section { margin-bottom: 20px; }
.olc-review-section h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--olc-text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.06em; }
.olc-review-row .olc-review-price { color: var(--olc-primary); font-weight: 500; white-space: nowrap; }
.olc-review-rx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--olc-border);
  border-radius: var(--olc-radius-sm);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.olc-review-rx-table th,
.olc-review-rx-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--olc-border);
}
.olc-review-rx-table tr:last-child th,
.olc-review-rx-table tr:last-child td { border-bottom: 0; }
.olc-review-rx-table th {
  background: var(--olc-bg-soft);
  font-weight: 600;
  color: var(--olc-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.olc-review-rx-table td {
  color: var(--olc-primary);
  font-weight: 600;
  font-size: 14px;
}
.olc-review-rx-table td:first-child,
.olc-review-rx-table th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--olc-text-muted);
  width: 1%;
  white-space: nowrap;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  background: var(--olc-bg-soft);
}
.olc-review-pd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--olc-bg-soft);
  border: 1px solid var(--olc-border);
  border-radius: var(--olc-radius-sm);
  font-size: 13px;
  color: var(--olc-text);
  font-variant-numeric: tabular-nums;
}
.olc-review-pd strong { color: var(--olc-primary); font-weight: 600; }
.olc-review-upload { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--olc-bg-soft); border: 1px solid var(--olc-border); border-radius: var(--olc-radius-sm); }
.olc-review-rx-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--olc-radius-sm); border: 1px solid var(--olc-border); }
.olc-review-rx-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--olc-border); border-radius: var(--olc-radius-sm); font-size: 24px; color: var(--olc-text-muted, #64748b); }
.olc-review-empty { color: var(--olc-text-muted, #94a3b8); font-style: italic; padding: 12px 0; }

/* Step 9 review v2 — Frame card + Lens card layout */
.olc-review-v2 { display: flex; flex-direction: column; gap: 14px; }
.olc-review-card {
  border: 1px solid var(--olc-border);
  border-radius: var(--olc-radius-sm);
  background: var(--olc-bg);
  overflow: hidden;
}
.olc-review-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--olc-border);
  background: var(--olc-bg-soft);
}
.olc-review-card__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--olc-primary);
}
.olc-review-card__price {
  font-weight: 700;
  font-size: 15px;
  color: var(--olc-primary);
  white-space: normal;
}
.olc-review-card__price .amount,
.olc-review-card__price bdi { color: inherit; font-weight: inherit; white-space: normal; }
.olc-review-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--olc-text);
  line-height: 1.55;
}
.olc-review-line { color: var(--olc-text); }
.olc-review-rx-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--olc-bg-soft);
  border-radius: var(--olc-radius-sm);
  border: 1px solid var(--olc-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.olc-review-rx-line { font-size: 13px; font-weight: 500; color: var(--olc-primary); }
.olc-review-rx-box--upload { flex-direction: row; align-items: center; gap: 12px; }
.olc-review-rx-filename { font-size: 13px; color: var(--olc-text); font-weight: 500; }
