/**
 * Ring Builder — Single Setting (Elegant Theme).
 *
 * Queensmith-inspired product configurator.
 * BLACK accent (#1a1a1a), serif headings, sharp minimalist aesthetic.
 *
 * @package    NivoSync
 * @subpackage ring-builder/assets/css/elegant
 * @since      2.2.0
 */

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 1 — Layout & Scoped Reset
   ═══════════════════════════════════════════════════════════════════════ */

.ns-rbs,
.ns-rbs *,
.ns-rbs *::before,
.ns-rbs *::after {
    box-sizing: border-box;
}

.ns-rbs {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Theme override: neutralize WP theme / WooCommerce accent colors,
   border-radius, padding, and states on ALL our buttons/links.
   Hello Elementor's reset.css sets [type=button],button { border-radius:3px;
   padding:.5rem 1rem; border:1px solid #c36; } which breaks our dots. */
.ns-rbs button,
.ns-rbs a {
    color: inherit;
    text-decoration: none;
}

/* Reset WP/WC button styles inside .ns-rbs but exclude styled dots/buttons
   that define their own border, border-radius, background, etc. */
.ns-rbs button:not(.ns-rbs-metal-dot):not(.ns-rbs-band-dot):not(.ns-rbs-shape-btn):not(.ns-rbs-btn--primary):not(.ns-rbs-btn--outline) {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
    white-space: normal;
}

.ns-rbs button:not(.ns-rbs-metal-dot):not(.ns-rbs-band-dot):not(.ns-rbs-shape-btn):not(.ns-rbs-btn--primary):not(.ns-rbs-btn--outline):hover,
.ns-rbs button:not(.ns-rbs-metal-dot):not(.ns-rbs-band-dot):not(.ns-rbs-shape-btn):not(.ns-rbs-btn--primary):not(.ns-rbs-btn--outline):focus,
.ns-rbs button:not(.ns-rbs-metal-dot):not(.ns-rbs-band-dot):not(.ns-rbs-shape-btn):not(.ns-rbs-btn--primary):not(.ns-rbs-btn--outline):active {
    background: transparent;
    color: inherit;
    border: none;
    box-shadow: none;
    outline: none;
}

/* Extra resets for non-styled buttons (selectors, triggers, dots).
   Gallery thumbs & CTA .ns-rbs-btn define their own border/bg below. */
.ns-rbs .ns-rbs-selector button,
.ns-rbs .ns-rbs-ring-size button,
.ns-rbs .ns-rbs-metal-dot,
.ns-rbs .ns-rbs-band-dot,
.ns-rbs .ns-rbs-shape-btn {
    font-family: inherit;
    min-width: auto;
    letter-spacing: inherit;
    text-transform: none;
}

/* SVG shape icons — ensure stroke inherits from button color */
.ns-rbs .stroke-current,
.ns-rbs .ns-shape-svg {
    stroke: currentColor;
}

.ns-rbs-configurator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ─── Gallery ──────────────────────────────────────────────────────── */

.ns-rbs-gallery {
    position: sticky;
    top: 2rem;
}

.ns-rbs-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.ns-rbs-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ns-rbs-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
}

.ns-rbs-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ns-rbs .ns-rbs-gallery__thumb {
    position: relative;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    min-width: auto;
    border-radius: 0;
}

.ns-rbs .ns-rbs-gallery__thumb:hover,
.ns-rbs .ns-rbs-gallery__thumb.is-active {
    border-color: #1a1a1a;
}

.ns-rbs-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Gallery Layout: Thumbnails Bottom (default) ──────────────────── */

.ns-rbs-gallery--bottom .ns-rbs-gallery__thumb {
    width: 100px;
    height: 100px;
}

/* ─── Gallery Layout: Thumbnails Left ──────────────────────────────── */

.ns-rbs-gallery--left {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.ns-rbs-gallery--left .ns-rbs-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    order: -1;
    flex-shrink: 0;
}

.ns-rbs-gallery--left .ns-rbs-gallery__thumb {
    width: 130px;
    height: 130px;
}

.ns-rbs-gallery--left .ns-rbs-gallery__main {
    flex: 1;
    min-width: 0;
}

/* ─── Gallery Layout: Grid ─────────────────────────────────────────── */

.ns-rbs-gallery--grid .ns-rbs-gallery__main {
    display: none;
}

.ns-rbs-gallery--grid .ns-rbs-gallery__thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0;
}

.ns-rbs-gallery--grid .ns-rbs-gallery__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    cursor: default;
    border-color: transparent !important;
    pointer-events: none;
}

.ns-rbs-gallery--grid .ns-rbs-gallery__thumb img {
    object-fit: contain;
    background: #fafafa;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 2 — Info Panel (title, pricing, selectors, CTA)
   ═══════════════════════════════════════════════════════════════════════ */

.ns-rbs-info {
    position: sticky;
    top: 2rem;
}

/* ─── Title ────────────────────────────────────────────────────────── */

.ns-rbs-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 0.25rem;
}

/* ─── Pricing (Queensmith layout) ─────────────────────────────────── */

.ns-rbs-pricing {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.ns-rbs-pricing__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.ns-rbs-pricing__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #555;
}

.ns-rbs-pricing__label .ns-rbs-ico {
    opacity: 0.5;
}

.ns-rbs-pricing__value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Diamond info block (shown inline when diamond is in session) */
.ns-rbs-pricing__diamond {
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid #f0f0f0;
}

.ns-rbs-pricing__diamond-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.25rem 0 0.5rem 1.75rem;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
}

.ns-rbs .ns-rbs-pricing__link {
    display: inline;
    font-size: 0.8rem;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.ns-rbs .ns-rbs-pricing__link:hover {
    color: #555;
}

/* Price + Modify grouped inline on the same row */
.ns-rbs-pricing__value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ns-rbs .ns-rbs-pricing__modify {
    font-size: 0.8rem;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    white-space: nowrap;
}

.ns-rbs .ns-rbs-pricing__modify:hover {
    color: #555;
}

/* No-diamond state — "Select a Diamond / Choose one for me" */
.ns-rbs-pricing__no-diamond {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.ns-rbs-pricing__sep {
    color: #ccc;
}

/* Total row */
.ns-rbs-pricing__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e5e5e5;
}

.ns-rbs-pricing__value--total {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.ns-rbs-pricing__asterisk {
    vertical-align: super;
    font-size: 0.7em;
}

.ns-rbs-pricing__disclaimer {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.4;
    margin: 0.5rem 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   ATTRIBUTE SELECTORS — Generic structure used by Shape, Metal, Band
   ═══════════════════════════════════════════════════════════════════════ */

.ns-rbs-selector {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.ns-rbs-selector__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ns-rbs-selector__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.ns-rbs-selector__value {
    font-weight: 600;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
}

.ns-rbs-selector__options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.ns-rbs-selector .ns-rbs-ico {
    opacity: 0.4;
    flex-shrink: 0;
}

/* ─── Diamond Shape Selector ──────────────────────────────────────── */

.ns-rbs .ns-rbs-shape-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    padding: 0;
    min-width: auto;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.ns-rbs .ns-rbs-shape-btn:hover,
.ns-rbs .ns-rbs-shape-btn:focus {
    border-color: #999;
    background-color: #161616;
    color: #fff;
    text-decoration: none;
}

.ns-rbs .ns-rbs-shape-btn.is-active {
    border-color: #c1c1c1;
    border-width: 1px;
}

.ns-rbs .ns-rbs-shape-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* ─── Metal Colour Dots (PHP-rendered from pa_ns-metal) ────────────── */

.ns-rbs .ns-rbs-metal-dot {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ns-rbs .ns-rbs-metal-dot:hover {
    border-color: #999;
}

.ns-rbs .ns-rbs-metal-dot.is-active {
    border-color: #c1c1c1;
}

/* Image-type metal dot */
.ns-rbs .ns-rbs-metal-dot--image {
    background-size: cover !important;
    background-position: center !important;
}

/* ─── Metal Preset Gradients ─────────────────────────────────────── */
/* These mirror the settings-card presets. Using !important to
   override any WP theme backgrounds. */

.ns-rbs .ns-metal--platinum {
    background: #fff linear-gradient(225deg, #cececc, hsla(0, 0%, 85%, .2) 50%, #cececc) !important;
}

.ns-rbs .ns-metal--yellow-gold {
    background: #fff linear-gradient(225deg, #e6cd92, hsla(42, 63%, 74%, .2) 50%, #e6cd92) !important;
}

.ns-rbs .ns-metal--rose-gold {
    background: #fff linear-gradient(322deg, #e7b395, hsla(22, 63%, 75%, .2) 50%, #e7b395) !important;
}

.ns-rbs .ns-metal--white-gold {
    background: #fff linear-gradient(225deg, #cececc, hsla(0, 0%, 85%, .2) 50%, #cececc) !important;
}

.ns-rbs .ns-metal--silver {
    background: #fff linear-gradient(225deg, #b8b8b8, hsla(0, 0%, 80%, .2) 50%, #d0d0d0) !important;
}

.ns-rbs .ns-metal--palladium {
    background: #fff linear-gradient(225deg, #c8c8c8, hsla(0, 0%, 88%, .2) 50%, #e0e0e0) !important;
}

/* ─── Band Style Dots (circular SVG icons) ────────────────────────── */

.ns-rbs .ns-rbs-band-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ns-rbs .ns-rbs-band-dot:hover {
    border-color: #999;
    background: #fff;
}

.ns-rbs .ns-rbs-band-dot:focus,
.ns-rbs .ns-rbs-band-dot:focus-visible {
    outline: none;
    border-color: #999;
    background: #fff;
}

.ns-rbs .ns-rbs-band-dot.is-active {
    border-color: #484848;
    border-width: 1px;
}

.ns-rbs .ns-rbs-band-dot__svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.ns-rbs .ns-rbs-band-dot__svg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ns-rbs .ns-rbs-band-dot__text {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
}

/* ─── Variations data container (hidden) ─────────────────────────── */

.ns-rbs-variations {
    display: none !important;
}

/* ─── Ring Size (collapsible grid of buttons) ─────────────────────── */

.ns-rbs-ring-size {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.25rem;
}

.ns-rbs .ns-rbs-ring-size__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: inherit !important;
    text-align: left;
    min-width: auto;
    border-radius: 0;
}

.ns-rbs-ring-size__trigger .ns-rbs-chevron {
    transition: transform 0.25s;
    color: #999;
    flex-shrink: 0;
}

.ns-rbs-ring-size__trigger[aria-expanded="true"] .ns-rbs-chevron {
    transform: rotate(180deg);
}

.ns-rbs-ring-size__panel {
    padding-top: 0.75rem;
}

.ns-rbs-ring-size__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ns-rbs .ns-rbs-ring-size__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 34px;
    padding: 0;
    border: 1px solid #ddd !important;
    background: #fff !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
    min-width: auto;
    border-radius: 0;
}

.ns-rbs .ns-rbs-ring-size__btn:hover {
    border-color: #999;
}

.ns-rbs .ns-rbs-ring-size__btn.is-active {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
}

/* ─── CTA Buttons ──────────────────────────────────────────────────── */

.ns-rbs-cta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.ns-rbs-cta__trust {
    font-size: 0.78rem;
    color: #888;
    text-align: center;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Double specificity to override WP theme button styles.
   Matches single-diamond CTA aesthetic (elegant-single.css). */
.ns-rbs .ns-rbs-btn {
    display: block;
    width: 100%;
    padding: 1.25rem 1.875rem;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    line-height: 1;
    box-sizing: border-box;
}

/* Add to Bag — solid dark, hover inverts */
.ns-rbs .ns-rbs-btn--primary,
.ns-rbs button.ns-rbs-btn--primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.ns-rbs .ns-rbs-btn--primary:hover,
.ns-rbs button.ns-rbs-btn--primary:hover {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Book Appointment — outline, hover fills */
.ns-rbs .ns-rbs-btn--secondary,
.ns-rbs a.ns-rbs-btn--secondary {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.ns-rbs .ns-rbs-btn--secondary:hover,
.ns-rbs a.ns-rbs-btn--secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

.ns-rbs .ns-rbs-btn__sep {
    opacity: 0.4;
    margin: 0 0.15rem;
}

.ns-rbs .ns-rbs-btn__price {
    font-weight: 700;
}

.ns-rbs .ns-rbs-btn .ns-rbs-arrow {
    transition: transform 0.2s;
}

.ns-rbs .ns-rbs-btn:hover .ns-rbs-arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 3 — Description Accordion (inside .ns-rbs-info panel)
   ═══════════════════════════════════════════════════════════════════════ */

.ns-rbs-info .ns-rbs-accordion {
    margin-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    border-bottom: none;
}

.ns-rbs .ns-rbs-accordion__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.1rem 0;
    background: none !important;
    border: none !important;
    border-radius: 0;
    min-width: auto;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: #1a1a1a !important;
    transition: color 0.2s;
}

.ns-rbs .ns-rbs-accordion__trigger:hover {
    color: #555;
}

.ns-rbs-accordion__trigger .ns-rbs-chevron {
    transition: transform 0.25s;
}

.ns-rbs-accordion__trigger[aria-expanded="true"] .ns-rbs-chevron {
    transform: rotate(180deg);
}

.ns-rbs-accordion__panel {
    overflow: hidden;
}

.ns-rbs-accordion__content {
    padding: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.ns-rbs-accordion__content p {
    margin: 0 0 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 4 — Diamond Section (Expansion Panel + Diamond Grid)
   Uses .ns-diamonds-wrapper + expansion-panel classes from elegant-loop.css.
   Only layout/heading overrides needed here.
   ═══════════════════════════════════════════════════════════════════════ */

.ns-rbs-diamond-section {
    margin: 3rem auto 0;
}

/* Full-bleed heading: breaks out of .ns-rbs max-width container.
   Users can add a background (color, image, gradient) via custom CSS
   and it will span the full viewport width. The inner text stays centered.
   Customizable via CSS variables:
     --ns-rbs-diamond-heading-bg:      background color/image
     --ns-rbs-diamond-heading-color:   text color
     --ns-rbs-diamond-heading-border:  top border  */
.ns-rbs-diamond-section__heading {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-family: Raleway, "Times New Roman", Times, serif;
    font-size: 1.95rem;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 1.5rem;
    padding: 3.5rem 1rem;
    color: #ffffff;
    background: #000000fa;
    border-top: var(--ns-rbs-diamond-heading-border, 1px solid #e5e5e5);
}

/* Expansion panel inside the setting page — full-width, no max-height */
.ns-rbs .ns-diamonds-wrapper .ns-expansion-panel {
    border: 1px solid #1a1a1a;
}

.ns-rbs .ns-diamonds-wrapper .ns-expansion-panel-inner {
    max-height: none;
}

/* Diamond grid inside the setting page — constrain layout */
.ns-rbs .ns-rbs-diamond-loop .ns-diamonds-grid {
    padding: 0;
}

/* Non-compatible shape buttons — slightly grayed out */
.ns-rbs .ns-rbs-shape-btn--alt {
    opacity: 0.45;
}

.ns-rbs .ns-rbs-shape-btn--alt:hover {
    opacity: 0.8;
}

.ns-rbs .ns-rbs-shape-btn--alt.is-active {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 6 — Shop Similar Settings
   ═══════════════════════════════════════════════════════════════════════ */

.ns-rbs-similar {
    margin-top: 3rem;
}

/* Full-bleed heading: same technique as diamond section.
   Customizable via CSS variables:
     --ns-rbs-similar-heading-bg:      background color/image
     --ns-rbs-similar-heading-color:   text color
     --ns-rbs-similar-heading-border:  top border  */
.ns-rbs-similar__heading {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-family: Raleway, "Times New Roman", Times, serif;
    font-size: 1.95rem;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 1.5rem;
    padding: 3.5rem 1rem;
    color: #ffffff;
    background: #000000fa;
    border-top: var(--ns-rbs-diamond-heading-border, 1px solid #e5e5e5);
}

.ns-rbs-similar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .ns-rbs-configurator {
        gap: 2rem;
    }

    .ns-rbs-gallery {
        position: static;
    }

    .ns-rbs-info {
        position: static;
    }

}

@media (max-width: 768px) {
    .ns-rbs {
        padding: 1rem 1rem 3rem;
    }

    .ns-rbs-configurator {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ns-rbs-title {
        font-size: 1.4rem;
    }

    .ns-rbs-similar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery left → collapse to bottom on tablet */
    .ns-rbs-gallery--left {
        flex-direction: column;
    }

    .ns-rbs-gallery--left .ns-rbs-gallery__thumbs {
        flex-direction: row;
        order: 0;
        margin-top: 0.75rem;
    }

    .ns-rbs-gallery--left .ns-rbs-gallery__thumb {
        width: 80px;
        height: 80px;
    }

    /* Gallery grid → reduce gap on tablet */
    .ns-rbs-gallery--grid .ns-rbs-gallery__thumbs {
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .ns-rbs-title {
        font-size: 1.2rem;
    }

    .ns-rbs-pricing__value--total {
        font-size: 1.1rem;
    }

    .ns-rbs .ns-rbs-ring-size__btn {
        width: 48px;
        height: 30px;
        font-size: 0.75rem;
    }

    .ns-rbs-similar__grid {
        grid-template-columns: 1fr;
    }

    .ns-rbs-gallery__thumb {
        width: 56px;
        height: 56px;
    }

    .ns-rbs-shape-btn {
        width: 36px;
        height: 36px;
    }

    .ns-rbs .ns-rbs-band-dot {
        width: 36px;
        height: 36px;
    }

    .ns-rbs .ns-rbs-metal-dot {
        width: 28px;
        height: 28px;
    }
}

/* Modal styles are in the shared assets/css/ns-modal.css (enqueued as dependency). */
