/**
 * BR-002 — Layer C: already-in-cart banner + re-add confirmation strip
 *
 * Two discrete surfaces:
 *  - .br002-readd-banner  — ambient info banner shown on PDP load when
 *    the current variation is already in the cart. Informational, not
 *    blocking.
 *  - .br002-readd-strip   — confirmation strip rendered on click-to-add
 *    when the item is already in cart. Blocking until the user picks
 *    "Add another" or navigates to cart.
 */

/* --- Ambient banner ------------------------------------------------------- */

.br002-readd-banner {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border: 1px solid #bae6fd;
  border-left-width: 4px;
  background: #f0f9ff;
  color: #0c4a6e;
  border-radius: 6px;
  font: inherit;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

[dir="rtl"] .br002-readd-banner,
html[dir="rtl"] .br002-readd-banner {
  border-left-width: 1px;
  border-right-width: 4px;
}

.br002-readd-banner__text {
  flex: 1 1 auto;
  font-weight: 500;
}

.br002-readd-banner__link {
  flex: 0 0 auto;
  color: #0369a1;
  text-decoration: underline;
  font-weight: 600;
  padding: 4px 8px;
  min-height: 32px;
  line-height: 1.5;
}

.br002-readd-banner__link:hover,
.br002-readd-banner__link:focus {
  color: #075985;
}

/* --- Confirmation strip -------------------------------------------------- */

.br002-readd-strip {
  margin: 0 0 12px 0;
  padding: 12px 14px;
  border: 1px solid #fbbf24;
  border-left-width: 4px;
  background: #fffbeb;
  color: #222;
  border-radius: 6px;
  line-height: 1.4;
}

[dir="rtl"] .br002-readd-strip,
html[dir="rtl"] .br002-readd-strip {
  border-left-width: 1px;
  border-right-width: 4px;
}

.br002-readd-strip__headline {
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 1em;
}

.br002-readd-strip__sub {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #555;
}

.br002-readd-strip__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

[dir="rtl"] .br002-readd-strip__actions,
html[dir="rtl"] .br002-readd-strip__actions {
  flex-direction: row-reverse;
}

.br002-readd-strip__gocart,
.br002-readd-strip__confirm {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid currentColor;
  padding: 8px 14px;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.br002-readd-strip__gocart {
  background: #fff;
  color: #1e40af;
  border-color: #1e40af;
}

.br002-readd-strip__gocart:hover,
.br002-readd-strip__gocart:focus {
  background: #eff6ff;
}

.br002-readd-strip__confirm {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
}

.br002-readd-strip__confirm:hover,
.br002-readd-strip__confirm:focus {
  background: #92400e;
  border-color: #92400e;
}

.br002-readd-strip__confirm:focus-visible,
.br002-readd-strip__gocart:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
