:root {
    --rd-blue: #005988;
    --rd-ink: #0c2340;
    --rd-muted: #6b7280;
    --rd-line: #d9d9d9;
    --rd-orange: #ef6b3b;
    --rd-soft: #fdf9f6;
    --rd-peach: #ffede8;
}

.rewards-detail-page {
    background: #fff;
    color: var(--rd-ink);
}

.rewards-detail-main {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
    padding: 156px 0 88px;
}

.rewards-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #666;
    font-size: 16px;
}

.rewards-detail-breadcrumb a,
.rewards-detail-breadcrumb span {
    color: inherit;
    text-decoration: none;
}

.rewards-detail-breadcrumb .is-active {
    color: var(--rd-orange);
    font-weight: 600;
}

.rewards-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.rewards-detail-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rewards-detail-brand {
    font-size: 22px;
    font-weight: 500;
    text-decoration: underline;
    color: #222;
}

.rewards-detail-title {
    margin: 0;
    color: var(--rd-ink);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.25;
    font-weight: 600;
}

.rewards-detail-description {
    margin: 0;
    color: #565656;
    font-size: 22px;
    line-height: 1.65;
}

.rewards-detail-price {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rd-ink);
    font-size: clamp(34px, 2.7vw, 44px);
    font-weight: 700;
}

.rewards-detail-price.is-quote {
    color: var(--rd-orange);
    font-size: 30px;
}

.rewards-detail-price.is-hidden {
    color: #8b8b8b;
    font-size: 28px;
}

.rewards-login-card {
    padding: 14px;
    border-radius: 16px;
    background: var(--rd-soft);
    box-shadow: 0 0 3px #0049fe;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rewards-login-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rewards-login-card__copy {
    flex: 1;
}

.rewards-login-card__title {
    margin: 0;
    color: var(--rd-orange);
    font-size: 26px;
    font-weight: 500;
}

.rewards-login-card__desc {
    margin: 8px 0 0;
    color: #222;
    font-size: 16px;
    line-height: 1.7;
}

.rewards-login-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rd-orange);
    box-shadow: 0 0 9px rgba(239, 107, 59, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rd-ink);
    font-size: 24px;
}

.rewards-login-card__cta {
    min-height: 54px;
    border-radius: 10px;
    background: var(--rd-orange);
    border: 0;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
}

.rewards-login-card__form {
    display: grid;
    gap: 10px;
}

.rewards-login-card__label {
    color: #223047;
    font-size: 13px;
    font-weight: 600;
}

.rewards-login-card__input {
    width: 100%;
    height: 46px;
    border: 1px solid #d5e0f5;
    border-radius: 10px;
    padding: 0 12px;
    color: #12263f;
    background: #fff;
    font-size: 14px;
}

.rewards-login-card__input:focus {
    outline: none;
    border-color: #7ba5e6;
    box-shadow: 0 0 0 2px rgba(123, 165, 230, 0.22);
}

.rewards-login-card__input.is-invalid {
    border-color: #d14343;
}

.rewards-login-card__feedback {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.rewards-login-card__feedback--success {
    color: #0f7a43;
}

.rewards-login-card__feedback--error {
    color: #c73333;
}

.rewards-login-card__secondary {
    color: #ef6b3b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.rewards-login-card__secondary:hover,
.rewards-login-card__secondary:focus-visible {
    text-decoration: underline;
}

.rewards-login-card__note {
    margin: 0;
    color: #5e6878;
    font-size: 12px;
    line-height: 1.6;
}

.rewards-detail-gallery {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 18px;
}

.rewards-detail-main-image {
    width: min(100%, 430px);
    aspect-ratio: 425 / 488;
    object-fit: contain;
}

.rewards-detail-thumbs {
    width: 110px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rewards-detail-thumb {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 8px;
    background: #fff;
    cursor: pointer;
}

.rewards-detail-thumb.is-active {
    border-color: var(--rd-orange);
}

.rewards-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rewards-specs {
    margin-top: 72px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 24px;
}

.rewards-specs__title {
    margin: 0 0 24px;
    font-size: 42px;
    font-weight: 500;
    color: var(--rd-blue);
    border-bottom: 1px solid #fff;
    padding-bottom: 12px;
}

.rewards-specs__box {
    border: 1px solid #dadada;
    border-radius: 10px;
    padding: 28px;
}

.rewards-specs__name {
    margin: 0 0 18px;
    color: var(--rd-ink);
    font-size: 28px;
    font-weight: 500;
}

.rewards-specs__text {
    margin: 0;
    color: var(--rd-ink);
    font-size: 20px;
    line-height: 1.95;
    white-space: pre-line;
}

.rewards-detail-benefits {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rewards-detail-benefit {
    padding: 16px;
    border-radius: 10px;
    background: var(--rd-soft);
    box-shadow: 0 0 3px #0049fe;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rewards-detail-benefit__icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rd-orange);
    box-shadow: 0 0 9px rgba(239, 107, 59, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a5f9e;
    flex: 0 0 52px;
}

.rewards-detail-benefit__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rewards-detail-benefit h4 {
    margin: 0 0 6px;
    color: var(--rd-ink);
    font-size: 24px;
    font-weight: 500;
}

.rewards-detail-benefit p {
    margin: 0;
    color: var(--rd-ink);
    font-size: 14px;
    line-height: 1.7;
}

.rewards-related {
    margin-top: 64px;
}

.rewards-related__title {
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #fff;
    color: var(--rd-blue);
    font-size: 48px;
    font-weight: 500;
    text-align: center;
}

.rewards-related__row {
    margin-top: 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

/* CAROUSEL ARROWS.

   These were rendering as squashed ellipses with the glyph sitting off
   centre. Three things caused it, and all three are fixed here:

     1. A grid item with only width/height still shrinks when the row runs
        short of space, so the circle was being compressed horizontally
        into an oval. flex/grid children need an explicit shrink guard.
     2. The glyph was positioned by the default inline text baseline
        rather than centred, so it sat high inside the circle.
     3. `‹` and `›` carry side bearings that are not symmetrical, which
        leaves the mark visually off-centre even once the box is centred.

   Sizing is stated on all three axes (width, height, flex-basis) so no
   parent layout can reinterpret it. */
.rewards-related__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e1e8ef;
    background: #fff;
    box-shadow: 0 2px 8px -2px rgba(12, 35, 64, .12);
    color: #5a7186;
    /* Line-height 1 removes the descender space that pushed the glyph
       down inside the circle. */
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rewards-related__arrow:hover {
    border-color: var(--rewards-blue, #005988);
    color: var(--rewards-blue, #005988);
    box-shadow: 0 6px 16px -4px rgba(0, 89, 136, .3);
    transform: translateY(-1px);
}

.rewards-related__arrow:focus-visible {
    outline: 2px solid var(--rewards-blue, #005988);
    outline-offset: 3px;
}

.rewards-related__arrow:active {
    transform: translateY(0);
}

/* The chevrons are not optically centred in their em box: `‹` hangs
   slightly right and `›` slightly left. Nudging each one back is the
   difference between "a circle with an arrow" and "a button". */
.rewards-related__arrow[data-related-prev] {
    text-indent: -2px;
}

.rewards-related__arrow[data-related-next] {
    text-indent: 2px;
}

.rewards-related__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    /* The visible scrollbar under the cards was doing nothing useful: the
       arrows already move the row, and a raw system scrollbar reads as an
       unfinished component. Hidden here, with the row still fully
       scrollable by touch, trackpad and keyboard. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rewards-related__scroller::-webkit-scrollbar {
    display: none;
}

.rewards-related__cards {
    display: flex;
    gap: 22px;
    padding: 4px;
}

.rewards-related .reward-card {
    width: 270px;
    min-width: 270px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    border: 0;
}

.rewards-related .reward-image {
    aspect-ratio: 250 / 280;
    padding: 12px;
    background: #fff;
}

.rewards-related .reward-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rewards-related .reward-body {
    padding: 8px 16px 16px;
    gap: 10px;
}

.rewards-related .pill-row {
    display: none;
}

.rewards-related .card-title {
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
}

.rewards-related .section-copy,
.rewards-related .card-copy {
    display: none;
}

.rewards-related .reward-price {
    font-size: 30px;
    font-weight: 700;
    justify-content: center;
}

.rewards-related .reward-price::after {
    content: 'SAR';
    font-size: 30px;
    font-weight: 500;
    margin-inline-start: 10px;
}

.rewards-related .reward-link {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .rewards-detail-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .rewards-detail-gallery {
        justify-content: center;
    }

    .rewards-specs__title {
        font-size: 34px;
    }

    .rewards-related__title {
        font-size: 38px;
    }
}

@media (max-width: 860px) {
    .rewards-detail-main {
        padding-top: 130px;
    }

    .rewards-detail-breadcrumb {
        font-size: 14px;
        flex-wrap: wrap;
    }

    .rewards-detail-description {
        font-size: 18px;
    }

    .rewards-detail-title {
        font-size: 32px;
    }

    .rewards-login-card__title,
    .rewards-login-card__cta {
        font-size: 22px;
    }

    .rewards-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .rewards-detail-thumbs {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        overflow: auto;
    }

    .rewards-specs {
        padding: 16px;
    }

    .rewards-specs__box {
        padding: 18px;
    }

    .rewards-specs__name {
        font-size: 24px;
    }

    .rewards-specs__text {
        font-size: 17px;
    }

    .rewards-detail-benefits {
        grid-template-columns: 1fr;
    }

    .rewards-related .reward-card {
        width: 240px;
        min-width: 240px;
    }

    .rewards-related .reward-price,
    .rewards-related .reward-price::after {
        font-size: 22px;
    }
}

/* Gift-store product detail — Figma desktop composition. These rules are
   deliberately scoped to this page to prevent the broader B2B page styles
   from stretching product imagery or mixing the two-column layout. */
@media (min-width: 1025px) {
    .gift-store-detail-page .rewards-detail-main {
        width: min(1140px, calc(100% - 48px));
        padding: 182px 0 120px;
    }

    .gift-store-detail-page .rewards-detail-breadcrumb {
        justify-content: flex-start;
        margin-bottom: 56px;
        font-size: 18px;
    }

    .gift-store-detail-page .rewards-detail-top {
        display: grid;
        grid-template-columns: 525px minmax(0, 1fr);
        gap: 60px;
        align-items: start;
        direction: ltr;
    }

    .gift-store-detail-page .rewards-detail-info {
        grid-column: 1;
        align-items: flex-end;
        text-align: end;
        gap: 30px;
    }

    .gift-store-detail-page .rewards-detail-gallery {
        grid-column: 2;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 20px;
        min-width: 0;
    }

    .gift-store-detail-page .rewards-detail-image-stage,
    .gift-store-detail-page .rewards-detail-image-zoom {
        width: 425px;
        height: 488px;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .gift-store-detail-page .rewards-detail-image-zoom {
        display: block;
        cursor: zoom-in;
    }

    .gift-store-detail-page .rewards-detail-main-image {
        display: block;
        width: 425px;
        height: 488px;
        max-width: none;
        aspect-ratio: auto;
        object-fit: contain;
        border-radius: 0;
        background: transparent;
    }

    .gift-store-detail-page .rewards-detail-image-hint { display: none; }

    .gift-store-detail-page .rewards-detail-thumbs {
        width: 110px;
        flex: 0 0 110px;
        gap: 16px;
    }

    .gift-store-detail-page .rewards-detail-thumb {
        width: 110px;
        height: 110px;
        padding: 8px;
    }

    .gift-store-detail-page .rewards-detail-thumb img {
        width: 92px;
        height: 92px;
        object-fit: contain;
    }

    .gift-store-detail-page .rewards-detail-brand { font-size: 20px; color: #333; text-decoration: underline; font-weight: 500; }
    .gift-store-detail-page .rewards-detail-title { font-size: 32px; line-height: 1.25; font-weight: 500; }
    .gift-store-detail-page .rewards-detail-description { font-size: 20px; line-height: 1.45; color: #4d4d4d; }
    .gift-store-detail-page .rewards-detail-price { font-size: 32px; line-height: 1; margin-top: 4px; }

    .gift-store-detail-page .rewards-login-card {
        width: 100%;
        padding: 12px;
        border-radius: 16px;
        background: #fdf9f6;
        box-shadow: 0 0 3px #0049fe;
        border: 0;
        gap: 20px;
    }

    .gift-store-detail-page .rewards-login-card__head { flex-direction: row-reverse; gap: 16px; }
    .gift-store-detail-page .rewards-login-card__title { color: #ef6b3b; font-size: 24px; font-weight: 500; }
    .gift-store-detail-page .rewards-login-card__desc { color: #333; font-size: 16px; line-height: 1.5; }
    .gift-store-detail-page .rewards-login-card__cta { min-height: 56px; border-radius: 8px; font-size: 20px; font-weight: 500; }

    .gift-store-detail-page .rewards-specs { margin-top: 100px; padding: 24px; border-color: #dadada; border-radius: 10px; }
    .gift-store-detail-page .rewards-specs__title { margin: 0 0 40px; padding: 0 12px 16px; text-align: end; font-size: 28px; font-weight: 500; color: #0a395c; border-bottom: 1px solid #ef6b3b; }
    .gift-store-detail-page .rewards-specs__box { padding: 40px; border-color: #e6e6e6; border-radius: 10px; text-align: end; }
    .gift-store-detail-page .rewards-specs__name { font-size: 20px; margin-bottom: 24px; }
    .gift-store-detail-page .rewards-specs__list { font-size: 18px; line-height: 1.72; gap: 10px; text-align: end; list-style-position: inside; }
    .gift-store-detail-page .rewards-specs__features { grid-template-columns: 1fr; gap: 8px; }

    .gift-store-detail-page .rewards-detail-benefits { margin-top: 24px; gap: 17px; }
    .gift-store-detail-page .rewards-detail-benefit { min-height: 104px; padding: 16px; border: 1px solid #c9d7ff; border-radius: 8px; background: #fdf9f6; box-shadow: 0 0 3px #0049fe; flex-direction: row-reverse; text-align: end; }
    .gift-store-detail-page .rewards-detail-benefit h4 { font-size: 18px; }
    .gift-store-detail-page .rewards-related { margin-top: 100px; }
    .gift-store-detail-page .rewards-related__title { font-size: 32px; font-weight: 500; }
    .gift-store-detail-page .rewards-related .reward-card { width: 250px; min-width: 250px; border: 1px solid #e6e6e6; box-shadow: none; }
}

/* Gift store specific overrides to avoid style collisions with shared B2B styles. */
.gift-store-detail-page .rewards-detail-main {
    width: min(1160px, calc(100% - 40px));
    padding-top: 132px;
    padding-bottom: 20px;
}

.gift-store-detail-page .rewards-detail-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #6f7380;
}

/* Keep header container aligned exactly like /b2b/rewards on desktop/tablet widths. */
.gift-store-detail-page.rewards-page .b2b-header-ref {
    position: fixed !important;
    inset: 16px auto auto 50% !important;
    width: min(1376px, calc(100vw - 32px)) !important;
    padding: 28px 32px 0 !important;
    transform: translateX(-50%) !important;
}

.gift-store-detail-page .rewards-detail-top {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 40px;
}

.gift-store-detail-page .rewards-detail-gallery {
    justify-content: center;
    gap: 14px;
}

.gift-store-detail-page .rewards-detail-main-image {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    background: #fff7f2;
}

.gift-store-detail-page .rewards-detail-brand {
    font-size: 15px;
    text-decoration: none;
    color: #4c5a71;
    font-weight: 600;
}

.gift-store-detail-page .rewards-detail-title {
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 700;
}

.gift-store-detail-page .rewards-detail-description {
    color: #5b6474;
    font-size: 16px;
    line-height: 1.9;
}

.gift-store-detail-page .rewards-detail-price {
    font-size: clamp(34px, 2.8vw, 42px);
    font-weight: 800;
    margin-top: 4px;
}

.gift-store-detail-page .rewards-login-card {
    border: 1px solid #d7e2ff;
    box-shadow: 0 8px 20px rgba(7, 62, 131, 0.08);
    background: #fff;
}

.gift-store-detail-page .rewards-login-card__title {
    color: #0c2340;
    font-size: 22px;
    font-weight: 700;
}

.gift-store-detail-page .rewards-login-card__desc {
    font-size: 14px;
    color: #586173;
}

.gift-store-detail-page .rewards-login-card__cta {
    min-height: 48px;
    font-size: 18px;
    font-weight: 700;
}

.gift-store-detail-page .rewards-login-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gift-store-detail-page .rewards-login-card__cta--ghost {
    background: #fff;
    color: #ef6b3b;
    border: 1px solid #ef6b3b;
}

.gift-store-detail-page .rewards-gallery-empty {
    margin: 6px 0 0;
    color: #8a91a0;
    font-size: 13px;
}

.gift-store-detail-page .rewards-specs {
    margin-top: 56px;
    border: 1px solid #e6ebf5;
    border-radius: 14px;
    padding: 24px;
}

.gift-store-detail-page .rewards-specs__title {
    margin-bottom: 16px;
    border-bottom: 0;
    color: #1f3557;
    text-align: center;
    font-size: clamp(30px, 2.6vw, 42px);
    font-weight: 800;
}

.gift-store-detail-page .rewards-specs__box {
    border: 1px solid #e3e8f2;
    border-radius: 12px;
    padding: 20px;
}

.gift-store-detail-page .rewards-specs__name {
    margin-bottom: 12px;
    font-size: 20px;
}

.gift-store-detail-page .rewards-specs__list {
    margin: 0;
    padding-inline-start: 20px;
    display: grid;
    gap: 8px;
    color: #2c3340;
    font-size: 15px;
    line-height: 1.8;
}

.gift-store-detail-page .rewards-specs__features {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gift-store-detail-page .rewards-specs__features li {
    border: 1px solid #dce7ff;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    color: #23456d;
    font-size: 14px;
    font-weight: 600;
}

.gift-store-detail-page .rewards-detail-benefits {
    margin-top: 16px;
    gap: 12px;
}

.gift-store-detail-page .rewards-detail-benefit {
    border: 1px solid #dbe6ff;
    box-shadow: none;
    padding: 14px;
    background: #fff;
}

.gift-store-detail-page .rewards-detail-benefit h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.gift-store-detail-page .rewards-detail-benefit p {
    font-size: 12px;
    color: #5f6a7b;
}

.gift-store-detail-page .rewards-related {
    margin-top: 56px;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.gift-store-detail-page .rewards-related__title {
    color: #1f3557;
    border-bottom: 0;
    font-size: clamp(30px, 2.6vw, 40px);
    font-weight: 800;
}

.gift-store-detail-page .rewards-related--empty p {
    margin-top: 10px;
    text-align: center;
    color: #7c8391;
    font-size: 14px;
}

.gift-store-detail-page footer.b2b-footer--figma {
    margin-top: 28px;
}

.gift-store-detail-page footer.b2b-footer--figma .b2b-footer__badge {
    display: none;
}

.gift-store-detail-page footer.b2b-footer--figma .b2b-footer__inner {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.15fr) minmax(220px, 1fr);
    gap: 22px;
}

/* Prevent fixed helper widgets from overlapping footer/content on this page. */
.gift-store-detail-page .progress-wrap,
.gift-store-detail-page .sm-assistant {
    display: none !important;
}

@media (max-width: 1024px) {
    .gift-store-detail-page .rewards-detail-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gift-store-detail-page .rewards-detail-gallery {
        flex-direction: column;
    }

    .gift-store-detail-page .rewards-detail-main-image {
        max-width: 480px;
    }

    .gift-store-detail-page footer.b2b-footer--figma .b2b-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gift-store-detail-page footer.b2b-footer--figma .b2b-footer__menus {
        justify-items: center;
    }

    .gift-store-detail-page footer.b2b-footer--figma .b2b-footer__menu-group,
    .gift-store-detail-page footer.b2b-footer--figma .b2b-footer__menu-list {
        align-items: center;
        justify-items: center;
    }

    .gift-store-detail-page footer.b2b-footer--figma .b2b-footer__contact {
        align-items: center;
    }
}

@media (max-width: 860px) {
    .gift-store-detail-page .rewards-detail-main {
        width: min(1160px, calc(100% - 24px));
        padding-top: 120px;
        padding-bottom: 16px;
    }

    .gift-store-detail-page .rewards-login-card__actions,
    .gift-store-detail-page .rewards-specs__features {
        grid-template-columns: 1fr;
    }

    .gift-store-detail-page .rewards-specs {
        padding: 16px;
    }

    .gift-store-detail-page .rewards-detail-benefits {
        grid-template-columns: 1fr;
    }
}

/* Arrow glyph direction under RTL.

   The markup hardcodes `‹` for previous and `›` for next, which is correct
   in English and backwards in Arabic — there "previous" is to the RIGHT.
   Mirroring the button flips the glyph without needing two sets of markup
   or a second translation string. */
html[dir="rtl"] .rewards-related__arrow,
body.is-rtl .rewards-related__arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .rewards-related__arrow:hover,
body.is-rtl .rewards-related__arrow:hover {
    transform: scaleX(-1) translateY(-1px);
}

/* Keep the optical nudge pointing the right way after the mirror. */
html[dir="rtl"] .rewards-related__arrow[data-related-prev],
body.is-rtl .rewards-related__arrow[data-related-prev] {
    text-indent: 2px;
}

html[dir="rtl"] .rewards-related__arrow[data-related-next],
body.is-rtl .rewards-related__arrow[data-related-next] {
    text-indent: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .rewards-related__arrow {
        transition: none;
    }

    .rewards-related__arrow:hover {
        transform: none;
    }

    html[dir="rtl"] .rewards-related__arrow:hover,
    body.is-rtl .rewards-related__arrow:hover {
        transform: scaleX(-1);
    }
}

@media (max-width: 640px) {
    .rewards-related__arrow {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 22px;
    }
}
