/* ============================================================
   GOODMUMS — WARRANTY FRONTEND
   Full replacement for the current warranty frontend.css

   Direction:
   - calm Goodmums hierarchy
   - one primary card instead of nested bordered cards
   - ivory / sage-tint grouping instead of repeated outlines
   - Honey #E8B87E reserved for primary actions
   - semantic colours used only where status meaning needs them
   - Comfortaa headings + Mulish UI/body
   - mobile-first, accessible focus, reduced motion preserved
   ============================================================ */

.bww-portal,
.bww-product-warranty {
  /* Goodmums core */
  --bww-ink: #4A5748;
  --bww-heading: #5C6B5A;
  --bww-muted: #5D6A5B;

  --bww-canvas: #FDF8F0;
  --bww-card: #FFFFFF;
  --bww-cream: #F7E8D4;

  --bww-sage: #A8C3A0;
  --bww-sage-deep: #8AAA80;
  --bww-sage-tint: #DCE8D8;

  --bww-honey: #E8B87E;
  --bww-honey-deep: #C99555;
  --bww-accent-ink: #4A3213;

  --bww-line: #DCE8D8;
  --bww-line-strong: #A8C3A0;

  /* semantic states — kept distinct, but intentionally quiet */
  --bww-success: #2F6B45;
  --bww-success-bg: #E7F4EB;

  --bww-warning: #7A4E00;
  --bww-warning-bg: #FFF2D6;

  --bww-error: #9E3F3F;
  --bww-error-bg: #FBE8E8;

  --bww-neutral-bg: #F3F3EE;
  --bww-neutral-text: #50584F;

  --bww-focus: #344832;

  --bww-r: 18px;
  --bww-r-sm: 12px;
  --bww-pill: 999px;

  --bww-shadow-card: 0 8px 24px rgba(47, 59, 46, .08);
  --bww-transition: 160ms ease;

  color: var(--bww-ink);
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bww-portal,
.bww-portal *,
.bww-portal *::before,
.bww-portal *::after,
.bww-product-warranty,
.bww-product-warranty *,
.bww-product-warranty *::before,
.bww-product-warranty *::after {
  box-sizing: border-box;
}

/* ============================================================
   Portal shell
   The Elementor page already supplies the page-level canvas and heading.
   Keep the shortcode itself visually clean and unboxed.
   ============================================================ */

.bww-portal {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bww-portal [hidden] {
  display: none !important;
}

.bww-live,
.bww-sr-only {
  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;
}

/* ============================================================
   Links + focus
   ============================================================ */

.bww-portal a {
  color: var(--bww-heading);
  text-decoration-color: var(--bww-sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bww-portal a:visited {
  color: var(--bww-heading);
}

.bww-portal a:hover {
  color: var(--bww-ink);
  text-decoration-thickness: 2px;
}

.bww-portal :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--bww-focus);
  outline-offset: 3px;
}

/* ============================================================
   Main panel
   One clear card is enough. No decorative colour bar.
   ============================================================ */

.bww-panel {
  position: relative;
  width: 100%;
  padding: clamp(20px, 3vw, 28px);
  background: var(--bww-card);
  border: 1px solid var(--bww-line);
  border-radius: var(--bww-r);
  box-shadow: var(--bww-shadow-card);
  overflow: visible;
}

.bww-panel::before {
  content: none;
  display: none;
}

/* ============================================================
   Typography
   ============================================================ */

.bww-panel h2,
.bww-panel h3,
.bww-panel h4 {
  margin: 0;
  font-family: "Comfortaa", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--bww-heading);
  overflow-wrap: anywhere;
}

.bww-panel h2 {
  font-size: clamp(18px, 2.2vw, 21px);
}

.bww-panel h3 {
  font-size: 15px;
}

.bww-panel h4 {
  font-size: 14px;
}

.bww-eyebrow {
  display:none;
  margin: 0 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--bww-muted);
}

.bww-muted {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bww-muted);
}

/* ============================================================
   Forms — hardened against Elementor

   Every layout / typography / size / colour / border / spacing
   declaration in the warranty form uses !important intentionally.
   This keeps Elementor global form controls from changing individual
   input types (text/tel/email/number/select/file) differently.
   ============================================================ */

.bww-portal .bww-form {
  display: grid !important;
  gap: var(--bww-field-spacing, 18px) !important;
  width: 100% !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
}

.bww-portal .bww-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--bww-field-spacing, 18px) !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bww-portal .bww-field {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-content: start !important;
}

.bww-portal .bww-field label,
.bww-portal .bww-field legend {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.bww-portal .bww-field small {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bww-muted) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ---------- Standard single-line controls ---------- */

.bww-portal .bww-field input[type="text"],
.bww-portal .bww-field input[type="email"],
.bww-portal .bww-field input[type="tel"],
.bww-portal .bww-field input[type="number"],
.bww-portal .bww-field input[type="url"],
.bww-portal .bww-field input[type="search"],
.bww-portal .bww-field input[type="password"],
.bww-portal .bww-field input[type="date"],
.bww-portal .bww-field input[type="time"],
.bww-portal .bww-field select {
  display: block !important;
  width: 100% !important;
  height: var(--bww-input-height, 48px) !important;
  min-height: var(--bww-input-height, 48px) !important;
  max-height: var(--bww-input-height, 48px) !important;
  margin: 0 !important;
  padding: 0 13px !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  border: 1px solid var(--bww-line-strong) !important;
  border-radius: var(--bww-input-radius, 12px) !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  transition: border-color var(--bww-transition), box-shadow var(--bww-transition), background-color var(--bww-transition) !important;
}

/* Dynamic claim fields — all IDs change by order-item ID, so use suffix selectors. */
.bww-portal .bww-claim-form input[id$="-quantity"],
.bww-portal .bww-claim-form input[id$="-name"],
.bww-portal .bww-claim-form input[id$="-email"],
.bww-portal .bww-claim-form input[id$="-phone"] {
  width: 100% !important;
  height: var(--bww-input-height, 48px) !important;
  min-height: var(--bww-input-height, 48px) !important;
  max-height: var(--bww-input-height, 48px) !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: var(--bww-line-strong) !important;
  border-radius: var(--bww-input-radius, 12px) !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: 0 !important;
  box-sizing: border-box !important;
}

/* ---------- Select ---------- */

.bww-portal .bww-field select {
  cursor: pointer !important;
}

/* ---------- Textarea ---------- */

.bww-portal .bww-field textarea {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 124px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  border: 1px solid var(--bww-line-strong) !important;
  border-radius: var(--bww-input-radius, 12px) !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  transition: border-color var(--bww-transition), box-shadow var(--bww-transition), background-color var(--bww-transition) !important;
}

/* ---------- Placeholder ---------- */

.bww-portal .bww-field input::placeholder,
.bww-portal .bww-field textarea::placeholder {
  color: #879283 !important;
  opacity: 1 !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* ---------- Hover ---------- */

.bww-portal .bww-field input[type="text"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="email"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="tel"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="number"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="url"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="search"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="password"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="date"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field input[type="time"]:hover:not(:disabled):not([readonly]),
.bww-portal .bww-field select:hover:not(:disabled),
.bww-portal .bww-field textarea:hover:not(:disabled):not([readonly]) {
  border-color: var(--bww-sage-deep) !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  color: var(--bww-ink) !important;
  box-shadow: none !important;
}

/* ---------- Focus ---------- */

.bww-portal .bww-field input[type="text"]:focus,
.bww-portal .bww-field input[type="email"]:focus,
.bww-portal .bww-field input[type="tel"]:focus,
.bww-portal .bww-field input[type="number"]:focus,
.bww-portal .bww-field input[type="url"]:focus,
.bww-portal .bww-field input[type="search"]:focus,
.bww-portal .bww-field input[type="password"]:focus,
.bww-portal .bww-field input[type="date"]:focus,
.bww-portal .bww-field input[type="time"]:focus,
.bww-portal .bww-field select:focus,
.bww-portal .bww-field textarea:focus,
.bww-portal .bww-field input[type="text"]:focus-visible,
.bww-portal .bww-field input[type="email"]:focus-visible,
.bww-portal .bww-field input[type="tel"]:focus-visible,
.bww-portal .bww-field input[type="number"]:focus-visible,
.bww-portal .bww-field input[type="url"]:focus-visible,
.bww-portal .bww-field input[type="search"]:focus-visible,
.bww-portal .bww-field input[type="password"]:focus-visible,
.bww-portal .bww-field input[type="date"]:focus-visible,
.bww-portal .bww-field input[type="time"]:focus-visible,
.bww-portal .bww-field select:focus-visible,
.bww-portal .bww-field textarea:focus-visible {
  border-color: var(--bww-sage-deep) !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  color: var(--bww-ink) !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 3px rgba(168, 195, 160, .28) !important;
}

/* ---------- Readonly ---------- */

.bww-portal .bww-field input[readonly],
.bww-portal .bww-field input[aria-readonly="true"] {
  background: var(--bww-neutral-bg) !important;
  background-color: var(--bww-neutral-bg) !important;
  border-color: var(--bww-line) !important;
  color: var(--bww-neutral-text) !important;
  cursor: default !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* ---------- Invalid / error ---------- */

.bww-portal .bww-field input[aria-invalid="true"],
.bww-portal .bww-field select[aria-invalid="true"],
.bww-portal .bww-field textarea[aria-invalid="true"] {
  border-color: var(--bww-error) !important;
  background: var(--bww-error-bg) !important;
  background-color: var(--bww-error-bg) !important;
  color: var(--bww-ink) !important;
  box-shadow: 0 0 0 2px rgba(158, 63, 63, .10) !important;
}

.bww-portal .bww-field-error {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bww-error) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

/* ---------- File input ---------- */

.bww-portal .bww-file-field input[type="file"] {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 5px !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  border: 1px solid var(--bww-line-strong) !important;
  border-radius: var(--bww-input-radius, 12px) !important;
  color: var(--bww-muted) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 36px !important;
  box-shadow: none !important;
  outline: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.bww-portal .bww-file-field input[type="file"]:hover {
  border-color: var(--bww-sage-deep) !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
}

.bww-portal .bww-file-field input[type="file"]:focus,
.bww-portal .bww-file-field input[type="file"]:focus-visible {
  border-color: var(--bww-sage-deep) !important;
  background: var(--bww-card) !important;
  background-color: var(--bww-card) !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 3px rgba(168, 195, 160, .28) !important;
}

/* Native Choose Files button */
.bww-portal .bww-file-field input[type="file"]::file-selector-button {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 14px !important;
  background: var(--bww-sage-tint) !important;
  background-color: var(--bww-sage-tint) !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 12.5px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 36px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: 0 !important;
  transition: background-color var(--bww-transition), color var(--bww-transition) !important;
}

.bww-portal .bww-file-field input[type="file"]::-webkit-file-upload-button {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 14px !important;
  background: var(--bww-sage-tint) !important;
  background-color: var(--bww-sage-tint) !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 12.5px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 36px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: 0 !important;
  transition: background-color var(--bww-transition), color var(--bww-transition) !important;
}

.bww-portal .bww-file-field input[type="file"]::file-selector-button:hover,
.bww-portal .bww-file-field input[type="file"]::file-selector-button:focus,
.bww-portal .bww-file-field input[type="file"]::-webkit-file-upload-button:hover,
.bww-portal .bww-file-field input[type="file"]::-webkit-file-upload-button:focus {
  background: var(--bww-sage) !important;
  background-color: var(--bww-sage) !important;
  border-color: transparent !important;
  color: #2F3B2E !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* ---------- Checkboxes / radios ---------- */

.bww-portal .bww-confirmations input[type="checkbox"],
.bww-portal .bww-choice-group input[type="checkbox"],
.bww-portal .bww-checkbox input[type="checkbox"],
.bww-portal .bww-choice-group input[type="radio"] {
  display: inline-block !important;
  flex: 0 0 19px !important;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  max-width: 19px !important;
  max-height: 19px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  background: initial !important;
  border-radius: initial !important;
  accent-color: var(--bww-heading) !important;
  box-shadow: none !important;
  vertical-align: top !important;
  box-sizing: border-box !important;
}

.bww-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ============================================================
   Buttons
   Honey is the primary action colour sitewide.
   ============================================================ */

.bww-button,
.bww-order-choice,
.bww-history__row,
.bww-link-button {
  font: inherit;
  cursor: pointer;
}

.bww-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  background: var(--bww-honey);
  border: 1px solid var(--bww-honey);
  border-radius: var(--bww-button-radius, 999px);
  color: var(--bww-accent-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition:
    background-color var(--bww-transition),
    border-color var(--bww-transition),
    transform var(--bww-transition);
}

.bww-button:visited {
  color: var(--bww-accent-ink);
}

.bww-button:hover {
  background: var(--bww-honey-deep);
  border-color: var(--bww-honey-deep);
  color: var(--bww-accent-ink);
  transform: translateY(-1px);
}

.bww-button:active {
  transform: translateY(0);
}

.bww-button:disabled,
.bww-button[aria-busy="true"],
.bww-order-choice:disabled,
.bww-history__row:disabled,
.bww-link-button:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

.bww-button[aria-busy="true"]::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bww-spin .75s linear infinite;
}

.bww-button--secondary {
  background: var(--bww-sage-tint);
  border-color: var(--bww-sage-tint);
  color: var(--bww-ink);
}

.bww-button--secondary:visited {
  color: var(--bww-ink);
}

.bww-button--secondary:hover {
  background: var(--bww-sage);
  border-color: var(--bww-sage);
  color: #2F3B2E;
}

.bww-button--danger {
  background: var(--bww-error);
  border-color: var(--bww-error);
  color: #FFFFFF;
}

.bww-button--danger:visited {
  color: #FFFFFF;
}

.bww-button--danger:hover {
  background: #843434;
  border-color: #843434;
  color: #FFFFFF;
}

.bww-link-button {
  min-height: 40px;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: var(--bww-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--bww-sage-deep);
  text-underline-offset: 3px;
}

.bww-link-button:hover {
  color: var(--bww-ink);
}

/* ============================================================
   Notices
   Soft fields with no extra outline. Text/icon carries the meaning.
   ============================================================ */

.bww-notice,
.bww-error-summary {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px 12px 42px;
  border: 0;
  border-radius: var(--bww-r-sm);
  font-size: 13px;
  line-height: 1.5;
}

.bww-notice::before,
.bww-error-summary::before {
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.bww-notice p,
.bww-error-summary p {
  margin: 0;
}

.bww-notice--success {
  background: var(--bww-success-bg);
  color: var(--bww-success);
}

.bww-notice--success::before {
  content: "✓";
}

.bww-notice--info,
.bww-notice--neutral {
  background: var(--bww-neutral-bg);
  color: var(--bww-neutral-text);
}

.bww-notice--info::before {
  content: "i";
}

.bww-notice--neutral::before {
  content: "•";
}

.bww-notice--warning {
  background: var(--bww-warning-bg);
  color: var(--bww-warning);
}

.bww-notice--warning::before {
  content: "!";
}

.bww-notice--error,
.bww-error-summary {
  background: var(--bww-error-bg);
  color: var(--bww-error);
}

.bww-notice--error::before,
.bww-error-summary::before {
  content: "!";
}

.bww-error-summary h3 {
  margin: 0 0 5px;
  color: var(--bww-error);
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.bww-error-summary ul {
  margin: 7px 0 0 18px;
  padding: 0;
}

.bww-error-summary a,
.bww-error-summary a:visited {
  color: var(--bww-error);
  font-weight: 700;
}

/* ============================================================
   Order / request headers
   ============================================================ */

.bww-order__header,
.bww-request__header,
.bww-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bww-order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   Warranty items
   Use a soft ivory field instead of another bordered card.
   ============================================================ */

.bww-item-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.bww-item {
  padding: clamp(17px, 2.5vw, 21px);
  background: var(--bww-canvas);
  border: 0;
  border-radius: var(--bww-r);
  box-shadow: none;
}

.bww-item h3 {
  margin: 0 0 4px;
}

/* ============================================================
   Status pills
   Fewer colour families; text labels remain the source of meaning.
   ============================================================ */

.bww-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 11px;
  background: var(--bww-neutral-bg);
  border: 0;
  border-radius: var(--bww-pill);
  color: var(--bww-neutral-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}

.bww-status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.bww-status--active,
.bww-status--solved {
  background: var(--bww-sage-tint);
  color: #2F3B2E;
}

.bww-status--pending,
.bww-status--submitted,
.bww-status--under_review {
  background: var(--bww-neutral-bg);
  color: var(--bww-neutral-text);
}

.bww-status--accepted,
.bww-status--received_processing,
.bww-status--ready_to_ship,
.bww-status--shipped {
  background: var(--bww-cream);
  color: var(--bww-accent-ink);
}

.bww-status--expired,
.bww-status--disabled,
.bww-status--cancelled,
.bww-status--rejected {
  background: var(--bww-error-bg);
  color: var(--bww-error);
}

/* ============================================================
   Summary facts
   One soft strip instead of four bordered mini-cards.
   ============================================================ */

.bww-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 22px;
  margin: 20px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .72);
  border: 0;
  border-radius: var(--bww-r-sm);
}

.bww-summary-grid > div {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bww-summary-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--bww-muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bww-summary-grid strong {
  display: block;
  color: var(--bww-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bww-summary-grid--compact {
  margin: 16px 0;
}

/* ============================================================
   Inline states / active claim
   ============================================================ */

.bww-inline-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--bww-neutral-bg);
  border: 0;
  border-radius: var(--bww-r-sm);
  color: var(--bww-neutral-text);
  font-size: 12.5px;
  line-height: 1.5;
}

.bww-inline-note--success {
  background: var(--bww-sage-tint);
  color: #2F3B2E;
}

.bww-active-claim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bww-cream);
  border: 0;
  border-radius: var(--bww-r-sm);
  color: var(--bww-accent-ink);
}

/* ============================================================
   History / order choices
   Clickable rows use surface change, not an outline around every row.
   ============================================================ */

.bww-history {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--bww-line);
}

.bww-history__row,
.bww-order-choice {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bww-canvas);
  border: 0;
  border-radius: var(--bww-r-sm);
  color: var(--bww-ink);
  text-align: left;
  transition:
    background-color var(--bww-transition),
    transform var(--bww-transition);
}

.bww-history__row:hover,
.bww-order-choice:hover {
  background: var(--bww-sage-tint);
  transform: translateY(-1px);
}

.bww-history__row small,
.bww-order-choice small {
  display: block;
  margin-top: 2px;
  color: var(--bww-muted);
  font-size: 12px;
  font-weight: 400;
}

.bww-order-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

/* ============================================================
   Request details
   ============================================================ */

.bww-request__description {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--bww-line);
}

.bww-request__description p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Timeline
   ============================================================ */

.bww-timeline {
  margin: 24px 0;
}

.bww-timeline ol {
  position: relative;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.bww-timeline ol::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--bww-line-strong);
}

.bww-timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 26px;
}

.bww-timeline li:last-child {
  padding-bottom: 0;
}

.bww-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  background: var(--bww-card);
  border: 2px solid var(--bww-sage-deep);
  border-radius: 50%;
  box-shadow: none;
}

.bww-timeline time {
  display: block;
  margin-bottom: 2px;
  color: var(--bww-muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.bww-timeline p {
  margin: 3px 0 0;
  color: var(--bww-ink);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ============================================================
   Product warranty summary
   Kept compatible because this same frontend stylesheet may be used
   wherever the plugin prints its compact warranty block.
   ============================================================ */

.bww-product-warranty {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--bww-canvas);
  border: 0;
  border-radius: var(--bww-r-sm);
}

.bww-product-warranty svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--bww-heading);
}

.bww-product-warranty span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.bww-product-warranty strong {
  color: var(--bww-ink);
  font-size: 13px;
  font-weight: 700;
}

.bww-product-warranty small {
  color: var(--bww-muted);
  font-size: 12px;
  text-align: right;
}

/* ============================================================
   Claim disclosure
   One divider + open content; no nested bordered accordion card.
   ============================================================ */

.bww-claim-disclosure {
  margin-top: 18px;
  padding-top: 2px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--bww-line);
  border-radius: 0;
  overflow: visible;
}

.bww-claim-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 13px 0 8px;
  color: var(--bww-heading);
  font-size: 13.5px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.bww-claim-disclosure > summary::-webkit-details-marker {
  display: none;
}

.bww-claim-disclosure > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: var(--bww-sage-tint);
  border: 0;
  border-radius: 50%;
  color: var(--bww-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.bww-claim-disclosure[open] > summary::after {
  content: "−";
}

.bww-claim-disclosure > summary:hover {
  background: transparent;
  color: var(--bww-ink);
}

.bww-claim-disclosure > .bww-form {
  margin: 0;
  padding: 14px 0 0;
  background: transparent;
  border: 0;
}

/* ============================================================
   Confirmations / choices — hardened against Elementor
   ============================================================ */

.bww-portal .bww-confirmations {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 0 !important;
  border-radius: var(--bww-r-sm) !important;
  box-shadow: none !important;
}

.bww-portal .bww-confirmations legend {
  width: auto !important;
  margin: 0 !important;
  padding: 0 4px !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.bww-portal .bww-confirmations label,
.bww-portal .bww-choice-group label,
.bww-portal .bww-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bww-ink) !important;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.bww-portal .bww-choice-group {
  display: grid !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ============================================================
   Files / evidence / detail lists
   ============================================================ */

.bww-file-list {
  margin: 8px 0 0;
  padding-left: 19px;
  color: var(--bww-muted);
  font-size: 12px;
}

.bww-file-list:empty {
  display: none;
}

.bww-evidence-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.bww-evidence-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  background: var(--bww-canvas);
  border: 0;
  border-radius: var(--bww-r-sm);
}

.bww-evidence-list small {
  display: block;
  color: var(--bww-muted);
  font-size: 12px;
}

.bww-evidence-list a {
  font-weight: 700;
}

.bww-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 18px;
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--bww-canvas);
  border-radius: var(--bww-r-sm);
}

.bww-detail-list > div {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bww-detail-list dt {
  color: var(--bww-muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bww-detail-list dd {
  margin: 3px 0 0;
  color: var(--bww-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ============================================================
   Cancellation / destructive section
   ============================================================ */

.bww-cancel-form {
  margin: 20px 0;
  padding: 16px;
  background: var(--bww-error-bg);
  border: 0;
  border-radius: var(--bww-r-sm);
}

/* ============================================================
   Motion / responsive
   ============================================================ */

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

@media (hover: none) {
  .bww-button:hover,
  .bww-history__row:hover,
  .bww-order-choice:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .bww-panel {
    padding: 18px 16px;
  }

  .bww-order__header,
  .bww-request__header,
  .bww-item__top,
  .bww-active-claim {
    display: grid;
  }

  .bww-portal .bww-form-grid {
    grid-template-columns: 1fr !important;
  }

  .bww-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px 16px;
    padding: 13px 14px;
  }

  .bww-button {
    width: 100%;
  }

  .bww-order__actions {
    width: 100%;
  }

  .bww-product-warranty span {
    display: block;
  }

  .bww-product-warranty small {
    display: block;
    margin-top: 3px;
    text-align: left;
  }

  .bww-history__row,
  .bww-order-choice,
  .bww-evidence-list li {
    display: grid;
    align-items: flex-start;
  }

  .bww-history__row > span:last-child,
  .bww-order-choice > span:last-child {
    text-align: left;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .bww-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .bww-panel,
  .bww-button,
  .bww-status,
  .bww-order-choice,
  .bww-history__row,
  .bww-portal .bww-field input,
  .bww-portal .bww-field select,
  .bww-portal .bww-field textarea {
    border: 1px solid CanvasText !important;
  }

  .bww-status::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bww-portal *,
  .bww-product-warranty * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
