.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;
  }
}

/* Baltica: cart promotion, theme-only override (2026-10-08). */
.astra-rabaty-cart-block .astra-rabaty {
  --astra-baltica-blue: #3f93e9;
  --astra-baltica-navy: #1f295e;
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--astra-baltica-blue);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #474747;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.astra-rabaty-cart-block .astra-rabaty__message {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--astra-baltica-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.astra-rabaty-cart-block .astra-rabaty__message:last-child,
.astra-rabaty-cart-block .astra-rabaty__message-text > :last-child {
  margin-bottom: 0;
}

.astra-rabaty-cart-block .astra-rabaty__message-text {
  display: block;
  margin: 0 0 10px;
}

.astra-rabaty-cart-block .astra-rabaty__message--success > .astra-rabaty__message-text {
  padding: 8px 12px;
  border-radius: 3px;
  background: #dff2e3;
  color: #42614a;
  font-weight: 400;
}

.astra-rabaty-cart-block .astra-rabaty__message--blocked > .astra-rabaty__message-text {
  padding: 8px 12px;
  border-radius: 3px;
  background: #fff3d6;
  color: #7a4a00;
  font-weight: 400;
}

.astra-rabaty-cart-block .astra-rabaty__rewards {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* The row spans the section; only the compact article has the grey background. */
.astra-rabaty-cart-block .astra-rabaty__reward-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.astra-rabaty-cart-block .astra-rabaty__reward {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 15px;
  background: #fafafa;
  box-shadow: none;
  color: #474747;
  font-weight: 400;
}

.astra-rabaty-cart-block .astra-rabaty__reward-media {
  flex: 0 0 82px;
  width: 82px;
  min-height: 0;
  margin: 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.astra-rabaty-cart-block .astra-rabaty__image-link {
  display: block;
  width: 82px;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.astra-rabaty-cart-block .astra-rabaty__image-link img {
  display: block;
  width: 82px;
  height: 82px;
  margin: 10px 0;
  border-radius: 15px;
  object-fit: contain;
}

.astra-rabaty-cart-block .astra-rabaty__reward-content {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 356px;
  padding: 8px 16px 8px 0;
}

.astra-rabaty-cart-block .astra-rabaty__reward--no-image .astra-rabaty__reward-content {
  padding-left: 16px;
}

.astra-rabaty-cart-block .astra-rabaty__reward-kicker,
.astra-rabaty-cart-block .astra-rabaty__reward-product-name {
  display: none;
}

.astra-rabaty-cart-block .astra-rabaty__reward-title,
.astra-rabaty-cart-block .astra-rabaty__reward-title a {
  display: block;
  max-width: 340px;
  margin: 0;
  padding: 0;
  color: #474747;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.astra-rabaty-cart-block a.astra-rabaty__reward-title:hover,
.astra-rabaty-cart-block .astra-rabaty__reward-title a:hover {
  color: #041a5a;
}

.astra-rabaty-cart-block .astra-rabaty__reward-catalog-price {
  display: block;
  margin: 5px 0 4px;
  padding: 0;
  color: #474747;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* Keep the benefit visible when PHP cannot provide a catalogue price. */
.astra-rabaty-cart-block .astra-rabaty__reward-benefit {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #474747;
  font-size: 13px;
  font-weight: 600;
}

.astra-rabaty-cart-block .astra-rabaty__reward--catalog-price .astra-rabaty__reward-benefit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.astra-rabaty-cart-block .astra-rabaty__reward-reviews,
.astra-rabaty-cart-block .astra-rabaty__reward-reviews .rating_box_inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  line-height: 1.4;
  text-decoration: none;
}

.astra-rabaty-cart-block .astra-rabaty__reward-reviews .astra-rabaty__rating-star {
  display: inline-block;
  margin: 0;
  color: #ccc;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 1;
}

.astra-rabaty-cart-block .astra-rabaty__rating-star::before {
  content: "★";
  width: auto;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.astra-rabaty-cart-block .astra-rabaty__reward-reviews .astra-rabaty__rating-star.light {
  color: #ff8a00;
}

.astra-rabaty-cart-block .astra-rabaty__review-count {
  color: #777;
  font-size: 11px;
  font-weight: 400;
}

.astra-rabaty-cart-block .astra-rabaty__reward-action {
  flex: 0 0 auto;
  justify-self: end;
  margin: 0;
  padding: 0;
}

.astra-rabaty-cart-block .astra-rabaty__reward-button {
  width: 100%;
  min-width: 150px;
  min-height: 34px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--astra-baltica-blue);
  border-radius: 5px;
  background: var(--astra-baltica-blue);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
}

.astra-rabaty-cart-block .astra-rabaty__reward-button:hover,
.astra-rabaty-cart-block .astra-rabaty__reward-button:focus {
  border-color: var(--astra-baltica-navy);
  background: var(--astra-baltica-navy);
  color: #fff;
  box-shadow: none;
}

.astra-rabaty-cart-block a:focus-visible,
.astra-rabaty-cart-block button:focus-visible {
  outline: 2px solid #1f295e;
  outline-offset: 3px;
}

.astra-rabaty-cart-block .astra-rabaty__reward-button:disabled {
  opacity: .6;
  cursor: default;
}

.astra-rabaty-cart-block .astra-rabaty__reward-status {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
}

@media (max-width: 575px) {
  .astra-rabaty-cart-block .astra-rabaty {
    padding: 12px;
  }
  .astra-rabaty-cart-block .astra-rabaty__reward-media {
    flex-basis: 68px;
    width: 68px;
    margin: 0 10px;
  }
  .astra-rabaty-cart-block .astra-rabaty__image-link,
  .astra-rabaty-cart-block .astra-rabaty__image-link img {
    width: 68px;
    height: 68px;
  }
  .astra-rabaty-cart-block .astra-rabaty__reward-action {
    flex: 1 0 100%;
    width: 100%;
    justify-self: stretch;
  }
  .astra-rabaty-cart-block .astra-rabaty__reward-button {
    width: 100%;
    min-height: 40px;
  }
}
