/* WooCommerce Support Campaign — Frontend Styles
 * All classes prefixed with wsc- to avoid conflicts.
 * Override freely in your theme stylesheet.
 */

/* ── Banner ──────────────────────────────────────────── */
.wsc-banner {
  margin-top: var(--sp-20, 20px);
  margin-left: var(--sp-20, 20px);
  margin-right: var(--sp-20, 20px);
  margin-bottom: var(--sp-20, 20px);
}
.wsc-banner__content {
  position: relative;
  gap: 15px;
  padding: 15px 24px;
  background-color: #f5f5f5;
  overflow: hidden;
  border-radius: 15px;
  display: grid;
  align-items: center;
  /* grid-template-columns: 140px 1.2fr 1fr 220px; */
  grid-template-areas:
    "logo"
    "description"
    "donations"
    "button";
}

.wsc-banner__logo {
  flex-shrink: 0;
  grid-area: logo;
  display: flex;
  justify-content: center;
}

.wsc-banner__logo img {
  display: block;
  max-width: 100%;
  width: auto;
}

.wsc-banner__content {
  flex: 1;
  grid-area: description;
}

.wsc-banner__title {
  margin: 0 0 8px;
  /* font-size: 1.4em; */
  line-height: 1.3;
}

.wsc-banner__description {
  line-height: 1.2;
  font-size: clamp(16px, 1.6vw, 17px);
  margin: 0;
  color: var(--wsc-color-dark-1, #07224a);
  a {
    text-decoration: underline;
  }
}

.wsc-banner__stats {
  grid-area: donations;
  background: #fdfcfa;
  padding: 7px 10px 7px;
  text-align: center;
  border-radius: 8px;
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* "Zebrana kwota:" label */
.wsc-banner__collected-label {
  font-weight: 600;
  color: var(--wsc-color-dark-2, #0e1725);
  font-size: 16px;
}

/* Large amount — filled by AJAX */
.wsc-banner__amount {
  color: var(--wsc-color-dark-1, #07224a);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: -12px 0 -5px;
}

/* WooCommerce price elements inside the amount */
.wsc-banner__amount .woocommerce-Price-amount,
.wsc-banner__amount bdi {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Placeholder shown before AJAX loads */
.wsc-banner__amount-placeholder {
  opacity: 0.35;
}

/* "Koniec akcji …" / "Akcja zakończyła się dnia …" */
.wsc-banner__end-info {
  font-size: 10px;
  font-weight: 400;
  color: var(--wsc-color-dark-2, #0e1725);
  margin: 0;
}

/* Progress bar */
/* .wsc-banner__progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 4px;
} */

/* .wsc-banner__progress-fill {
  height: 100%;
  background: currentColor;
  opacity: 0.5;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.wsc-banner__progress-label {
  font-size: 0.82em;
  opacity: 0.65;
} */

.wsc-banner__button,
.wsc-banner__button--ended {
  border-radius: var(--br-big, 60px);
  display: block;
  width: auto;
  margin: var(--sp-15, 15px);
  padding: var(--sp-10, 10px) var(--sp-15, 15px);
  font-size: var(--fs-16, 16px);
  text-align: center;
  color: var(--cl-white, #fff);
  background-color: var(--cl-primary-2, #2271b1);
}

/* ── Thank You Box ───────────────────────────────────── */
/* Standalone copy of banner styles — edit freely without affecting the home banner */
.wsc-thx-box {
  margin-top: var(--sp-20, 20px);
  margin-left: var(--sp-20, 20px);
  margin-right: var(--sp-20, 20px);
  margin-bottom: var(--sp-20, 20px);
}

.wsc-thx-box__content {
  position: relative;
  gap: 15px;
  padding: 15px 24px;
  background-color: #f5f5f5;
  overflow: hidden;
  border-radius: 15px;
  display: grid;
  align-items: center;
  grid-template-areas:
    "logo"
    "description";
}

.wsc-thx-box__logo {
  flex-shrink: 0;
  grid-area: logo;
  display: flex;
  justify-content: center;
}

.wsc-thx-box__logo img {
  display: block;
  max-width: 100%;
  width: auto;
}

.wsc-thx-box__title {
  margin: 0 0 8px;
  line-height: 1.3;
}

.wsc-thx-box__description {
  grid-area: description;
  line-height: 1.2;
  font-size: 18px;
  margin: 0;
  color: var(--wsc-color-dark-1, #07224a);
  a {
    text-decoration: underline;
  }
}

.wsc-thx-box__description p {
  margin: 0 0 0.5em;
}

.wsc-thx-box__description p:last-child {
  margin-bottom: 0;
}

.wsc-thx-box__button {
  grid-area: button;
  border-radius: var(--br-big, 60px);
  display: block;
  width: auto;
  margin: var(--sp-15, 15px);
  padding: var(--sp-10, 10px) var(--sp-15, 15px);
  font-size: var(--fs-16, 16px);
  text-align: center;
  color: var(--cl-white, #fff);
  background-color: var(--cl-primary-2, #2271b1);
}

@media (min-width: 720px) {
  .wsc-thx-box__logo {
    justify-content: flex-start;
  }
  .wsc-thx-box__content {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo description";
  }
}

@media (min-width: 992px) {
  .wsc-thx-box__content {
    grid-template-columns: 140px 1fr;
    grid-template-areas: "logo description";
  }
}

@media (min-width: 1200px) {
  .wsc-thx-box__content {
    grid-template-columns: 160px 1fr;
    gap: 30px;
  }
  .wsc-thx-box__description {
    font-size: 21px;
  }
}

/* ── Product Box ─────────────────────────────────────── */
.wsc-product-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 25px 20px;
  background-color: #f9f9f9; /* overridden by inline style from color picker */
  border: 0;
  border-radius: 15px;
  margin: 10px 0;
  flex-direction: column;
  text-align: center;
}
@media (min-width: 500px) {
  .wsc-product-box {
    flex-direction: row;
    gap: 32px;
    text-align: left;
  }
}

.wsc-product-box__logo {
  flex-shrink: 0;
  width: 86px;
}

.wsc-product-box__logo img {
  display: block;
  max-width: 100%;
  width: auto;
}

.wsc-product-box__content {
  flex: 1;
}

.wsc-product-box__title {
  margin: 0 0 6px;
  font-size: 1.1em;
}

.wsc-product-box__description {
  margin-bottom: 0px;
}

.wsc-product-box__description p {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -2%;
}

.wsc-product-box__description p:last-child {
  margin-bottom: 0;
}

.wsc-product-box__button {
  display: inline-block;
  padding: 7px 16px;
  background: #2271b1;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 600;
}

.wsc-product-box__button:hover {
  background: #135e96;
  color: #fff;
}
@media (min-width: 720px) {
  .wsc-banner__logo {
    justify-content: flex-start;
  }
  .wsc-banner__stats {
    margin-right: initial;
  }
  .wsc-banner__amount {
    font-size: 44px;
  }
  .wsc-banner__content {
    grid-template-columns: auto 320px;
    grid-template-areas:
      "logo donations"
      "description button";
  }
}

@media (min-width: 992px) {
  .wsc-banner__content {
    grid-template-columns: 140px 1.2fr 1fr 220px;
    grid-template-areas: "logo description donations button";
  }
}

@media (min-width: 1200px) {
  .wsc-banner__content {
    grid-template-columns: 160px 1.2fr 1fr 250px;
    gap: 30px;
  }
  .wsc-banner__description {
    font-size: 17px;
  }
}
