/* ==========================================================================
   Restricted Content — Admin 2.0 ("Restricted 2.0" brand layer)
   --------------------------------------------------------------------------
   Additive restyle of the plugin welcome/settings screens. Loaded AFTER
   admin.css. Mirrors the approved "Restrict for Elementor" admin 2.0 design
   (same tokens, gradients, radii and shadows) scoped to the `.rsc-brand-2`
   wrapper added in includes/settings/settings.php — nothing leaks into
   other admin screens. Post-editor metabox rules are scoped to the plugin's
   own `.rsc_metabox` / `#rsc_metabox` containers.
   No hooks, keys, slugs or behavior are affected by this file.
   White-label safe: no brand text is output from CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design tokens (declared on the settings page wrapper + metabox)
   -------------------------------------------------------------------------- */

.rsc_outside_wrap.rsc-brand-2,
.rsc_metabox,
#rsc_metabox {
  --rsc-purple-900: #42213F;
  --rsc-purple-700: #5A2C54;
  --rsc-mauve-500: #9F5992;
  --rsc-amber-400: #FFBD48;
  --rsc-amber-400-hover: #F2AE35;
  --rsc-cream-200: #FEDEA6;
  --rsc-cyan-100: #DAF2F6;
  --rsc-ink: #221126;
  --rsc-muted: #6B5A68;
  --rsc-paper: #FFFFFF;
  --rsc-bg-warm: #FFFBF5;
  --rsc-line: #EFE4EA;
  --rsc-font-display: "Sauce Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --rsc-font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --rsc-radius-s: 10px;
  --rsc-radius-m: 16px;
  --rsc-radius-l: 24px;
  --rsc-radius-pill: 999px;
  --rsc-shadow-s: 0 1px 2px rgba(34, 17, 38, .06), 0 2px 8px rgba(34, 17, 38, .06);
  --rsc-shadow-m: 0 4px 12px rgba(34, 17, 38, .08), 0 12px 32px rgba(34, 17, 38, .10);
  --rsc-focus: 3px solid rgba(159, 89, 146, .5);
  --rsc-ease: cubic-bezier(.22, .68, .28, 1);
}

/* Warm page backdrop, scoped to this admin screen only */
body.toplevel_page_restricted_content_settings #wpcontent {
  background: #FFFBF5;
}

/* --------------------------------------------------------------------------
   1. Page frame & base typography
   -------------------------------------------------------------------------- */

.rsc-brand-2 {
  float: none;
  width: auto;
  max-width: 1360px;
  margin: 12px 0 0;
  padding-bottom: 48px;
  font-family: var(--rsc-font-body);
  color: var(--rsc-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Real two-column app shell: hero band + fixed nav rail + fluid content */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Every direct child spans full width unless overridden below */
.rsc-brand-2 > h1,
.rsc-brand-2 > .icon32,
.rsc-brand-2 > .rsc-settings-header,
.rsc-brand-2 > .error,
.rsc-brand-2 > .notice,
.rsc-brand-2 > .updated,
.rsc-brand-2 > .clear {
  flex: 0 0 100%;
  box-sizing: border-box;
}

/* Empty legacy heading/icon holders — keep in DOM (WP anchors notices to them) */
.rsc-brand-2 > h1 {
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.rsc-brand-2 > .icon32 {
  display: none;
}

/* Nav rail — fixed width column, never floats, content never wraps under it.
   The second selector covers the nav BEFORE jquery.sticky wraps it in #sticky-wrapper,
   preventing the width jump on page load. */
.rsc-brand-2 > #sticky-wrapper,
.rsc-brand-2 > .rsc-nav-tab-wrapper {
  float: none;
  flex: 0 0 224px;
  width: 224px;
  box-sizing: border-box;
  margin: 0 24px 24px 0;
}

.rsc-brand-2 .rsc-nav-tab-wrapper {
  box-sizing: border-box;
}

/* Tab content column — fills the remaining width */
.rsc-brand-2 > .rc_wrap {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
}

.rsc-brand-2,
.rsc-brand-2 .rc_wrap,
.rsc-brand-2 .rc_wrap p,
.rsc-brand-2 p,
.rsc-brand-2 span,
.rsc-brand-2 a,
.rsc-brand-2 h1,
.rsc-brand-2 h3 {
  font-family: var(--rsc-font-body);
}

.rsc-brand-2 h1,
.rsc-brand-2 h3,
.rsc-brand-2 .rsc-premium-button,
.rsc-brand-2 .rsc-premium-text span {
  font-family: var(--rsc-font-display);
}

.rsc-brand-2 ::selection {
  background: var(--rsc-cream-200);
  color: var(--rsc-purple-900);
}

.rsc-brand-2 a:focus-visible,
.rsc-brand-2 button:focus-visible,
.rsc-brand-2 .rsc-play-icon:focus-visible {
  outline: var(--rsc-focus);
  outline-offset: 2px;
  box-shadow: none;
}

/* Neutralize legacy layout boxes (floats / white container card) */
.rsc-brand-2 .rc_wrap {
  float: none;
  width: auto;
  margin: 0;
}

.rsc-brand-2 .rsc-welcome-screen {
  width: auto;
  padding: 0;
}

.rsc-brand-2 .rsc-free-features,
.rsc-brand-2 .rsc-premium-features {
  float: none;
  width: auto;
}

/* Premium (licensed) welcome screen: the upgrade banner between the two card
   sections isn't rendered, so give the adjacent sections their own spacing */
.rsc-brand-2 .rsc-free-features + .rsc-premium-section {
  margin-top: 24px;
}

/* When a card section holds an odd number of cards, stretch the last one
   across both columns so the grid doesn't end with an empty slot */
.rsc-brand-2 .rsc-sections-wrap > .rsc-half-section:nth-child(odd):last-child {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   2. Hero band (settings header)
   -------------------------------------------------------------------------- */

.rsc-brand-2 .rsc-settings-header {
  position: relative;
  float: none;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin: 12px 0 24px;
  padding: clamp(28px, 4.5vw, 52px);
  background: radial-gradient(120% 90% at 50% 0%, #5A2C54 0%, #42213F 62%);
  border: none;
  border-radius: var(--rsc-radius-l);
  box-shadow: var(--rsc-shadow-m);
  overflow: hidden;
}

/* Subtle amber glow, bottom-left */
.rsc-brand-2 .rsc-settings-header::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  left: -180px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(255, 189, 72, .20), transparent 65%);
  pointer-events: none;
}

/* Subtle mauve glow, top-right */
.rsc-brand-2 .rsc-settings-header::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -240px;
  background: radial-gradient(circle, rgba(159, 89, 146, .35), transparent 65%);
  pointer-events: none;
}

.rsc-brand-2 .rsc-settings-header > * {
  position: relative;
  z-index: 1;
}

/* Logo chip (white, mirrors RfE's .rfe-restrict-logo) */
.rsc-brand-2 .rcs-restrict-logo {
  float: none;
  flex: 0 0 auto;
  background: var(--rsc-paper);
  border-radius: var(--rsc-radius-m);
  padding: 12px 14px;
  line-height: 0;
  box-shadow: var(--rsc-shadow-s);
}

.rsc-brand-2 .rcs-restrict-logo img {
  display: block;
  width: 70px;
  height: auto;
}

/* Version pill (cream) */
.rsc-brand-2 .rsc-version {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  float: none;
  white-space: nowrap;
  background: var(--rsc-cream-200);
  color: var(--rsc-purple-900);
  border-radius: var(--rsc-radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  box-shadow: var(--rsc-shadow-s);
}

/* Title block */
.rsc-brand-2 .rsc-header-title {
  float: none;
  flex: 1 1 380px;
  margin: 0;
  width: auto;
}

.rsc-brand-2 .rsc-settings-header h1,
.rsc-brand-2 .rsc-settings-header h1.rsc-bold-heading {
  margin: 0 0 10px;
  padding: 0;
  color: var(--rsc-paper);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: none;
}

.rsc-brand-2 .rsc-settings-header .rsc-header-title > span {
  display: block;
  width: auto;
  max-width: 58ch;
  margin: 0;
  color: var(--rsc-cyan-100);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.65;
  text-transform: none;
  letter-spacing: 0;
  opacity: .92;
}

/* Play trigger — amber disc linking to the YouTube channel */
.rsc-brand-2 .rsc-play-icon {
  float: none;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rsc-amber-400);
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(255, 189, 72, .35);
  cursor: pointer;
  transition: transform .25s var(--rsc-ease), background .25s var(--rsc-ease), box-shadow .25s var(--rsc-ease);
}

.rsc-brand-2 .rsc-play-icon:hover,
.rsc-brand-2 .rsc-play-icon:focus-visible {
  background: var(--rsc-amber-400-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 189, 72, .45);
}

.rsc-brand-2 .rsc-play-icon img {
  width: 22px;
  height: 22px;
  margin: 0;
}

/* Documentation button — amber pill on the dark band */
.rsc-brand-2 .rsc-settings-header .rsc-documentation-link {
  float: none;
  flex: 0 0 auto;
  margin: 0;
}

.rsc-brand-2 .rsc-settings-header .rsc-documentation-button,
.rsc-brand-2 a.rsc-documentation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  margin: 0;
  padding: 14px 28px;
  background: var(--rsc-amber-400);
  border: 1.5px solid transparent;
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-purple-900);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform .25s var(--rsc-ease), box-shadow .25s var(--rsc-ease), background .25s var(--rsc-ease);
}

.rsc-brand-2 .rsc-settings-header .rsc-documentation-button:hover,
.rsc-brand-2 .rsc-settings-header .rsc-documentation-button:focus,
.rsc-brand-2 a.rsc-documentation-button:hover,
.rsc-brand-2 a.rsc-documentation-button:focus {
  background: var(--rsc-amber-400-hover);
  border-color: transparent;
  color: var(--rsc-purple-900);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--rsc-shadow-m);
  outline: none;
}

/* --------------------------------------------------------------------------
   3. Pill nav tabs (vertical sidebar) + review nudge
   -------------------------------------------------------------------------- */

.rsc-brand-2 .rsc-nav-tab-wrapper ul {
  margin: 0;
}

/* Sidebar card holding the pill nav (legacy white box, refined) */
.rsc-brand-2 .rsc-nav-inside {
  float: none;
  width: auto;
  clear: none;
  background: var(--rsc-paper);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-m);
  box-shadow: var(--rsc-shadow-s);
  padding: 14px;
}

.rsc-brand-2 .rsc-nav-tab-wrapper ul li {
  margin: 0 0 6px;
  width: 100%;
}

.rsc-brand-2 .rsc-nav-tab-wrapper ul li a.nav-tab {
  display: block;
  float: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 18px;
  background: transparent;
  border: none;
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-ink);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s var(--rsc-ease), color .2s var(--rsc-ease);
}

.rsc-brand-2 .rsc-nav-tab-wrapper ul li a.nav-tab:hover {
  background: rgba(159, 89, 146, .10);
  border: none;
  color: var(--rsc-purple-900);
  font-weight: 600;
}

.rsc-brand-2 .rsc-nav-tab-wrapper ul li a.nav-tab:focus {
  outline: none;
  box-shadow: none;
  text-shadow: none;
}

.rsc-brand-2 .rsc-nav-tab-wrapper ul li a.nav-tab.nav-tab-active,
.rsc-brand-2 .rsc-nav-tab-wrapper ul li a.nav-tab.nav-tab-active:hover {
  background: var(--rsc-purple-900);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--rsc-shadow-s);
}

/* Review nudge under the tabs — soft warm card + ghost pill */
.rsc-brand-2 .rsc-review-wrap {
  float: none;
  width: auto;
  margin: 18px 0 0;
  padding: 16px 18px;
  background: var(--rsc-paper);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-m);
  box-shadow: var(--rsc-shadow-s);
  text-align: center;
}

.rsc-brand-2 .rsc-review-wrap span {
  display: block;
  width: auto;
  margin: 0 0 12px;
  color: var(--rsc-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rsc-brand-2 a.rsc-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  background: transparent;
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-purple-900);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .25s var(--rsc-ease), background .25s var(--rsc-ease), transform .25s var(--rsc-ease);
}

.rsc-brand-2 a.rsc-small-button:hover,
.rsc-brand-2 a.rsc-small-button:focus {
  background: rgba(159, 89, 146, .08);
  border-color: var(--rsc-mauve-500);
  color: var(--rsc-purple-900);
  box-shadow: none;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Welcome screen — eyebrow labels
   -------------------------------------------------------------------------- */

.rsc-brand-2 .rsc-welcome-screen .rsc-free-features > span {
  float: none;
  display: inline-block;
  width: auto;
  margin: 0 0 20px;
  color: var(--rsc-mauve-500);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Feature grid — white cards (mirrors RfE's .rfe-sections-wrap)
   -------------------------------------------------------------------------- */

.rsc-brand-2 .rsc-sections-wrap {
  float: none;
  width: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

/* Legacy clearfix divs become grid items — hide them */
.rsc-brand-2 .rsc-sections-wrap .rc-clear {
  display: none;
}

.rsc-brand-2 .rsc-welcome-screen .rsc-half-section,
.rsc-brand-2 .rsc-welcome-screen .rsc-sections-wrap .rsc-half-section:nth-child(2n),
.rsc-brand-2 .rsc-premium-features .rsc-half-section {
  position: relative;
  float: none;
  width: auto;
  margin: 0;
  display: flex;
  align-items: stretch;
  background: var(--rsc-paper);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-l);
  box-shadow: var(--rsc-shadow-s);
  overflow: hidden;
  transition: transform .3s var(--rsc-ease), box-shadow .3s var(--rsc-ease), border-color .3s var(--rsc-ease);
}

.rsc-brand-2 .rsc-welcome-screen .rsc-half-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--rsc-shadow-m);
  border-color: rgba(159, 89, 146, .35);
}

/* Premium cards: mauve-tinted border + amber/mauve accent bar */
.rsc-brand-2 .rsc-premium-features .rsc-half-section {
  border-color: rgba(159, 89, 146, .30);
}

.rsc-brand-2 .rsc-premium-features .rsc-half-section::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rsc-amber-400), var(--rsc-mauve-500));
}

/* Illustration panel (warm cream glow, full-bleed crop) */
.rsc-brand-2 .rsc-welcome-img {
  position: relative;
  float: none;
  flex: 0 0 190px;
  width: 190px;
  height: auto;
  min-height: 0;
  top: auto;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(254, 222, 166, .45), transparent 62%),
    var(--rsc-bg-warm);
  border-right: 1px solid var(--rsc-line);
  border-radius: 0;
  overflow: hidden;
}

.rsc-brand-2 .rsc-welcome-img img {
  position: absolute;
  inset: 0;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

/* Text body */
.rsc-brand-2 .rsc-welcome-text,
.rsc-brand-2 .rsc-free-features .rsc-welcome-text,
.rsc-brand-2 .rsc-premium-features .rsc-welcome-text {
  position: relative;
  float: none;
  flex: 1 1 auto;
  width: auto;
  min-height: 0;
  padding: 28px 28px 30px;
  background: transparent;
  border-radius: 0;
}

.rsc-brand-2 .rsc-welcome-screen .rsc-welcome-text h3 {
  margin: 0 0 10px;
  padding: 0 44px 0 0;
  color: var(--rsc-purple-900);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* Keep headings clear of the premium corner badge */
.rsc-brand-2 .rsc-premium-features .rsc-welcome-text h3 {
  padding-right: 124px;
}

.rsc-brand-2 .rsc-welcome-text p {
  margin: 0;
  color: var(--rsc-muted);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.65;
}

.rsc-brand-2 .rsc-welcome-text p a {
  color: var(--rsc-mauve-500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rsc-brand-2 .rsc-welcome-text p a:hover {
  color: var(--rsc-purple-700);
}

.rsc-brand-2 .rsc-welcome-text p strong {
  color: var(--rsc-ink);
  font-weight: 600;
}

/* Legacy decorative corner — superseded by the card radius */
.rsc-brand-2 .rsc-rouned-box {
  display: none;
}

/* Divider between free and premium sections */
.rsc-brand-2 .rsc-space-wrap {
  float: none;
  width: auto;
}

.rsc-brand-2 .rsc-space-wrap .rsc-spaces {
  width: 64px;
  height: 3px;
  margin: 36px auto;
  background: var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
}

/* --------------------------------------------------------------------------
   6. Corner badges
   -------------------------------------------------------------------------- */

/* "Go Premium" — amber pill (replaces the legacy expanding circle) */
.rsc-brand-2 .rsc-premium-features-button,
.rsc-brand-2 .rsc-premium-features-button:hover {
  position: absolute;
  top: 22px;
  right: 22px;
  width: auto;
  height: auto;
  overflow: visible;
  background: transparent;
  border-radius: var(--rsc-radius-pill);
}

.rsc-brand-2 .rsc-premium-features-button a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  background: var(--rsc-amber-400);
  border-radius: var(--rsc-radius-pill);
  text-decoration: none;
  transition: background .25s var(--rsc-ease), box-shadow .25s var(--rsc-ease), transform .25s var(--rsc-ease);
}

.rsc-brand-2 .rsc-premium-features-button a:hover,
.rsc-brand-2 .rsc-premium-features-button a:focus-visible {
  background: var(--rsc-amber-400-hover);
  box-shadow: var(--rsc-shadow-s);
  transform: translateY(-2px);
}

.rsc-brand-2 .rsc-welcome-text .rsc-premium-features-button span {
  position: static;
  float: none;
  display: inline-block;
  width: auto;
  margin: 0;
  color: var(--rsc-purple-900);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rsc-brand-2 .rsc-premium-features-button .rsc-premium-icon,
.rsc-brand-2 .rsc-premium-features-button:hover .rsc-premium-icon {
  position: static;
  width: 24px;
  height: 24px;
  background: var(--rsc-purple-900);
  background-color: var(--rsc-purple-900);
  border-radius: 50%;
  /* Center the lock sprite inside the circle */
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsc-brand-2 .rsc-premium-features-button .rsc-premium-icon:before {
  margin: 0;
  flex: 0 0 auto;
  float: none;
  /* Size the box to the actual lock glyph (10x14) inside the sprite,
     and shift the background so the glyph fills the box exactly.
     The legacy 17x15 box had ~6px of empty sprite on the right, which
     made the lock look off-center even when the box itself was centered. */
  width: 10px;
  height: 14px;
  background-position: -1px -29px;
}

.rsc-brand-2 .rsc-premium-features-button:hover .rsc-premium-icon:before {
  margin: 0;
  flex: 0 0 auto;
  float: none;
  width: 10px;
  height: 14px;
  background-position: -1px -46px;
}

/* "Included" check — deep purple disc with cream ring */
.rsc-brand-2 .rsc-already-featured {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  background: var(--rsc-purple-900);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--rsc-cream-200);
}

.rsc-brand-2 .rsc-already-featured:before {
  margin: 10px 0 0 8px;
}

/* --------------------------------------------------------------------------
   7. Premium upsell band (deep purple, amber CTA)
   -------------------------------------------------------------------------- */

.rsc-brand-2 .rsc-premium-text {
  position: relative;
  float: none;
  width: auto;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: clamp(26px, 4vw, 40px) clamp(26px, 4vw, 44px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(159, 89, 146, .35), transparent 70%),
    radial-gradient(120% 140% at 50% 0%, #5A2C54 0%, #42213F 62%);
  border-radius: var(--rsc-radius-l);
  box-shadow: var(--rsc-shadow-m);
  overflow: hidden;
}

.rsc-brand-2 .rsc-premium-text span,
.rsc-brand-2 .rsc-premium-features .rsc-premium-text span {
  position: relative;
  z-index: 1;
  float: none;
  display: block;
  width: auto;
  max-width: 36ch;
  margin: 0;
  color: var(--rsc-paper);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-transform: none;
}

.rsc-brand-2 .rsc-premium-features .rsc-premium-button,
.rsc-brand-2 .rsc-premium-text a.rsc-premium-button {
  position: relative;
  z-index: 1;
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  margin: 0;
  padding: 14px 28px;
  background: var(--rsc-amber-400);
  border: 1.5px solid transparent;
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-purple-900);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform .25s var(--rsc-ease), box-shadow .25s var(--rsc-ease), background .25s var(--rsc-ease);
}

.rsc-brand-2 .rsc-premium-features .rsc-premium-button:hover,
.rsc-brand-2 .rsc-premium-features .rsc-premium-button:focus,
.rsc-brand-2 .rsc-premium-text a.rsc-premium-button:hover,
.rsc-brand-2 .rsc-premium-text a.rsc-premium-button:focus {
  background: var(--rsc-amber-400-hover);
  border-color: transparent;
  color: var(--rsc-purple-900);
  transform: translateY(-2px);
  box-shadow: var(--rsc-shadow-m);
  outline: none;
}

/* --------------------------------------------------------------------------
   8. Settings forms — options header band, cards, fields, buttons
   -------------------------------------------------------------------------- */

/* Section intro band above the settings form */
.rsc-brand-2 .rsc-options-header {
  position: relative;
  padding: clamp(26px, 4vw, 40px) clamp(26px, 4vw, 44px);
  background: radial-gradient(120% 90% at 50% 0%, #5A2C54 0%, #42213F 62%);
  border-radius: var(--rsc-radius-l);
  box-shadow: var(--rsc-shadow-m);
  overflow: hidden;
}

.rsc-brand-2 .rsc-options-header p {
  position: relative;
  z-index: 2;
  width: 65%;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.rsc-brand-2 .rsc-options-header img {
  position: absolute;
  right: 40px;
  top: -60px;
  z-index: 1;
  max-width: 42%;
}

/* The form area becomes a transparent frame of cards */
.rsc-brand-2 .rsc-options-wrap {
  float: none;
  width: auto;
  margin: 24px 0 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.rsc-brand-2 .rsc-options-wrap .postbox,
.rsc-brand-2 #tc-restricted-content-settings .postbox {
  background: var(--rsc-paper);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-l);
  box-shadow: var(--rsc-shadow-s);
  overflow: hidden;
  margin-bottom: 24px; /* Keep the section cards separated */
}

.rsc-brand-2 .rsc-options-wrap .postbox .inside,
.rsc-brand-2 #tc-restricted-content-settings .postbox .inside {
  padding: 28px 32px;
  margin: 0;
}

.rsc-brand-2 #poststuff .postbox h3,
.rsc-brand-2 .rsc-options-wrap h3,
.rsc-brand-2 .rsc-fullwidth-field-wrap h3,
.rsc-brand-2 .rsc-halfwidth-field-wrap h3 {
  padding: 0;
  background: transparent;
  color: var(--rsc-purple-900);
  font-family: var(--rsc-font-display);
  font-weight: 600;
  letter-spacing: 0;
}

/* Field rows keep their rhythm, line recolored */
.rsc-brand-2 #tc-restricted-content-settings .postbox table tr {
  border-bottom: 1px solid var(--rsc-line);
}

.rsc-brand-2 #tc-restricted-content-settings .rsc-options-wrap .postbox tbody tr:nth-child(2n + 1) {
  background: transparent;
}

/* Full/half width field groups (shortcodes & login form tabs) */
.rsc-brand-2 .rsc-fullwidth-wrap {
  float: none;
  width: auto;
}

.rsc-brand-2 .rsc-fullwidth-field-wrap,
.rsc-brand-2 .rsc-halfwidth-field-wrap {
  background: var(--rsc-paper);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-l);
  box-shadow: var(--rsc-shadow-s);
  padding: 24px 28px;
  transition: transform .3s var(--rsc-ease), box-shadow .3s var(--rsc-ease), border-color .3s var(--rsc-ease);
}

/* Field cards grid (Shortcodes / Login Form tabs): replaces the legacy
   float + fixed-height layout that left the cards glued together */
.rsc-brand-2 .rsc-fullwidth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  float: none;
  width: auto;
}

.rsc-brand-2 .rsc-fullwidth-wrap .rsc-halfwidth-field-wrap,
.rsc-brand-2 .rsc-fullwidth-wrap .rsc-fullwidth-field-wrap {
  float: none;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 24px 28px;
  box-sizing: border-box;
}

.rsc-brand-2 .rsc-fullwidth-wrap .rsc-fullwidth-field-wrap,
.rsc-brand-2 .rsc-fullwidth-wrap > .rsc_section_description {
  grid-column: 1 / -1;
}

.rsc-brand-2 .rsc-fullwidth-field-wrap:hover,
.rsc-brand-2 .rsc-halfwidth-field-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--rsc-shadow-m);
  border-color: rgba(159, 89, 146, .35);
}

.rsc-brand-2 .rsc_section_description,
.rsc-brand-2 .rsc-options-wrap .description,
.rsc-brand-2 .rc_wrap .description {
  color: var(--rsc-muted);
}

/* Inputs, selects, textareas */
.rsc-brand-2 input[type="text"],
.rsc-brand-2 input[type="email"],
.rsc-brand-2 input[type="url"],
.rsc-brand-2 input[type="number"],
.rsc-brand-2 input[type="password"],
.rsc-brand-2 input[type="search"],
.rsc-brand-2 textarea,
.rsc-brand-2 select,
.rsc_metabox input[type="text"],
.rsc_metabox input[type="number"],
.rsc_metabox textarea,
.rsc_metabox select,
#rsc_metabox input[type="text"],
#rsc_metabox input[type="number"],
#rsc_metabox textarea,
#rsc_metabox select {
  background: var(--rsc-paper);
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-m);
  padding: 12px 16px;
  color: var(--rsc-ink);
  font-family: var(--rsc-font-body);
  box-shadow: none;
  transition: border-color .2s var(--rsc-ease), box-shadow .2s var(--rsc-ease);
}

.rsc-brand-2 input[type="text"]:focus,
.rsc-brand-2 input[type="email"]:focus,
.rsc-brand-2 input[type="url"]:focus,
.rsc-brand-2 input[type="number"]:focus,
.rsc-brand-2 input[type="password"]:focus,
.rsc-brand-2 input[type="search"]:focus,
.rsc-brand-2 textarea:focus,
.rsc-brand-2 select:focus,
.rsc_metabox input:focus,
.rsc_metabox textarea:focus,
.rsc_metabox select:focus,
#rsc_metabox input:focus,
#rsc_metabox textarea:focus,
#rsc_metabox select:focus {
  border-color: var(--rsc-amber-400);
  box-shadow: 0 0 0 4px rgba(255, 189, 72, .16);
  outline: none;
}

.rsc-brand-2 input[type="checkbox"],
.rsc-brand-2 input[type="radio"],
.rsc_metabox input[type="checkbox"],
.rsc_metabox input[type="radio"],
#rsc_metabox input[type="checkbox"],
#rsc_metabox input[type="radio"] {
  accent-color: var(--rsc-mauve-500);
}

/* Primary = amber pill */
.rsc-brand-2 .button-primary,
.rsc-brand-2 .rsc-code-generator .button-primary,
.rsc-brand-2 .rsc_copy_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  margin: 0;
  padding: 14px 28px;
  background: var(--rsc-amber-400);
  border: 1.5px solid transparent;
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-purple-900);
  font-family: var(--rsc-font-display);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform .25s var(--rsc-ease), box-shadow .25s var(--rsc-ease), background .25s var(--rsc-ease);
}

.rsc-brand-2 .button-primary:hover,
.rsc-brand-2 .button-primary:focus,
.rsc-brand-2 .rsc-code-generator .button-primary:hover,
.rsc-brand-2 .rsc-code-generator .button-primary:focus,
.rsc-brand-2 .rsc_copy_button:hover,
.rsc-brand-2 .rsc_copy_button:focus {
  background: var(--rsc-amber-400-hover);
  border-color: transparent;
  color: var(--rsc-purple-900);
  transform: translateY(-2px);
  box-shadow: var(--rsc-shadow-m);
  outline: none;
}

/* Secondary = ghost pill */
.rsc-brand-2 .button-secondary,
.rsc-brand-2 .button:not(.button-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-purple-900);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: none;
  transition: border-color .25s var(--rsc-ease), background .25s var(--rsc-ease), transform .25s var(--rsc-ease);
}

.rsc-brand-2 .button-secondary:hover,
.rsc-brand-2 .button:not(.button-primary):hover {
  border-color: var(--rsc-mauve-500);
  background: rgba(159, 89, 146, .08);
  color: var(--rsc-purple-900);
  transform: translateY(-2px);
}

/* Yes/No pill toggles — recolor only, geometry untouched (JS swaps .rsc-yes-active) */
.rsc-brand-2 .rsc-customized-yes-no,
.rsc_metabox .rsc-customized-yes-no,
#rsc_metabox .rsc-customized-yes-no {
  background-color: var(--rsc-line);
  box-shadow: inset 0 1px 3px rgba(34, 17, 38, .10);
  transition: background-color .25s var(--rsc-ease);
}

.rsc-brand-2 .rsc-customized-yes-no.rsc-yes-active,
.rsc_metabox .rsc-customized-yes-no.rsc-yes-active,
#rsc_metabox .rsc-customized-yes-no.rsc-yes-active {
  background-color: var(--rsc-purple-900);
}

.rsc-brand-2 .rsc-customized-yes-no .rsc-ball,
.rsc_metabox .rsc-customized-yes-no .rsc-ball,
#rsc_metabox .rsc-customized-yes-no .rsc-ball {
  background-color: var(--rsc-paper);
  box-shadow: var(--rsc-shadow-s);
}

.rsc-brand-2 .rsc-customized-yes-no .rsc-yes,
.rsc-brand-2 .rsc-customized-yes-no .rsc-no,
.rsc_metabox .rsc-customized-yes-no .rsc-yes,
.rsc_metabox .rsc-customized-yes-no .rsc-no,
#rsc_metabox .rsc-customized-yes-no .rsc-yes,
#rsc_metabox .rsc-customized-yes-no .rsc-no {
  font-family: var(--rsc-font-body);
  font-weight: 600;
  letter-spacing: .08em;
}

.rsc-brand-2 .rsc-customized-yes-no .rsc-no,
.rsc_metabox .rsc-customized-yes-no .rsc-no,
#rsc_metabox .rsc-customized-yes-no .rsc-no {
  color: var(--rsc-muted);
  opacity: 1;
}

.rsc-brand-2 .rsc-customized-yes-no.rsc-yes-active .rsc-yes,
.rsc_metabox .rsc-customized-yes-no.rsc-yes-active .rsc-yes,
#rsc_metabox .rsc-customized-yes-no.rsc-yes-active .rsc-yes {
  color: var(--rsc-cream-200);
  opacity: 1;
}

/* Code generator / shortcode inputs */
.rsc-brand-2 .rsc-shortcode-input {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--rsc-bg-warm) !important;
}

/* Compound "User Capability" field (label + input in one pill) */
.rsc-brand-2 .rsc-user-capability {
  display: flex;
  align-items: stretch;
  float: none;
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 0;
  margin: 0 0 14px;
  background: var(--rsc-paper);
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
  overflow: hidden;
  box-sizing: border-box;
}

.rsc-brand-2 .rsc-capability-label {
  float: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: var(--rsc-bg-warm);
  border-right: 1.5px solid var(--rsc-line);
  color: var(--rsc-purple-900);
  font-size: .95em;
  font-weight: 600;
  white-space: nowrap;
}

.rsc-brand-2 .rsc-user-capability input {
  float: none;
  flex: 1 1 auto;
  width: auto;
  height: auto;
  padding: 0 20px;
  border: none !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  outline: none;
}

/* Radio pills: neutralize the legacy displaced ::after dot (it was designed
   for the old layout and rendered as a second, misplaced dot) and draw a
   properly centered one instead */
.rsc-brand-2 .rsc-ticket-type-select-input {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: auto;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
  background: var(--rsc-paper);
}

.rsc-brand-2 .rsc-ticket-type-select-input input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  border: 1.5px solid var(--rsc-line);
  border-radius: 50%;
  background: var(--rsc-paper);
  position: relative;
  box-shadow: none;
}

.rsc-brand-2 .rsc-ticket-type-select-input input[type="radio"]:checked {
  border-color: var(--rsc-mauve-500);
}

.rsc-brand-2 .rsc-ticket-type-select-input input[type="radio"]:checked::before {
  content: none;
}

.rsc-brand-2 .rsc-ticket-type-select-input input[type='radio']:checked:after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background-color: var(--rsc-mauve-500);
  visibility: visible;
}

.rsc-brand-2 .rsc-ticket-type-select-input label {
  padding: 0;
  font-size: 1em;
  cursor: pointer;
}

/* Shortcode generator: always-open chosen picker (legacy layout, brand-2 skin) */
.rsc-brand-2 .rsc-input-text {
  float: none;
  display: block;
  margin: 0 0 10px;
  font-size: 1em;
  font-weight: 600;
  color: var(--rsc-purple-900);
}

.rsc-brand-2 .rsc-chosen-multiple .tc-custom-chosen-select-wrap .chosen-container {
  width: 100% !important;
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-l);
  background: var(--rsc-paper);
  overflow: hidden;
  margin: 0 0 16px;
}

/* Inline prefix label injected by admin.js */
.rsc-brand-2 .rsc-chosen-multiple .chosen-container .rsc-chosen-title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--rsc-bg-warm);
  border-right: 1.5px solid var(--rsc-line);
  font-weight: 600;
  color: var(--rsc-purple-900);
  white-space: nowrap;
}

.rsc-brand-2 .rsc-chosen-multiple .chosen-container-multi .chosen-choices {
  flex: 1 1 auto;
  width: auto;
  border: none;
  border-radius: 0;
  min-height: 52px;
  padding: 10px 16px;
  box-shadow: none !important;
}

.rsc-brand-2 .rsc-chosen-multiple .chosen-container .chosen-drop {
  position: static;
  float: none;
  flex: 0 0 100%;
  width: 100%;
  border: none;
  border-top: 1.5px solid var(--rsc-line);
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  background: var(--rsc-bg-warm);
  /* chosen.js hides the closed dropdown with opacity 0 and z-index -1
     (which applies to flex items even when static); this picker variant
     keeps the options permanently visible */
  opacity: 1 !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  clip: auto;
  clip-path: none;
}

.rsc-brand-2 .rsc-chosen-multiple .chosen-container-multi .chosen-results {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 14px 16px 8px;
  margin: 0;
  max-height: 240px;
}

.rsc-brand-2 .rsc-chosen-multiple .chosen-container .chosen-results li {
  display: inline-block; /* chosen hides non-active results; this picker shows all options as pills */
  float: none;
  width: auto;
  margin: 0 8px 8px 0;
  padding: 8px 16px;
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
  background: var(--rsc-paper);
  color: var(--rsc-ink);
  font-size: 1em;
  cursor: pointer;
}

.rsc-brand-2 .rsc-chosen-multiple .chosen-container .chosen-results li.highlighted {
  background: var(--rsc-purple-700);
  background-image: none;
  border-color: var(--rsc-purple-700);
  color: #fff;
}

.rsc-brand-2 .rsc-chosen-multiple .chosen-container .chosen-results li.result-selected {
  background: var(--rsc-line);
  color: var(--rsc-muted);
}

/* Selected pills inside the picker (overrides the legacy green variant) */
.rsc-brand-2 .rsc-chosen-multiple .tc-custom-chosen-select-wrap .chosen-container-multi .chosen-choices li.search-choice {
  background-color: var(--rsc-purple-900);
  background-image: none;
  color: var(--rsc-cream-200);
  border: none;
}

/* --------------------------------------------------------------------------
   9. Chosen.js multi-selects + tooltips
   -------------------------------------------------------------------------- */

.rsc-brand-2 .chosen-container-multi .chosen-choices,
.rsc-brand-2 .chosen-container-single .chosen-single,
.rsc_metabox .chosen-container-multi .chosen-choices,
.rsc_metabox .chosen-container-single .chosen-single,
#rsc_metabox .chosen-container-multi .chosen-choices,
#rsc_metabox .chosen-container-single .chosen-single {
  background: var(--rsc-paper);
  background-image: none;
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-m);
  box-shadow: none;
  padding: 8px 12px;
  min-height: 46px;
}

.rsc-brand-2 .chosen-container-active .chosen-choices,
.rsc-brand-2 .chosen-container-active .chosen-single,
.rsc_metabox .chosen-container-active .chosen-choices,
#rsc_metabox .chosen-container-active .chosen-choices {
  border-color: var(--rsc-amber-400) !important;
  box-shadow: 0 0 0 4px rgba(255, 189, 72, .16) !important;
}

/* Selected pills */
.rsc-brand-2 .chosen-container-multi .chosen-choices li.search-choice,
.rsc_metabox .chosen-container-multi .chosen-choices li.search-choice,
#rsc_metabox .chosen-container-multi .chosen-choices li.search-choice {
  position: relative; /* Positioning context for the close (x) button */
  background: var(--rsc-purple-900);
  background-image: none;
  border: none;
  border-radius: var(--rsc-radius-pill);
  color: var(--rsc-cream-200);
  font-family: var(--rsc-font-body);
  font-weight: 600;
  padding: 6px 26px 6px 14px;
  box-shadow: none;
}

.rsc-brand-2 .chosen-container-multi .chosen-choices li.search-choice .search-choice-close,
.rsc_metabox .chosen-container-multi .chosen-choices li.search-choice .search-choice-close,
#rsc_metabox .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  top: 50% !important;
  right: 8px;
  margin-top: 0 !important;
  transform: translateY(-50%);
}

/* Dropdown panel */
.rsc-brand-2 .chosen-container .chosen-drop,
.rsc_metabox .chosen-container .chosen-drop,
#rsc_metabox .chosen-container .chosen-drop {
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-m);
  box-shadow: var(--rsc-shadow-m);
  background: var(--rsc-paper);
  margin-top: 6px;
}

.rsc-brand-2 .chosen-container .chosen-results li,
.rsc_metabox .chosen-container .chosen-results li,
#rsc_metabox .chosen-container .chosen-results li {
  font-family: var(--rsc-font-body);
  color: var(--rsc-ink);
  border-radius: var(--rsc-radius-s);
  padding: 8px 12px;
}

.rsc-brand-2 .chosen-container .chosen-results li.highlighted,
.rsc_metabox .chosen-container .chosen-results li.highlighted,
#rsc_metabox .chosen-container .chosen-results li.highlighted {
  background: var(--rsc-purple-700);
  background-image: none;
  color: #fff;
  border-radius: var(--rsc-radius-s);
}

.rsc-brand-2 .chosen-container .chosen-results li.result-selected {
  color: var(--rsc-muted);
}

.rsc-brand-2 .chosen-container-single .chosen-search input[type="text"] {
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-s);
  font-family: var(--rsc-font-body);
}

/* Legacy shortcode-times chosen block */
.rsc-brand-2 .rsc_times_shortcode .chosen-container-single .chosen-single {
  border: 1.5px solid var(--rsc-line);
  border-radius: var(--rsc-radius-pill);
  background: var(--rsc-paper);
  background-image: none;
  box-shadow: none;
}

.rsc-brand-2 .rsc_times_shortcode .chosen-container .chosen-results li.highlighted {
  background-color: var(--rsc-purple-700);
  background-image: none;
  border-radius: var(--rsc-radius-s);
}

/* Tooltip trigger icons */
.rsc-brand-2 .rsc-tooltip,
.rsc-brand-2 .rsc_tooltip .dashicons {
  color: var(--rsc-mauve-500);
}

/* jQuery UI tooltip widget is appended to <body> — keep it a neutral white card */
.ui-tooltip {
  background: #fff;
  border: 1px solid #EFE4EA;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(34, 17, 38, .08), 0 12px 32px rgba(34, 17, 38, .10);
  color: #221126;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 10px 14px;
  max-width: 320px;
}

.ui-tooltip-content {
  font-size: 13px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Post editor metabox — soft warm panels
   -------------------------------------------------------------------------- */

.rsc_metabox,
#rsc_metabox,
#rsc_metabox .inside {
  font-family: var(--rsc-font-body);
  color: var(--rsc-ink);
}

body .edit-post-meta-boxes-area .postbox#rsc_metabox .inside:has(> .rsc_content_availability) {
  padding-top: 0;
}

body .edit-post-meta-boxes-area .postbox#rsc_metabox .inside:has(> .rsc_content_availability) .chosen-container {
  width: 100% !important;
}

body .edit-post-meta-boxes-area .postbox#rsc_metabox .inside:has(> .rsc_content_availability) .chosen-single {
  display: flex;
  align-items: center;
}

body .edit-post-meta-boxes-area .postbox#rsc_metabox .inside:has(> .rsc_content_availability) .chosen-single span {
  line-height: 1.25;
  margin: 0;
}

body .edit-post-meta-boxes-area .postbox#rsc_metabox .inside:has(> .rsc_content_availability) .chosen-drop {
  padding: 8px 5px;
}

.rsc-content-availability-chosen .chosen-drop {
  display: none;
  position: relative;
  top: auto;
  left: auto;
  opacity: 0;
  z-index: -1;
  width: 100%;
  pointer-events: none;
}

.rsc-content-availability-chosen.chosen-with-drop .chosen-drop {
  display: block;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.rsc-content-availability-chosen.chosen-with-drop ~ .rsc_sub_metabox {
  display: none;
}

body.tc-admin-2026 .edit-post-meta-boxes-area.is-normal:has(#rsc_metabox) {
  padding-bottom: 0;
}

body.tc-admin-2026 .edit-post-meta-boxes-area.is-normal .postbox#rsc_metabox {
  margin-bottom: 0;
}

.rsc-content-availability-chosen .chosen-results {
  max-height: none;
  overflow-y: visible;
}

.rsc_metabox label,
#rsc_metabox label {
  color: var(--rsc-ink);
}

.rsc_metabox .rsc_sub_metabox,
#rsc_metabox .rsc_sub_metabox {
  background: var(--rsc-bg-warm);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-m);
  padding: 16px 18px;
  margin-top: 12px;
}

.rsc_metabox .rsc_sub_sub,
#rsc_metabox .rsc_sub_sub {
  background: var(--rsc-paper);
  border: 1px solid var(--rsc-line);
  border-radius: var(--rsc-radius-s);
  padding: 12px 14px;
  margin-top: 10px;
}

select.rsc_content_availability {
  border: 1.5px solid var(--rsc-line, #EFE4EA);
  border-radius: var(--rsc-radius-m, 16px);
  padding: 10px 14px;
  font-family: var(--rsc-font-body, "Inter", -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--rsc-ink, #221126);
  box-shadow: none;
  max-width: 100%;
}

select.rsc_content_availability:focus {
  border-color: var(--rsc-amber-400, #FFBD48);
  box-shadow: 0 0 0 4px rgba(255, 189, 72, .16);
  outline: none;
}

/* Notices inside plugin pages (keep WP semantics, brand the edges) */
.rsc-brand-2 .notice,
.rsc-brand-2 div.updated,
.rsc-brand-2 div.error {
  border-radius: var(--rsc-radius-s);
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 1200px) {

  .rsc-brand-2 .rsc-sections-wrap {
    grid-template-columns: 1fr;
  }

  .rsc-brand-2 .rsc-welcome-img {
    flex-basis: 170px;
    width: 170px;
  }

  .rsc-brand-2 .rsc-options-header img {
    max-width: 320px;
  }
}

@media only screen and (max-width: 782px) {

  .rsc-brand-2 {
    margin-top: 6px;
  }

  /* Stack the nav rail above the content column */
  .rsc-brand-2 > #sticky-wrapper,
  .rsc-brand-2 > .rsc-nav-tab-wrapper {
    flex: 0 0 100%;
    width: 100%;
    margin: 0 0 20px;
  }

  .rsc-brand-2 > .rc_wrap {
    flex: 0 0 100%;
  }

  .rsc-brand-2 .rsc-settings-header {
    gap: 18px;
  }

  .rsc-brand-2 .rsc-header-title {
    flex-basis: 100%;
  }

  .rsc-brand-2 .rsc-nav-tab-wrapper ul li a.nav-tab {
    padding: 10px 14px;
  }

  .rsc-brand-2 .rsc-options-wrap .postbox .inside,
  .rsc-brand-2 #tc-restricted-content-settings .postbox .inside {
    padding: 18px;
  }

  .rsc-brand-2 .rsc-options-header p {
    width: 100%;
  }

  .rsc-brand-2 .rsc-options-header img {
    position: static;
    max-width: 100%;
    margin-top: 18px;
  }

  .rsc-brand-2 .form-table th,
  .rsc-brand-2 .form-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
}

@media only screen and (max-width: 480px) {

  .rsc-brand-2 .rsc-settings-header {
    padding: 24px 20px;
  }

  .rsc-brand-2 .rsc-welcome-screen .rsc-half-section,
  .rsc-brand-2 .rsc-welcome-screen .rsc-sections-wrap .rsc-half-section:nth-child(2n),
  .rsc-brand-2 .rsc-premium-features .rsc-half-section {
    flex-direction: column;
  }

  .rsc-brand-2 .rsc-welcome-img {
    flex: none;
    width: 100%;
    height: 150px;
    border-right: none;
    border-bottom: 1px solid var(--rsc-line);
  }

  .rsc-brand-2 .rsc-welcome-text,
  .rsc-brand-2 .rsc-free-features .rsc-welcome-text,
  .rsc-brand-2 .rsc-premium-features .rsc-welcome-text {
    padding: 22px 20px 24px;
  }

  .rsc-brand-2 .rsc-welcome-screen .rsc-welcome-text h3,
  .rsc-brand-2 .rsc-premium-features .rsc-welcome-text h3 {
    padding-right: 0;
  }

  /* Corner badges tuck in on small cards */
  .rsc-brand-2 .rsc-premium-features-button,
  .rsc-brand-2 .rsc-premium-features-button:hover,
  .rsc-brand-2 .rsc-already-featured {
    top: 16px;
    right: 16px;
  }

  .rsc-brand-2 .rsc-premium-text {
    align-items: flex-start;
    flex-direction: column;
  }

  .rsc-brand-2 .rsc-premium-features .rsc-premium-button,
  .rsc-brand-2 .rsc-premium-text a.rsc-premium-button,
  .rsc-brand-2 .button-primary {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   12. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .rsc-brand-2 .rsc-half-section,
  .rsc-brand-2 .rsc-play-icon,
  .rsc-brand-2 .rsc-premium-button,
  .rsc-brand-2 .rsc-documentation-button,
  .rsc-brand-2 .rsc-premium-features-button a,
  .rsc-brand-2 .rsc-fullwidth-field-wrap,
  .rsc-brand-2 .rsc-halfwidth-field-wrap {
    transition: none;
  }
}
