/* AG SKIN CLUB storefront integration. Loaded only on WooCommerce loyalty surfaces. */

.ags-loyalty-dashboard {
  --ags-loyalty-ink: #171717;
  --ags-loyalty-text: #35312d;
  --ags-loyalty-muted: #716b64;
  --ags-loyalty-cream: #f6f2ec;
  --ags-loyalty-cream-strong: #eee6dc;
  --ags-loyalty-gold: #b88b5a;
  --ags-loyalty-line: #ded8d0;
  --ags-loyalty-white: #fff;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  color: var(--ags-loyalty-text);
  font-family: "Neue Haas Unica", sans-serif;
}

.ags-loyalty-dashboard *,
.ags-loyalty-dashboard *::before,
.ags-loyalty-dashboard *::after {
  box-sizing: border-box;
}

.ags-loyalty-dashboard > * {
  margin-top: 0;
  margin-bottom: 28px;
}

.ags-loyalty-dashboard h2,
.ags-loyalty-dashboard h3,
.ags-loyalty-dashboard h4,
.ags-loyalty-dashboard p {
  margin-top: 0;
}

.ags-loyalty-account .woocommerce-MyAccount-content {
  overflow: visible;
}

.ags-loyalty-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  min-height: 350px;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 87% 20%, rgb(216 200 181 / 24%) 0 9%, transparent 30%),
    linear-gradient(135deg, #171717, #302a25);
  color: #fff;
}

.ags-loyalty-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 330px;
  height: 330px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
}

.ags-loyalty-hero__copy,
.ags-loyalty-balance {
  position: relative;
  z-index: 1;
}

.ags-loyalty-eyebrow,
.ags-loyalty-kicker {
  margin-bottom: 12px;
  color: var(--ags-loyalty-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ags-loyalty-hero h2 {
  margin-bottom: 18px;
  color: #fff;
  font-family: "TanPearl", "Neue Haas Unica", sans-serif;
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  text-align: left;
}

.ags-loyalty-hero__lead {
  max-width: 580px;
  margin-bottom: 28px;
  color: rgb(255 255 255 / 76%);
  font-size: 17px;
  line-height: 1.6;
}

.ags-loyalty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
}

.ags-loyalty-button,
.ags-loyalty-dashboard .wlr-button,
.ags-loyalty-dashboard .woocommerce-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ags-loyalty-ink);
  border-radius: 999px;
  padding: 11px 24px;
  background: var(--ags-loyalty-ink);
  color: #fff;
  font-family: "Neue Haas Unica", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ags-loyalty-button--light {
  border-color: #fff;
  background: #fff;
  color: var(--ags-loyalty-ink);
}

.ags-loyalty-button:hover,
.ags-loyalty-button:focus-visible,
.ags-loyalty-dashboard .wlr-button:hover,
.ags-loyalty-dashboard .wlr-button:focus-visible,
.ags-loyalty-dashboard .woocommerce-button:hover,
.ags-loyalty-dashboard .woocommerce-button:focus-visible {
  border-color: var(--ags-loyalty-gold);
  background: var(--ags-loyalty-gold);
  color: #fff;
  transform: translateY(-1px);
}

.ags-loyalty-link {
  position: relative;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ags-loyalty-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 180ms ease;
}

.ags-loyalty-link:hover::after,
.ags-loyalty-link:focus-visible::after {
  transform: scaleX(1);
}

.ags-loyalty-link--dark {
  color: var(--ags-loyalty-ink);
}

.ags-loyalty-balance {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  aspect-ratio: 1;
  text-align: center;
}

.ags-loyalty-balance__label {
  margin-bottom: 8px;
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ags-loyalty-balance strong {
  max-width: 100%;
  color: #fff;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.ags-loyalty-balance__unit {
  margin-top: 7px;
  color: var(--ags-loyalty-gold);
  font-size: 15px;
  font-weight: 700;
}

.ags-loyalty-balance small {
  margin-top: 14px;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
}

.ags-loyalty-pending {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 10px;
  padding: 24px 28px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-pending__amount {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 8px;
}

.ags-loyalty-pending__amount > span {
  grid-column: 1 / -1;
  color: var(--ags-loyalty-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ags-loyalty-pending__amount strong {
  color: var(--ags-loyalty-ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ags-loyalty-pending__amount small {
  color: var(--ags-loyalty-gold);
  font-size: 14px;
  font-weight: 700;
}

.ags-loyalty-pending__copy p {
  margin-bottom: 5px;
  color: var(--ags-loyalty-ink);
  font-size: 15px;
  font-weight: 700;
}

.ags-loyalty-pending__copy small {
  display: block;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ags-loyalty-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 10px;
  background: #fff;
}

.ags-loyalty-stat {
  display: grid;
  min-width: 0;
  min-height: 150px;
  align-content: center;
  padding: 26px 30px;
}

.ags-loyalty-stat + .ags-loyalty-stat {
  border-left: 1px solid var(--ags-loyalty-line);
}

.ags-loyalty-stat > span {
  margin-bottom: 8px;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
}

.ags-loyalty-stat strong {
  color: var(--ags-loyalty-ink);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.ags-loyalty-stat small {
  margin-top: 4px;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
}

.ags-loyalty-stat a {
  width: fit-content;
  margin-top: 10px;
  color: var(--ags-loyalty-ink);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.ags-loyalty-level {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px 18px;
  align-items: baseline;
  border-left: 3px solid var(--ags-loyalty-gold);
  padding: 18px 22px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-level span,
.ags-loyalty-level p {
  color: var(--ags-loyalty-muted);
}

.ags-loyalty-level strong {
  color: var(--ags-loyalty-ink);
}

.ags-loyalty-level p {
  margin-bottom: 0;
}

.ags-loyalty-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-notice__mark {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ags-loyalty-gold);
  box-shadow: 0 0 0 6px rgb(184 139 90 / 12%);
}

.ags-loyalty-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ags-loyalty-ink);
  font-size: 16px;
}

.ags-loyalty-notice p {
  margin-bottom: 0;
  color: var(--ags-loyalty-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ags-loyalty-section {
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}

.ags-loyalty-section__heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1.2fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.ags-loyalty-section__heading h3,
.ags-loyalty-rules h3 {
  margin-bottom: 0;
  color: var(--ags-loyalty-ink);
  font-family: "TanPearl", "Neue Haas Unica", sans-serif;
  font-size: clamp(29px, 3.7vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.ags-loyalty-section__heading > p {
  margin-bottom: 3px;
  color: var(--ags-loyalty-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ags-loyalty-empty,
.ags-loyalty-dashboard .wlr-norecords-container {
  display: grid;
  min-height: 150px;
  place-content: center;
  border: 1px dashed var(--ags-loyalty-line);
  border-radius: 8px;
  padding: 28px;
  background: var(--ags-loyalty-cream);
  text-align: center;
}

.ags-loyalty-empty strong,
.ags-loyalty-dashboard .wlr-norecords-container h4 {
  margin-bottom: 7px;
  color: var(--ags-loyalty-ink);
  font-size: 18px;
}

.ags-loyalty-empty p,
.ags-loyalty-dashboard .wlr-norecords-container p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ags-loyalty-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* WPLoyalty reward flow: preserve the plugin's actions, replace its visual language. */
.ags-loyalty-dashboard #wlr-your-reward,
.ags-loyalty-dashboard .wlr-my-rewards-sections,
.ags-loyalty-dashboard .wlr-user-reward-contents,
.ags-loyalty-dashboard .wlr-rewards-container,
.ags-loyalty-dashboard .wlr-coupons-container,
.ags-loyalty-dashboard .wlr-coupons-expired-container {
  width: 100%;
}

.ags-loyalty-dashboard #wlr-your-reward > .wlr-heading-container {
  display: none;
}

.ags-loyalty-dashboard .wlr-user-reward-titles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  border: 0;
  padding: 5px;
  border-radius: 999px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-dashboard .wlr-my-rewards-title {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ags-loyalty-muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.ags-loyalty-dashboard .wlr-my-rewards-title.active {
  border: 0;
  background: var(--ags-loyalty-ink);
  color: #fff;
}

.ags-loyalty-dashboard .wlr-my-rewards-title h4,
.ags-loyalty-dashboard .wlr-my-rewards-title i,
.ags-loyalty-dashboard .wlr-my-rewards-title.active h4,
.ags-loyalty-dashboard .wlr-my-rewards-title.active i {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.ags-loyalty-dashboard .wlr-user-reward-contents > div:not(.active) {
  display: none;
}

.ags-loyalty-dashboard .wlr-customer-reward {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

.ags-loyalty-dashboard .wlr-rewards-content,
.ags-loyalty-dashboard .wlr-coupons-content,
.ags-loyalty-dashboard .wlr-coupons-expired-content {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: none;
}

.ags-loyalty-dashboard .wlr-reward-card:hover {
  border-color: var(--ags-loyalty-gold);
  box-shadow: none;
}

.ags-loyalty-dashboard .wlr-reward-type-name {
  width: fit-content;
  margin: 0 0 12px auto;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--ags-loyalty-cream);
  color: var(--ags-loyalty-muted);
  font-size: 12px;
}

.ags-loyalty-dashboard .wlr-card-container,
.ags-loyalty-dashboard .wlr-card-inner-container {
  width: 100%;
  min-width: 0;
}

.ags-loyalty-dashboard .wlr-card-icon,
.ags-loyalty-dashboard .wlr-title-icon .wlr-card-icon-container {
  color: var(--ags-loyalty-gold);
}

.ags-loyalty-dashboard .wlr-card-icon i {
  color: var(--ags-loyalty-gold);
  font-size: 34px;
}

.ags-loyalty-dashboard .wlr-name {
  margin: 0 0 7px;
  color: var(--ags-loyalty-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ags-loyalty-dashboard .wlr-description {
  color: var(--ags-loyalty-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ags-loyalty-dashboard .wlr-button-reward,
.ags-loyalty-dashboard .wlr-button-reward-apply {
  width: fit-content;
  min-width: 190px;
  margin-top: 18px;
}

.ags-loyalty-account .ags-loyalty-redeem .wlr-rewards-container .wlr-button-reward,
.ags-loyalty-account .ags-loyalty-redeem .wlr-rewards-container .wlr-point-conversion-section {
  display: none;
}

.ags-loyalty-redeem__cart-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 8px;
  padding: 16px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-redeem__cart-note p {
  max-width: 660px;
  margin: 0;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ags-loyalty-redeem__cart-note .ags-loyalty-button {
  flex: 0 0 auto;
}

.ags-loyalty-dashboard .wlr-point-conversion-section {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 8px;
  padding: 18px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-dashboard .wlr-point-conversion-section .wlrf-close {
  color: var(--ags-loyalty-muted);
  cursor: pointer;
}

.ags-loyalty-dashboard .wlr-point-conversion-section .wlr-input-point-section {
  width: 100%;
  padding: 0;
}

.ags-loyalty-dashboard .wlr-input-point-conversion {
  flex: 1 1 160px;
  overflow: hidden;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 6px 0 0 6px;
  background: #fff;
}

.ags-loyalty-dashboard .wlr-point-conversion-box {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  padding: 10px 13px;
  background: #fff;
  color: var(--ags-loyalty-ink);
  font-size: 16px;
}

.ags-loyalty-dashboard .wlr-point-label-content {
  min-height: 46px;
  border-color: var(--ags-loyalty-line);
  background: #fff;
}

.ags-loyalty-dashboard .wlr-point-label-content p {
  color: var(--ags-loyalty-ink);
  font-size: 13px;
}

.ags-loyalty-dashboard .wlr-coupon-card-header,
.ags-loyalty-dashboard .wlr-coupon-card-footer,
.ags-loyalty-dashboard .wlr-title-icon,
.ags-loyalty-dashboard .wlr-code-button {
  gap: 16px;
}

.ags-loyalty-dashboard .wlr-code {
  min-width: 160px;
  overflow: hidden;
  border-color: var(--ags-loyalty-gold);
  border-radius: 6px;
}

.ags-loyalty-dashboard .wlr-coupon-code p {
  padding: 8px 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.ags-loyalty-dashboard .wlr-revert {
  color: var(--ags-loyalty-muted);
  cursor: pointer;
}

.ags-loyalty-dashboard .wlr-coupon-pagination,
.ags-loyalty-dashboard .wlr-reward-pagination {
  margin-top: 16px;
}

/* Activity table: desktop table, readable mobile cards. */
.ags-loyalty-dashboard .wlr-transaction-blog {
  width: 100%;
  margin: 0;
}

.ags-loyalty-dashboard .wlr-transaction-blog > .wlr-heading-container {
  display: none;
}

.ags-loyalty-dashboard #wlr-transaction-table {
  width: 100%;
  overflow: visible;
}

.ags-loyalty-dashboard .wlr-table {
  width: 100%;
  border: 1px solid var(--ags-loyalty-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  table-layout: fixed;
}

.ags-loyalty-dashboard .wlr-table thead {
  outline: 0;
}

.ags-loyalty-dashboard .wlr-table th {
  border-bottom: 1px solid var(--ags-loyalty-line);
  padding: 13px 14px;
  background: var(--ags-loyalty-cream);
  color: var(--ags-loyalty-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.ags-loyalty-dashboard .wlr-table td {
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  padding: 14px;
  background: #fff;
  color: var(--ags-loyalty-text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.ags-loyalty-dashboard .wlr-table tr:last-child td {
  border-bottom: 0;
}

.ags-loyalty-dashboard .wlr-table th:nth-child(1),
.ags-loyalty-dashboard .wlr-table td:nth-child(1) {
  width: 16%;
}

.ags-loyalty-dashboard .wlr-table th:nth-child(2),
.ags-loyalty-dashboard .wlr-table td:nth-child(2) {
  width: 20%;
}

.ags-loyalty-dashboard .wlr-table th:nth-child(4),
.ags-loyalty-dashboard .wlr-table td:nth-child(4) {
  width: 13%;
  text-align: center;
}

.ags-loyalty-dashboard .wlr-table th:nth-child(5),
.ags-loyalty-dashboard .wlr-table td:nth-child(5) {
  width: 16%;
}

.ags-loyalty-dashboard .wlr-table a {
  color: var(--ags-loyalty-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.ags-loyalty-history-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 8px;
}

.ags-loyalty-history-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.ags-loyalty-history-table th {
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  padding: 13px 14px;
  background: var(--ags-loyalty-cream);
  color: var(--ags-loyalty-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.ags-loyalty-history-table td {
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  padding: 14px;
  background: #fff;
  color: var(--ags-loyalty-text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.ags-loyalty-history-table tr:last-child td {
  border-bottom: 0;
}

.ags-loyalty-history-table th:nth-child(1),
.ags-loyalty-history-table td:nth-child(1) {
  width: 16%;
}

.ags-loyalty-history-table th:nth-child(2),
.ags-loyalty-history-table td:nth-child(2) {
  width: 23%;
}

.ags-loyalty-history-table th:nth-child(4),
.ags-loyalty-history-table td:nth-child(4) {
  width: 16%;
  text-align: right;
}

.ags-loyalty-history-table__amount {
  font-weight: 800;
  white-space: nowrap;
}

.ags-loyalty-history-table__amount.is-credit { color: #386b4b; }
.ags-loyalty-history-table__amount.is-debit { color: #9b4339; }

.ags-loyalty-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--ags-loyalty-line);
  padding: 12px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-pagination a {
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: var(--ags-loyalty-ink);
  font-size: 12px;
  font-weight: 700;
}

/* Ways to earn. */
.ags-loyalty-campaigns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ags-loyalty-campaign {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 230px;
  align-content: start;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.ags-loyalty-campaign:hover {
  border-color: var(--ags-loyalty-gold);
  transform: translateY(-2px);
}

.ags-loyalty-campaign__index {
  margin-bottom: 26px;
  color: var(--ags-loyalty-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ags-loyalty-campaign__amount {
  position: absolute;
  top: 22px;
  right: 22px;
  max-width: calc(100% - 74px);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--ags-loyalty-cream);
  color: var(--ags-loyalty-ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ags-loyalty-campaign h4 {
  margin-bottom: 10px;
  color: var(--ags-loyalty-ink);
  font-size: 18px;
  line-height: 1.25;
}

.ags-loyalty-campaign p {
  margin-bottom: 0;
  color: var(--ags-loyalty-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ags-loyalty-campaign a {
  width: fit-content;
  margin-top: 16px;
  color: var(--ags-loyalty-ink);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.ags-loyalty-rules {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(300px, 1.35fr);
  gap: 32px 44px;
  align-items: start;
  border-radius: 10px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-rules ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ags-loyalty-rules li {
  min-width: 0;
  padding: 4px 18px;
}

.ags-loyalty-rules li + li {
  border-left: 1px solid var(--ags-loyalty-line);
}

.ags-loyalty-rules li strong,
.ags-loyalty-rules li span {
  display: block;
}

.ags-loyalty-rules li strong {
  margin-bottom: 7px;
  color: var(--ags-loyalty-ink);
  font-size: 18px;
}

.ags-loyalty-rules li span {
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ags-loyalty-rules > .ags-loyalty-link {
  grid-column: 2;
  width: fit-content;
}

.ags-loyalty-preferences {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0;
  border-top: 1px solid var(--ags-loyalty-line);
  padding-top: 20px;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
}

.ags-loyalty-preferences input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--ags-loyalty-ink);
}

/* Cart, checkout, registration, product and thank-you touchpoints. */
.woocommerce .wlr-message-info {
  gap: 13px;
  width: 100%;
  margin: 12px 0;
  border: 1px solid #d8c8b5;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f8f4ee;
  color: #292623;
  font-family: "Neue Haas Unica", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.woocommerce .wlr-message-info > i,
.woocommerce .wlr-message-info .wlrf-point {
  flex: 0 0 auto;
  margin: 0;
  color: #b88b5a;
  font-size: 24px;
}

.woocommerce .wlr-message-info p {
  margin: 0;
}

.woocommerce .wlr-message-info a,
#wlr-reward-link {
  color: #171717;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-account #wlr_dob,
.woocommerce-checkout #wlr_dob,
.woocommerce-form-register #wlr_dob {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  padding: 10px 13px;
  background: #fff;
  color: #171717;
  font: inherit;
}

.woocommerce-account #wlr_dob:focus,
.woocommerce-checkout #wlr_dob:focus,
.woocommerce-form-register #wlr_dob:focus {
  border-color: #171717;
  outline: 2px solid rgb(184 139 90 / 24%);
  outline-offset: 1px;
}

.alertify .ajs-dialog {
  width: min(760px, 92vw);
  max-width: min(760px, 92vw) !important;
  border-radius: 10px;
}

.alertify .ajs-header {
  display: none;
}

.alertify .ajs-body .ajs-content {
  padding: 22px;
}

.alertify .ajs-footer {
  border-top: 1px solid #ded8d0;
  padding: 12px 18px;
  background: #fff;
}

.alertify .ajs-footer .ajs-buttons .ajs-button {
  min-height: 42px;
  border: 1px solid #171717;
  border-radius: 999px;
  padding: 9px 22px;
  background: #171717;
  color: #fff;
  font-weight: 700;
}

.alertify .wlr-myaccount-page {
  width: 100%;
  max-height: min(72vh, 720px);
  overflow-y: auto;
  padding: 0;
}

.alertify .wlr-myaccount-page .wlr-heading {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  color: #171717;
  font-family: "TanPearl", "Neue Haas Unica", sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.alertify .wlr-myaccount-page #wlr-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.alertify .wlr-myaccount-page #wlr-available-points,
.alertify .wlr-myaccount-page #wlr-redeemed-points,
.alertify .wlr-myaccount-page #wlr-used-rewards {
  width: 100%;
  border-color: #ded8d0;
  border-radius: 8px;
  padding: 14px;
  background: #f8f4ee;
}

@media screen and (max-width: 1050px) {
  .ags-loyalty-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .ags-loyalty-balance {
    min-height: 210px;
  }

  .ags-loyalty-rules {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-rules > .ags-loyalty-link {
    grid-column: 1;
  }
}

@media screen and (max-width: 899px) {
  .ags-loyalty-dashboard {
    width: 100%;
  }

  .ags-loyalty-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr);
  }

  .ags-loyalty-section__heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ags-loyalty-campaigns {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-campaign {
    min-height: 205px;
  }

  .ags-loyalty-dashboard .wlr-table {
    border: 0;
    border-radius: 0;
  }

  .ags-loyalty-dashboard .wlr-table thead {
    display: none;
  }

  .ags-loyalty-dashboard .wlr-table tbody,
  .ags-loyalty-dashboard .wlr-table tr,
  .ags-loyalty-dashboard .wlr-table td {
    display: block;
    width: 100%;
  }

  .ags-loyalty-dashboard .wlr-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--ags-loyalty-line);
    border-radius: 8px;
    background: #fff;
  }

  .ags-loyalty-dashboard .wlr-table td {
    min-width: 0;
    border-bottom: 1px solid var(--ags-loyalty-line);
    padding: 13px 14px;
    font-size: 14px !important;
    text-align: left;
  }

  .ags-loyalty-dashboard .wlr-table td:nth-child(3),
  .ags-loyalty-dashboard .wlr-table td:nth-child(5),
  .ags-loyalty-dashboard .wlr-table td[colspan] {
    grid-column: 1 / -1;
  }

  .ags-loyalty-dashboard .wlr-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--ags-loyalty-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .ags-loyalty-dashboard .wlr-table td:nth-child(1)::before { content: "Замовлення"; }
  .ags-loyalty-dashboard .wlr-table td:nth-child(2)::before { content: "Операція"; }
  .ags-loyalty-dashboard .wlr-table td:nth-child(3)::before { content: "Деталі"; }
  .ags-loyalty-dashboard .wlr-table td:nth-child(4)::before { content: "Бонуси"; }
  .ags-loyalty-dashboard .wlr-table td:nth-child(5)::before { content: "Винагорода"; }
  .ags-loyalty-dashboard .wlr-table td[colspan]::before { content: none; }

  .ags-loyalty-history-table {
    overflow: visible;
    border: 0;
  }

  .ags-loyalty-history-table table,
  .ags-loyalty-history-table tbody,
  .ags-loyalty-history-table tr,
  .ags-loyalty-history-table td {
    display: block;
    width: 100%;
  }

  .ags-loyalty-history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ags-loyalty-history-table tr {
    display: grid;
    grid-template-columns: minmax(110px, 0.36fr) minmax(0, 0.64fr);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--ags-loyalty-line);
    border-radius: 8px;
    background: #fff;
  }

  .ags-loyalty-history-table td,
  .ags-loyalty-history-table td:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(86px, 0.34fr) minmax(0, 0.66fr);
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid var(--ags-loyalty-line);
    padding: 12px 14px;
    text-align: left;
  }

  .ags-loyalty-history-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .ags-loyalty-history-table td:last-child {
    border-bottom: 0;
  }

  .ags-loyalty-history-table td::before {
    content: attr(data-label);
    color: var(--ags-loyalty-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .ags-loyalty-pagination {
    border: 1px solid var(--ags-loyalty-line);
    border-radius: 8px;
  }
}

@media screen and (max-width: 720px) {
  .ags-loyalty-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ags-loyalty-balance {
    width: min(230px, 78vw);
    min-height: 0;
    margin-inline: auto;
  }

  .ags-loyalty-summary {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-pending {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
  }

  .ags-loyalty-stat {
    min-height: 125px;
  }

  .ags-loyalty-stat + .ags-loyalty-stat {
    border-top: 1px solid var(--ags-loyalty-line);
    border-left: 0;
  }

  .ags-loyalty-dashboard .wlr-user-reward-titles {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .ags-loyalty-dashboard .wlr-my-rewards-title {
    border-radius: 6px;
  }

  .ags-loyalty-dashboard .wlr-coupon-card-header,
  .ags-loyalty-dashboard .wlr-coupon-card-footer,
  .ags-loyalty-dashboard .wlr-title-icon,
  .ags-loyalty-dashboard .wlr-code-button {
    flex-direction: column;
    align-items: stretch;
  }

  .ags-loyalty-dashboard .wlr-button-reward,
  .ags-loyalty-dashboard .wlr-button-reward-apply,
  .ags-loyalty-dashboard .wlr-code {
    width: 100%;
    min-width: 0;
  }

  .ags-loyalty-redeem__cart-note {
    flex-direction: column;
    align-items: stretch;
  }

  .ags-loyalty-rules ul {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-rules li {
    padding: 14px 0;
  }

  .ags-loyalty-rules li + li {
    border-top: 1px solid var(--ags-loyalty-line);
    border-left: 0;
  }

  .alertify .wlr-myaccount-page #wlr-points {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 420px) {
  .ags-loyalty-dashboard > * {
    margin-bottom: 20px;
  }

  .ags-loyalty-hero {
    gap: 28px;
    border-radius: 8px;
    padding: 28px 22px;
  }

  .ags-loyalty-hero h2 {
    font-size: 40px;
  }

  .ags-loyalty-hero__lead {
    font-size: 15px;
  }

  .ags-loyalty-actions,
  .ags-loyalty-actions .ags-loyalty-button {
    width: 100%;
  }

  .ags-loyalty-stat,
  .ags-loyalty-section,
  .ags-loyalty-rules {
    padding: 22px 18px;
  }

  .ags-loyalty-notice {
    padding: 17px;
  }

  .ags-loyalty-dashboard .wlr-rewards-content,
  .ags-loyalty-dashboard .wlr-coupons-content,
  .ags-loyalty-dashboard .wlr-coupons-expired-content {
    padding: 17px;
  }

  .ags-loyalty-dashboard .wlr-point-conversion-section {
    padding: 14px;
  }

  .ags-loyalty-dashboard .wlr-point-conversion-section .wlr-input-point-section {
    flex-direction: column;
  }

  .ags-loyalty-dashboard .wlr-input-point-conversion,
  .ags-loyalty-dashboard .wlr-point-label-content {
    width: 100%;
    border: 1px solid var(--ags-loyalty-line);
    border-radius: 6px;
  }

  .ags-loyalty-dashboard .wlr-table tr {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-dashboard .wlr-table td:nth-child(n) {
    grid-column: 1;
  }

  .ags-loyalty-history-table tr {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-history-table td:nth-child(n) {
    grid-column: 1;
  }

  .ags-loyalty-campaign {
    min-height: 0;
    padding: 20px;
  }

  .alertify .ajs-body .ajs-content {
    padding: 14px;
  }
}

/*
 * Minimal account presentation.
 * This final block intentionally neutralizes the older landing-page treatment
 * while leaving WPLoyalty actions and data intact.
 */
.ags-loyalty-dashboard {
  --ags-loyalty-ink: #201600;
  --ags-loyalty-text: #404040;
  --ags-loyalty-muted: #68645f;
  --ags-loyalty-cream: #f9f9f9;
  --ags-loyalty-cream-strong: #f3f1ee;
  --ags-loyalty-gold: #8d6235;
  --ags-loyalty-line: #dedbd7;
  align-items: stretch;
  color: var(--ags-loyalty-text);
  font-family: inherit;
}

.ags-loyalty-dashboard > * {
  margin-top: 0;
  margin-bottom: 0;
}

.ags-loyalty-dashboard h2,
.ags-loyalty-dashboard h3,
.ags-loyalty-dashboard h4,
.ags-loyalty-dashboard strong,
.ags-loyalty-dashboard .ags-loyalty-button,
.ags-loyalty-dashboard .wlr-button,
.ags-loyalty-dashboard .woocommerce-button {
  font-family: "Neue Haas Unica", sans-serif;
}

.ags-loyalty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: clamp(32px, 5vw, 60px);
  min-height: 0;
  align-items: stretch;
  overflow: visible;
  border-top: 1px solid var(--ags-loyalty-line);
  border-bottom: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  padding: 34px 0;
  background: #fff;
  color: var(--ags-loyalty-text);
}

.ags-loyalty-hero::after {
  display: none;
  content: none;
}

.ags-loyalty-hero__copy,
.ags-loyalty-balance {
  position: static;
  z-index: auto;
}

.ags-loyalty-eyebrow {
  margin: 0 0 10px;
  color: var(--ags-loyalty-gold);
  font-family: "Neue Haas Unica", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ags-loyalty-kicker,
.ags-loyalty-campaign__index,
.ags-loyalty-notice__mark {
  display: none;
}

.ags-loyalty-hero h2 {
  margin: 0 0 12px;
  color: var(--ags-loyalty-ink);
  font-family: "Neue Haas Unica", sans-serif;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
  text-align: left;
}

.ags-loyalty-hero__lead {
  max-width: 610px;
  margin: 0 0 17px;
  color: var(--ags-loyalty-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ags-loyalty-link,
.ags-loyalty-link--dark {
  width: fit-content;
  color: var(--ags-loyalty-ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: #c49564;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ags-loyalty-link::after {
  display: none;
  content: none;
}

.ags-loyalty-link:hover,
.ags-loyalty-link:focus-visible {
  color: var(--ags-loyalty-gold);
}

.ags-loyalty-link:focus-visible,
.ags-loyalty-button:focus-visible,
.ags-loyalty-dashboard .wlr-button:focus-visible,
.ags-loyalty-dashboard .woocommerce-button:focus-visible,
.ags-loyalty-dashboard .wlr-my-rewards-title:focus-visible {
  outline: 2px solid #c49564;
  outline-offset: 3px;
}

.ags-loyalty-balance {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  aspect-ratio: auto;
  padding: 6px 0 6px 32px;
  text-align: left;
}

.ags-loyalty-balance__label {
  margin: 0 0 6px;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.ags-loyalty-balance strong {
  max-width: 100%;
  color: var(--ags-loyalty-ink);
  font-size: clamp(42px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
}

.ags-loyalty-balance__unit {
  margin-top: 5px;
  color: var(--ags-loyalty-ink);
  font-size: 15px;
  font-weight: 400;
}

.ags-loyalty-balance small {
  margin-top: 12px;
  color: var(--ags-loyalty-muted);
  font-size: 12px;
}

.ags-loyalty-balance__hint {
  max-width: 230px;
  margin-top: 7px;
  color: var(--ags-loyalty-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ags-loyalty-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  background: #fff;
}

.ags-loyalty-stat {
  display: grid;
  min-height: 0;
  align-content: start;
  padding: 23px 24px 24px 0;
}

.ags-loyalty-stat + .ags-loyalty-stat {
  border-left: 1px solid var(--ags-loyalty-line);
  padding-left: 24px;
}

.ags-loyalty-stat > span {
  margin-bottom: 7px;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
}

.ags-loyalty-stat strong {
  color: var(--ags-loyalty-ink);
  font-size: clamp(23px, 2.6vw, 29px);
  font-weight: 400;
  line-height: 1.15;
}

.ags-loyalty-stat small,
.ags-loyalty-stat a {
  margin-top: 5px;
  color: var(--ags-loyalty-muted);
  font-size: 12px;
  font-weight: 400;
}

.ags-loyalty-stat a {
  width: fit-content;
  color: var(--ags-loyalty-ink);
  text-decoration-color: #c49564;
  text-underline-offset: 3px;
}

.ags-loyalty-level {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px 18px;
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  padding: 18px 0;
  background: #fff;
}

.ags-loyalty-section {
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  padding: 38px 0;
  background: #fff;
}

.ags-loyalty-section__heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: 24px;
}

.ags-loyalty-section__heading h3,
.ags-loyalty-rules h3 {
  margin: 0;
  color: var(--ags-loyalty-ink);
  font-family: "Neue Haas Unica", sans-serif;
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.ags-loyalty-section__heading > p {
  margin: 1px 0 0;
  color: var(--ags-loyalty-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ags-loyalty-empty,
.ags-loyalty-dashboard .wlr-norecords-container {
  display: block;
  min-height: 0;
  border: 0;
  border-left: 2px solid #c49564;
  border-radius: 0;
  padding: 15px 18px;
  background: var(--ags-loyalty-cream);
  text-align: left;
}

.ags-loyalty-empty strong,
.ags-loyalty-dashboard .wlr-norecords-container h4 {
  display: block;
  margin: 0 0 4px;
  color: var(--ags-loyalty-ink);
  font-size: 15px;
  font-weight: 800;
}

.ags-loyalty-empty p,
.ags-loyalty-dashboard .wlr-norecords-container p {
  max-width: none;
  margin: 0;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ags-loyalty-dashboard .wlr-my-rewards-sections {
  gap: 0;
  margin: 0;
}

.ags-loyalty-dashboard .wlr-user-reward-titles {
  display: flex;
  grid-template-columns: none;
  gap: 24px;
  overflow-x: auto;
  margin: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.ags-loyalty-dashboard .wlr-my-rewards-title,
.ags-loyalty-dashboard .wlr-my-rewards-title.active {
  display: flex;
  min-width: max-content;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 0 9px;
  background: transparent;
  color: var(--ags-loyalty-muted);
}

.ags-loyalty-dashboard .wlr-my-rewards-title.active {
  border-bottom-color: var(--ags-loyalty-ink);
  color: var(--ags-loyalty-ink);
}

.ags-loyalty-dashboard .wlr-my-rewards-title i {
  display: none;
}

.ags-loyalty-dashboard .wlr-my-rewards-title h4,
.ags-loyalty-dashboard .wlr-my-rewards-title.active h4 {
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
}

.ags-loyalty-dashboard .wlr-my-rewards-title.active h4 {
  font-weight: 800;
}

.ags-loyalty-dashboard .wlr-customer-reward {
  display: block;
}

.ags-loyalty-dashboard .wlr-rewards-content,
.ags-loyalty-dashboard .wlr-coupons-content,
.ags-loyalty-dashboard .wlr-coupons-expired-content {
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  padding: 0 0 20px;
  background: #fff;
  box-shadow: none;
}

.ags-loyalty-dashboard .wlr-reward-card,
.ags-loyalty-dashboard .wlr-reward-card:hover {
  min-height: 0;
  border-color: var(--ags-loyalty-line);
  box-shadow: none;
  transform: none;
}

.ags-loyalty-dashboard .wlr-reward-type-name,
.ags-loyalty-dashboard .wlr-card-icon-container,
.ags-loyalty-dashboard .wlr-card-icon,
.ags-loyalty-dashboard .wlr-norecords-container i {
  display: none;
}

.ags-loyalty-dashboard .wlr-card-container,
.ags-loyalty-dashboard .wlr-card-inner-container,
.ags-loyalty-dashboard .wlr-reward-card .wlr-card-container {
  min-height: 0;
  margin-top: 0 !important;
}

.ags-loyalty-dashboard .wlr-name {
  margin: 0 0 6px !important;
  color: var(--ags-loyalty-ink);
  font-family: "Neue Haas Unica", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.ags-loyalty-dashboard .wlr-description,
.ags-loyalty-dashboard .wlr-pre-text {
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  word-spacing: normal;
}

.ags-loyalty-dashboard .add-read-more .sec-half {
  display: inline !important;
}

.ags-loyalty-dashboard .add-read-more .read-more,
.ags-loyalty-dashboard .add-read-more .read-less,
.ags-loyalty-dashboard .wlr-code {
  display: none !important;
}

.ags-loyalty-button,
.ags-loyalty-dashboard .wlr-button,
.ags-loyalty-dashboard .woocommerce-button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 13px 20px;
  background: var(--ags-loyalty-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.ags-loyalty-button--light {
  background: var(--ags-loyalty-ink);
  color: #fff;
}

.ags-loyalty-button:hover,
.ags-loyalty-button:focus-visible,
.ags-loyalty-dashboard .wlr-button:hover,
.ags-loyalty-dashboard .wlr-button:focus-visible,
.ags-loyalty-dashboard .woocommerce-button:hover,
.ags-loyalty-dashboard .woocommerce-button:focus-visible {
  border-color: transparent;
  background: #000;
  color: #fff;
  transform: none;
}

.ags-loyalty-account .ags-loyalty-redeem .wlr-rewards-container .wlr-button-reward,
.ags-loyalty-account .ags-loyalty-redeem .wlr-rewards-container .wlr-point-conversion-section {
  display: none;
}

.ags-loyalty-redeem__cart-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  border: 0;
  border-top: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  padding: 18px 0 0;
  background: transparent;
}

.ags-loyalty-redeem__cart-note p {
  max-width: 600px;
  margin: 0;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ags-loyalty-history-table {
  overflow: hidden;
  border: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
}

.ags-loyalty-history-table th {
  padding: 12px 14px;
  background: var(--ags-loyalty-cream);
  color: var(--ags-loyalty-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ags-loyalty-history-table td {
  padding: 14px;
  color: var(--ags-loyalty-text);
  font-size: 13px;
  line-height: 1.5;
}

.ags-loyalty-history-table th:nth-child(n),
.ags-loyalty-history-table td:nth-child(n) {
  width: auto;
  text-align: left;
}

.ags-loyalty-history-table th:nth-child(1),
.ags-loyalty-history-table td:nth-child(1) {
  width: 18%;
}

.ags-loyalty-history-table th:nth-child(2),
.ags-loyalty-history-table td:nth-child(2) {
  width: 64%;
}

.ags-loyalty-history-table th:nth-child(3),
.ags-loyalty-history-table td:nth-child(3) {
  width: 18%;
  text-align: right;
}

.ags-loyalty-history-table__reason strong,
.ags-loyalty-history-table__reason span {
  display: block;
}

.ags-loyalty-history-table__reason strong {
  margin-bottom: 2px;
  color: var(--ags-loyalty-ink);
  font-family: inherit;
  font-weight: 800;
}

.ags-loyalty-history-table__reason span {
  color: var(--ags-loyalty-muted);
  font-size: 12px;
}

.ags-loyalty-history-table__amount {
  font-weight: 800;
}

.ags-loyalty-history-table__amount.is-credit {
  color: #2f6545;
}

.ags-loyalty-history-table__amount.is-debit {
  color: #8e372f;
}

.ags-loyalty-pagination {
  gap: 8px;
  padding: 10px;
  background: var(--ags-loyalty-cream);
}

.ags-loyalty-pagination a {
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 400;
}

.ags-loyalty-campaigns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ags-loyalty-line);
}

.ags-loyalty-campaign,
.ags-loyalty-campaign:hover {
  position: static;
  display: grid;
  grid-template-columns: minmax(128px, 0.28fr) minmax(170px, 0.5fr) minmax(240px, 1fr);
  gap: 6px 24px;
  min-height: 0;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--ags-loyalty-line);
  border-radius: 0;
  padding: 18px 0;
  transform: none;
}

.ags-loyalty-campaign__amount {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ags-loyalty-ink);
  font-family: "Neue Haas Unica", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.ags-loyalty-campaign h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--ags-loyalty-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.ags-loyalty-campaign p {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--ags-loyalty-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ags-loyalty-campaign a {
  grid-column: 2;
  grid-row: 2;
  width: fit-content;
  margin: 0;
  color: var(--ags-loyalty-ink);
  font-size: 12px;
  font-weight: 400;
  text-decoration-color: #c49564;
}

.ags-loyalty-preferences {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  border: 0;
  padding: 20px 0 0;
  color: var(--ags-loyalty-text);
}

.ags-loyalty-preferences input {
  margin-top: 2px;
  accent-color: var(--ags-loyalty-ink);
}

.ags-loyalty-preferences__copy label,
.ags-loyalty-preferences__copy small {
  display: block;
}

.ags-loyalty-preferences__copy label {
  color: var(--ags-loyalty-ink);
  font-size: 13px;
  font-weight: 800;
}

.ags-loyalty-preferences__copy small {
  max-width: 650px;
  margin-top: 3px;
  color: var(--ags-loyalty-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media screen and (max-width: 899px) {
  .ags-loyalty-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.4fr);
  }

  .ags-loyalty-section__heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ags-loyalty-history-table td:nth-child(1),
  .ags-loyalty-history-table td:nth-child(2),
  .ags-loyalty-history-table td:nth-child(3) {
    width: 100%;
  }

  .ags-loyalty-history-table tr {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 0;
  }

  .ags-loyalty-history-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .ags-loyalty-history-table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ags-loyalty-history-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .ags-loyalty-history-table td:nth-child(3)::before {
    text-align: right;
  }

  .ags-loyalty-campaign,
  .ags-loyalty-campaign:hover {
    grid-template-columns: minmax(120px, 0.32fr) minmax(160px, 0.56fr) minmax(220px, 1fr);
  }
}

@media screen and (max-width: 720px) {
  .ags-loyalty-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .ags-loyalty-balance {
    width: 100%;
    min-height: 0;
    margin: 0;
    border-top: 1px solid var(--ags-loyalty-line);
    border-left: 0;
    padding: 22px 0 0;
  }

  .ags-loyalty-summary {
    grid-template-columns: 1fr;
  }

  .ags-loyalty-stat {
    min-height: 0;
    padding: 19px 0;
  }

  .ags-loyalty-stat + .ags-loyalty-stat {
    border-top: 1px solid var(--ags-loyalty-line);
    border-left: 0;
    padding-left: 0;
  }

  .ags-loyalty-dashboard .wlr-user-reward-titles {
    display: flex;
    grid-template-columns: none;
    border-radius: 0;
  }

  .ags-loyalty-dashboard .wlr-my-rewards-title,
  .ags-loyalty-dashboard .wlr-my-rewards-title.active {
    border-radius: 0;
  }

  .ags-loyalty-redeem__cart-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .ags-loyalty-campaign,
  .ags-loyalty-campaign:hover {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 16px;
    padding: 17px 0;
  }

  .ags-loyalty-campaign h4 {
    grid-column: 1;
    grid-row: 1;
  }

  .ags-loyalty-campaign__amount {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .ags-loyalty-campaign p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ags-loyalty-campaign a {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media screen and (max-width: 420px) {
  .ags-loyalty-hero {
    gap: 22px;
    border-radius: 0;
    padding: 24px 0;
  }

  .ags-loyalty-hero h2 {
    font-size: 28px;
  }

  .ags-loyalty-section,
  .ags-loyalty-rules {
    padding: 30px 0;
  }

  .ags-loyalty-dashboard .wlr-rewards-content,
  .ags-loyalty-dashboard .wlr-coupons-content,
  .ags-loyalty-dashboard .wlr-coupons-expired-content {
    padding: 0 0 18px;
  }

  .ags-loyalty-history-table td,
  .ags-loyalty-history-table td:nth-child(n) {
    grid-template-columns: minmax(76px, 0.34fr) minmax(0, 0.66fr);
    padding: 11px 12px;
  }
}

/* Keep earnings secondary to the order total, in the same review table. */
.woocommerce table.shop_table .ags-checkout-bonus-notice > td {
  border-left: 1px solid #e2e2e2;
}

.woocommerce .ags-checkout-bonus-notice .ags-checkout-bonus-message {
  margin: 0;
  padding: 0;
  text-align: left;
}

.woocommerce .ags-checkout-bonus-notice .ags-checkout-bonus-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #35312d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.woocommerce .ags-checkout-bonus-notice .ags-checkout-bonus-amount {
  flex-shrink: 0;
  font-weight: 500;
  white-space: nowrap;
}

.woocommerce .ags-checkout-bonus-notice .ags-checkout-bonus-explanation {
  margin: 6px 0 0;
  color: #716b64;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.woocommerce .ags-checkout-bonus-notice .ags-checkout-bonus-explanation a {
  color: #35312d;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce .ags-checkout-bonus-notice .ags-checkout-bonus-explanation a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* One checkout surface for delivery and redemption thresholds. */
.woocommerce .ags-checkout-hints {
  box-sizing: border-box;
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fafafa;
  color: #292623;
}

.woocommerce .ags-checkout-hints[hidden] { display: none; }
.woocommerce .ags-checkout-hints .ags-checkout-hints__title {
  margin: 0 0 18px;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.ags-checkout-hints__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ags-checkout-hints__item { min-width: 0; }
.ags-checkout-hints__item:only-child { grid-column: 1 / -1; }
.ags-checkout-hints__item + .ags-checkout-hints__item {
  padding-left: 24px;
  border-left: 1px solid #e2e2e2;
}

.ags-checkout-hints__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.ags-checkout-hints__status { flex-shrink: 0; white-space: nowrap; }
.ags-checkout-hints__track {
  height: 4px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 2px;
  background: #e8e5e1;
}

.ags-checkout-hints__track > span {
  display: block;
  height: 100%;
  background: #9b8063;
}

.woocommerce .ags-checkout-hints .ags-checkout-hints__note,
.woocommerce .ags-checkout-hints .ags-checkout-hints__account {
  margin: 0;
  color: #716b64;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.woocommerce .ags-checkout-hints .ags-checkout-hints__account { margin-top: 8px; }
.woocommerce .ags-checkout-hints a,
.woocommerce .ags-checkout-hints #wlr-reward-link {
  color: #35312d;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce .ags-checkout-hints a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .woocommerce .ags-checkout-hints { padding: 16px; }
  .ags-checkout-hints__items { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ags-checkout-hints__item + .ags-checkout-hints__item {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid #e2e2e2;
  }
}

/* Checkout consent and breathing room before the footer. */
.woocommerce-checkout form.checkout {
  padding-bottom: 64px;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-link {
  font-weight: 500;
  text-underline-offset: 2px;
}

.woocommerce-checkout #payment #terms {
  top: 3px;
}

@media screen and (max-width: 767px) {
  .woocommerce-checkout form.checkout {
    padding-bottom: 40px;
  }
}

/* Checkout guidance: give notices and the coupon their own breathing room. */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid #ded8d0;
  border-radius: 6px;
  background: #f8f4ee;
  color: #35312d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle a,
.woocommerce-checkout .woocommerce-form-login-toggle a {
  color: #35312d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle a:focus-visible,
.woocommerce-checkout .woocommerce-form-login-toggle a:focus-visible {
  outline: 2px solid #9b8063;
  outline-offset: 3px;
}

.woocommerce-checkout form.checkout_coupon {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #ded8d0;
  border-radius: 6px;
}

.woocommerce-checkout form.checkout_coupon > p {
  font-size: 14px;
  line-height: 1.55;
}

/* Coupon errors also appear outside the checkout validation notice group. */
.woocommerce-checkout .woocommerce .woocommerce-error,
.woocommerce-checkout .woocommerce .woocommerce-NoticeGroup-checkout .woocommerce-error {
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid #e4c7c1;
  border-radius: 6px;
  background: #fcf5f3;
  box-shadow: none;
  color: #8a3b30;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  list-style: none;
  overflow-wrap: anywhere;
}

.woocommerce-checkout .woocommerce .woocommerce-error::before,
.woocommerce-checkout .woocommerce .woocommerce-error li::before {
  display: none;
}

.woocommerce-checkout .woocommerce .woocommerce-error li,
.woocommerce-checkout .woocommerce .woocommerce-NoticeGroup-checkout .woocommerce-error li {
  margin: 0;
  padding: 0;
  color: inherit;
  font-weight: 400;
  list-style: none;
}

.woocommerce-checkout .woocommerce .woocommerce-error li + li {
  margin-top: 8px;
}

.woocommerce-checkout .woocommerce .woocommerce-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .woocommerce-checkout .entry-header .entry-title {
    margin: 20px 0 24px;
    font-size: 30px;
    line-height: 1.2;
  }

  .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
  .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
  .woocommerce-checkout .woocommerce .woocommerce-error,
  .woocommerce-checkout .woocommerce .woocommerce-NoticeGroup-checkout .woocommerce-error,
  .woocommerce-checkout form.checkout_coupon {
    padding: 14px 16px;
  }

  .woocommerce-checkout .ags-checkout-hints__heading {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .woocommerce-checkout form.checkout_coupon .form-row {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}
