.perks-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 68px;
}
.perks-copy h1 {
  font-size: clamp(40px, 4.2vw, 65px);
  line-height: 1.3;
  letter-spacing: -1.8px;
  margin: 18px 0 24px;
}
.perks-copy > p:not(.lead) {
  max-width: 470px;
  color: #685347;
  font-size: 18px;
  line-height: 1.9;
  margin: 18px 0 28px;
}
.perks-copy .lead {
  font-size: 22px;
  line-height: 1.8;
}
.perks-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
}
.perks-hero-art {
  position: relative;
  border-radius: 140px 30px 30px 30px;
  background: #ffe0b7;
  padding: 10px;
  transform: rotate(1deg);
  box-shadow: 0 20px 65px #86441814;
}
.perks-hero-art:before {
  content: "✦";
  position: absolute;
  z-index: 2;
  left: -28px;
  top: 48px;
  color: #e5752b;
  font-size: 64px;
  line-height: 1;
}
.perks-hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.35;
  object-fit: cover;
  object-position: 57% center;
  border-radius: 130px 22px 22px 22px;
  display: block;
}
.perks-art-note {
  position: absolute;
  bottom: 26px;
  left: 32px;
  right: 32px;
  width: max-content;
  max-width: calc(100% - 64px);
  background: #fff9ecf2;
  padding: 12px 20px;
  border-radius: 12px;
  color: #80451f;
  font-size: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 30px #763e2310;
}
.perks-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #815133;
}
.perks-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-block: 30px 34px;
  border-top: 1px solid #e8d8c4;
  border-bottom: 1px solid #e8d8c4;
}
.perks-intro > div {
  padding: 0 36px;
  position: relative;
}
.perks-intro > div:first-child {
  padding-left: 0;
}
.perks-intro > div + div {
  border-left: 1px solid #e8d8c4;
}
.perks-intro span {
  color: #d46b29;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
}
.perks-intro h2 {
  font-size: 24px;
  line-height: 1.6;
  margin: 9px 0;
}
.perks-intro p {
  font-size: 16px;
  color: #6f5947;
  line-height: 1.8;
  margin: 0;
}
.perks-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding-top: 94px;
  padding-bottom: 100px;
  align-items: center;
  scroll-margin-top: 130px;
}
.perks-access-copy h2 {
  font-size: 44px;
  line-height: 1.4;
  margin: 20px 0;
}
.perks-access-copy p {
  font-size: 18px;
  line-height: 1.9;
  color: #6d5544;
}
.perks-access-copy > img {
  width: 245px;
  height: 150px;
  object-fit: contain;
  margin-top: 0;
}
.perks-login-card {
  padding: 40px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid #ead6bd;
  box-shadow: 0 18px 70px #8d4c1c0b;
}
.perks-gift {
  display: grid;
  place-items: center;
  background: #fff0d9;
  color: #d96b28;
  width: 60px;
  height: 60px;
  font-size: 38px;
  border-radius: 18px;
}
.perks-login-card h2 {
  font-size: 28px;
  margin: 22px 0 12px;
}
.perks-login-card p {
  font-size: 17px;
  color: #6e5546;
  line-height: 1.8;
}
.perks-login-card small {
  display: block;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
  color: #725b4b;
}
.perks-login-card form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.perks-login-card label {
  font-weight: 700;
  font-size: 17px;
}
.perks-login-card input,
.perks-dialog select,
.perks-activity-filter input,
.perks-activity-filter select {
  width: 100%;
  font: inherit;
  line-height: 1.6;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #ad9480;
  border-radius: 11px;
  background: #fff;
  color: #3c2d23;
}
.perks-form-status {
  margin: 0 !important;
  color: #a33325 !important;
  font-size: 16px !important;
  line-height: 1.8;
}
.perks-form-status:empty {
  display: none;
}
.perks-dashboard-wrap {
  padding-top: 48px;
  padding-bottom: 84px;
}
.perks-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.perks-greeting h1 {
  font-size: 32px;
  line-height: 1.6;
  margin: 12px 0 6px;
}
.perks-greeting h1 span {
  color: #aa4a21;
}
.perks-greeting p {
  font-size: 16px;
  color: #6c5749;
  margin: 0;
}
.perks-greeting-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.perks-greeting-actions .button {
  min-height: 44px;
  font-size: 15px;
  padding: 10px 16px;
}
.perks-logout {
  background: none;
  border: 0;
  color: #6d4a34;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}
.perks-updated {
  font-size: 14px;
  color: #6b5848;
  margin-bottom: 24px;
}
.perks-balance-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.perks-points-card,
.perks-credit-card {
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  isolation: isolate;
}
.perks-points-card {
  background: linear-gradient(125deg, #fee2b3, #fff4df);
  color: #683a1e;
  border: 1px solid #f1ca95;
  min-height: 330px;
}
.perks-card-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
}
.perks-points-card h2,
.perks-credit-card h2 {
  font-size: 24px;
  line-height: 1.6;
  margin: 20px 0 14px;
  position: relative;
  z-index: 1;
}
.perks-big-value {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.2;
  font-weight: 800;
  margin: 8px 0 18px;
  letter-spacing: -1.8px;
  position: relative;
  z-index: 1;
}
.perks-big-value > span {
  font-size: 20px;
  letter-spacing: 0;
}
.perks-points-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.perks-points-card > a,
.perks-credit-card > a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  position: relative;
  z-index: 1;
}
.perks-points-card > img {
  position: absolute;
  width: 205px;
  height: 160px;
  object-fit: contain;
  right: 3px;
  bottom: 10px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
.perks-credit-card {
  background: linear-gradient(130deg, #285d52, #163e36);
  color: #fff7e7;
}
.perks-credit-card h2 {
  font-size: 22px;
}
.perks-credit-card > p:not(.perks-big-value) {
  font-size: 16px;
  color: #e3ecdb;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.perks-credit-card .perks-big-value {
  font-size: clamp(34px, 3.3vw, 54px);
  overflow-wrap: anywhere;
}
.perks-credit-decoration {
  font-size: 230px;
  font-family: Georgia, serif;
  position: absolute;
  right: -15px;
  bottom: -60px;
  line-height: 1;
  color: #ffffff0c;
  z-index: -1;
}
.perks-highlight {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff9ebde;
  border: 1px solid #dfb7846e;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
  width: 100%;
  font-size: 15px;
}
.perks-highlight p {
  margin: 0;
  overflow-wrap: anywhere;
}
.perks-highlight-image {
  width: 56px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}
.perks-section {
  margin-top: 54px;
  scroll-margin-top: 130px;
}
.perks-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.perks-section-heading h2 {
  font-size: 29px;
  line-height: 1.55;
  margin: 10px 0 0;
}
.perks-section-heading > span {
  font-size: 15px;
  color: #78604d;
}
.perks-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.perks-reward {
  background: #fff;
  border: 1px solid #e5d4c0;
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
}
.perks-reward-image,
.perks-reward-placeholder {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #faedd7;
  display: block;
}
.perks-reward-placeholder {
  display: grid;
  place-items: center;
  font-size: 80px;
  color: #bd6b37;
}
.perks-reward-copy {
  padding: 24px;
}
.perks-reward-cost {
  background: #fff0d7;
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #8e481c;
  display: inline-block;
}
.perks-reward h3 {
  font-size: 23px;
  margin: 16px 0 10px;
  line-height: 1.6;
}
.perks-reward p {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.8;
  color: #6b5444;
  min-height: 56px;
  overflow-wrap: anywhere;
}
.perks-reward .button {
  width: 100%;
  font-size: 16px;
  min-height: 46px;
}
.perks-reward button:disabled {
  cursor: default;
  opacity: 0.6;
}
.perks-notice {
  padding: 20px;
  background: #fff7e8;
  border: 1px solid #e7d0b3;
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.9;
  color: #6c482a;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.perks-pending {
  padding: 22px 26px;
  border: 1px dashed #b9cdb9;
  background: #f1f6ee;
  border-radius: 16px;
  margin-top: 24px;
  color: #345b45;
}
.perks-pending h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.perks-pending p {
  font-size: 16px;
  line-height: 1.9;
  margin: 8px 0;
}
.perks-pending p span {
  display: block;
  font-size: 14px;
}
.perks-wallets {
  display: grid;
  gap: 14px;
}
.perks-wallets article {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e7d6c1;
  border-radius: 16px;
  align-items: center;
}
.perks-wallets h3 {
  font-size: 22px;
  margin: 0 0 6px;
}
.perks-wallets p {
  font-size: 16px;
  color: #725947;
  margin: 0 0 4px;
}
.perks-wallets small {
  font-size: 14px;
  line-height: 1.8;
  color: #6a5747;
}
.perks-wallets strong {
  font-size: 27px;
  color: #235b4d;
  text-align: right;
  white-space: nowrap;
}
.perks-wallets strong small {
  display: block;
  font-weight: 400;
}
.perks-activity-filter {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  background: #fff6e8;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}
.perks-activity-filter label {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 160px;
  font-size: 15px;
  font-weight: 700;
}
.perks-activity-filter input,
.perks-activity-filter select {
  font-size: 16px;
  font-weight: 400;
  min-height: 46px;
  padding: 10px;
}
.perks-activity-filter .button {
  font-size: 16px;
  min-height: 46px;
  padding: 10px 20px;
}
.perks-activity-filter .perks-form-status {
  flex-basis: 100%;
}
.perks-table-scroll {
  overflow: auto;
  background: #fff;
  border: 1px solid #e7d6c1;
  border-radius: 16px;
}
.perks-table-scroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
}
.perks-table-scroll th {
  background: #f6eddd;
  color: #714524;
  padding: 18px;
  white-space: nowrap;
}
.perks-table-scroll td {
  padding: 18px;
  border-top: 1px solid #ede2d3;
  vertical-align: top;
  color: #514032;
}
.perks-table-scroll tr:nth-child(even) {
  background: #fffdf9;
}
.perks-table-scroll small {
  display: block;
  font-size: 14px;
  color: #75604f;
  max-width: 340px;
  overflow-wrap: anywhere;
}
.perks-activity-image {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
}
.perks-positive {
  color: #286b4d !important;
  font-weight: 700;
}
.perks-empty {
  text-align: center;
  padding: 36px !important;
}
.perks-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 15px;
  color: #725844;
}
.perks-pagination > div {
  display: flex;
  gap: 10px;
}
.perks-pagination .button {
  font-size: 15px;
  min-height: 42px;
  padding: 9px 16px;
}
.perks-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.perks-dialog {
  width: min(540px, calc(100% - 32px));
  border: 1px solid #dfc6a8;
  border-radius: 24px;
  padding: 32px;
  color: #4c3220;
  background: #fffdf8;
  box-shadow: 0 24px 90px #32201230;
  max-height: 90dvh;
  overflow: auto;
}
.perks-dialog::backdrop {
  background: #291c14a6;
  backdrop-filter: blur(4px);
}
.perks-dialog form {
  display: grid;
  gap: 18px;
}
.perks-dialog h2 {
  font-size: 25px;
  line-height: 1.6;
  margin: 0;
}
.perks-dialog h3 {
  font-size: 22px;
  margin: 10px 0;
}
.perks-dialog p {
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-line;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.perks-dialog label {
  font-weight: 700;
  font-size: 16px;
}
.perks-dialog .perks-reward-image {
  height: 180px;
  border-radius: 12px;
  object-fit: contain;
}
.perks-dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font: 30px/1 Tahoma;
  background: none;
  border: 0;
  padding: 5px 9px;
  cursor: pointer;
  color: #765338;
}
.perks-dialog .eyebrow {
  padding-right: 25px;
  font-size: 10px;
}
.perks-dialog .perks-notice {
  font-size: 14px;
  padding: 14px;
}
.perks-dialog .button {
  font-size: 16px;
}
.perks-dialog :focus-visible,
.perks-access :focus-visible,
.perks-dashboard-wrap :focus-visible {
  outline: 3px solid #216f66;
  outline-offset: 4px;
}
body[data-page="benefits"] .main-nav a,
body[data-page="my-benefits"] .main-nav a {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .perks-hero {
    gap: 32px;
  }
  .perks-access {
    gap: 44px;
  }
  .perks-points-card > img {
    width: 155px;
    opacity: 0.65;
  }
  .perks-rewards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .perks-big-value {
    font-size: 48px;
  }
  .perks-points-card,
  .perks-credit-card {
    padding: 28px;
  }
  .perks-intro > div {
    padding: 0 22px;
  }
}
@media (max-width: 760px) {
  .perks-hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 42px;
    gap: 34px;
  }
  .perks-copy h1 {
    font-size: 46px;
  }
  .perks-copy > p:not(.lead) {
    max-width: none;
  }
  .perks-hero-art {
    margin-left: 14px;
  }
  .perks-hero-art img {
    aspect-ratio: 1.6;
  }
  .perks-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .perks-intro > div {
    padding: 0 !important;
    border-left: 0 !important;
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
  }
  .perks-intro span {
    grid-row: 1/3;
    padding-top: 8px;
  }
  .perks-intro h2 {
    margin: 0 0 6px;
    font-size: 22px;
  }
  .perks-access {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 52px;
    gap: 20px;
  }
  .perks-access-copy h2 {
    font-size: 34px;
  }
  .perks-access-copy > img {
    display: none;
  }
  .perks-login-card {
    padding: 28px;
  }
  .perks-balance-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .perks-greeting {
    align-items: flex-start;
    flex-direction: column;
  }
  .perks-greeting h1 {
    font-size: 28px;
  }
  .perks-greeting-actions {
    width: 100%;
    justify-content: space-between;
  }
  .perks-points-card {
    min-height: 300px;
  }
  .perks-points-card > img {
    width: 210px;
    opacity: 0.7;
  }
  .perks-big-value {
    font-size: 55px;
  }
  .perks-credit-card .perks-big-value {
    font-size: 46px;
  }
  .perks-section-heading {
    display: block;
  }
  .perks-section-heading h2 {
    font-size: 26px;
  }
  .perks-section-heading > span {
    display: block;
    margin-top: 10px;
  }
  .perks-rewards {
    grid-template-columns: 1fr;
  }
  .perks-reward {
    display: grid;
    grid-template-columns: 125px 1fr;
  }
  .perks-reward-image,
  .perks-reward-placeholder {
    height: 100%;
    min-height: 180px;
  }
  .perks-reward-copy {
    padding: 18px;
  }
  .perks-reward h3 {
    font-size: 20px;
  }
  .perks-reward p {
    font-size: 15px;
    min-height: 0;
  }
  .perks-wallets article {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .perks-wallets strong {
    text-align: left;
  }
  .perks-wallets strong small {
    display: inline;
    font-size: 14px;
  }
  .perks-pagination {
    flex-wrap: wrap;
  }
  .perks-activity-filter {
    padding: 18px;
  }
  .perks-activity-filter label {
    min-width: 130px;
  }
  .perks-dialog {
    padding: 28px 22px;
  }
  .perks-dashboard-wrap {
    padding-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .perks-hero-art {
    transform: none;
  }
}
.perks-points-card:has(.perks-highlight) > img {
  bottom: 80px;
  width: 170px;
  height: 140px;
}
@media (max-width: 760px) {
  body:is([data-page="benefits"], [data-page="my-benefits"]) .container {
    width: 100%;
    padding-inline: 22px;
  }
  .perks-copy h1 {
    font-size: 40px;
    line-height: 1.4;
    letter-spacing: -1.2px;
    text-wrap: balance;
  }
  .perks-copy .lead {
    font-size: 20px;
  }
  .perks-copy > p:not(.lead) {
    font-size: 17px;
    line-height: 1.85;
  }
  .perks-tags {
    gap: 14px;
  }
  .perks-points-card:has(.perks-highlight) > img {
    width: 140px;
    right: 4px;
  }
}
.perks-expiry-warning {
  padding: 20px 24px;
  background: #fff0d1;
  border: 1px solid #ce8c35;
  border-radius: 18px;
  margin: 18px 0;
  color: #713c17;
  font-size: 18px;
}
.perks-expiry-warning strong {
  font-size: 22px;
}
.perks-expiry-warning p {
  margin: 8px 0 0;
  line-height: 1.7;
}
