/* E-shop: design fonts (Aqar360 eShop — matches tailwind.config primary / gradient tokens) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600&family=DM+Sans:wght@400;500;700&display=swap");

.eshop-root,
.shop-page {
    font-family: "Open Sans", system-ui, sans-serif;
    color: hsl(261, 15%, 18%);
    background-color: hsl(0, 0%, 98%);
    overflow: visible; /* sticky filter bar: do not clip (see .shop-filter-sticky) */
}

.eshop-root h1,
.eshop-root h2,
.eshop-root h3,
.eshop-root .font-heading,
.shop-page h1,
.shop-page h2,
.shop-page h3,
.shop-page .font-heading {
    font-family: "Poppins", system-ui, sans-serif;
}

.eshop-root .font-label-ui,
.shop-page .font-label-ui {
    font-family: "DM Sans", system-ui, sans-serif;
}

/* Hero: always readable (matches site purple #6B5B95) even if Tailwind utilities fail to load */
.eshop-hero-section {
    background: linear-gradient(135deg, #6b5b95 0%, #574a75 55%, #7d6ba8 100%);
    color: #fff;
}

.eshop-hero-section h1,
.eshop-hero-section p,
.eshop-hero-section .font-body {
    color: inherit;
}

.eshop-hero-section .eshop-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.eshop-hero-section a.bg-white {
    color: #6b5b95 !important;
}

/* Hero delivery location <select>: closed state matches hero; list = white + readable text (native popup varies by OS) */
.eshop-hero-section select.eshop-hero-location-select {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color-scheme: light;
}

.eshop-hero-section select.eshop-hero-location-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.eshop-hero-section select.eshop-hero-location-select option {
    background-color: #fff;
    color: hsl(261, 22%, 20%);
}

.eshop-hero-section select.eshop-hero-location-select option:hover,
.eshop-hero-section select.eshop-hero-location-select option:focus {
    background-color: hsl(263, 42%, 96%);
    color: hsl(261, 28%, 32%);
}

.eshop-hero-section select.eshop-hero-location-select option:checked {
    background-color: hsl(263, 35%, 93%);
    color: #4a3d6f;
    font-weight: 600;
}

.eshop-hero-section select.eshop-hero-location-select option.eshop-hero-location-add-option {
    font-weight: 600;
    color: #6b5b95;
}

/* Sticky filter bar: stays under fixed header while scrolling product list
   (do not set overflow:hidden on .shop-page — it breaks position:sticky) */

.shop-filter-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--client-fixed-header-offset, max(120px, calc(100px + env(safe-area-inset-top, 0px))));
    z-index: 9990;
    background-color: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 91, 149, 0.14);
    box-shadow: 0 4px 18px rgba(39, 32, 66, 0.06);
}

/* Shop catalog: search + filter icon stay on one row on mobile (details is inline-flex below lg) */
.retail-catalog-search-filter-row {
    min-width: 0;
}

/* Shop catalog: keep search + filters + actions on one row; scroll horizontally on narrow viewports */
.retail-shop-filter-row {
    -webkit-overflow-scrolling: touch;
}
.retail-shop-filter-row::-webkit-scrollbar {
    height: 5px;
}
.retail-shop-filter-row::-webkit-scrollbar-thumb {
    background: rgba(107, 91, 149, 0.35);
    border-radius: 9999px;
}
.retail-shop-filter-input,
.retail-shop-filter-select {
    box-sizing: border-box;
}
.retail-shop-filter-select {
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* Filter bar: keep action labels on one line (Arabic “تطبيق الفلتر”, etc.) */
.retail-shop-filter-actions button,
.retail-shop-filter-actions a {
    white-space: nowrap;
}

/* Mobile collapsible filter panel (native <details>) */
.retail-filter-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(220, 13%, 91%);
    background: #fff;
    color: hsl(261, 15%, 25%);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.retail-filter-trigger::-webkit-details-marker {
    display: none;
}
.retail-filter-trigger::marker {
    content: "";
}
.retail-filter-trigger:hover {
    background: hsl(263, 28%, 96%);
    border-color: rgba(107, 91, 149, 0.35);
    color: #6b5b95;
}
.retail-filter-trigger__dot {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #6b5b95;
    border: 2px solid #fff;
}
.retail-filter-details[open] .retail-filter-trigger {
    background: #6b5b95;
    color: #fff;
    border-color: #6b5b95;
}

@media (max-width: 1023.98px) {
    /* Sticky filter flush under fixed header (topBar + h-20); avoids scroll bleed in the gap */
    .shop-page .shop-filter-sticky {
        top: var(--client-fixed-header-offset, calc(5rem + 2.25rem + env(safe-area-inset-top, 0px)));
        margin-top: -1px;
    }

    .retail-filter-popover {
        display: none;
    }
    .retail-filter-details[open] .retail-filter-popover {
        display: flex;
        position: absolute;
        inset-inline: 1rem;
        top: calc(100% + 0.25rem);
        background: #fff;
        border: 1px solid rgba(107, 91, 149, 0.18);
        border-radius: 0.75rem;
        box-shadow: 0 18px 40px rgba(39, 32, 66, 0.18);
        padding: 0.75rem;
        z-index: 9991;
    }
}

/* Partners slider: hidden scrollbar, edge mask, fading nav arrows */
.retail-partners-slider {
    position: relative;
}
.retail-partners-track {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 32px,
        #000 calc(100% - 32px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 32px,
        #000 calc(100% - 32px),
        transparent 100%
    );
}
.retail-partners-track::-webkit-scrollbar {
    display: none;
}

.retail-partners-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #2b2240;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.15s ease;
    border: none;
    cursor: pointer;
}
.retail-partners-nav:hover {
    background: #fff;
}
.retail-partners-slider:hover .retail-partners-nav,
.retail-partners-nav:focus-visible {
    opacity: 1;
}
.retail-partners-nav--prev {
    inset-inline-start: -0.5rem;
}
.retail-partners-nav--next {
    inset-inline-end: -0.5rem;
}
.retail-partners-nav[disabled] {
    opacity: 0.25;
    pointer-events: none;
}
/* No overflow (e.g. a single partner) → remove the arrows entirely so they never overlap a card. */
.retail-partners-nav.is-hidden {
    display: none !important;
}

/* Product card — gentle hover lift (raw CSS so it works without a Tailwind rebuild). */
.eshop-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}
@media (hover: hover) {
    .eshop-product-card:hover {
        transform: translateY(-4px);
    }
}

.eshop-product-card__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #7d6db5 0%, #6b5b95 55%, #5a4b80 100%);
    color: #ffffff;
    font-family: "DM Sans", "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.eshop-product-card__add-btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.eshop-product-card__add-btn--outline {
    background: #ffffff;
    color: #6b5b95;
    border: 1.5px solid rgba(107, 91, 149, 0.45);
    box-shadow: none;
}
@media (hover: hover) {
    .eshop-product-card__add-btn:hover {
        background: linear-gradient(135deg, #6b5b95 0%, #574a75 55%, #4a3d6f 100%);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(74, 61, 111, 0.45);
    }
    .eshop-product-card__add-btn--outline:hover {
        background: rgba(107, 91, 149, 0.08);
        color: #574a75;
        border-color: rgba(107, 91, 149, 0.6);
    }
    .eshop-product-card:hover .eshop-product-card__add-btn:not(.eshop-product-card__add-btn--outline) {
        transform: translateY(-1px);
    }
}
.eshop-product-card__add-btn:active {
    transform: translateY(0);
}
.eshop-product-card__add-btn:focus-visible {
    outline: 2px solid rgba(107, 91, 149, 0.55);
    outline-offset: 2px;
}
@media (min-width: 640px) {
    .eshop-product-card__add-btn {
        min-height: 2.5rem;
        font-size: 0.875rem;
    }
}

/* Desktop: keep the product image and the cart summary in view while scrolling. */
@media (min-width: 1024px) {
    .eshop-pdp-media {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
    .eshop-cart-summary {
        position: sticky;
        top: 6rem;
    }
}

/* Desktop / large screens: center partner chips when the row is short, and place
   nav buttons in the layout flow (no overlap / edge fade). Mobile & tablet below
   lg keep the original overlay + mask behavior. */
@media (min-width: 1024px) {
    .retail-partners-slider {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
    }

    .retail-partners-slider .retail-partners-nav {
        position: static;
        transform: none;
        opacity: 1;
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
    }

    .retail-partners-slider .retail-partners-nav:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.24);
        color: #fff;
    }

    .retail-partners-slider .retail-partners-nav:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.85);
        outline-offset: 2px;
    }

    .retail-partners-slider .retail-partners-nav[disabled] {
        opacity: 0.35;
    }

    .retail-partners-track {
        -webkit-mask-image: none;
        mask-image: none;
        justify-content: safe center;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .retail-partners-nav {
        display: none;
    }
    .retail-partners-track {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Cart: page background comes from Tailwind gradient on inner wrapper */
.shop-page.eshop-cart-page {
    background-color: transparent;
}

@media (min-width: 1024px) {
    .eshop-cart-summary {
        position: sticky;
        top: calc(var(--client-fixed-header-offset, 120px) + 12px);
        z-index: 20;
        align-self: flex-start;
    }
}

/* Select city page: elevated background + list buttons (also covers JS-injected links) */
.retail-select-city-page .retail-select-city-bg {
    background: linear-gradient(
        165deg,
        hsl(263, 28%, 96%) 0%,
        hsl(0, 0%, 99%) 42%,
        hsl(265, 24%, 93%) 100%
    );
}

.retail-select-city-page .retail-select-city-bg::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 55%;
    top: -18%;
    left: -20%;
    background: radial-gradient(
        ellipse 70% 60% at 50% 40%,
        hsl(263, 35%, 42%, 0.09) 0%,
        transparent 72%
    );
}

.retail-select-city-page .retail-select-city-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(hsl(261, 15%, 18%, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.55;
}

.retail-city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

a.retail-city-choice {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    background: #6b5b95;
    box-shadow: 0 1px 3px rgba(39, 32, 66, 0.2);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a.retail-city-choice:hover {
    background: #7d6ba8;
    box-shadow: 0 4px 14px rgba(107, 91, 149, 0.35);
    transform: translateY(-1px);
}

a.retail-city-choice:focus-visible {
    outline: 2px solid #6b5b95;
    outline-offset: 3px;
}

/* --- Shop catalog product cards: stable image frame + readable size ---
   Global rules (e.g. newhome.css `img { height: auto; }`) can fight `h-full` on card
   images and collapse the media area into thin strips. Grid items also need
   `min-width: 0` so columns don’t overflow oddly on narrow tracks. */

.shop-page #product-grid .grid > .group {
    min-width: 0;
}

.shop-page #product-grid .group > a:first-of-type {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 5rem;
    overflow: hidden;
    background-color: hsl(0, 0%, 94%);
}

.shop-page #product-grid .group > a:first-of-type > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.shop-page #product-grid .group > a:first-of-type > div:not(.absolute) {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Return request UI (My Order) --- */

.eshop-return-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    border-width: 1px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.eshop-return-banner__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.eshop-return-banner__text {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
}

.eshop-return-banner--pending {
    border-color: rgb(251 191 36 / 0.45);
    background: rgb(255 251 235);
    color: rgb(146 64 14);
}

.eshop-return-banner--success {
    border-color: rgb(16 185 129 / 0.35);
    background: rgb(236 253 245);
    color: rgb(6 95 70);
}

.eshop-return-banner--warning {
    border-color: rgb(251 191 36 / 0.4);
    background: rgb(255 251 235);
    color: rgb(120 53 15);
}

.eshop-return-banner--danger {
    border-color: rgb(248 113 113 / 0.45);
    background: rgb(254 242 242);
    color: rgb(153 27 27);
}

/* Return modal — explicit colors (avoids --card: transparent from theme) */
.eshop-return-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1rem max(1.25rem, env(safe-area-inset-bottom, 0px));
    isolation: isolate;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 640px) {
    .eshop-return-modal {
        align-items: center;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
}

html.eshop-return-modal-open,
html.eshop-return-modal-open body {
    overflow: hidden !important;
}

.eshop-return-modal.hidden {
    display: none !important;
}

.eshop-return-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.eshop-return-modal--open .eshop-return-modal__backdrop {
    opacity: 1;
}

.eshop-return-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    max-height: min(calc(100dvh - 2.5rem), 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #ece8f5;
    border-radius: 1.25rem;
    box-shadow:
        0 24px 64px -20px rgb(55 42 88 / 0.45),
        0 8px 24px -12px rgb(15 23 42 / 0.25);
    padding: 0;
    opacity: 0;
    transform: scale(0.94) translateY(14px);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

@media (max-width: 640px) {
    .eshop-return-modal__panel {
        border-radius: 1.25rem;
        max-height: min(calc(100dvh - 1.5rem), 640px);
        padding-bottom: 0;
    }
}

.eshop-return-modal--open .eshop-return-modal__panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.eshop-return-modal__hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, #f6f3fc 0%, #efeafb 100%);
    border-bottom: 1px solid #e7e0f5;
    flex-shrink: 0;
}

.eshop-return-modal__icon-wrap {
    flex-shrink: 0;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgb(107 91 149 / 0.10), 0 4px 12px rgb(107 91 149 / 0.18);
    color: #6b5b95;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eshop-return-modal__icon {
    width: 1.55rem;
    height: 1.55rem;
    color: #6b5b95;
}

.eshop-return-modal__title-block {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.eshop-return-modal__title {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    color: #2e2350;
    letter-spacing: -0.01em;
}

.eshop-return-modal__intro {
    margin: 0.375rem 0 0;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #475569;
}

.eshop-return-modal__policy {
    margin: 0.5rem 0 0;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #b45309;
    font-weight: 600;
}

.eshop-return-modal__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: -0.25rem;
    border: none;
    background: #ffffff;
    border-radius: 9999px;
    color: #6b5b95;
    cursor: pointer;
    box-shadow: 0 0 0 1px #e7e0f5;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.eshop-return-modal__close:hover {
    background: #6b5b95;
    color: #ffffff;
    transform: rotate(90deg);
}

.eshop-return-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.eshop-return-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.25rem 1.5rem 0.5rem;
    scrollbar-gutter: stable;
}

.eshop-return-modal__scroll::-webkit-scrollbar {
    width: 8px;
}

.eshop-return-modal__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.eshop-return-modal__scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid #ffffff;
}

.eshop-return-modal__scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.eshop-return-modal .fin-refund-category {
    margin: 0 0 1.25rem;
}

.eshop-return-modal .fin-refund-category__check {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    background: #fff;
}

.eshop-return-modal .fin-refund-category__check:has(.fin-refund-category__checkbox:checked) {
    border-color: #6b5b95;
    background: linear-gradient(135deg, #f6f3fc 0%, #fff 100%);
    box-shadow: 0 0 0 1px color-mix(in srgb, #6b5b95 18%, transparent);
}

.eshop-return-modal .fin-refund-category__checkbox {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    accent-color: #6b5b95;
    cursor: pointer;
}

.eshop-return-modal .fin-refund-category__heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2e2350;
}

.eshop-return-modal .fin-refund-category__options {
    display: grid;
    gap: 0.65rem;
}

.eshop-return-modal .fin-refund-category__option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    background: #fff;
}

.eshop-return-modal .fin-refund-category__option:has(input:checked) {
    border-color: #6b5b95;
    background: linear-gradient(135deg, #f6f3fc 0%, #fff 100%);
    box-shadow: 0 0 0 1px color-mix(in srgb, #6b5b95 18%, transparent);
}

.eshop-return-modal .fin-refund-category__option input[type="radio"] {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.2rem 0 0;
    accent-color: #6b5b95;
    cursor: pointer;
}

.eshop-return-modal .fin-refund-category__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 auto;
}

.eshop-return-modal .fin-refund-category__title {
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: #2e2350;
}

.eshop-return-modal .fin-refund-category__hint {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #64748b;
}

.eshop-return-modal__field {
    margin-bottom: 1.25rem;
}

.eshop-return-modal__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.eshop-return-modal__label {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.eshop-return-modal__counter {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    background: #f1f5f9;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.eshop-return-modal__counter--warn {
    color: rgb(180 83 9);
    background: rgb(254 243 199);
    font-weight: 700;
}

.eshop-return-modal__counter--ok {
    color: rgb(5 120 80);
    background: rgb(220 252 231);
}

.eshop-return-modal__textarea {
    display: block;
    width: 100%;
    min-height: 8.5rem;
    padding: 0.85rem 1rem;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #0f172a;
    background: #fbfaff;
    border: 1.5px solid #ddd4ee;
    border-radius: 0.85rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.eshop-return-modal__textarea::placeholder {
    color: #94a3b8;
}

.eshop-return-modal__textarea:focus {
    border-color: #6b5b95;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.12);
}

.eshop-return-modal__select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0f172a;
    background: #fbfaff;
    border: 1.5px solid #ddd4ee;
    border-radius: 0.85rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.eshop-return-modal__select:focus {
    border-color: #6b5b95;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.12);
}

.eshop-return-reason-other {
    margin-top: 0.85rem;
}

.eshop-return-reason-other[hidden] {
    display: none !important;
}

.eshop-return-reason-other__label {
    margin-bottom: 0.35rem;
}

.eshop-return-modal__textarea:invalid:not(:placeholder-shown) {
    border-color: rgb(248 113 113);
}

.eshop-return-modal__hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #64748b;
}

.eshop-return-modal__footer {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 1rem 1.5rem 1.25rem;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

[dir="rtl"] .eshop-return-modal__footer {
    flex-direction: row-reverse;
}

.eshop-return-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.625rem 1.25rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0.85rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease;
    width: 100%;
    box-sizing: border-box;
}

.eshop-return-modal__btn:active:not(:disabled) {
    transform: translateY(1px);
}

.eshop-return-modal__btn--secondary {
    flex: 0 0 auto;
    width: auto;
    min-width: 6rem;
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #d9d2ea;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.eshop-return-modal__btn--secondary:hover {
    background: #f6f3fc;
    border-color: #b9add8;
    color: #2e2350;
}

.eshop-return-modal__btn--primary {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #7d6db5 0%, #6b5b95 50%, #5a4b80 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgb(107 91 149 / 0.5);
}

.eshop-return-modal__btn--primary:hover:not(:disabled) {
    box-shadow: 0 10px 22px -6px rgb(107 91 149 / 0.6);
    transform: translateY(-1px);
}

.eshop-return-modal__btn--primary:disabled,
.eshop-return-modal__btn--loading {
    opacity: 0.65;
    cursor: not-allowed;
}

.eshop-return-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #6b5b95;
    background: rgb(107 91 149 / 0.08);
    border: 2px solid rgb(107 91 149 / 0.22);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.eshop-return-open-btn:hover {
    background: rgb(107 91 149 / 0.14);
    border-color: rgb(107 91 149 / 0.38);
}

.eshop-return-open-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.fin-eshop-delivery-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
}

.fin-eshop-delivery-photos__item {
    display: block;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
}

.fin-eshop-delivery-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fin-eshop-delivery-upload__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.fin-eshop-delivery-upload__preview[hidden] {
    display: none !important;
}

.fin-eshop-delivery-upload__thumb {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
}

.fin-eshop-delivery-upload__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stores directory: auto-fill grid so few stores still look intentional (no dead columns). */
.eshop-store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;}
@media (min-width:1024px){.eshop-store-grid{grid-template-columns:repeat(auto-fill,minmax(300px,360px));}}

/* ── Checkout: delivery map + address ── */
.checkout-delivery-card,
.checkout-recipient-card {
    background: #fff;
    border: 1px solid #e8e4f0;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgb(107 91 149 / 0.06);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.checkout-delivery-title,
.checkout-recipient-title {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #3d3552;
}

.checkout-delivery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-delivery-stack {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.checkout-address-panel {
    background: #faf9fc;
    border: 1px solid #ece8f2;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
}

.checkout-address-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #6b5b95;
    background: #f0ecf8;
    border-radius: 9999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.625rem;
}

.checkout-address-line1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #2f2940;
}

.checkout-address-line2 {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #6b6580;
}

.checkout-address-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.875rem 0 0;
    padding: 0.875rem 0 0;
    border-top: 1px solid #ece8f2;
}

.checkout-address-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-width: 0;
}

.checkout-address-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: #f0ecf8;
    color: #6b5b95;
    flex-shrink: 0;
}

.checkout-address-meta__icon svg {
    width: 0.9375rem;
    height: 0.9375rem;
}

.checkout-address-meta__content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.375rem;
    min-width: 0;
}

.checkout-address-meta__label {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8a849c;
}

.checkout-address-meta__label::after {
    content: ":";
}

.checkout-address-meta__value {
    margin: 0;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d3552;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .checkout-address-meta {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding-top: 1rem;
    }

    .checkout-address-meta__item {
        flex: 1 1 0;
        align-items: flex-start;
        gap: 0.625rem;
        padding: 0 1.25rem;
        border-inline-end: 1px solid #e4dfea;
    }

    .checkout-address-meta__item:first-child {
        padding-inline-start: 0;
    }

    .checkout-address-meta__item:last-child {
        padding-inline-end: 0;
        border-inline-end: none;
    }

    .checkout-address-meta__icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.625rem;
        margin-top: 0.05rem;
    }

    .checkout-address-meta__icon svg {
        width: 1rem;
        height: 1rem;
    }

    .checkout-address-meta__content {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.3rem;
    }

    .checkout-address-meta__label {
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .checkout-address-meta__label::after {
        content: none;
    }

    .checkout-address-meta__value {
        font-size: 0.9375rem;
    }
}

.checkout-delivery-map-wrap {
    position: relative;
    min-height: 10.5rem;
    height: 10.5rem;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid #e8e4f0;
    background: #f3f1f8;
}

.checkout-view-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #dcd6ea;
    background: linear-gradient(180deg, #fff 0%, #f8f6fc 100%);
    color: #6b5b95;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.checkout-view-map-btn:hover {
    border-color: #6b5b95;
    box-shadow: 0 4px 14px rgb(107 91 149 / 0.14);
}

.checkout-view-map-btn:active {
    transform: translateY(1px);
}

.checkout-view-map-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: #f0ecf8;
}

.checkout-view-map-btn__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.checkout-map-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

html.checkout-map-modal-open,
html.checkout-map-modal-open body {
    overflow: hidden;
}

.checkout-map-modal.hidden {
    display: none !important;
}

.checkout-map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkout-map-modal--open .checkout-map-modal__backdrop {
    opacity: 1;
}

.checkout-map-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: min(90vh, 36rem);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 48px rgb(15 23 42 / 0.22);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.checkout-map-modal--open .checkout-map-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.checkout-map-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #ece8f2;
}

.checkout-map-modal__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #3d3552;
}

.checkout-map-modal__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #6b6580;
}

.checkout-map-modal__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: #f3f1f8;
    color: #5c5278;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.checkout-map-modal__close:hover {
    background: #ece8f2;
}

.checkout-map-modal__map-wrap {
    position: relative;
    min-height: 18rem;
    height: min(58vh, 22rem);
    background: #f3f1f8;
}

.checkout-map-modal__map,
#checkout-map-modal-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#checkout-map-modal-map .mapboxgl-map,
#checkout-map-modal-map .mapboxgl-canvas-container {
    width: 100% !important;
    height: 100% !important;
}

.checkout-map-modal__fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-manage-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b5b95;
    white-space: nowrap;
    text-decoration: none;
}

.checkout-manage-link:hover {
    text-decoration: underline;
}

/* Checkout recipient */
.checkout-recipient-hint {
    margin: 0.35rem 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b6580;
}

.checkout-receive-mode {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 0.875rem;
    border: 1px solid #e2dfec;
    background: #f3f1f8;
    margin-bottom: 1rem;
}

.checkout-receive-option {
    flex: 1 1 0;
    cursor: pointer;
    margin: 0;
    min-width: 0;
}

.checkout-receive-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-receive-option span {
    display: block;
    text-align: center;
    padding: 0.7rem 0.65rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #5c5278;
    background: #fff;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-receive-option--active span,
.checkout-receive-option:has(input:checked) span {
    background: #6b5b95;
    color: #fff;
    border-color: #6b5b95;
    box-shadow: 0 2px 8px rgb(107 91 149 / 0.22);
}

.checkout-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b6580;
}

.checkout-field-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2dfec;
    padding: 0.7rem 0.85rem;
    font-size: 0.9375rem;
    color: #2f2940;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.checkout-field-input:focus {
    border-color: #6b5b95;
    box-shadow: 0 0 0 3px rgb(107 91 149 / 0.14);
}

.checkout-field-readonly,
.checkout-field-readonly.aq-phone-plain-input {
    background: #f8f7fb !important;
    color: #3d3552 !important;
    cursor: default;
}

.checkout-field-readonly:focus,
.checkout-field-readonly.aq-phone-plain-input:focus {
    box-shadow: none;
    border-color: #e2dfec;
}

.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly,
.checkout-recipient-fields .aq-phone-outer-field:has(.checkout-field-readonly) {
    background: #f8f7fb;
    border-color: #e2dfec;
}

.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly .aq-phone-plain-input,
.checkout-recipient-fields .aq-phone-outer-field:has(.checkout-field-readonly) .aq-phone-plain-input {
    color: #3d3552;
}

.checkout-recipient-fields .checkout-phone-readonly .aq-phone-field,
.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly .aq-phone-field {
    pointer-events: none;
}

.checkout-recipient-fields .checkout-phone-readonly .aq-phone-local,
.checkout-recipient-fields .aq-phone-outer-field.checkout-phone-readonly .aq-phone-local {
    background: transparent;
    cursor: default;
}

/* Cart quantity stepper — outer border + RTL-safe internal dividers (no border-x/-s utilities are built). */
.eshop-qty-stepper{display:inline-flex;align-items:center;border:1px solid hsl(0 0% 88%);border-radius:0.5rem;overflow:hidden;background:#fff;}
.eshop-qty-stepper > * + *{border-inline-start:1px solid hsl(0 0% 88%);}

/* ── Order rating modal & stars ── */
/* Above #mainHeader (z-index 99997) and notification bell (~100050). */
.eshop-rating-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
html.eshop-rating-modal-open,
html.eshop-rating-modal-open body {
    overflow: hidden;
}
.eshop-rating-modal.hidden { display: none !important; }
.eshop-rating-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.eshop-rating-modal--open .eshop-rating-modal__backdrop { opacity: 1; }
.eshop-rating-modal__panel {
    position: relative;
    width: min(100%, 28rem);
    max-height: min(92vh, 36rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px -12px rgb(15 23 42 / 0.35);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.eshop-rating-modal--open .eshop-rating-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.eshop-rating-modal__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
}
.eshop-rating-modal__icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(250 204 21 / 0.18);
    color: #ca8a04;
    margin-bottom: 0.65rem;
}
.eshop-rating-modal__icon { width: 1.35rem; height: 1.35rem; }
.eshop-rating-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}
.eshop-rating-modal__intro {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}
.eshop-rating-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}
.eshop-rating-modal__form { display: flex; flex-direction: column; min-height: 0; }
.eshop-rating-modal__scroll { padding: 0 1.25rem 0.5rem; overflow: auto; }
.eshop-rating-modal__field { margin-bottom: 1rem; }
.eshop-rating-modal__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}
.eshop-rating-modal__textarea {
    width: 100%;
    min-height: 6rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font: inherit;
    resize: vertical;
}
.eshop-rating-modal__textarea:focus {
    outline: 2px solid rgb(107 91 149 / 0.35);
    border-color: #6b5b95;
}
.eshop-rating-modal__hint { margin: 0.35rem 0 0; font-size: 0.78rem; color: #94a3b8; }
.eshop-rating-modal__section { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(107, 91, 149, 0.12); }
.eshop-rating-modal__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.eshop-rating-modal__section-title {
    margin: 0 0 0.75rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #372a58;
}
.eshop-rating-modal__hint--section { margin-bottom: 0.75rem; }
.eshop-rating-modal__product-list { display: flex; flex-direction: column; gap: 0.85rem; }
.eshop-rating-modal__product-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(107, 91, 149, 0.05);
    border: 1px solid rgba(107, 91, 149, 0.1);
}
.eshop-rating-modal__product-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2e2350;
    line-height: 1.35;
}
.fin-eshop-retail-panel__rating-block,
.fin-eshop-retail-panel__rating-products { margin-top: 0.75rem; }
.fin-eshop-retail-panel__rating-label {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}
.fin-eshop-retail-panel__rating-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.fin-eshop-retail-panel__rating-product-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.fin-eshop-retail-panel__rating-product-row:first-child { padding-top: 0; border-top: none; }
.fin-eshop-retail-panel__rating-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}
.eshop-rating-modal__footer {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}
.eshop-rating-modal__btn {
    flex: 1;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 0;
}
.eshop-rating-modal__btn--secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.eshop-rating-modal__btn--primary {
    background: #6b5b95;
    color: #fff;
}
.eshop-rating-modal__btn--primary:disabled { opacity: 0.55; cursor: not-allowed; }

.eshop-star-picker,
.eshop-star-display {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.eshop-star-picker__btn,
.eshop-star-display__star {
    border: 0;
    background: transparent;
    padding: 0.15rem;
    line-height: 0;
}
.eshop-star-picker__btn { cursor: pointer; color: #cbd5e1; transition: color 0.12s ease, transform 0.12s ease; }
.eshop-star-picker__btn:hover { transform: scale(1.08); }
.eshop-star-picker__btn--filled,
.eshop-star-display__star--filled { color: #f59e0b; }
.eshop-star-picker__icon,
.eshop-star-display__icon { width: 2rem; height: 2rem; fill: currentColor; }
.eshop-star-display__value {
    margin-inline-start: 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
}

.eshop-rating-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: #92400e;
    background: rgb(245 158 11 / 0.12);
    border: 2px solid rgb(245 158 11 / 0.28);
    border-radius: 0.75rem;
    cursor: pointer;
}
.eshop-rating-open-btn:hover { background: rgb(245 158 11 / 0.18); }

.fin-eshop-retail-panel__card-icon--rating { color: #f59e0b; }
.fin-eshop-retail-panel__rating-comment {
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    border-inline-start: 3px solid #f59e0b;
    background: #fffbeb;
    border-radius: 0.5rem;
    color: #78350f;
    font-size: 0.92rem;
}

.fin-eshop-rate-pending-banner {
    margin-top: 14px;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgb(255 251 235) 0%, rgb(254 243 199) 100%);
    border: 1px solid rgb(245 158 11 / 0.35);
}
.fin-eshop-rate-pending-banner__text {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #92400e;
}
.fin-eshop-rate-pending-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fin-eshop-rate-pending-banner__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgb(245 158 11 / 0.45);
    color: #b45309;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.fin-eshop-rate-pending-banner__chip:hover { background: #fffbeb; }

.eshop-catalog-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    line-height: 1.2;
}
.eshop-catalog-rating__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
}
.eshop-catalog-rating__star {
    width: 0.85rem;
    height: 0.85rem;
    fill: #e2e8f0;
}
.eshop-catalog-rating__star--filled {
    fill: #f59e0b;
}
.eshop-catalog-rating__value {
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
}
.eshop-catalog-rating__count {
    font-size: 0.72rem;
    color: #94a3b8;
}
