/* espo_brain: «Відправимо через N днів» on the product page of a Brain product (system/espo_brain.ocmod.xml).
   A badge the size of «В наявності», placed at the right end of the «Залиште відгук» line, which is
   empty there, so the info block keeps its height. Where that line may be too short for it (a narrow
   phone, or a review link with stars on a phone), the badge falls back to its own line under the
   stock badges. */
.info-product > .info-espo-brain-delivery {
  order: 5;
  flex: 0 0 100%;
  max-width: 100%;
  margin: 6px 0 10px;
}

.info-espo-brain-delivery__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #eef4fd;
  color: #1060c1;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.info-espo-brain-delivery__badge::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* On the «Залиште відгук» line: the first line (Код) is 20px high plus the link's 8px margin, the
   badge is centred on the link's 20px line. */
@media (min-width: 360px) {
  .info-product {
    position: relative;
  }

  .info-product > .info-espo-brain-delivery:not(.info-espo-brain-delivery--reviews) {
    position: absolute;
    top: 26px;
    right: 0;
    flex: none;
    max-width: none;
    margin: 0;
  }
}

/* From 600px the code and the review link take the left half only, so the right half of that line is
   free even with stars. */
@media (min-width: 600px) {
  .info-product > .info-espo-brain-delivery.info-espo-brain-delivery--reviews {
    position: absolute;
    top: 26px;
    right: 0;
    flex: none;
    max-width: 50%;
    margin: 0;
  }
}
