.konciwa-tier-promo {
  --konciwa-promo-green: #4f7045;
  --konciwa-promo-deep: #263c2b;
  --konciwa-promo-lime: #a8cf45;
  --konciwa-promo-wash: #f4f7f1;
  position: relative;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 14px 14px 13px 0;
  overflow: hidden;
  color: var(--konciwa-promo-deep);
  background: linear-gradient(105deg, #f8faf6 0%, var(--konciwa-promo-wash) 100%);
  border: 1px solid rgba(79, 112, 69, 0.30);
  border-left: 4px solid var(--konciwa-promo-green);
  border-radius: 8px;
  box-sizing: border-box;
}

.konciwa-tier-promo,
.konciwa-tier-promo * {
  box-sizing: border-box;
}

.konciwa-tier-promo[hidden] {
  display: none !important;
}

.konciwa-tier-promo__icon {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 24px;
  padding-top: 2px;
  color: var(--konciwa-promo-green);
  line-height: 1;
}

.konciwa-tier-promo__icon svg {
  display: block !important;
  flex: 0 0 22px;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
}

.konciwa-tier-promo__body {
  min-width: 0;
  max-width: 100%;
}

.konciwa-tier-promo__head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.konciwa-tier-promo__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

.konciwa-tier-promo__title strong {
  color: var(--konciwa-promo-green);
  font-size: 18px;
  font-weight: 800;
}

.konciwa-tier-promo__scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  margin: 8px 0 0;
  padding: 8px 10px;
  color: var(--konciwa-promo-deep);
  background: #fff;
  border: 1px solid rgba(79, 112, 69, 0.34);
  border-left: 4px solid var(--konciwa-promo-lime);
  border-radius: 5px;
  line-height: 1.4;
}

.konciwa-tier-promo__scope strong {
  color: var(--konciwa-promo-green);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.konciwa-tier-promo__scope strong::before {
  content: "\2713";
  margin-right: 5px;
}

.konciwa-tier-promo__scope span {
  color: #596558;
  font-size: 12px;
  font-weight: 700;
}

.konciwa-tier-promo__tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.konciwa-tier-promo__tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 39px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(79, 112, 69, 0.24);
  border-radius: 5px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.konciwa-tier-promo__tier span {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.konciwa-tier-promo__tier strong {
  color: var(--konciwa-promo-green);
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.konciwa-tier-promo[data-level="15"] .konciwa-tier-promo__tier[data-tier="2"],
.konciwa-tier-promo[data-level="20"] .konciwa-tier-promo__tier[data-tier="3"] {
  color: #fff !important;
  background: var(--konciwa-promo-green) !important;
  border-color: var(--konciwa-promo-green) !important;
}

.konciwa-tier-promo[data-level="15"] .konciwa-tier-promo__tier[data-tier="2"] strong,
.konciwa-tier-promo[data-level="20"] .konciwa-tier-promo__tier[data-tier="3"] strong {
  color: #fff !important;
}

.konciwa-tier-promo__status {
  margin: 9px 0 0;
  color: var(--konciwa-promo-green);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.konciwa-tier-promo__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 10px;
  margin: 4px 0 0;
  color: #667064;
  font-size: 11px;
  line-height: 1.5;
}

.konciwa-tier-promo__deadline {
  white-space: nowrap;
}

/* Quick add content is injected dynamically, so it needs fully global rules. */
[id^="ProductInfo-quickadd-"] .konciwa-tier-promo {
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 12px 12px 11px 0;
}

[id^="ProductInfo-quickadd-"] .konciwa-tier-promo__icon {
  width: 36px;
  min-width: 36px;
}

@media (max-width: 749px) {
  .konciwa-tier-promo {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 11px 10px 11px 0;
    margin-bottom: 12px;
  }

  .konciwa-tier-promo__icon {
    width: 34px;
    min-width: 34px;
  }

  .konciwa-tier-promo__icon svg {
    flex-basis: 20px;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  .konciwa-tier-promo__title { font-size: 14px; }
  .konciwa-tier-promo__title strong { font-size: 16px; }
  .konciwa-tier-promo__scope { padding: 8px 9px; }
  .konciwa-tier-promo__scope strong { font-size: 14px; }
  .konciwa-tier-promo__scope span { font-size: 11px; }
  .konciwa-tier-promo__tier { padding: 8px; }
  .konciwa-tier-promo__tier strong { font-size: 15px; }
}

@media (max-width: 374px) {
  .konciwa-tier-promo__tiers {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .konciwa-tier-promo__tier { transition: none; }
}
