.rs-page {
  background: #fff;
}

.rs-store-header {
  background: #fff;
  border-top: 0;
  border-bottom: 0;
  padding: 14px 0 10px;
}

.rs-store-header-inner {
  min-height: 184px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 2px solid #f1c40f;
  border-radius: 20px;
  padding: 18px 22px;
}

.rs-store-logo {
  width: 154px;
  height: 154px;
  border: 3px solid #f1c40f;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 154px;
}

.rs-store-logo img {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  padding: 6px;
  object-fit: contain;
}

.rs-store-head-copy h1 {
  margin: 0;
  color: #1f2937;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.rs-store-counts {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.rs-store-counts span {
  border: 1px solid #dde3ec;
  background: #fff;
  color: #39465b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
}

.rs-store-counts .active {
  background: #ffefe6;
  border-color: #ffd5bf;
  color: #cc4b00;
}

.rs-visit-store {
  margin-left: auto;
  background: #ea580c;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
}

.rs-breadcrumb-wrap {
  padding: 14px 0;
  display: flex;
  gap: 8px;
  color: #5d6778;
  font-size: 13px;
}

.rs-breadcrumb-wrap a {
  color: #1a62db;
}

.rs-breadcrumb-bottom {
  display: none;
}

.rs-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  padding-bottom: 24px;
}

.rs-box {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.rs-box h3 {
  margin: 0;
  background: #ff4900;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 12px;
}

.rs-box table {
  width: 100%;
  border-collapse: collapse;
}

.rs-box td {
  font-size: 13px;
  padding: 9px 12px;
  color: #1f2e45;
  border-bottom: 1px solid #ecf0f5;
}

.rs-box tr:last-child td {
  border-bottom: 0;
}

.rs-box td:last-child {
  text-align: right;
  font-weight: 700;
  color: #0f4ab8;
}

.rs-side-stores {
  padding: 10px;
}

.rs-side-stores a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  padding: 9px 0;
  color: #243348;
  font-size: 13px;
  font-weight: 600;
}

.rs-side-stores a:last-child {
  border-bottom: 0;
}

.rs-side-stores img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  background: #fff;
}

.rs-coupon-card {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 148px 1fr 260px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(27, 39, 58, 0.08);
  min-height: 138px;
}

.rs-coupon-card:hover {
  border-color: #02bf66;
}

.rs-coupon-card.featured {
  border: 2px solid #ac1b96;
  overflow: visible;
  margin-top: 14px;
}

.rs-ribbon {
  position: absolute;
  top: 0;
  left: 18px;
  transform: translateY(-50%);
  width: auto;
  min-width: 96px;
  text-align: center;
  background: linear-gradient(90deg, #7a0f98 0%, #ad1fa9 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 9px rgba(122, 15, 152, 0.35);
  border-radius: 999px;
  z-index: 3;
}

.rs-coupon-discount {
  font-size: 24px;
  font-weight: 700;
  color: #4a83df;
  text-align: center;
  line-height: 1.05;
  padding: 26px 10px;
  border-right: 1px solid #d3d8e0;
  word-break: break-word;
}

.rs-coupon-discount.long {
  font-size: 18px;
  line-height: 1.15;
}

.rs-coupon-discount.rs-related-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
}

.rs-coupon-discount.rs-related-logo img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  border: 1px solid #d6dce4;
  background: #fff;
  object-fit: contain;
}

.rs-coupon-content h3 {
  margin: 0;
  font-size: 19px;
  color: #304766;
  line-height: 1.35;
  font-weight: 500;
}

.rs-coupon-content p {
  margin: 10px 0 0;
  color: #4f5970;
  font-size: 14px;
  line-height: 1.55;
}

.rs-view-detail {
  border: 0;
  background: transparent;
  color: #1f67df;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  margin-top: 6px;
  text-align: left;
}

.rs-coupon-action .rs-view-detail {
  display: block;
  width: 220px;
  margin: 8px 0 0 auto;
  text-align: center;
}

.rs-coupon-desc {
  display: none;
}

.rs-coupon-desc.open {
  display: block;
}

.rs-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1f67df;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.rs-store-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #1ca757;
  font-size: 14px;
  font-weight: 600;
}

.rs-store-line a {
  color: #1ca757;
}

.rs-store-line a:hover {
  color: #2c3e50;
}

.rs-coupon-action {
  padding: 0 16px 0 0;
}

.rs-code-wrap {
  position: relative;
  width: 220px;
  margin-left: auto;
}

.rs-coupon-action a,
.rs-coupon-action span {
  display: block;
  text-align: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 14px 10px;
}

.rs-coupon-action a {
  background: #0f67eb;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 12px rgba(15, 103, 235, 0.35);
}

.rs-code-stub {
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 80px;
  border: 2px dashed #ff5d0a;
  background: #fff;
  color: #ff5d0a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 15px;
  font-weight: 700;
}

.rs-coupon-card.expired {
  opacity: 0.75;
}

.rs-coupon-card.expired .rs-coupon-action span {
  background: #8b95a6;
}

.rs-coupon-card.expired .rs-code-stub {
  border-color: #8b95a6;
  color: #8b95a6;
}

.rs-coupon-section-title {
  margin: 4px 0 14px;
  color: #314a6a;
  font-size: 32px;
  font-weight: 600;
}

.rs-content-box {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 18px;
  margin-top: 16px;
}

.rs-content-box h3 {
  margin: 0 0 10px;
  color: #1f2d44;
  font-size: 23px;
}

.rs-content-box p {
  margin: 0;
  color: #4f5970;
  font-size: 15px;
  line-height: 1.8;
}

.rs-faq-item {
  border-top: 1px solid #ecf0f4;
  padding-top: 12px;
  margin-top: 12px;
}

.rs-faq-item h4 {
  margin: 0 0 6px;
  color: #1f2d44;
  font-size: 16px;
}

.rs-faq-item p {
  margin: 0;
}

.rs-products-wrap {
  padding-bottom: 30px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.rs-products-wrap h2 {
  color: #1f2d44;
  margin: 4px 0 12px;
}

.rs-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rs-related-blogs-wrap h2 {
  margin-bottom: 16px;
}

.rs-content-box,
.rs-related-blogs-wrap,
.rs-products-wrap {
  content-visibility: auto;
  contain-intrinsic-size: 1px 460px;
}

.rs-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rs-blog-card {
  background: #ffffff;
  border: 1px solid #2c3e50;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.rs-blog-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.rs-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rs-blog-card:hover .rs-blog-thumb img {
  transform: scale(1.04);
}

.rs-blog-body {
  padding: 14px;
}

.rs-blog-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.rs-blog-body h3 a {
  color: #2c3e50;
}

.rs-blog-body p {
  margin: 0;
  color: #2d3436;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-blog-read {
  display: inline-block;
  margin-top: 10px;
  background: #2ecc71;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.rs-code-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 28, 0.56);
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rs-code-modal.open {
  display: flex;
}

.rs-code-modal-card {
  width: 560px;
  max-width: 100%;
  background: #fff;
  border: 2px solid #f1c40f;
  border-radius: 16px;
  padding: 24px 22px 20px;
  position: relative;
  text-align: center;
  box-shadow: 0 22px 44px rgba(7, 14, 28, 0.24);
}

.rs-code-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #2c3e50;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.rs-code-modal-card h3 {
  margin: 0 auto 14px;
  color: #2c3e50;
  font-size: 18px;
  line-height: 1.25;
  max-width: 92%;
}

.rs-code-modal-logo-wrap {
  width: 132px;
  height: 132px;
  border-radius: 16px;
  border: 2px solid #f1c40f;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0 auto 18px;
}

.rs-code-modal-logo-wrap img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.rs-code-modal-sub {
  margin: 10px 0 0;
  color: #2d3436;
  font-size: 13px;
  line-height: 1.5;
}

.rs-code-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 16px;
}

.rs-code-modal-tip {
  border: 1px solid #f1c40f;
  border-radius: 999px;
  color: #846d00;
  background: #fff8d7;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  white-space: nowrap;
}

.rs-code-modal-codebox {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 96px;
  align-items: center;
  border: 1px dashed #f1c40f;
  border-radius: 12px;
  overflow: hidden;
  min-height: 48px;
  background: #fff;
  max-width: 420px;
  width: 100%;
}

.rs-code-modal-code {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-code-modal-copy {
  border: 0;
  height: 100%;
  background: #f1c40f;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.rs-code-modal-btn {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: #f1c40f;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 700;
  padding: 0 28px;
  width: min(100%, 260px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(241, 196, 15, 0.35);
}

.rs-code-modal-btn:hover {
  background: #2ecc71;
  color: #ffffff;
}

.rs-code-modal-expiry {
  margin: 14px 0 0;
  color: #2c3e50;
  font-size: 13px;
}

.rs-code-modal-expiry strong {
  font-weight: 700;
}

@media (max-width: 680px) {
  .rs-code-modal-card {
    padding: 16px;
  }

  .rs-code-modal-card h3 {
    font-size: 16px;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .rs-code-modal-logo-wrap {
    width: 98px;
    height: 98px;
    margin-bottom: 12px;
  }

  .rs-code-modal-logo-wrap img {
    width: 88px;
    height: 88px;
  }

  .rs-code-modal-btn {
    width: 100%;
    font-size: 14px;
    min-height: 46px;
  }

  .rs-code-modal-codebox {
    grid-template-columns: minmax(0, 1fr) 86px;
    min-height: 44px;
  }

  .rs-code-modal-code {
    font-size: 15px;
    padding: 0 8px;
  }

  .rs-code-modal-copy {
    font-size: 13px;
  }

  .rs-code-modal-tip {
    font-size: 10px;
    padding: 7px 9px;
  }

  .rs-code-modal-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rs-code-modal-tip {
    text-align: center;
    white-space: normal;
  }

  .rs-code-modal-codebox {
    grid-template-columns: 1fr 100px;
    min-height: 52px;
  }

  .rs-code-modal-code {
    font-size: 28px;
  }

  .rs-code-modal-copy {
    font-size: 22px;
  }

  .rs-code-modal-expiry,
  .rs-code-modal-sub {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .rs-code-modal-card {
    padding: 12px;
  }

  .rs-code-modal-row {
    gap: 7px;
    margin-bottom: 12px;
  }

  .rs-code-modal-codebox {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .rs-code-modal-code {
    font-size: 14px;
  }

  .rs-code-modal-copy {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .rs-code-modal-btn {
    width: 100%;
  }
}

.rs-product-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 12px;
}

.rs-product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.rs-product-card h3 {
  margin: 10px 0 0;
  font-size: 14px;
  color: #233247;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .rs-layout {
    grid-template-columns: 1fr;
  }

  .rs-store-header-inner {
    min-height: 0;
    padding: 20px 0;
    flex-wrap: wrap;
  }

  .rs-visit-store {
    margin-left: 0;
  }

  .rs-coupon-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rs-coupon-discount {
    border-right: 0;
    border-bottom: 1px solid #d3dae5;
    padding: 14px;
    font-size: 28px;
  }

  .rs-coupon-content,
  .rs-coupon-action {
    padding: 14px;
  }

  .rs-coupon-content h3 {
    font-size: 17px;
  }

  .rs-verified {
    font-size: 13px;
  }

  .rs-code-wrap {
    width: 210px;
  }

  .rs-coupon-section-title {
    font-size: 28px;
  }

  .rs-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .rs-store-header {
    padding: 10px 0 8px;
  }

  .rs-store-header-inner {
    display: grid;
    justify-items: center;
    border-radius: 14px;
    padding: 14px;
    gap: 12px;
  }

  .rs-store-logo {
    width: 114px;
    height: 114px;
    flex: 0 0 114px;
    margin: 0 auto;
  }

  .rs-store-logo img {
    width: 98px;
    height: 98px;
  }

  .rs-store-head-copy h1 {
    font-size: 20px;
    text-align: center;
  }

  .rs-store-head-copy {
    width: 100%;
  }

  .rs-store-counts,
  .rs-visit-store {
    display: none;
  }

  .rs-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .rs-main {
    order: 1;
  }

  .rs-sidebar {
    order: 2;
  }

  .rs-breadcrumb-wrap {
    display: none;
  }

  .rs-breadcrumb-bottom {
    display: flex;
    padding-top: 4px;
  }

  .rs-coupon-section-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .rs-coupon-card {
    border-radius: 12px;
    margin-bottom: 14px;
    min-height: 0;
  }

  .rs-coupon-discount {
    font-size: 24px;
    padding: 12px;
  }

  .rs-coupon-discount.rs-related-logo {
    padding: 12px;
  }

  .rs-coupon-discount.rs-related-logo img {
    width: 78px;
    height: 78px;
  }

  .rs-coupon-content,
  .rs-coupon-action {
    padding: 12px;
  }

  .rs-code-wrap,
  .rs-coupon-action .rs-view-detail {
    width: 100%;
    margin-left: 0;
  }

  .rs-coupon-action a,
  .rs-coupon-action span {
    font-size: 15px;
    padding: 12px 10px;
  }

  .rs-code-stub {
    width: 72px;
    right: -2px;
    font-size: 14px;
  }

  .rs-content-box {
    padding: 14px;
    margin-top: 12px;
  }

  .rs-content-box h3 {
    font-size: 20px;
  }

  .rs-content-box p {
    font-size: 14px;
    line-height: 1.7;
  }

  .rs-products-grid {
    grid-template-columns: 1fr;
  }

  .rs-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Strict 5-color palette */
.rs-coupon-discount,
.rs-verified,
.rs-view-detail,
.rs-breadcrumb-wrap a,
.rs-box td:last-child,
.rs-coupon-section-title {
  color: #2ecc71 !important;
}

.rs-coupon-action a,
.rs-visit-store {
  background: #2ecc71 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.rs-visit-store {
  background: #f1c40f !important;
  color: #ffffff !important;
}

.rs-code-stub {
  border-color: #2ecc71 !important;
  color: #2ecc71 !important;
}

.rs-page,
.rs-store-header,
.rs-box,
.rs-coupon-card,
.rs-content-box,
.rs-product-card {
  background: #ffffff !important;
}

.rs-store-head-copy h1,
.rs-coupon-content h3,
.rs-content-box h3,
.rs-products-wrap h2 {
  color: #2c3e50 !important;
}

.rs-coupon-content p,
.rs-content-box p,
.rs-faq-item p,
.rs-breadcrumb-wrap {
  color: #2d3436 !important;
}

.rs-box h3 {
  background: #2c3e50 !important;
  color: #ffffff !important;
}

.rs-ribbon {
  background: #f1c40f !important;
  color: #2c3e50 !important;
}

.rs-coupon-card,
.rs-store-logo,
.rs-box,
.rs-content-box,
.rs-product-card,
.rs-coupon-card:hover,
.rs-coupon-card.featured,
.rs-store-header,
.rs-breadcrumb-wrap,
.rs-faq-item {
  border-color: #2c3e50 !important;
}

.rs-code-stub {
  border-style: solid !important;
}

.rs-coupon-card.featured {
  border-color: #2ecc71 !important;
}

.rs-coupon-card,
.rs-coupon-card.featured {
  border-color: #f1c40f !important;
  transition: border-color 0.2s ease;
}

.rs-coupon-card:hover,
.rs-coupon-card.featured:hover {
  border-color: #2ecc71 !important;
}

.rs-store-logo {
  border-color: #f1c40f !important;
  border-width: 3px !important;
}
