.wpr-points-widget {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #bdd7ee;
  background: #f4fbff;
  color: #1d2327;
}

.wpr-points-widget > p {
  margin: 0;
}

.wpr-points-widget > .wpr-points-current,
.wpr-points-dashboard > .wpr-points-balance {
  font-weight: 700;
  color: #0a5ea8;
}

.wpr-points-widget > .wpr-points-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wpr-points-widget > .wpr-points-actions > button {
  min-height: 36px;
  width: stretch;
  font-weight: bold !important;
  font-size: 16px;
}

.wpr-points-widget > .wpr-points-message {
  color: #0a5ea8;
  font-weight: 600;
}

.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .wpr-remove-points {
  background: none;
  color: var(--secondary);
  padding: 0;
}
.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  .wpr-remove-points:hover {
  text-decoration: underline;
  color: var(--secondary);
  background: none;
}
.wpr-points-dashboard,
.wpr-points-thank-you {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  border-left: 4px solid #0a5ea8;
  background: #f4fbff;
}

.wpr-points-dashboard > h2 {
  margin: 0;
}

.wpr-points-dashboard > p,
.wpr-points-thank-you > p {
  margin: 0;
}

/* Points widget */
.woocommerce-checkout .wpr-points-row td {
  padding: 0 !important;
  border-bottom: 0 !important;
}
.woocommerce-checkout .wpr-points-row {
}
.woocommerce-checkout .wpr-points-widget {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 500;
  background: var(--primary-pastel);
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid #d3f2dc;
}
.woocommerce-checkout .wpr-points-widget .line-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  text-align: left;
  border-bottom: 1px solid #a3c1ad;
  padding-bottom: 10px;
  font-weight: 700;
}
.woocommerce-checkout .wpr-points-widget .line-head i {
  background: #c7f2d4;
  color: var(--primary);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
}
.woocommerce-checkout .wpr-points-widget .lines .line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1dfdf;
}

.woocommerce-checkout .wpr-points-widget .lines .line i {
  font-size: 18px;
  width: 2rem;
  height: 2rem;
  flex: 0 0 3rem;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  background: #c7f2d4;
}

/* Points dashboard */

.wpr-points-dashboard {
  width: min(100%, 430px);
  position: relative;
  background: var(--white);
  border: 1px solid rgba(35, 108, 58, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(21, 49, 34, 0.08);
}
.wpr-points-dashboard p {
  display: none;
}
.wpr-points-dashboard::before {
  content: "";
  display: block;
  height: 42px;
  background: linear-gradient(180deg, var(--primary), #087033);
  border-radius: 14px 14px 0 0;
}

.wpr-points-dashboard__badge {
  width: 84px;
  height: 84px;
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -18px);
  border-radius: 999px;
  background: linear-gradient(180deg, #087033, var(--primary));
  box-shadow: 0 8px 18px rgba(35, 108, 58, 0.18);
}

.wpr-points-dashboard__badge-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font-size: 1.5rem;
}

.wpr-points-dashboard__badge svg,
.wpr-points-dashboard__info-icon svg,
.wpr-points-dashboard__history svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wpr-points-dashboard__badge svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.wpr-points-dashboard__content {
  text-align: center;
  padding: 2rem 0;
}

.wpr-points-dashboard__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.wpr-points-dashboard__subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
}

.wpr-points-dashboard__divider {
  height: 1px;
  margin: 13px 0 20px;
  background: rgba(40, 63, 48, 0.12);
}

.wpr-points-dashboard__points {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.wpr-points-dashboard__shine {
  width: 32px;
  height: 56px;
  flex: 0 0 auto;
  color: var(--primary);
  margin-top: 0rem;
}

.wpr-points-dashboard__shine--right {
  transform: scaleX(-1);
}

.wpr-points-dashboard__shine span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 12px 0;
  border-radius: 99px;
  background: currentColor;
}

.wpr-points-dashboard__shine span:first-child {
  transform: rotate(38deg) translateX(8px);
  transform-origin: right center;
}

.wpr-points-dashboard__shine span:nth-child(2) {
  width: 24px;
}

.wpr-points-dashboard__shine span:last-child {
  transform: rotate(-38deg) translateX(8px);
  transform-origin: right center;
}

.wpr-points-dashboard__value {
  display: block;
  color: var(--primary);
  font-size: 63px;
  font-weight: 500;
  font-family: "Poppins";
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.wpr-points-dashboard__label {
  display: block;
  color: #151515;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.wpr-points-dashboard__info {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 28px;
  padding-top: 2rem;
}

.wpr-points-dashboard__info-divider {
  width: 1px;
  height: 126px;
  background: rgba(40, 63, 48, 0.12);
}

.wpr-points-dashboard__info-item {
  min-width: 0;
  text-align: center;
}

.wpr-points-dashboard__info-icon {
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 999px;
  color: var(--primary);
  background: linear-gradient(
    180deg,
    rgba(76, 166, 86, 0.13),
    rgba(35, 108, 58, 0.07)
  );
  font-size: 28px;
}

.wpr-points-dashboard__info-text {
  margin: 0;
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.wpr-points-dashboard__footer {
  border-top: 1px solid rgba(40, 63, 48, 0.12);
  padding: 26px 42px 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(245, 255, 248, 0.4)
  );
}

.wpr-points-dashboard__history {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.wpr-points-dashboard__history:hover {
  color: var(--text-red);
  transform: translateX(2px);
}

.wpr-points-dashboard__history svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

/* My Account rewards */
.michels-rewards-account {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.michels-rewards-account h2,
.michels-rewards-account h3,
.michels-rewards-account p {
  margin: 0;
}

.michels-rewards-account__review {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(35, 108, 58, 0.18);
  border-radius: 10px;
  background: #f5fff8;
  box-shadow: 0 12px 28px rgba(21, 49, 34, 0.08);
}

.michels-rewards-account__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary, #236c3a);
  color: var(--white, #fff);
  font-size: 30px;
}

.michels-rewards-account__content {
  display: grid;
  gap: 10px;
}

.michels-rewards-account__eyebrow {
  color: var(--primary, #236c3a);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.michels-rewards-account__button {
  justify-self: start;
  line-height: 1;
}
.michels-rewards-account__button br {
  display: none;
}
.michels-rewards-account__empty {
  padding: 18px;
  border: 1px solid rgba(40, 63, 48, 0.12);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 560px) {
  .michels-rewards-account__review {
    grid-template-columns: 1fr;
  }

  .michels-rewards-account__icon {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }
}

/* Pending review popup */
.michels-review-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.michels-review-popup__dialog {
  position: relative;
  width: min(700px, 100%);
}

.michels-review-popup__link {
  display: block;
}

.michels-review-popup__link img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

.michels-review-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 28px !important;
  line-height: 1;
  cursor: pointer;
}

.michels-review-popup__close:hover,
.michels-review-popup__close:focus {
  background: #236c3a;
  color: #fff;
}

.michels-review-popup__close span {
  display: block;
  line-height: 30px;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .michels-review-popup {
    padding: 18px;
  }

  .michels-review-popup__close {
    top: -12px;
    right: -8px;
  }
}
