.astra-rabaty {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid #d8e5ff;
  border-radius: 8px;
  background: #f7faff;
}

.astra-rabaty h3,
.astra-rabaty h4 {
  margin-top: 0;
}

.astra-rabaty__message {
  margin: .5rem 0;
  padding: .65rem .85rem;
  border-radius: 5px;
  background: #eef3fb;
}

.astra-rabaty__message--success {
  color: #155724;
  background: #dff2e3;
}

.astra-rabaty__rewards {
  display: grid;
  gap: .75rem;
}

.astra-rabaty__reward {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: .75rem;
  padding: .9rem 1rem;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(25, 39, 58, .05);
}

.astra-rabaty__reward--no-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.astra-rabaty__reward-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  min-height: 76px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fafbfd;
  overflow: hidden;
}

.astra-rabaty__image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.astra-rabaty__reward-media .astra-rabaty__image-link {
  width: 100%;
  height: 100%;
}

.astra-rabaty__image-link img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.astra-rabaty__reward-content {
  min-width: 0;
}

.astra-rabaty__reward-kicker {
  display: block;
  margin-bottom: .15rem;
  color: #7c8797;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.astra-rabaty__reward-title {
  display: block;
  color: #263547;
  font-size: .98rem;
  line-height: 1.3;
}

.astra-rabaty__reward-product-name {
  display: block;
  margin-top: .12rem;
  color: #667085;
  font-size: .8rem;
}

.astra-rabaty__reward-benefit {
  display: inline-flex;
  align-items: center;
  margin-top: .45rem;
  padding: .22rem .58rem;
  border-radius: 999px;
  background: #eaf7ef;
  color: #16703a;
  font-size: .78rem;
  font-weight: 700;
}

.astra-rabaty__reward-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.astra-rabaty__reward-form {
  margin: 0;
}

.astra-rabaty__reward-button {
  min-width: 130px;
  white-space: nowrap;
}

.astra-rabaty__reward-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.astra-rabaty__reward-status--selected,
.astra-rabaty__reward-status--auto {
  color: #176b3a;
  background: #eaf7ef;
}

.astra-rabaty__selected {
  color: #18733b;
  font-weight: 600;
}

@media (max-width: 575px) {
  .astra-rabaty__reward {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: .75rem;
  }

  .astra-rabaty__reward--no-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .astra-rabaty__reward-media {
    width: 64px;
    min-height: 64px;
  }

  .astra-rabaty__image-link img {
    width: 60px;
    height: 60px;
  }

  .astra-rabaty__reward-action {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .astra-rabaty__reward-form,
  .astra-rabaty__reward-button {
    width: 100%;
  }
}

.astra-rabaty-cart-block:empty {
  display: none;
}

.astra-rabaty-messages {
  margin: .75rem 0;
}

.astra-rabaty-messages .astra-rabaty__message:first-child {
  margin-top: 0;
}

.astra-rabaty-messages .astra-rabaty__message:last-child {
  margin-bottom: 0;
}

.astra-rabaty__message--progress,
.astra-rabaty__message--always {
  color: #344054;
  background: #eef3fb;
}

.astra-rabaty__message--blocked {
  color: #7a4a00;
  background: #fff3d6;
}

.astra-product-discount-marker[hidden] {
  display: none !important;
}

.product-line-grid.astra-product-discount-line {
  position: relative;
}

.product-line-grid.astra-product-discount-line .product-line-grid-body .product-price.has-discount,
.product-line-grid.astra-product-discount-line .product-line-grid-body .product-price.astra-product-discount-native-price {
  margin-top: .45rem;
}

.product-line-grid.astra-product-discount-line .product-discount {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .25rem;
}

.product-line-grid.astra-product-discount-line .product-discount .regular-price,
.product-line-grid.astra-product-discount-line .astra-product-discount-regular {
  color: #7a7a7a;
  font-size: .82rem;
  font-weight: 500;
  text-decoration-thickness: 1px;
}

.product-line-grid.astra-product-discount-line .product-discount .discount,
.product-line-grid.astra-product-discount-line .astra-product-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: .1rem .48rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: 0 2px 5px rgba(229, 57, 53, .18);
}

.product-line-grid.astra-product-discount-line .current-price .price,
.product-line-grid.astra-product-discount-line .astra-product-discount-final {
  color: #1f2937;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-line-grid.astra-product-discount-line .astra-product-discount-saving {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  margin-top: .3rem;
  padding: .2rem .48rem;
  border-radius: .35rem;
  background: #ecfdf3;
  color: #137a45;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-line-grid.astra-product-discount-line .astra-product-discount-saving::before {
  content: "✓";
  font-size: .75rem;
  font-weight: 900;
}

.product-line-grid.astra-product-discount-line .product-line-grid-right .price .product-price strong {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .05rem;
  white-space: nowrap;
}

.product-line-grid.astra-product-discount-line .astra-product-discount-total-regular {
  color: #8b8b8b;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: line-through;
}

.product-line-grid.astra-product-discount-line .astra-product-discount-total-final {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .product-line-grid.astra-product-discount-line .product-discount {
    gap: .3rem;
  }

  .product-line-grid.astra-product-discount-line .current-price .price,
  .product-line-grid.astra-product-discount-line .astra-product-discount-final {
    font-size: 1.05rem;
  }

  .product-line-grid.astra-product-discount-line .astra-product-discount-saving {
    font-size: .68rem;
  }
}
