/* Shared guarantee row layout. Cart/checkout inherit the existing reassurance
   group's width; PDP uses the same aligned icon, title, and help control. */
.bvg-card {
  box-sizing: border-box;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
  font: inherit;
}

.bvg-card__shield {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  margin: 0 5px 0 0;
  padding-top: 5px;
  color: #ed004f !important;
}

.bvg-card__shield svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.bvg-card__title {
  display: block;
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #ed004f;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
}

.bvg-card__help {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  margin: 0 0 0 8px;
}

.bvg-card__help-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ed004f;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bvg-card__help-button svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.bvg-card__help-button:hover { opacity: .75; }
.bvg-card__help-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Appended to body and positioned by JS so theme wrappers cannot clip it. */
.bvg-tooltip {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 14px 16px;
  border: 1px solid #ed004f;
  border-radius: 8px;
  background: #ed004f;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
  color: #fff;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  pointer-events: none;
}

.bvg-tooltip[hidden] { display: none !important; }
.bvg-tooltip p { margin: 0; padding: 0; color: #fff; font: inherit; }
.bvg-tooltip p + p { margin-top: 10px; }
.bvg-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: var(--bvg-arrow-x, 50%);
  width: 14px;
  height: 14px;
  background: #ed004f;
  border-right: 1px solid #ed004f;
  border-bottom: 1px solid #ed004f;
  transform: translateX(-50%) rotate(45deg);
}
.bvg-tooltip[data-side='bottom']::after {
  top: -5px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}

@media (max-width: 767px) {
  .bvg-card__title { font-size: 13px; }
  .bvg-tooltip { font-size: 12px; }
}
