/* Couponrite shopping routes: retail palette, compact catalogue geometry. */
.compact-page {
  background: #faf9f6;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.compact-page main {
  flex: 1;
}
.lab-shell {
  width: min(1280px,calc(100% - 64px));
  margin-inline: auto;
}
.lab-columns {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 30px;
  align-items: start;
  padding-bottom: 52px;
}
.coupon-main {
  min-width: 0;
}
.merchant-mark {
  display: block;
  width: 88px;
  height: 72px;
  flex-shrink: 0;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
}
.merchant-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: inherit;
  padding: 0;
}
.merchant-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(105deg,#fffaf0,#fffdf8 70%,#fff1c4);
  border: 1px solid #eadbb8;
  border-radius: 6px;
  min-height: 134px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.merchant-identity h1 {
  font: 800 26px/1.25 var(--sans);
  letter-spacing: -.7px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.merchant-identity h1>span {
  display: block;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 600;
  margin-top: 7px;
  color: #695a39;
}
.merchant-identity>svg {
  width: 105px;
  height: 105px;
  position: absolute;
  right: -20px;
  bottom: -38px;
  opacity: .45;
}
.lab-page-title {
  font-size: 36px;
  line-height: 1.15;
  margin: 12px 0 25px;
}
.lab-listing {
  padding: 0;
  margin-top: 22px;
}
.lab-listing .filter-bar {
  padding: 0;
  background: transparent;
  border: 0;
  gap: 10px;
  margin-bottom: 0;
}
.lab-listing .type-filters {
  gap: 4px;
  display: flex;
  flex-wrap: nowrap;
}
.lab-listing .type-filters button {
  min-height: 44px;
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  white-space: nowrap;
  color: #302d29;
}
.lab-listing .type-filters button[aria-pressed=true] {
  background: #1e1d1b;
  color: #fff;
}
.lab-listing select {
  min-height: 44px;
  font-size: 12px;
  border: 1px solid #d5d1c9;
  background: #fff;
  border-radius: 4px;
  max-width: 180px;
}
.lab-listing .results-meta {
  margin: 12px 0;
  font-size: 12px;
}
.lab-listing .results-meta p {
  font-size: 12px;
}
.lab-listing .reset-filters {
  height: 44px;
  font-size: 12px;
  color: #674e23;
}
.lab-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.coupon-card.lab-row {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) 174px;
  gap: 20px;
  padding: 24px;
  background: white;
  border: 1px solid #dfdcd5;
  border-radius: 5px;
  box-shadow: none;
  align-items: center;
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.lab-row .row-copy {
  min-width: 0;
}
.row-merchant {
  font-size: 16px;
  font-weight: 750;
  display: block;
  margin: 0 0 6px;
  line-height: 1.35;
}
.row-kind {
  font-size: 10px;
  letter-spacing: 1.1px;
  font-weight: 800;
  color: #985321;
  margin: 0 0 6px;
}
.lab-row h3 {
  font: 750 18px/1.45 var(--sans);
  letter-spacing: -.2px;
  margin: 0 0 12px;
  min-height: 0;
}
.lab-row h3 a:hover,
.row-merchant:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lab-row .expiry,
.claim-copy .expiry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #676157;
  line-height: 1.5;
  margin: 0;
}
.expiry .icon {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
}
.row-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.claim-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  background: #050505;
  border: 1px solid #050505;
  border-radius: 999px;
  color: #fff;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s,color .2s,border-color .2s;
}
.claim-button:hover {
  background: #cf2731;
  border-color: #cf2731;
  box-shadow: none;
}
.claim-button .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.claim-button:disabled {
  background: #706d66;
  cursor: not-allowed;
  border-color: #706d66;
}
.claim-button[data-copied=true] {
  background: #050505;
  border-color: #050505;
}
.claim-button[data-copied=true]:hover {
  background: #cf2731;
  border-color: #cf2731;
}
.coupon-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.coupon-sidebar>section {
  background: white;
  border: 1px solid #e4dfd5;
  border-radius: 5px;
  padding: 18px;
}
.coupon-sidebar h2 {
  font: 750 20px/1.2 var(--serif);
  letter-spacing: -.35px;
  margin: 0 0 18px;
  border-bottom: 2px solid #f2cc60;
  padding-bottom: 13px;
}
.sidebar-categories {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px 8px;
}
.sidebar-categories>a {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.35;
  min-width: 0;
  font-weight: 650;
}
.sidebar-categories img {
  width: 52px;
  height: 48px;
  object-fit: contain;
  background: #f7f2e8;
  border-radius: 50%;
}
.sidebar-categories>a:hover {
  color: #b9232c;
}
.recommended-shops,
.related-coupons {
  margin-top: 34px;
}
.recommended-shops h2,
.related-coupons h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 19px;
  letter-spacing: -.55px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.shop-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e0ddd5;
  background: #fff;
  border-radius: 5px;
  padding: 18px;
  min-width: 0;
  min-height: 110px;
  transition: border-color .15s,box-shadow .15s;
}
.shop-card-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.shop-card-info strong {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.25px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.shop-card-info>span {
  font-size: 12px;
  color: #6d6255;
}
.shop-card-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.shop-card:hover {
  border-color: #cc9d40;
  box-shadow: 0 2px 0 #ebd29a;
}
.shop-card-arrow svg {
  width: 20px;
  height: 20px;
}
.detail-shell {
  padding-top: 32px;
}
.claim-card {
  border: 1px solid #dfceb0;
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.claim-layout {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) 210px;
  align-items: center;
  gap: 22px;
  padding: 35px 24px;
}
.claim-identity {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.claim-identity .merchant-mark {
  width: 96px;
  height: 84px;
}
.claim-identity>a {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}
.claim-copy h1 {
  font: 800 20px/1.5 var(--sans);
  letter-spacing: -.4px;
  margin: 9px 0 18px;
}
.claim-copy .row-kind {
  font-size: 10px;
}
.claim-action {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-left: 1px dashed #d6c9b2;
  padding-left: 22px;
  min-width: 0;
}
.masked-code {
  background: #fffaf0;
  border: 1px dashed #bc9b62;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.masked-code code {
  font: 750 22px/1.1 var(--sans);
  letter-spacing: .4px;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  text-align: center;
}
.masked-code>.icon {
  position: absolute;
  right: 9px;
  width: 14px;
  height: 14px;
  color: #a58c5c;
}
.claim-status {
  font-size: 12px;
  line-height: 1.6;
  color: #6a6050;
  margin: 0;
  text-align: center;
}
.lab-category-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0 30px;
}
.lab-category-heading>img {
  background: #f4ecd8;
  border-radius: 50%;
  width: 90px;
  height: 84px;
}
.lab-category-heading h1 {
  font-size: 36px;
  line-height: 1.1;
}
.category-shell {
  padding-bottom: 65px;
}
.category-shop-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.search-shell {
  padding-block: 45px 60px;
  max-width: 1000px;
}
.search-shell h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.search-shell>p {
  font-size: 14px;
  color: #5c564d;
  margin-bottom: 30px;
}
.search-shop-grid .shop-card {
  min-height: 136px;
}
.search-shop-grid .merchant-mark {
  width: 112px;
  height: 90px;
}
.search-recommendations h2 {
  font-size: 25px;
  margin: 30px 0 20px;
}
.compact-page .retail-footer {
  margin-top: 0;
}
.compact-page .retail-footer .shell {
  width: min(1280px,calc(100% - 64px));
}
.compact-page :focus-visible {
  outline: 3px solid #245e91;
  outline-offset: 4px;
}
@media(max-width:1150px) {
  .lab-columns {
    grid-template-columns: minmax(0,1fr);
    gap: 35px;
  }
  .coupon-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sidebar-categories {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .category-shop-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px) {
  .lab-shell,
  .compact-page .retail-footer .shell {
    width: calc(100% - 24px);
  }
  .merchant-identity {
    padding: 20px;
    gap: 16px;
    min-height: 122px;
  }
  .merchant-identity h1 {
    font-size: 23px;
  }
  .merchant-identity h1>span {
    font-size: 16px;
  }
  .lab-listing {
    margin-top: 18px;
  }
  .lab-listing .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lab-listing .type-filters {
    justify-content: flex-start;
  }
  .lab-listing select {
    width: 100%;
    max-width: none;
  }
  .lab-listing .results-meta {
    margin: 8px 0;
  }
  .coupon-card.lab-row {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 14px;
    padding: 20px 16px;
    align-items: start;
  }
  .lab-row .merchant-mark {
    width: 72px;
    height: 66px;
  }
  .lab-row .row-merchant {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .lab-row h3 {
    font-size: 18px;
    line-height: 1.45;
  }
  .lab-row .row-kind {
    font-size: 9px;
    letter-spacing: .7px;
  }
  .row-action {
    grid-column: 1/-1;
    padding-top: 14px;
    border-top: 1px solid #eee9e0;
    display: grid;
    grid-template-columns: minmax(0,1fr) 96px;
    gap: 12px;
  }
  .row-action .claim-button {
    font-size: 13px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-card {
    padding: 16px;
    min-height: 106px;
  }
  .shop-card-info strong {
    font-size: 18px;
  }
  .recommended-shops h2,
  .related-coupons h2 {
    font-size: 25px;
  }
  .sidebar-categories {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .detail-shell {
    padding-top: 20px;
  }
  .claim-layout {
    grid-template-columns: 80px minmax(0,1fr);
    padding: 24px 18px;
    gap: 19px;
    align-items: start;
  }
  .claim-identity .merchant-mark {
    width: 80px;
    height: 72px;
  }
  .claim-identity>a {
    font-size: 16px;
  }
  .claim-copy h1 {
    font-size: 20px;
    line-height: 1.4;
    margin: 7px 0 14px;
  }
  .claim-copy .expiry {
    font-size: 12px;
    align-items: flex-start;
  }
  .claim-action {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px dashed #d6c9b2;
    padding: 20px 0 0;
    gap: 13px;
  }
  .claim-action .claim-button {
    font-size: 14px;
    min-height: 46px;
  }
  .lab-page-title,
  .lab-category-heading h1,
  .search-shell h1 {
    font-size: 30px;
  }
  .lab-category-heading {
    gap: 14px;
    padding-bottom: 24px;
  }
  .lab-category-heading>img {
    width: 72px;
    height: 68px;
  }
  .search-shell {
    padding-top: 30px;
  }
  .search-shop-grid .merchant-mark {
    width: 92px;
    height: 80px;
  }
  .search-shop-grid .shop-card {
    min-height: 122px;
  }
  .lab-columns {
    padding-bottom: 35px;
  }
}
@media(max-width:360px) {
  .claim-layout {
    gap: 14px;
    padding-inline: 15px;
  }
  .merchant-identity {
    padding: 18px;
    gap: 12px;
  }
  .merchant-identity h1 {
    font-size: 20px;
  }
  .coupon-card.lab-row {
    padding: 18px 14px;
  }
  .lab-listing .type-filters button {
    padding-inline: 13px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .claim-button,
  .shop-card {
    transition: none;
  }
}
.lab-listing .results-meta {
  padding: 0;
}
.row-storemark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.expired-history {
  margin-top: 25px;
}
.expired-history summary {
  padding: 15px 0;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}
.expired-history .lab-row {
  opacity: .7;
}
.masked-code code[data-long=true] {
  font-size: 16px;
  letter-spacing: .4px;
  line-height: 1.3;
  padding-inline: 5px;
}
.masked-code:has(code[data-revealed=true])>.icon {
  display: none;
}
