:root {
    /* brand */
    --ds-brand: #354f52;
    --ds-brand-hover: #2a3f42;
    --ds-brand-soft: #e8efec;
    --ds-accent: #52796f;

    /* text */
    --ds-text: #2f3e46;
    --ds-text-2: #5f6b72;
    --ds-text-3: #8d979c;

    /* surfaces and lines */
    --ds-page: #f7f7f7;
    --ds-surface: #ffffff;
    --ds-surface-2: #f6f8f7;
    --ds-line: #e6ebe9;
    --ds-line-strong: #dfe5e3;
    --ds-line-hover: #c5cfcc;

    /* status */
    --ds-success: #2b8a3e;
    --ds-success-soft: #ebf6ee;
    --ds-warning: #b45309;
    --ds-warning-soft: #fff4e2;
    --ds-danger: #c92a2a;
    --ds-danger-soft: #fdeeee;
    --ds-info: #1c6e8c;
    --ds-info-soft: #e7f2f6;

    /* shape */
    --ds-r-sm: 6px;
    --ds-r: 10px;
    --ds-r-lg: 14px;
    --ds-r-pill: 999px;

    /* elevation: only for floating things (menus, modals, toasts, sticky bars) */
    --ds-shadow-sm: 0 1px 2px rgba(47, 62, 70, .06);
    --ds-shadow: 0 8px 28px rgba(47, 62, 70, .12);
    --ds-focus: 0 0 0 3px rgba(53, 79, 82, .14);

    /* type scale */
    --ds-fs-xs: 12px;
    --ds-fs-sm: 13px;
    --ds-fs: 14px;
    --ds-fs-md: 16px;
    --ds-fs-lg: 18px;
    --ds-fs-xl: 20px;
    --ds-fs-2xl: 24px;

    /* spacing scale */
    --ds-s1: 2px;
    --ds-s2: 4px;
    --ds-s3: 8px;
    --ds-s4: 10px;
    --ds-s5: 12px;
    --ds-s6: 14px;
    --ds-s7: 18px;
    --ds-s8: 22px;

    /* controls */
    --ds-h-sm: 36px;
    --ds-h: 42px;
    --ds-h-lg: 48px;
    --ds-track: #eaefed;
}

/* the dashboard's dark theme maps the tokens onto its own colors */
.theme-dark {
    --ds-page: var(--sd-page-bg);
    --ds-surface: var(--sd-surface);
    --ds-surface-2: var(--sd-surface-2);
    --ds-line: var(--sd-border);
    --ds-line-strong: var(--sd-border);
    --ds-line-hover: var(--sd-text-soft);
    --ds-text: var(--sd-text);
    --ds-text-2: var(--sd-text-muted);
    --ds-text-3: var(--sd-text-soft);
    --ds-brand-soft: var(--sd-accent-muted);
    --ds-track: var(--sd-bg-muted);
}

/* --------------------------------------------------------------------------
   Segmented control
   -------------------------------------------------------------------------- */
.seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 3px;
    border-radius: var(--ds-r);
    background: var(--ds-track);
    overflow-x: auto;
    scrollbar-width: none;
}

.seg_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ds-text-2);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.seg_item:hover {
    color: var(--ds-text);
}

.seg_item.active {
    background: var(--ds-surface);
    color: var(--ds-text);
    font-weight: 600;
    box-shadow: var(--ds-shadow-sm);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.ui-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ds-s2);
    padding: var(--ds-s8) var(--ds-s5);
    text-align: center;
}

.ui-empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--ds-s2);
    border-radius: var(--ds-r-lg);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.ui-empty-icon svg {
    --aous-aw-icon-size: 22px;
}

.ui-empty-title {
    margin: 0;
    font-size: var(--ds-fs-md);
    font-weight: 700;
}

.ui-empty-text {
    max-width: 360px;
    margin: 0 0 var(--ds-s2);
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

/* ==========================================================================
   Inbox (profile + store dashboard): the conversations beside the open one;
   messages by day, read ticks, quick replies, the reply box at the bottom
   ========================================================================== */
.ib {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    height: calc(100vh - 170px);
    min-height: 540px;
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

/* ── the list ── */
.ib_list {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-inline-end: 1px solid var(--ds-line);
}

.ib_list_head {
    display: grid;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--ds-line);
}

.ib_list_title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ib_list_title h2 {
    margin: 0;
    color: var(--ds-text);
    font-size: 1.02rem;
    font-weight: 600;
}

.ib_list_total {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--ds-surface-2);
    color: var(--ds-text-2);
    font-size: .74rem;
    font-weight: 600;
}

.ib_search {
    position: relative;
    display: block;
    margin: 0;
}

.ib_search svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 11px;
    width: 16px;
    height: 16px;
    color: var(--ds-text-3);
    transform: translateY(-50%);
    pointer-events: none;
}

.ib_search input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    padding-inline-start: 34px;
    border: 1px solid var(--ds-line);
    border-radius: 10px;
    background: var(--ds-surface-2);
    color: var(--ds-text);
    font-size: .86rem;
    outline: none;
}

.ib_search input:focus {
    border-color: var(--ds-brand);
    background: var(--ds-surface);
}

.ib_seg {
    display: flex;
    width: 100%;
}

.ib_seg .seg_item {
    flex: 1;
}

.ib_items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px;
}

.ib_item {
    display: flex;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 12px;
    color: var(--ds-text);
    text-decoration: none;
    transition: background-color .15s ease;
}

.ib_item[hidden] {
    display: none;
}

.ib_item:hover {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.ib_item.is_active {
    background: var(--ds-brand-soft);
}

/* a person, the ad's picture in the corner */
.ib_avatar {
    position: relative;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: 1rem;
    font-weight: 700;
}

.ib_avatar>img:first-child {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ib_avatar_product {
    position: absolute;
    bottom: -3px;
    inset-inline-end: -5px;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid var(--ds-surface);
    border-radius: 7px !important;
    object-fit: cover;
    background: var(--ds-surface-2);
}

.ib_avatar.is_large {
    width: 42px;
    height: 42px;
}

.ib_item_main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ib_item_top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.ib_item_top b {
    overflow: hidden;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ib_item_top small {
    flex-shrink: 0;
    color: var(--ds-text-3);
    font-size: .72rem;
}

.ib_item_product {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--ds-text-2);
    font-size: .78rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ib_role {
    flex-shrink: 0;
    padding: 0 6px;
    border-radius: 5px;
    font-size: .66rem;
    font-weight: 600;
    line-height: 1.6;
}

.ib_role.is_buyer {
    background: var(--ds-success-soft, #ebf6ee);
    color: var(--ds-success, #2b8a3e);
}

.ib_role.is_seller {
    background: var(--ds-info-soft, #e7f2f6);
    color: var(--ds-info, #1c6e8c);
}

.ib_item_preview {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--ds-text-3);
    font-size: .8rem;
}

.ib_item_preview span {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ib_item.is_unread .ib_item_top b,
.ib_item.is_unread .ib_item_preview span {
    color: var(--ds-text);
    font-weight: 600;
}

.ib_item_preview em {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ds-brand);
    color: #fff;
    font-size: .7rem;
    font-style: normal;
    font-weight: 700;
}

.ib_tick {
    flex-shrink: 0;
    width: 15px !important;
    height: 15px !important;
    color: var(--ds-text-3);
}

.ib_tick.is_read {
    color: #2f9e6e;
}

.ib_no_match {
    margin: 18px 0;
    color: var(--ds-text-3);
    font-size: .84rem;
    text-align: center;
}

.ib_pages {
    padding: 8px 12px;
    border-top: 1px solid var(--ds-line);
}

.ib_pages .pagination {
    justify-content: center;
    margin: 0;
}

.ib_list_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 40px 20px;
    text-align: center;
}

.ib_list_empty>span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.ib_list_empty b {
    color: var(--ds-text);
    font-size: .92rem;
}

.ib_list_empty small {
    color: var(--ds-text-2);
    font-size: .82rem;
}

/* ── the open conversation ── */
.ib_chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--ds-surface-2);
}

.ib_chat_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ds-line);
    background: var(--ds-surface);
}

.ib_back {
    display: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--ds-text);
}

.ib_back svg {
    width: 20px;
    height: 20px;
}

.ib_chat_who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ib_chat_who a {
    color: var(--ds-text);
    text-decoration: none;
}

.ib_chat_who b {
    font-size: .95rem;
    font-weight: 600;
}

.ib_chat_who small {
    color: var(--ds-text-2);
    font-size: .76rem;
}

/* the ad they talk about */
.ib_chat_product {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    min-width: 0;
    margin-inline-start: auto;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: var(--ds-surface);
    color: var(--ds-text);
    text-decoration: none;
    transition: border-color .15s ease;
}

.ib_chat_product:hover {
    border-color: var(--ds-line-hover);
    color: var(--ds-text);
}

.ib_chat_product img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.ib_chat_product>span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ib_chat_product b {
    overflow: hidden;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ib_chat_product small {
    color: var(--ds-text-2);
    font-size: .74rem;
}

.ib_chat_product>svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--ds-text-3);
}

/* the messages */
.ib_messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px;
}

.ib_day {
    display: flex;
    justify-content: center;
    margin: 10px 0 6px;
}

.ib_day span {
    padding: 3px 12px;
    border: 1px solid var(--ds-line);
    border-radius: 999px;
    background: var(--ds-surface);
    color: var(--ds-text-2);
    font-size: .72rem;
    font-weight: 600;
}

.ib_msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(560px, 78%);
}

.ib_msg.is_mine {
    align-self: flex-end;
    align-items: flex-end;
}

.ib_msg.is_new {
    animation: ib_in .2s ease;
}

@keyframes ib_in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ib_bubble {
    padding: 9px 13px;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    border-end-start-radius: 5px;
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.ib_msg.is_mine .ib_bubble {
    border-color: var(--ds-brand);
    border-radius: 16px;
    border-end-end-radius: 5px;
    background: var(--ds-brand);
    color: #fff;
}

.ib_meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 3px 4px 6px;
    color: var(--ds-text-3);
    font-size: .7rem;
    font-variant-numeric: tabular-nums;
}

/* the bottom: quick replies, the box */
.ib_bottom {
    padding: 10px 16px 12px;
    border-top: 1px solid var(--ds-line);
    background: var(--ds-surface);
}

.ib_quick {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ib_quick_item {
    flex-shrink: 0;
    padding: 5px 11px;
    border: 1px solid var(--ds-line);
    border-radius: 999px;
    background: var(--ds-surface-2);
    color: var(--ds-text-2);
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.ib_quick_item:hover {
    border-color: var(--ds-brand);
    color: var(--ds-brand);
}

.ib_composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 16px;
    background: var(--ds-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

html[dir="rtl"] .ib_composer {
    padding: 6px 14px 6px 6px;
}

.ib_composer:focus-within {
    border-color: var(--ds-brand);
    box-shadow: 0 0 0 3px rgba(53, 79, 82, .1);
}

.ib_composer textarea {
    flex: 1;
    min-height: 38px;
    max-height: 160px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ds-text);
    font: inherit;
    font-size: .92rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.ib_send {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--ds-brand);
    color: #fff;
    cursor: pointer;
    transition: opacity .15s ease;
}

.ib_send:hover {
    opacity: .9;
}

.ib_send:disabled {
    opacity: .5;
    cursor: default;
}

.ib_send svg {
    width: 18px;
    height: 18px;
}

html[dir="rtl"] .ib_send svg {
    transform: scaleX(-1);
}

.ib_note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 4px 0;
    color: var(--ds-text-3);
    font-size: .72rem;
}

.ib_note svg {
    width: 13px;
    height: 13px;
}

/* nothing open yet */
.ib_placeholder {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(53, 79, 82, .06), transparent 60%);
}

.ib_placeholder h3 {
    margin: 0 0 4px;
    color: var(--ds-text);
    font-size: 1.05rem;
    font-weight: 600;
}

.ib_placeholder p {
    max-width: 360px;
    margin: 0;
    color: var(--ds-text-2);
    font-size: .88rem;
}

/* the drawing, here too (the website does not load the dashboard's styles) */
.ib_placeholder .dash_empty_art {
    position: relative;
    width: 190px;
    height: 118px;
    margin-bottom: 18px;
}

.ib_placeholder .dash_empty_ghost {
    position: absolute;
    top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 116px;
    height: 70px;
    padding: 0 14px;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    background: var(--ds-surface);
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35);
}

.ib_placeholder .dash_empty_ghost i {
    display: block;
    width: 80%;
    height: 6px;
    border-radius: 6px;
    background: var(--ds-surface-2);
}

.ib_placeholder .dash_empty_ghost i:first-child {
    width: 60%;
    background: var(--ds-line-strong);
}

.ib_placeholder .dash_empty_ghost.is_back {
    left: 4px;
    opacity: .75;
    transform: rotate(-8deg);
}

.ib_placeholder .dash_empty_ghost.is_front {
    top: 14px;
    right: 4px;
    transform: rotate(6deg);
}

.ib_placeholder .dash_empty_icon {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 17px;
    background: var(--ds-brand);
    color: #fff;
    box-shadow: 0 0 0 6px var(--ds-surface), 0 14px 28px -10px rgba(53, 79, 82, .6);
    transform: translateX(-50%);
}

.ib_placeholder .dash_empty_icon svg {
    width: 24px;
    height: 24px;
}

/* phones: the list, or the open conversation, never both */
@media (max-width: 991px) {
    .ib {
        grid-template-columns: 1fr;
        height: calc(100dvh - 150px);
    }

    .ib.has_active .ib_list,
    .ib:not(.has_active) .ib_chat {
        display: none;
    }

    .ib_list {
        border-inline-end: 0;
    }

    .ib_back {
        display: grid;
    }

    .ib_chat_product {
        display: none;
    }

    .ib_msg {
        max-width: 86%;
    }
}

.ad_track {
    --track: #f59f00;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--bg-card);
    display: none;
}

.ad_track.is_rejected {
    --track: #d63939;
}

.ad_track_steps {
    display: flex;
    align-items: center;
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad_track_steps li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ad_track_steps li+li::before {
    content: "";
    width: 36px;
    height: 2px;
    margin-inline: 10px;
    border-radius: 1px;
    background: var(--ds-line);
}

.ad_track_steps li i {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--ds-line-hover);
    background: var(--bg-card);
}

.ad_track_steps li.is_done {
    color: var(--text-main-color);
}

.ad_track_steps li.is_done i {
    border-color: var(--bg-main-color);
    background: var(--bg-main-color);
}

.ad_track_steps li.is_current {
    color: var(--track);
    font-weight: 600;
}

.ad_track_steps li.is_current::before {
    background: var(--bg-main-color);
}

.ad_track_steps li.is_current i {
    border-color: var(--track);
    background: var(--track);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--track) 18%, transparent);
}

.ad_track_note {
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.ad_track_reason {
    display: block;
    margin-top: 4px;
    color: var(--text-main-color);
}

@media (max-width: 575px) {
    .ad_track_steps li+li::before {
        width: 18px;
        margin-inline: 6px;
    }
}


/* --- Email preferences (profile + store dashboard, follows the dashboard's dark mode) --- */
.ep {
    --ep-surface: var(--sd-bg-card, #fff);
    --ep-soft: var(--sd-accent-muted, #e8efec);
    --ep-line: var(--sd-border, #e6ebe9);
    --ep-text: var(--sd-text, #2f3e46);
    --ep-muted: var(--sd-text-muted, #5f6b72);
    --ep-brand: var(--sd-accent, #354f52);
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ep-text);
}

.ep_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ep_title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ep-text);
}

.ep_sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ep-muted);
}

.ep_all {
    flex-shrink: 0;
    padding: 4px 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-brand);
}

.ep_list {
    overflow: hidden;
    border: 1px solid var(--ep-line);
    border-radius: 14px;
    background: var(--ep-surface);
}

.ep_row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ep-line);
    cursor: pointer;
}

.ep_row:last-child {
    border-bottom: 0;
}

.ep_icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--ep-soft);
    color: var(--ep-brand);
}

.ep_icon svg {
    --aous-aw-icon-size: 20px;
}

.ep_text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ep_text b {
    font-size: 14px;
    font-weight: 600;
}

.ep_text small {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ep-muted);
}

.ep_switch {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
}

.ep_switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ep_switch i {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--ep-line);
    transition: background-color .15s ease;
    pointer-events: none;
}

.ep_switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: inset-inline-start .15s ease;
}

.ep_switch input:checked+i {
    background: var(--ep-brand);
}

.ep_switch input:checked+i::after {
    inset-inline-start: 21px;
}

.ep_switch input:focus-visible+i {
    outline: 2px solid var(--ep-brand);
    outline-offset: 2px;
}

.ep_note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ep-muted);
}

.ep_note svg {
    --aous-aw-icon-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ep_actions {
    display: flex;
    justify-content: flex-end;
}

.ep_save {
    height: 42px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: var(--ep-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.ep_page {
    max-width: 520px;
    margin: 48px auto;
}

@media (max-width: 575px) {
    .ep_head {
        flex-direction: column;
        gap: 6px;
    }

    .ep_save {
        width: 100%;
    }
}

/* ==========================================================================
   Property location (shared product forms: website wizard and store dashboard):
   search, current position, the map with a draggable pin, the chosen address
   ========================================================================== */
.re_location_card {
    padding: 16px;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

.re_location_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.re_location_title {
    display: block;
    margin: 0 0 2px;
    color: var(--ds-text);
    font-size: .95rem;
    font-weight: 600;
}

.re_location_sub {
    max-width: 560px;
    margin: 0;
    color: var(--ds-text-2);
    font-size: .84rem;
    line-height: 1.6;
}

.re_location_open_google {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.re_location_searchbar {
    display: flex;
    gap: 8px;
}

.re_location_search_input {
    position: relative;
    flex: 1;
    min-width: 0;
}

.re_location_search_input svg,
.re_location_search_input .icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 13px;
    width: 18px;
    height: 18px;
    color: var(--ds-text-3);
    transform: translateY(-50%);
    pointer-events: none;
}

.re_location_search_input .form-control {
    min-height: 44px;
    padding-inline-start: 40px;
    border-radius: var(--ds-r);
}

.re_location_action_btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: .86rem;
    font-weight: 500;
    white-space: nowrap;
}

.re_location_action_btn:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface-2);
}

.re_location_search_btn {
    border-color: var(--ds-brand);
    background: var(--ds-brand);
    color: #fff;
}

.re_location_search_btn:hover {
    border-color: var(--ds-brand-hover, var(--ds-brand));
    background: var(--ds-brand-hover, var(--ds-brand));
    color: #fff;
}

.re_location_note {
    margin: 10px 0 8px;
    color: var(--ds-text-2);
    font-size: .8rem;
}

.re_location_canvas {
    position: relative;
    z-index: 0;
    height: 320px;
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r);
    background: var(--ds-surface-2);
}

.re_location_footer {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--ds-r);
    background: var(--ds-surface-2);
}

.re_location_meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.re_location_meta_label {
    color: var(--ds-text-3);
    font-size: .74rem;
    font-weight: 600;
}

.re_location_meta_value {
    color: var(--ds-text);
    font-size: .86rem;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .re_location_head {
        flex-direction: column;
    }

    .re_location_searchbar {
        flex-wrap: wrap;
    }

    .re_location_search_input {
        flex-basis: 100%;
    }

    .re_location_action_btn {
        flex: 1;
    }

    .re_location_canvas {
        height: 260px;
    }
}


/* ==========================================================================
   Featured request window (fr_*) and the old empty card (nd_*): brought back from
   globale.css (removed in commit 7e85ebb), still used by the website and the dashboard
   ========================================================================== */
.nd_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 0.75rem;
}

.nd_icon_wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 1.5px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.nd_icon_wrap svg {
    --aous-aw-icon-size: 1.75rem;
}

.nd_title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main-color);
}

.nd_message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 380px;
    line-height: 1.6;
}

.nd_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.75rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--bg-main-color) 0%, var(--second-color) 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity var(--t-fast), transform var(--t-fast);
    box-shadow: 0 4px 14px rgba(83, 168, 182, 0.28);
}

.nd_btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.fr_modal {
    --fr-main: #354f52;
    --fr-border: #e6ebe9;
    --fr-muted: #6b7280;
    --fr-text: #2f3e46;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--fr-text);
}

.fr_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.5rem;
}

.fr_title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.fr_subtitle {
    font-size: 0.88rem;
    color: var(--fr-muted);
    margin: 0;
}

.fr_body {
    padding: 0.75rem 1.5rem 1.25rem;
}

.fr_errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
    margin-bottom: 1rem;
}

.fr_last {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--fr-muted);
    background: #f6f8f7;
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    margin-bottom: 1rem;
}

.fr_last>span:first-child {
    color: var(--fr-text);
    font-weight: 600;
}

.fr_last_status {
    margin-inline-start: auto;
    font-weight: 600;
    color: var(--fr-main);
}

.fr_label {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem 0 0.6rem;
}

.fr_positions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.fr_position,
.fr_plan {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fr-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.fr_position {
    padding: 0.6rem;
    gap: 0.15rem;
}

.fr_position:hover,
.fr_plan:hover {
    border-color: #c5cfcc;
}

.fr_position.is_active,
.fr_plan.is_active {
    border-color: var(--fr-main);
    box-shadow: 0 0 0 1px var(--fr-main);
}

.fr_position input,
.fr_plan input {
    position: absolute;
    top: 0.6rem;
    inset-inline-end: 0.6rem;
    margin: 0;
}

.fr_position_title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.45rem;
}

.fr_position_price {
    font-size: 0.78rem;
    color: var(--fr-muted);
}

.fr_map {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 7rem;
    padding: 0 7px 7px;
    overflow: hidden;
    background: #e9eeec;
    border-radius: 8px;
}

.fr_map>span,
.fr_map_product>span {
    position: relative;
    border-radius: 3px;
    background: #fff;
}

.fr_map_nav {
    flex: 0 0 12px;
    margin-inline: -7px;
    border-radius: 0 !important;
    background:
        radial-gradient(circle, #cfd8d5 2px, transparent 2.5px) 6px 50% / 8px 8px no-repeat,
        radial-gradient(circle, #cfd8d5 2px, transparent 2.5px) 14px 50% / 8px 8px no-repeat,
        radial-gradient(circle, #cfd8d5 2px, transparent 2.5px) 22px 50% / 8px 8px no-repeat,
        #fff !important;
}

.fr_map_hero {
    flex: 1.5;
}

.fr_map_row {
    flex: 1;
    background: repeating-linear-gradient(90deg, #fff 0 22%, transparent 22% 26%) !important;
}

.fr_map_product {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.75fr;
    gap: 4px;
    flex: 1;
    background: transparent !important;
}

.fr_map .is_hl {
    background: var(--fr-main) !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fr-main);
    z-index: 1;
}

.fr_map_row.is_hl {
    background: repeating-linear-gradient(90deg, var(--fr-main) 0 22%, transparent 22% 26%) !important;
    box-shadow: 0 0 0 2px #e9eeec, 0 0 0 3.5px var(--fr-main);
}

.fr_map .is_hl::after {
    content: "★";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.fr_map_row.is_hl::after {
    content: none;
}

.fr_position:not(.is_active) .fr_map .is_hl {
    opacity: .8;
}

.fr_position_hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--fr-muted);
}

.fr_plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.fr_plan {
    padding: 0.7rem 0.8rem;
}

.fr_plan_title {
    font-size: 0.88rem;
    font-weight: 600;
}

.fr_plan_price {
    font-size: 0.82rem;
    color: var(--fr-muted);
}

.fr_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--fr-border);
}

.fr_total {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fr_total strong {
    font-size: 1.25rem;
    line-height: 1.2;
}

.fr_total>span {
    font-size: 0.84rem;
}

.fr_total small {
    font-size: 0.76rem;
    color: var(--fr-muted);
}

.fr_actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fr_submit {
    background: var(--fr-main);
    color: #fff;
}

.fr_submit:hover {
    background: #2a3f42;
    color: #fff;
}

@media only screen and (max-width: 767px) {
    .fr_positions {
        grid-template-columns: repeat(2, 1fr);
    }

    .fr_footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fr_actions .btn {
        flex: 1;
    }
}

/* ==========================================================================
   Maps (window.rbMap): the pin in the brand colour, quiet controls
   ========================================================================== */
/* the map itself: OpenStreetMap made quiet (grey, a touch of the brand's green), dark with the dark theme */
.rb_map .leaflet-tile-pane {
    filter: grayscale(.85) sepia(.12) hue-rotate(110deg) saturate(.9) brightness(1.04) contrast(.92);
}

body.theme-dark .rb_map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) grayscale(.75) brightness(.82) contrast(.9);
}

.rb_map_pin {
    background: none;
    border: 0;
}

.rb_map_pin_body {
    position: absolute;
    top: 2px;
    left: 4px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--ds-brand, #354f52);
    box-shadow: 0 6px 14px -4px rgba(17, 24, 39, .45);
    transform: rotate(-45deg);
}

.rb_map_pin_body i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
}

.rb_map_pin_shadow {
    position: absolute;
    bottom: 0;
    left: 12px;
    width: 12px;
    height: 4px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .28);
    filter: blur(1px);
}

.leaflet-marker-dragging .rb_map_pin_body,
.rb_map_pin.leaflet-drag-target .rb_map_pin_body {
    transform: rotate(-45deg) translate(3px, -3px);
}

.leaflet-container {
    font-family: inherit;
    background: var(--ds-surface-2, #f6f8f7);
}

.leaflet-bar {
    overflow: hidden;
    border: 1px solid var(--ds-line, #e6ebe9) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 16px -10px rgba(17, 24, 39, .35) !important;
}

.leaflet-bar a,
.leaflet-bar a:hover {
    width: 32px !important;
    height: 32px !important;
    border-bottom-color: var(--ds-line, #e6ebe9) !important;
    background: var(--ds-surface, #fff) !important;
    color: var(--ds-text, #2f3e46) !important;
    font-size: 17px !important;
    line-height: 30px !important;
}

.leaflet-bar a:hover {
    background: var(--ds-surface-2, #f6f8f7) !important;
}

.leaflet-control-attribution {
    padding: 1px 6px !important;
    border-radius: 6px 0 0 0;
    background: rgba(255, 255, 255, .78) !important;
    color: var(--ds-text-3, #8d979c) !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: inherit !important;
}

body.theme-dark .leaflet-control-attribution {
    background: rgba(21, 27, 31, .78) !important;
}

body.theme-dark .rb_map_pin_body {
    border-color: #151b1f;
}

/* ---------- the one confirm box (components/modals/delete_confirm_href, RahaSell's): an icon, the question, two equal buttons ---------- */
#delete_confirm_modal {
    z-index: 2100;
}

#delete_confirm_modal .modal-dialog {
    max-width: 380px;
}

#delete_confirm_modal .modal-content {
    border: none;
    border-radius: 22px;
    background: var(--ds-surface);
    color: var(--ds-text);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .5);
}

#delete_confirm_modal .modal-body {
    padding: 28px 26px 6px;
    color: var(--ds-text-2);
    font-size: .92rem;
    text-align: center;
}

#delete_confirm_modal .rb_confirm_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 17px;
    background: var(--ds-danger-soft);
    color: var(--ds-danger);
}

#delete_confirm_modal .rb_confirm_icon.is_primary {
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

#delete_confirm_modal .rb_confirm_icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
}

#delete_confirm_modal .rb_confirm_icon [hidden] {
    display: none;
}

#delete_confirm_modal .modal-title {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: 1.2rem;
    font-weight: 600;
}

#delete_confirm_modal .modal-footer {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 18px 26px 24px;
    border: none;
}

#delete_confirm_modal .modal-footer .btn {
    flex: 1;
    width: auto;
    height: 44px;
    margin: 0;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
}

#delete_confirm_modal .modal-footer .btn-link {
    border: 1px solid var(--ds-line-strong);
    background: transparent;
    color: var(--ds-text);
}

#delete_confirm_modal .modal-footer .btn-link:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-page);
}

#delete_confirm_modal .modal-footer .btn-danger {
    border-color: #d14343;
    background: #d14343;
    color: #fff;
}

#delete_confirm_modal .modal-footer .btn-danger:hover {
    border-color: #b83737;
    background: #b83737;
}

#delete_confirm_modal .modal-footer .btn-primary {
    border-color: var(--ds-brand);
    background: var(--ds-brand);
    color: #fff;
}

#delete_confirm_modal .modal-footer .btn-primary:hover {
    border-color: var(--ds-brand-hover);
    background: var(--ds-brand-hover);
}

#delete_confirm_modal .modal-footer .btn:disabled {
    opacity: .7;
}

/* ---------- one window for the website (components/website/sheet): centred on wide screens, a bottom sheet on phones ---------- */
.rb_sheet .modal-dialog {
    max-width: 480px;
}

.rb_sheet .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: var(--ds-surface);
    color: var(--ds-text);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
}

.rb_sheet_handle {
    display: none;
}

.rb_sheet_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 14px;
}

.rb_sheet_icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.rb_sheet_icon svg {
    width: 21px;
    height: 21px;
}

.rb_sheet_title {
    flex: 1;
    min-width: 0;
}

.rb_sheet_title h2 {
    margin: 0;
    color: var(--ds-text);
    font-size: 1.08rem;
    font-weight: 600;
}

.rb_sheet_title small {
    display: block;
    color: var(--ds-text-2);
    font-size: .84rem;
}

.rb_sheet_close {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--ds-surface-2);
    color: var(--ds-text-2);
}

.rb_sheet_close:hover {
    color: var(--ds-text);
}

.rb_sheet_close svg {
    width: 18px;
    height: 18px;
}

.rb_sheet_body {
    padding: 0 20px 22px;
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    .rb_sheet .modal-dialog {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        align-items: flex-end;
        transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    }

    .rb_sheet.fade .modal-dialog {
        transform: translateY(100%);
    }

    .rb_sheet.show .modal-dialog {
        transform: none;
    }

    .rb_sheet .modal-content {
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .rb_sheet_handle {
        display: grid;
        place-items: center;
        padding: 10px 0 0;
        touch-action: none;
    }

    .rb_sheet_handle i {
        width: 40px;
        height: 5px;
        border-radius: 999px;
        background: var(--ds-line-strong);
    }

    .rb_sheet_head {
        padding-top: 10px;
        touch-action: none;
    }
}
