/* style.css – новая вариация оверлея (префикс rx-) */

.rx * {
  box-sizing: border-box;
}

.rx-layer {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.rx-box-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  padding: 12px 8px;
  position: relative;
}

.rx-box {
  display: flex;
  margin: auto;
  flex-flow: column wrap;
  justify-content: center;
  max-width: 420px;
  width: 100%;
}

.rx-card {
  width: 100%;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 20px;
  color: #1e293b;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.rx-title {
  font-weight: 800;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.3;
  color: #0f172a;
}

.rx-title a {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.4);
}

.rx-pill {
  display: inline-block;
  padding: 0.22rem 0.54rem;
  margin-left: 0.42rem;
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78em;
  vertical-align: middle;
}

.rx-sub {
  margin-top: 6px;
  font-size: 14px;
  color: #475569;
}

.rx-features {
  margin: 14px 0 0 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.rx-feature {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
}

.rx-ico {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.rx-coupon[hidden] {
  display: none !important;
}

.rx-coupon {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.08);
}

.rx-coupon-label {
  font-weight: 800;
}

.rx-coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  font-size: 15px;
  padding: 0.32rem 0.68rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.rx-coupon small {
  color: #475569;
}

.rx-cta {
  margin-top: 14px;
  display: flex;
}

.rx-btn {
  appearance: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 18px;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rx-btn-primary {
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
}

.rx-btn-primary:hover {
  transform: translateY(-1px);
}

.rx-badges {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rx-badge {
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #0f172a;
}

.rx-note {
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
}

@media screen and (max-width: 480px) and (orientation: portrait) {
  .rx-box {
    max-width: none;
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }
  .rx-box-wrapper {
    height: 100dvh;
    padding: 0;
  }
  .rx-card {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 16px 14px;
    overflow: auto;
  }
}

@media screen and (max-width: 896px) and (orientation: landscape) {
  .rx-box {
    max-width: none;
    width: 100vw;
    height: 100svh;
    margin: 0;
  }
  .rx-box-wrapper {
    height: 100svh;
    padding: 0;
  }
  .rx-card {
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
  }
}