.apps-catalog {
    --apps-surface: #fff;
    --apps-text: #172033;
    --apps-muted: #738095;
    --apps-border: #e6eaf0;
    --apps-soft: #f7f9fc;
    --apps-accent: #2563eb;
    color: var(--apps-text);
}

.dark .apps-catalog {
    --apps-surface: #151d2c;
    --apps-text: #e9eef7;
    --apps-muted: #a1aec2;
    --apps-border: #2b3648;
    --apps-soft: #1b2638;
}

.apps-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    overflow: hidden;
    border: 1px solid #253b65;
    border-radius: 1.5rem;
    background: radial-gradient(ellipse at 85% 0%, #284d88 0%, transparent 65%), #142641;
    color: #fff;
}

.apps-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 37rem;
}

.apps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #b7d2fb;
    font-size: 0.75rem;
    font-weight: 600;
}

.apps-eyebrow svg {
    width: 1rem;
    height: 1rem;
}

.apps-intro h2 {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.apps-intro p {
    margin-top: 0.5rem;
    color: #b7c8e0;
    font-size: 0.9375rem;
    line-height: 1.9;
}

.apps-intro-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    color: #b7c8e0;
    font-size: 0.75rem;
}

.apps-intro-stats strong {
    margin-inline-end: 0.35rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
}

.apps-intro-art {
    display: grid;
    grid-template-columns: repeat(2, 4rem);
    gap: 0.75rem;
    padding-inline: 1rem;
    transform: rotate(-10deg);
}

.apps-intro-art span {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid #ffffff26;
    border-radius: 1.125rem;
    background: #ffffff0d;
    box-shadow: 0 8px 20px #07142826;
}

.apps-intro-art span:nth-child(2),
.apps-intro-art span:nth-child(3) {
    background: #ffffff1c;
    color: #bad8ff;
}

.apps-intro-art svg {
    width: 1.75rem;
    height: 1.75rem;
}

.apps-preview-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-block: 1rem 2.25rem;
    color: var(--apps-muted);
    font-size: 0.75rem;
    line-height: 1.8;
}

.apps-preview-note svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.apps-featured {
    margin-bottom: 2.5rem;
}

.apps-category-heading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.apps-category-heading h2 {
    font-size: 0.9375rem;
    font-weight: 700;
}

.apps-category-heading svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--apps-muted);
}

.apps-category-heading > span {
    display: grid;
    place-items: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding-inline: 0.35rem;
    border: 1px solid var(--apps-border);
    border-radius: 0.4rem;
    color: var(--apps-muted);
    font-size: 0.6875rem;
}

.apps-grid,
.apps-featured-grid {
    display: grid;
    gap: 1rem;
}

.apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.apps-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apps-card {
    --apps-accent: #2563eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--apps-border);
    border-radius: 1rem;
    background: var(--apps-surface);
    box-shadow: 0 2px 4px #0f172a03;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.apps-card:hover {
    border-color: color-mix(in srgb, var(--apps-accent) 35%, var(--apps-border));
    box-shadow: 0 8px 24px #0f172a0a;
    transform: translateY(-2px);
}

.apps-card[data-app="MTN"] { --apps-accent: #af8000; }
.apps-card[data-app="SY"] { --apps-accent: #dc3545; }
.apps-card[data-app="O"] { --apps-accent: #805575; }
.apps-card[data-app="ZB"] { --apps-accent: #267cb5; }
.apps-card[data-app="WA"] { --apps-accent: #168957; }
.apps-card[data-app="Tk"] { --apps-accent: #3b4860; }
.apps-category-marketing .apps-card { --apps-accent: #7c5bcc; }
.apps-category-delivery .apps-card { --apps-accent: #168877; }
.apps-category-loyalty .apps-card { --apps-accent: #bb7b19; }
.apps-category-analytics .apps-card { --apps-accent: #4c73c7; }

.apps-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.apps-mark,
.apps-intro-icon {
    display: grid;
    place-items: center;
    width: 2.875rem;
    height: 2.875rem;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--apps-accent) 13%, transparent);
    border-radius: 0.875rem;
    background: color-mix(in srgb, var(--apps-accent) 9%, var(--apps-surface));
    color: var(--apps-accent);
    font-size: 0.875rem;
    font-weight: 800;
    direction: ltr;
}

.dark .apps-mark,
.dark .apps-intro-icon {
    color: color-mix(in srgb, var(--apps-accent) 65%, #fff);
}

.apps-ribbon {
    max-width: 65%;
    padding: 0.25rem 0.5rem;
    border: 1px solid color-mix(in srgb, #c58a29 22%, var(--apps-border));
    border-radius: 0.375rem;
    background: color-mix(in srgb, #e9b75c 9%, var(--apps-surface));
    color: #96651a;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.6;
}

.dark .apps-ribbon {
    color: #e6bf79;
}

.apps-card h3 {
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.apps-card p {
    flex: 1;
    margin-block: 0.5rem 1.25rem;
    color: var(--apps-muted);
    font-size: 0.8125rem;
    line-height: 1.9;
}

.apps-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.apps-card-title h3 {
    margin-top: 0;
}

.apps-new {
    padding: 0.125rem 0.4rem;
    border-radius: 0.375rem;
    background: color-mix(in srgb, #16a368 10%, var(--apps-surface));
    color: #158052;
    font-size: 0.625rem;
    font-weight: 600;
}

.dark .apps-new { color: #77dbab; }

.apps-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--apps-border);
}

.apps-card-footer > span {
    color: var(--apps-muted);
    font-size: 0.6875rem;
    line-height: 1.6;
}

.apps-card-footer .fi-btn {
    flex-shrink: 0;
    border: 1px solid var(--apps-border);
    border-radius: 0.5rem;
    box-shadow: none;
}

.apps-featured-card {
    min-height: 16rem;
    padding: 1.5rem;
    border-top: 3px solid var(--apps-accent);
    background: linear-gradient(155deg, color-mix(in srgb, var(--apps-accent) 6%, var(--apps-surface)), var(--apps-surface) 70%);
}

.apps-featured-card h3 { font-size: 1.0625rem; }
.apps-featured-card .apps-mark { width: 3.25rem; height: 3.25rem; }

.apps-browser {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
}

.apps-toolbar {
    position: sticky;
    top: 5rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--apps-border);
    border-radius: 1rem;
    background: var(--apps-surface);
}

.apps-toolbar-title {
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.apps-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    padding-inline: 0.625rem;
    border: 1px solid var(--apps-border);
    border-radius: 0.5rem;
    background: var(--apps-soft);
}

.apps-search svg,
.apps-filter svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.apps-search svg { color: var(--apps-muted); }

.apps-search input {
    width: 100%;
    min-width: 0;
    padding-block: 0.625rem;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--apps-text);
    font-size: 0.75rem;
}

.apps-search:focus-within {
    outline: 2px solid var(--apps-accent);
    outline-offset: 2px;
}

.apps-filters { display: grid; gap: 0.25rem; }

.apps-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--apps-muted);
    font-size: 0.75rem;
    text-align: start;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.apps-filter:hover { background: var(--apps-soft); color: var(--apps-text); }
.apps-filter.is-active { background: color-mix(in srgb, #2563eb 9%, var(--apps-surface)); color: #2563eb; font-weight: 600; }
.dark .apps-filter.is-active { color: #91b8ff; }
.apps-filter-label { flex: 1; }
.apps-filter > span:last-child { font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.apps-filter:focus-visible { outline: 2px solid var(--apps-accent); outline-offset: 1px; }
.apps-results { min-width: 0; }
.apps-category { margin-bottom: 2rem; }

.apps-empty {
    padding: 4rem 1rem;
    border: 1px dashed var(--apps-border);
    border-radius: 1rem;
    background: var(--apps-surface);
    color: var(--apps-muted);
    font-size: 0.875rem;
    text-align: center;
}

.apps-request {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
    padding: 1.75rem 2rem;
    border: 1px solid var(--apps-border);
    border-radius: 1rem;
    background: var(--apps-surface);
}

.apps-intro-icon svg { width: 1.5rem; height: 1.5rem; }
.apps-request-copy { flex: 1 1 14rem; }
.apps-request h2 { font-size: 1rem; font-weight: 700; }
.apps-request p { margin-top: 0.25rem; color: var(--apps-muted); font-size: 0.8125rem; line-height: 1.8; }
.apps-request-copy p:last-child { font-size: 0.6875rem; }

@media (max-width: 1100px) {
    .apps-browser { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .apps-toolbar { position: static; }
    .apps-toolbar-title { display: none; }
    .apps-search { max-width: 24rem; }
    .apps-filters { display: flex; overflow-x: auto; padding-bottom: 0.25rem; }
    .apps-filter { width: auto; flex-shrink: 0; white-space: nowrap; }
}

@media (max-width: 760px) {
    .apps-intro { padding: 1.75rem; border-radius: 1rem; }
    .apps-intro-art { display: none; }
    .apps-featured-grid { grid-template-columns: 1fr; }
    .apps-featured-card { min-height: auto; }
    .apps-request { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .apps-card, .apps-filter { transition: none; }
    .apps-card:hover { transform: none; }
}

.settings-search {
    --settings-search-bg: #fff;
    --settings-search-text: #111827;
    --settings-search-muted: #6b7280;
    --settings-search-border: #e5e7eb;
    --settings-search-hover: #f3f4f6;
    position: relative;
    width: 100%;
    max-width: 52rem;
}

.dark .settings-search {
    --settings-search-bg: #111827;
    --settings-search-text: #f3f4f6;
    --settings-search-muted: #9ca3af;
    --settings-search-border: #374151;
    --settings-search-hover: #1f2937;
}

.settings-search-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--settings-search-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.settings-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.875rem;
    padding-inline: 0.875rem;
    border: 1px solid var(--settings-search-border);
    border-radius: 0.75rem;
    background: var(--settings-search-bg);
    box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
    transition: border-color 150ms, box-shadow 150ms;
}

.settings-search-input-wrapper:focus-within {
    border-color: var(--primary-600, #2563eb);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-600, #2563eb) 12%, transparent);
}

.settings-search-icon,
.settings-search-clear svg,
.settings-search-result-icon svg,
.settings-search-result-arrow {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    color: var(--settings-search-muted);
}

.settings-search .settings-search-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--settings-search-text);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.settings-search-input::placeholder {
    color: var(--settings-search-muted);
}

.settings-search-input::-webkit-search-cancel-button {
    appearance: none;
}

.settings-search-clear {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
}

.settings-search-clear:hover,
.settings-search-clear:focus-visible {
    background: var(--settings-search-hover);
}

.settings-search-dropdown {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.5rem);
    z-index: 30;
    overflow: hidden;
    border: 1px solid var(--settings-search-border);
    border-radius: 0.875rem;
    background: var(--settings-search-bg);
    box-shadow: 0 12px 32px -8px rgb(0 0 0 / 18%);
}

.settings-search-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--settings-search-border);
    color: var(--settings-search-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.settings-search-count {
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    background: var(--settings-search-hover);
    font-variant-numeric: tabular-nums;
}

.settings-search-results {
    max-height: min(22rem, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.375rem;
    margin: 0;
    list-style: none;
}

.settings-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: start;
    transition: background-color 150ms;
}

.settings-search-result:hover,
.settings-search-result:focus-visible {
    outline: 2px solid transparent;
    background: var(--settings-search-hover);
}

.settings-search-result-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid var(--settings-search-border);
    border-radius: 0.625rem;
}

.settings-search-result-copy {
    display: grid;
    flex: 1;
    gap: 0.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.settings-search-result-label {
    color: var(--settings-search-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.settings-search-result-path {
    color: var(--settings-search-muted);
    font-size: 0.75rem;
    line-height: 1rem;
}

[dir="rtl"] .settings-search-result-arrow {
    transform: rotate(180deg);
}

.settings-search-empty {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    color: var(--settings-search-muted);
    font-size: 0.875rem;
}

.settings-search-empty svg {
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0.6;
}

.fi-resource-loyalty-activities .fi-page-sub-navigation-tabs,
.fi-resource-point-wallets .fi-page-sub-navigation-tabs {
    margin-left: 0;
    margin-right: auto;
}

/* Colors Start */
:root {
    --blue-icon-color: #0863c7!important;
    --purple-icon-color: #6041c5!important;
    --orange-icon-color: #ef7818!important;
    --green-icon-color: #04ac5c!important;
    --red-icon-color: #ea3323!important;
}
/* Colors End */
.sidebar-attention {
    --attention-surface: #f8fafc;
    --attention-border: #e2e8f0;
    --attention-text: #172033;
    --attention-muted: #475569;
    --attention-hover: #eef2f7;
    --attention-blue: #2563eb;
    --attention-blue-bg: #e8efff;
    --attention-warning: #b45309;
    --attention-warning-bg: #fff3df;
    --attention-danger: #dc2626;
    --attention-danger-bg: #fee9ec;
    --attention-success: #15803d;
    flex-shrink: 0;
    margin-top: 1rem;
    padding: 0.875rem 0.75rem 0.375rem;
    border: 1px solid var(--attention-border);
    border-radius: 0.875rem;
    background: var(--attention-surface);
    color: var(--attention-text);
}

.dark .sidebar-attention {
    --attention-surface: #202126;
    --attention-border: #34363e;
    --attention-text: #f1f5f9;
    --attention-muted: #cbd5e1;
    --attention-hover: #2c2e36;
    --attention-blue: #93b4ff;
    --attention-blue-bg: #293752;
    --attention-warning: #fbbf64;
    --attention-warning-bg: #423324;
    --attention-danger: #fda4af;
    --attention-danger-bg: #442c35;
    --attention-success: #86efac;
}

.sidebar-attention-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
}

.sidebar-attention-bell {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: var(--attention-blue-bg);
    color: var(--attention-blue);
}

.sidebar-attention .fi-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.sidebar-attention-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-attention-items > li + li {
    border-top: 1px solid var(--attention-border);
}

.sidebar-attention-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.125rem;
    border-radius: 0.375rem;
    color: var(--attention-muted);
    text-decoration: none;
}

.sidebar-attention-link:hover,
.sidebar-attention-link:focus-visible {
    background: var(--attention-hover);
}

.sidebar-attention-link:focus-visible {
    outline: 2px solid var(--attention-blue);
    outline-offset: 2px;
}

.sidebar-attention-label {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.6;
}

.sidebar-attention-count {
    flex-shrink: 0;
    min-width: 1.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    background: var(--attention-blue-bg);
    color: var(--attention-blue);
}

.sidebar-attention-icon {
    color: var(--attention-blue);
}

.sidebar-attention-warning .sidebar-attention-icon,
.sidebar-attention-warning .sidebar-attention-count {
    color: var(--attention-warning);
}

.sidebar-attention-warning .sidebar-attention-count {
    background: var(--attention-warning-bg);
}

.sidebar-attention-danger .sidebar-attention-icon,
.sidebar-attention-danger .sidebar-attention-count {
    color: var(--attention-danger);
}

.sidebar-attention-danger .sidebar-attention-count {
    background: var(--attention-danger-bg);
}

.sidebar-attention-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding-block: 0.75rem;
    color: var(--attention-success);
    font-size: 0.75rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .fi-main-sidebar:not(.fi-sidebar-open) .sidebar-attention {
        display: none;
    }
}

.fi-sidebar-nav-groups {
    row-gap: 12px;
}

.fi-topbar-start,
.fi-sidebar-header {
    column-gap: 0.75rem;
}

.fi-topbar-start > .fi-topbar-collapse-sidebar-btn-ctn,
.fi-sidebar-header > .fi-sidebar-open-collapse-sidebar-btn,
.fi-sidebar-header > .fi-sidebar-close-collapse-sidebar-btn {
    order: 1;
}

.fi-topbar-start .fi-logo,
:not(.fi-body-has-topbar) .fi-sidebar-header .fi-logo {
    margin-inline-start: 0;
}

.fi-sidebar-group-label{
    font-weight: 600;
}

.fi-sidebar-item:not(.fi-active) a[href$="/panel"] .fi-sidebar-item-icon {
    color: var(--orange-icon-color);
}
.fi-sidebar-item:not(.fi-active) a[href$="/orders"] .fi-sidebar-item-icon {
    color: var(--green-icon-color);
}
.fi-sidebar-item:not(.fi-active) a[href$="/contact-us"] .fi-sidebar-item-icon {
    color: var(--blue-icon-color);
}

.products-group .fi-size-lg {
    color: var(--red-icon-color);
}

.content-group .fi-size-lg {
    color: var(--green-icon-color);
}

.users-group .fi-size-lg {
    color: var(--purple-icon-color);
}

.loyalty-group .fi-size-lg {
    color: var(--orange-icon-color);
}

.logistics-group .fi-size-lg,
.support-group .fi-size-lg {
    color: var(--blue-icon-color);
}

.settings-group .fi-size-lg {
    color: var(--red-icon-color);
}

.user-details-section .fi-section,
.user-details-section .fi-section-content-ctn {
    background-color: #ffffff !important;
}

.user-details-section .fi-section {
    color: #111827 !important;
}

.user-details-section .fi-in-entry-label,
.user-details-section .fi-in-text-item {
    color: #111827 !important;
}

.user-details-section .fi-in-placeholder {
    color: #6b7280 !important;
}

.leaflet-tile-pane { z-index: 200 !important; }
.leaflet-overlay-pane { z-index: 405 !important; }
.leaflet-shadow-pane { z-index: 500 !important; }
.leaflet-marker-pane { z-index: 600 !important; }
.leaflet-tooltip-pane { z-index: 650 !important; }
.leaflet-popup-pane { z-index: 700 !important; }
.leaflet-map-pane canvas { z-index: 100 !important; }
.leaflet-map-pane svg { z-index: 200 !important; }
.leaflet-control { z-index: 800 !important; }
.leaflet-top, .leaflet-bottom { z-index: 1000 !important; }

.wacli-auth-modal .fi-modal-header {
    padding: 2.5rem 3rem 0;
}

.wacli-auth-modal .fi-modal-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.wacli-auth-modal .fi-modal-content {
    padding: 2.5rem 3rem 3rem !important;
}

.wacli-authentication {
    min-height: 26rem;
}

.wacli-authentication-state {
    min-height: 26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.wacli-authentication-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.wacli-authentication-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wacli-authentication-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wacli-authentication-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.4;
    color: #182126;
}

.wacli-authentication-step:not(:last-child)::after {
    position: absolute;
    inset-inline-start: 1.45rem;
    top: 2.85rem;
    width: 1px;
    height: 2.35rem;
    background: #182126;
    content: '';
}

.wacli-authentication-step-number {
    position: relative;
    z-index: 1;
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #182126;
    border-radius: 9999px;
    background: #fff;
    font-size: 1.35rem;
    line-height: 1;
}

.wacli-authentication-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.wacli-authentication-whatsapp-icon-small {
    width: 2rem;
    height: 2rem;
    margin-inline-start: 0.35rem;
    background: #25d366;
    color: #fff;
    font-size: 1.35rem;
    vertical-align: middle;
}

.wacli-authentication-help {
    margin-top: 2.5rem;
    border-bottom: 3px solid #25d366;
    color: #182126;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.wacli-authentication-help:hover {
    color: #128c7e;
}

.wacli-authentication-qr {
    position: relative;
    width: min(100%, 20rem);
    justify-self: end;
    aspect-ratio: 1;
    background: #fff;
}

.wacli-authentication-qr img {
    display: block;
    width: 100%;
    height: 100%;
}

.wacli-authentication-whatsapp-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5.5rem;
    height: 5.5rem;
    transform: translate(-50%, -50%);
    border: 0.55rem solid #fff;
    background: #183a3c;
    color: #fff;
    font-size: 3.3rem;
    box-shadow: 0 0 0 0.3rem #183a3c;
}

.wacli-authentication-success {
    color: #15803d;
}

.wacli-authentication-failed {
    color: #dc2626;
}

.dark .wacli-authentication-step,
.dark .wacli-authentication-help {
    color: #f8fafc;
}

.dark .wacli-authentication-step:not(:last-child)::after {
    background: #f8fafc;
}

.fi-link.visit-store-link {
    gap: 0.375rem;
    color: #4b5563;
    font-size: 0.800rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 150ms ease;
}

.fi-link.visit-store-link .fi-icon {
    width: 1rem;
    height: 1rem;
    color: inherit;
}

.dark .fi-link.visit-store-link {
    color: #9ca3af;
}

.fi-link.visit-store-link:hover,
.fi-link.visit-store-link:focus-visible {
    color: #2563eb;
    text-decoration: none;
}

.dark .fi-link.visit-store-link:hover,
.dark .fi-link.visit-store-link:focus-visible {
    color: #60a5fa;
}

@media (max-width: 639px) {
    .visit-store-link .visit-store-label {
        display: none;
    }
}

.dark .wacli-authentication-step-number {
    border-color: #f8fafc;
    background: #111827;
}

.store-product-trashed-row {
    background-color: #fef2f2 !important;
    box-shadow: inset 3px 0 #dc2626;
}

.store-product-trashed-row:hover {
    background-color: #fee2e2 !important;
}

[dir="rtl"] .store-product-trashed-row {
    box-shadow: inset -3px 0 #dc2626;
}

.store-product-trashed-notice {
    margin-top: 0.25rem;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
}

.dark .store-product-trashed-row {
    background-color: rgb(239 68 68 / 10%) !important;
    box-shadow: inset 3px 0 #ef4444;
}

.dark .store-product-trashed-row:hover {
    background-color: rgb(239 68 68 / 16%) !important;
}

.dark[dir="rtl"] .store-product-trashed-row {
    box-shadow: inset -3px 0 #ef4444;
}

.dark .store-product-trashed-notice {
    color: #f87171;
}

@media (max-width: 900px) {
    .wacli-auth-modal .fi-modal-header {
        padding: 2rem 1.5rem 0;
    }

    .wacli-auth-modal .fi-modal-content {
        padding: 2rem 1.5rem 2.5rem !important;
    }

    .wacli-authentication-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .wacli-authentication-qr {
        width: min(100%, 18rem);
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .wacli-authentication-step {
        align-items: flex-start;
    }

    .wacli-authentication-step:not(:last-child)::after {
        height: 2.75rem;
    }

    .wacli-authentication-whatsapp-icon-large {
        width: 4.5rem;
        height: 4.5rem;
        border-width: 0.45rem;
        font-size: 2.7rem;
    }
}
