.rbs-shop {
    --rbs-shop-bg: #f5f7fb;
    --rbs-shop-panel: #ffffff;
    --rbs-shop-border: #d9e0ea;
    --rbs-shop-copy: #1f2937;
    --rbs-shop-muted: #5f6b7a;
    --primary-colour-soft: #dff3f1;
    --rbs-shop-danger: #9f3a38;
    --rbs-shop-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f9fbff 0%, #eef3f7 100%);
    color: var(--rbs-shop-copy);
    padding: 48px 0 72px;
}

.rbs-shop-hero,
.rbs-shop-empty,
.rbs-product-detail {
    background: var(--rbs-shop-panel);
    border: 1px solid var(--rbs-shop-border);
    border-radius: 24px;
    box-shadow: var(--rbs-shop-shadow);
}

.rbs-shop-hero {
    margin-bottom: 24px;
    overflow: hidden;
    padding: 32px;
    position: relative;
}

.rbs-shop-hero::after {
    background: radial-gradient(circle at top right, rgba(13, 110, 110, 0.16), transparent 44%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.rbs-shop-hero__copy {
    max-width: 720px;
    position: relative;
    z-index: 1;
    margin: 0 auto 5em;
    text-align: center;
}

.rbs-shop-eyebrow {
    color: var(--primary-colour);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.rbs-shop-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

.rbs-shop-description {
    color: var(--rbs-shop-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.rbs-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}

.rbs-shop-filter {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--rbs-shop-border);
    border-radius: 999px;
    color: var(--rbs-shop-muted);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.2s ease;
}

.rbs-shop-filter:hover,
.rbs-shop-filter:focus,
.rbs-shop-filter.is-active {
    background: var(--primary-colour);
    border-color: var(--primary-colour);
    color: #ffffff;
    text-decoration: none;
}

.rbs-shop-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.rbs-shop-grid__sizer,
.rbs-shop-grid__gutter {
    display: none;
}

.rbs-shop-grid.is-masonry-enhanced {
    display: block;
}

.rbs-shop-grid.is-masonry-enhanced::after {
    clear: both;
    content: '';
    display: block;
}

.rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__sizer,
.rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__gutter {
    display: block;
    float: left;
    height: 0;
}

.rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__sizer,
.rbs-shop-grid.is-masonry-enhanced .rbs-shop-card {
    width: calc((100% - 48px) / 3);
}

.rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__gutter {
    width: 24px;
}

.rbs-shop-grid.is-masonry-enhanced .rbs-shop-card {
    float: left;
    height: auto;
    margin-bottom: 24px;
}

.rbs-shop-card {
    background: var(--rbs-shop-panel);
    border: 1px solid var(--rbs-shop-border);
    border-radius: 22px;
    box-shadow: var(--rbs-shop-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.rbs-shop-card[hidden] {
    display: none !important;
}

.rbs-shop-card__media {
    aspect-ratio: 4 / 3;
    background: #edf3f6;
    display: block;
    overflow: hidden;
    position: relative;
}

.rbs-shop-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rbs-shop-card__placeholder,
.rbs-product-detail__image--placeholder {
    align-items: center;
    color: var(--rbs-shop-muted);
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 24px;
}

.rbs-shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.rbs-shop-card__categories,
.rbs-product-detail__breadcrumbs,
.rbs-product-detail__meta {
    color: var(--rbs-shop-muted);
    font-size: 0.9rem;
}

.rbs-shop-card__title,
.rbs-product-detail__title {
    margin: 0;
}

.rbs-shop-card__title a,
.rbs-shop-card__link {
    text-decoration: none;
}

.rbs-shop-card__title a:hover,
.rbs-product-detail__breadcrumbs a:hover,
.rbs-shop-card__link:hover {
    color: var(--primary-colour);
}

.rbs-shop-price,
.rbs-product-detail__price {
    font-size: 1.25rem;
    font-weight: 700;
}

.rbs-shop-price del {
    color: var(--rbs-shop-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-right: 8px;
}

.rbs-shop-price ins {
    text-decoration: none;
}

.rbs-shop-price__missing {
    color: var(--rbs-shop-muted);
    font-style: italic;
}

.rbs-shop-card__stock,
.rbs-product-detail__stock {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 8px 12px;
    width: fit-content;
}

.rbs-shop-card__stock {
    align-items: center;
    left: 16px;
    margin: 0;
    position: absolute;
    top: 16px;
    z-index: 1;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
}

.rbs-shop-card__stock.is-in-stock,
.rbs-product-detail__stock.is-in-stock {
    background: var(--primary-colour);
    color: #fff;
}

.rbs-shop-card__stock.is-out-of-stock,
.rbs-product-detail__stock.is-out-of-stock {
    background: #fbe7e6;
    color: var(--rbs-shop-danger);
}

.rbs-shop-card__excerpt {
    color: var(--rbs-shop-muted);
    flex: 1;
    line-height: 1.7;
    margin: 0;
    font-size: medium;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rbs-shop-card__link {
    color: var(--primary-colour);
    font-weight: 700;
}

.rbs-shop-card__actions {
    display: grid;
    gap: 10px;
}

.rbs-shop-card__feedback {
    display: none;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 1.4em;
}

.rbs-shop-card__feedback.is-visible {
    display: block;
}

.rbs-shop-card__feedback.is-success {
    color: #146c43;
}

.rbs-shop-card__feedback.is-error {
    color: #b42318;
}

.rbs-shop-card__cart-link[hidden] {
    display: none !important;
}

.rbs-shop-pagination {
    margin-top: 32px;
}

.rbs-shop-pagination .page-numbers {
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 999px;
    display: inline-flex;
    margin: 0 6px 6px 0;
    padding: 10px 14px;
    text-decoration: none;
}

.rbs-shop-pagination .page-numbers.current,
.rbs-shop-pagination .page-numbers:hover {
    background: var(--primary-colour);
    border-color: var(--primary-colour);
    color: #ffffff;
}

.rbs-shop-empty {
    padding: 32px;
    text-align: center;
}

.rbs-shop-empty--filtered {
    margin-top: 32px;
}

.rbs-product-detail {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding: 32px;
}

.rbs-product-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rbs-product-detail__hero-media,
.rbs-product-detail__video {
    background: #edf3f6;
    border-radius: 20px;
    overflow: hidden;
}

.rbs-product-detail__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rbs-product-detail__summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rbs-product-detail__thumbs,
.rbs-product-variation-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.rbs-product-detail__thumb-card,
.rbs-product-variation-card {
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 18px;
    overflow: hidden;
}

.rbs-product-detail__thumb-image,
.rbs-product-variation-card__image {
    display: block;
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.rbs-product-detail__thumb-label {
    color: var(--rbs-shop-muted);
    font-size: 0.9rem;
    margin: 0;
    padding: 12px 14px 14px;
}

.rbs-product-detail__breadcrumbs a {
    text-decoration: none;
}

.rbs-product-detail__excerpt {
    color: var(--rbs-shop-muted);
    line-height: 1.7;
}

.rbs-product-detail__variation-section,
.rbs-product-detail__content {
    grid-column: 1 / -1;
}

.rbs-product-detail__variation-section h2,
.rbs-product-detail__video h2{
    margin: 0;
    font-size: x-large;
}


.rbs-product-detail__content h2 {
    font-size: x-large;
    margin: 0;
}

.rbs-product-detail__video {
    padding: 22px;
}

.rbs-product-detail__video-embed {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.rbs-product-detail__video-embed iframe,
.rbs-product-detail__video-embed embed,
.rbs-product-detail__video-embed object {
    border: 0;
    height: 100%;
    width: 100%;
}

.rbs-product-detail__variation-section {
    display: grid;
    gap: 16px;
}

.rbs-product-variation-card {
    display: flex;
    flex-direction: column;
}

.rbs-product-variation-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.rbs-product-variation-card__title {
    margin: 0;
}

.rbs-product-variation-card__meta {
    color: var(--rbs-shop-muted);
    font-size: 0.9rem;
}

.rbs-product-variation-card__price {
    color: #0b4242;
    font-size: 1.05rem;
    font-weight: 700;
}

.rbs-product-variation-card__stock {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    width: fit-content;
}

.rbs-product-variation-card__stock.is-in-stock {
    background: var(--primary-colour-soft);
    color: var(--primary-colour);
}

.rbs-product-variation-card__stock.is-out-of-stock {
    background: #fbe7e6;
    color: var(--rbs-shop-danger);
}

.rbs-product-detail__wysiwyg {
    color: var(--rbs-shop-copy);
    line-height: 1.8;
}

@media (max-width: 991px) {
    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__sizer,
    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-card {
        width: calc((100% - 20px) / 2);
    }

    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__gutter {
        width: 20px;
    }

    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-card {
        margin-bottom: 20px;
    }

    .rbs-product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__sizer,
    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-card {
        width: 100%;
    }

    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-grid__gutter {
        width: 0;
    }

    .rbs-shop-grid.is-masonry-enhanced .rbs-shop-card {
        margin-bottom: 18px;
    }

    .rbs-shop {
        padding: 32px 0 56px;
    }

    .rbs-shop-hero,
    .rbs-product-detail,
    .rbs-shop-empty {
        border-radius: 18px;
        padding: 22px;
    }

    .rbs-shop-filters {
        gap: 10px;
    }

    .rbs-shop-filter {
        padding: 9px 14px;
    }
}

.rbs-product-detail {
    align-items: start;
    gap: 40px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.rbs-product-detail__media-col,
.rbs-product-detail__summary {
    min-width: 0;
}

.rbs-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rbs-product-gallery__stage {
    aspect-ratio: 16 / 11;
    background: #edf3f6;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.rbs-product-gallery__panel {
    display: none;
    height: 100%;
    width: 100%;
}

.rbs-product-gallery__panel.is-active {
    display: block;
}

.rbs-product-gallery__image,
.rbs-product-gallery__video-wrap,
.rbs-product-gallery__video-wrap iframe {
    display: block;
    height: 100%;
    width: 100%;
}

.rbs-product-gallery__image {
    object-fit: cover;
}

.rbs-product-gallery__video-wrap iframe {
    border: 0;
}

.rbs-product-gallery__placeholder {
    align-items: center;
    color: var(--rbs-shop-muted);
    display: flex;
    font-weight: 700;
    height: 100%;
    justify-content: center;
}

.rbs-product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rbs-product-gallery__thumb {
    background: #ffffff;
    border: 2px solid var(--rbs-shop-border);
    border-radius: 16px;
    cursor: pointer;
    height: 84px;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
    width: 84px;
}

.rbs-product-gallery__thumb:hover,
.rbs-product-gallery__thumb.is-active {
    border-color: var(--primary-colour);
    transform: translateY(-1px);
}

.rbs-product-gallery__thumb img,
.rbs-product-gallery__thumb-video {
    display: block;
    height: 100%;
    width: 100%;
}

.rbs-product-gallery__thumb img {
    object-fit: cover;
}

.rbs-product-gallery__thumb-video {
    position: relative;
}

.rbs-product-gallery__play-icon {
    align-items: center;
    background: rgba(11, 66, 66, 0.28);
    color: #ffffff;
    display: flex;
    font-size: 20px;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.rbs-product-detail__summary {
    gap: 18px;
}

.rbs-product-detail__price {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
}

.rbs-product-detail__stock {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 14px;
    width: fit-content;
}

.rbs-product-detail__stock.is-in-stock {
    background: var(--primary-colour);
    color: #fff;
}

.rbs-product-detail__stock.is-out-of-stock {
    background: #fbe7e6;
    color: var(--rbs-shop-danger);
}

.rbs-product-detail__meta {
    margin: 0;
    padding: 0;
    font-size: small;
    letter-spacing: 1.5px;
    width: fit-content;
}

.rbs-product-detail__meta td {
    padding: 0.2em 2em 0.2em 0em;
}

.rbs-product-detail__variation-section {
    gap: 18px;
}

.rbs-product-detail__variation-intro p {
    color: var(--rbs-shop-muted);
    margin: 8px 0 0;
    font-size: small;
}

.rbs-product-detail__variation-list {
    display: grid;
    gap: 14px;
}


.rbs-product-detail__cart-form {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.rbs-product-detail__cart-qty {
    color: var(--rbs-shop-copy);
    display: grid;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 8px;
    max-width: 160px;
}

.rbs-product-detail__cart-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rbs-product-detail__cart-actions .btn {
    min-width: 180px;
}

.rbs-product-detail__cart-feedback {
    display: none;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 1.5em;
    width:100%;
}

.rbs-product-detail__cart-feedback.is-visible {
    display: block;
}

.rbs-product-detail__cart-feedback.is-success {
    color: #146c43;
}

.rbs-product-detail__cart-feedback.is-error {
    color: #b42318;
}

.rbs-product-variation-option {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 20px;
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    padding: 14px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.rbs-product-variation-option:hover,
.rbs-product-variation-option.is-active {
    border-color: var(--primary-colour);
    box-shadow: 0 12px 28px rgba(8, 42, 55, 0.08);
    transform: translateY(-1px);
}

.rbs-product-variation-option__media {
    background: #edf3f6;
    border-radius: 16px;
    display: flex;
    height: 92px;
    overflow: hidden;
    width: 92px;
}

.rbs-product-variation-option__image,
.rbs-product-variation-option__placeholder {
    display: block;
    height: 100%;
    width: 100%;
}

.rbs-product-variation-option__image {
    object-fit: cover;
}

.rbs-product-variation-option__placeholder {
    align-items: center;
    color: #0b4242;
    display: flex;
    font-size: 1.6rem;
    font-weight: 800;
    justify-content: center;
}

.rbs-product-variation-option__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rbs-product-variation-option__eyebrow {
    color: var(--rbs-shop-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rbs-product-variation-option__label {
    color: var(--rbs-shop-copy);
    font-size: 1rem;
    font-weight: 800;
}

.rbs-product-variation-option__meta {
    color: var(--rbs-shop-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.88rem;
}

.rbs-product-variation-option__price {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.rbs-product-detail__content {
    display: grid;
    gap: 16px;
}

.rbs-cart {
    display: grid;
    gap: 24px;
}

.rbs-cart__header {
    display: grid;
    gap: 12px;
}

.rbs-cart__notice {
    margin: 0;
}

.rbs-cart__table {
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 20px;
    overflow: hidden;
}

.rbs-cart__row {
    align-items: center;
    border-bottom: 1px solid var(--rbs-shop-border);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2.3fr) minmax(120px, 1fr) 120px minmax(170px, 1fr) 80px;
    padding: 20px 24px;
}

.rbs-cart__row:last-child {
    border-bottom: 0;
}

.rbs-cart__row--head {
    background: #f6f8f9;
    color: var(--rbs-shop-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rbs-cart__product {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 100px minmax(0, 1fr);
}

.rbs-cart__product-media {
    aspect-ratio: 1 / 1;
    background: #edf3f6;
    border-radius: 16px;
    display: block;
    overflow: hidden;
}

.rbs-cart__product-image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rbs-cart__product-placeholder {
    align-items: center;
    color: var(--rbs-shop-muted);
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 12px;
    text-align: center;
}

.rbs-cart__product-copy {
    min-width: 0;
}

.rbs-cart__product-title {
    color: var(--rbs-shop-copy);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.rbs-cart__product-variation {
    color: var(--rbs-shop-muted);
    margin: 6px 0 0;
}

.rbs-cart__product-meta {
    align-items: center;
    color: var(--rbs-shop-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 10px;
}

.rbs-cart__unit-price,
.rbs-cart__line-total {
    font-weight: 800;
}

.rbs-cart__line-total-content {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.rbs-cart__line-total-price {
    min-width: 0;
}

.rbs-cart__row-update {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.rbs-cart__remove-btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.rbs-cart__qty .form-control {
    max-width: 104px;
}

.rbs-cart__remove {
    display: flex;
    justify-content: flex-end;
}

.rbs-cart__footer {
    display: flex;
    justify-content: flex-end;
    margin: 2em 0;
}

.rbs-cart__summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
    margin-left: auto;
    width: 100%;
}

.rbs-cart__summary-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 999px;
    display: flex;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
    min-width: 240px;
    padding: 11px 18px;
}

.rbs-checkout {
    display: grid;
    gap: 24px;
}

.rbs-checkout__header {
    display: grid;
    gap: 12px;
}

.rbs-checkout__notice {
    margin: 0;
}

.rbs-checkout__error-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

.rbs-checkout__form,
.rbs-checkout__main {
    display: grid;
    gap: 20px;
}

.rbs-checkout__layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.rbs-checkout__panel,
.rbs-checkout__summary {
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 20px;
    display: grid;
    gap: 18px;
    padding: 22px;
}

.rbs-checkout__panel-head {
    display: grid;
    gap: 8px;
}

.rbs-checkout__panel-head h2 {
    margin: 0;
}

.rbs-checkout__panel-head p {
    color: var(--rbs-shop-muted);
    margin: 0;
}

.rbs-checkout__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rbs-checkout__grid.is-disabled {
    opacity: 0.58;
}

.rbs-checkout__field {
    color: var(--rbs-shop-copy);
    display: grid;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 8px;
}

.rbs-checkout__assist {
    color: var(--rbs-shop-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
}

.rbs-checkout__assist.is-loading {
    color: var(--rbs-shop-copy);
}

.rbs-checkout__assist.is-success {
    color: #1f7a3d;
}

.rbs-checkout__assist.is-error {
    color: #c03221;
}

.rbs-checkout__field--full {
    grid-column: 1 / -1;
}

.rbs-checkout__checkbox {
    align-items: center;
    display: flex;
    gap: 10px;
    font-weight: 700;
}

.rbs-checkout__checkbox input {
    margin: 0;
}

.rbs-checkout__payment-layout {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.rbs-checkout__payment-qr {
    position: relative;
}

.rbs-checkout__payment-qr-image {
    background: #ffffff;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 18px;
    display: block;
    height: auto;
    width: 100%;
}

.rbs-checkout__payment-qr-link {
    position: absolute;
    right: 12px;
    top: 12px;
}

.rbs-checkout__payment-caption {
    color: var(--rbs-shop-muted);
    font-size: 0.84rem;
    margin-top: 10px;
    text-align: center;
}

.rbs-checkout__payment-card {
    background: #f8fafb;
    border: 1px solid var(--rbs-shop-border);
    border-radius: 18px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.rbs-checkout__payment-card h3 {
    margin: 0;
}

.rbs-checkout__payment-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rbs-checkout__payment-list li {
    align-items: center;
    column-gap: 10px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
}

.rbs-checkout__payment-list span {
    color: var(--rbs-shop-copy);
}

.rbs-checkout__payment-help {
    color: var(--rbs-shop-muted);
    margin: 0;
}

.rbs-checkout__summary-payment {
    border-top: 1px solid var(--rbs-shop-border);
    display: grid;
    gap: 16px;
    padding-top: 18px;
}

.rbs-checkout__summary-section-title {
    font-size: 1.1rem;
    margin: 0;
}

.rbs-checkout__payment-layout--summary {
    gap: 16px;
    grid-template-columns: 1fr;
}

.rbs-checkout__payment-qr--summary {
    margin: 0 auto;
    max-width: 240px;
    width: 100%;
}

.rbs-checkout__payment-card--summary {
    gap: 14px;
    padding: 16px;
}

.rbs-checkout__summary {
    align-content: start;
    position: sticky;
    top: 24px;
    transition: opacity 0.2s ease;
}

.rbs-checkout__summary.is-loading {
    opacity: 0.76;
}

.rbs-checkout__summary-items {
    display: grid;
    gap: 12px;
}

.rbs-checkout__summary-item {
    align-items: start;
    border-bottom: 1px solid var(--rbs-shop-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 12px;
}

.rbs-checkout__summary-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rbs-checkout__summary-item strong,
.rbs-checkout__summary-item span {
    display: block;
}

.rbs-checkout__summary-item span {
    color: var(--rbs-shop-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.rbs-checkout__summary-total {
    align-items: center;
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    justify-content: space-between;
}

.rbs-checkout__summary-row {
    align-items: start;
    color: var(--rbs-shop-copy);
    display: flex;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
}

.rbs-checkout__summary-row span {
    display: grid;
    gap: 4px;
}

.rbs-checkout__summary-row small {
    color: var(--rbs-shop-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.rbs-checkout__shipping-note {
    background: #f6f8f9;
    border-radius: 14px;
    color: var(--rbs-shop-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 12px 14px;
}

@media (max-width: 991px) {
    .rbs-product-detail {
        grid-template-columns: 1fr;
    }

    .rbs-cart__row {
        grid-template-columns: minmax(0, 1fr) 110px 110px minmax(160px, 1fr) 70px;
        padding: 18px 20px;
    }

    .rbs-checkout__layout {
        grid-template-columns: 1fr;
    }

    .rbs-checkout__summary {
        position: static;
        top: auto;
    }

    .rbs-checkout__payment-layout {
        grid-template-columns: 1fr;
    }

    .rbs-checkout__payment-qr {
        margin: 0 auto;
        max-width: 280px;
        width: 100%;
    }
}

.rbs-shop-maintenance {
    padding: clamp(56px, 8vw, 96px) 0;
}

.rbs-shop-maintenance__card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(29, 53, 87, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(21, 30, 46, 0.08);
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 760px;
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
}

.rbs-shop-maintenance__eyebrow {
    background: #1d3557;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    justify-self: center;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    text-transform: uppercase;
}

.rbs-shop-maintenance__card h1 {
    color: var(--rbs-shop-text);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
    margin: 0;
}

.rbs-shop-maintenance__message,
.rbs-shop-maintenance__support {
    color: var(--rbs-shop-muted);
    margin: 0 auto;
    max-width: 620px;
}

.rbs-shop-maintenance__message {
    font-size: 1.1rem;
    font-weight: 700;
}

.rbs-shop-maintenance__support {
    font-size: 0.98rem;
}

.rbs-shop-maintenance__actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .rbs-product-detail__cart-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .rbs-cart__row--head {
        display: none;
    }

    .rbs-cart__row {
        grid-template-areas:
            "product product"
            "price qty"
            "total remove";
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        align-items: start;
    }

    .rbs-cart__product {
        grid-area: product;
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .rbs-cart__unit-price,
    .rbs-cart__qty,
    .rbs-cart__line-total,
    .rbs-cart__remove {
        display: grid;
        gap: 6px;
    }

    .rbs-cart__unit-price {
        grid-area: price;
    }

    .rbs-cart__qty {
        grid-area: qty;
    }

    .rbs-cart__line-total {
        grid-area: total;
    }

    .rbs-cart__remove {
        grid-area: remove;
        justify-items: end;
    }

    .rbs-cart__line-total-content {
        justify-content: space-between;
        width: 100%;
    }

    .rbs-cart__unit-price::before,
    .rbs-cart__qty::before,
    .rbs-cart__line-total::before,
    .rbs-cart__remove::before {
        color: var(--rbs-shop-muted);
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .rbs-cart__qty .form-control {
        max-width: none;
        width: 100%;
    }

    .rbs-cart__remove-btn,
    .rbs-cart__row-update {
        height: 40px;
        width: 40px;
    }

    .rbs-cart__summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
        min-width: 0;
        width: 100%;
    }

    .rbs-cart__summary-row {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
    }

    .rbs-cart__summary > .btn {
        width: 100%;
    }

    .rbs-checkout__panel,
    .rbs-checkout__summary {
        padding: 18px;
    }

    .rbs-checkout__grid {
        grid-template-columns: 1fr;
    }

    .rbs-checkout__field--full {
        grid-column: auto;
    }

    .rbs-product-gallery__thumb {
        height: 72px;
        width: 72px;
    }

    .rbs-product-variation-option {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .rbs-product-variation-option__media {
        height: 76px;
        width: 76px;
    }

    .rbs-product-variation-option__price {
        grid-column: 2;
    }

    .rbs-shop-maintenance__card {
        border-radius: 22px;
        padding: 24px 20px;
    }

    .rbs-shop-maintenance__actions .btn {
        width: 100%;
    }
}
