/**
 * Premium surfaces: ecommerce customer overview quick cards (.bb-customer-page)
 * Design tokens aligned with lm-widget-link in the theme LM partial.
 */

.bb-customer-page .lm-overview-summary {
    margin-bottom: 1.75rem;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 {
    --bb-surface-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bb-surface-radius: 16px;
    position: relative;
    overflow: hidden;
    border-radius: var(--bb-surface-radius) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 1px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.06),
        0 18px 36px -16px rgba(15, 23, 42, 0.14);
    transition: transform 0.38s var(--bb-surface-ease), box-shadow 0.38s var(--bb-surface-ease), border-color 0.38s var(--bb-surface-ease);
    min-height: 156px;
    isolation: isolate;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10::before,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10::before,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10::after,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10::after,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%, transparent 100%);
    mix-blend-mode: overlay;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10:hover,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10:hover,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 12px 28px rgba(15, 23, 42, 0.1),
        0 28px 56px -20px rgba(15, 23, 42, 0.18);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body {
    position: relative;
    z-index: 1;
    padding: 26px 22px 22px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body > h5,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body > h5,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body > h5,
.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .card-title,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .card-title,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body > p,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body > p,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body > p {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1.15rem;
    flex-grow: 1;
    max-width: 28ch;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 40%, #eef4ff 100%) !important;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10::before {
    background: radial-gradient(ellipse 95% 70% at 18% -30%, rgba(59, 130, 246, 0.2), transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(99, 102, 241, 0.08), transparent 45%);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10:hover {
    border-color: rgba(59, 130, 246, 0.42) !important;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .btn {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    border-width: 1.5px;
    background: rgba(37, 99, 235, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
    color: #1d4ed8 !important;
    transition: background 0.25s var(--bb-surface-ease), border-color 0.25s var(--bb-surface-ease), color 0.25s var(--bb-surface-ease), box-shadow 0.25s var(--bb-surface-ease);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .btn:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: #1e3a8a !important;
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 40%, #ecfdf5 100%) !important;
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10::before {
    background: radial-gradient(ellipse 95% 70% at 18% -30%, rgba(16, 185, 129, 0.18), transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(52, 211, 153, 0.09), transparent 45%);
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .btn {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    border-width: 1.5px;
    background: rgba(5, 150, 105, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #047857 !important;
    transition: background 0.25s var(--bb-surface-ease), border-color 0.25s var(--bb-surface-ease), color 0.25s var(--bb-surface-ease), box-shadow 0.25s var(--bb-surface-ease);
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.12);
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .btn:hover {
    background: rgba(5, 150, 105, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.58) !important;
    color: #065f46 !important;
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 40%, #fffbeb 100%) !important;
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10::before {
    background: radial-gradient(ellipse 95% 70% at 18% -30%, rgba(245, 158, 11, 0.2), transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(251, 191, 36, 0.1), transparent 45%);
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .btn {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    border-width: 1.5px;
    background: rgba(217, 119, 6, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.48) !important;
    color: #b45309 !important;
    transition: background 0.25s var(--bb-surface-ease), border-color 0.25s var(--bb-surface-ease), color 0.25s var(--bb-surface-ease), box-shadow 0.25s var(--bb-surface-ease);
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12);
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .btn:hover {
    background: rgba(217, 119, 6, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.62) !important;
    color: #92400e !important;
}

/* Overview cards: круг со икона — иста површина / рамка / сенка како CTA копчето; сиви „clipboard / home / user“ наместо core икони */
.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning {
    position: relative;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success {
    background: rgba(5, 150, 105, 0.1) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.12);
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning {
    background: rgba(217, 119, 6, 0.1) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.48) !important;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary svg,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success svg,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning svg {
    display: none !important;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: no-repeat center / 24px 24px
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%205h-2a2%202%200%200%200%20-2%202v12a2%202%200%200%200%202%202h10a2%202%200%200%200%202%20-2v-12a2%202%200%200%200%20-2%20-2h-2%22/%3E%3Cpath%20d%3D%22M9%203m0%202a2%202%200%200%201%202%20-2h2a2%202%200%200%201%202%202v0a2%202%200%200%201%20-2%202h-2a2%202%200%200%201%20-2%20-2z%22/%3E%3Cpath%20d%3D%22M9%2012h.01%22/%3E%3Cpath%20d%3D%22M13%2012h2%22/%3E%3Cpath%20d%3D%22M9%2016h.01%22/%3E%3Cpath%20d%3D%22M13%2016h2%22/%3E%3C/svg%3E");
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: no-repeat center / 24px 24px
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012l-2%200l9%20-9l9%209l-2%200%22/%3E%3Cpath%20d%3D%22M5%2012v7a2%202%200%200%200%202%202h10a2%202%200%200%200%202%20-2v-7%22/%3E%3Cpath%20d%3D%22M9%2021v-6a2%202%200%200%201%202%20-2h2a2%202%200%200%201%202%202v6%22/%3E%3C/svg%3E");
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: no-repeat center / 24px 24px
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2012m-9%200a9%209%200%201%200%2018%200a9%209%200%201%200%20-18%200%22/%3E%3Cpath%20d%3D%22M12%2010m-3%200a3%203%200%201%200%206%200a3%203%200%201%200%20-6%200%22/%3E%3Cpath%20d%3D%22M6.168%2018.849a4%204%200%200%201%203.832%20-2.849h4a4%204%200%200%201%203.834%202.855%22/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .card.border-0.bg-primary.bg-opacity-10,
    .bb-customer-page .card.border-0.bg-success.bg-opacity-10,
    .bb-customer-page .card.border-0.bg-warning.bg-opacity-10,
    .bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .btn,
    .bb-customer-page .card.border-0.bg-success.bg-opacity-10 .btn,
    .bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .btn {
        transition: none;
    }

    .bb-customer-page .card.border-0.bg-primary.bg-opacity-10:hover,
    .bb-customer-page .card.border-0.bg-success.bg-opacity-10:hover,
    .bb-customer-page .card.border-0.bg-warning.bg-opacity-10:hover {
        transform: none;
    }
}

/* Overview quick-link cards: hide trailing arrow SVG (markup from ecommerce core) */
.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .btn svg,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .btn svg,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .btn svg {
    display: none !important;
}

/* Customer area: hide duplicate page title bar (e.g. "Overview"; markup from ecommerce core) */
.bb-customer-page .bb-profile-header {
    display: none !important;
}

/* Sidebar profile strip: целосна заобленост 16px; без долна линија (ecommerce default border-bottom) */
.bb-customer-page .bb-customer-sidebar-heading {
    border-radius: 16px;
    border-bottom: none !important;
    overflow: hidden;
}

/* Main content wrapper (downloads, empty states): ист dijagonalen slate градиент како .bb-customer-sidebar-heading */
.bb-customer-page .bb-customer-content-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    background-color: transparent !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
}

/* Sidebar wrapper: без надворешна вертикална линија кон main (ecommerce default border-right) */
.bb-customer-page .bb-customer-sidebar-wrapper {
    border-right: none !important;
    border-inline-end: none !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .bb-customer-page .customer-body .row > .col-lg-3 .bb-customer-sidebar-wrapper {
        border-right: 0 !important;
        border-inline-end: 0 !important;
    }
}

/* Main column: без горен „воздух“ — содржината почнува од врвот (default ecommerce padding-top 2rem) */
.bb-customer-page .bb-profile-content {
    padding-top: 0 !important;
}

.bb-customer-page .bb-profile-content .bb-profile-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.bb-customer-page .bb-profile-main > .bb-customer-profile-wrapper:first-child {
    margin-top: 0 !important;
}

/* Empty-state / shop CTA: .card.bg-info.bg-opacity-10 („Browse products“) — премиум лента */
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 {
    --bb-cta-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid rgba(125, 211, 252, 0.45) !important;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 42%, #ecfeff 100%) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 1px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(14, 165, 233, 0.09),
        0 20px 40px -18px rgba(15, 23, 42, 0.12);
    transition: transform 0.38s var(--bb-cta-ease), box-shadow 0.38s var(--bb-cta-ease), border-color 0.38s var(--bb-cta-ease);
    isolation: isolate;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 90% 65% at 12% -25%, rgba(14, 165, 233, 0.18), transparent 52%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(6, 182, 212, 0.12), transparent 50%);
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.5) 0%, transparent 38%, transparent 100%);
    mix-blend-mode: overlay;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.55) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 4px 12px rgba(14, 165, 233, 0.12),
        0 16px 36px rgba(15, 23, 42, 0.1);
}

/* Икона-круг: без остар cyan (bg-info/20) — неутрално-сивкаст диск + пригушена икона */
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 span.rounded-circle.bg-info.bg-opacity-20,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .rounded-circle.bg-info.bg-opacity-20 {
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 55%, #eef2f7 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.32) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #64748b !important;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 span.rounded-circle svg,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 span.rounded-circle .icon,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .rounded-circle.bg-info.bg-opacity-20 svg {
    color: #64748b !important;
    opacity: 0.92;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 span.rounded-circle.text-white,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 span.rounded-circle .text-white,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 span.rounded-circle svg.text-white {
    color: #64748b !important;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 1.55rem 1.75rem !important;
        column-gap: 1rem;
        row-gap: 1rem;
    }

    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .btn,
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body a.btn {
        margin-left: auto !important;
    }
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body > h5,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body > p,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body p.lead {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569 !important;
    margin: 0 !important;
    max-width: 38rem;
    flex: 0 1 auto;
}

/* Bootstrap .flex-grow-1 на текст-блокот правеше „џиновски“ празнина до иконата */
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .flex-grow-1 {
    flex: 0 1 auto !important;
    max-width: min(100%, 40rem);
    min-width: 0;
}

/*
 * Ecommerce користи .row > .col-12.col-md без број — на md+ двете колони земаат ~50% ширина.
 * Првата колона (икона) мора да биде col-auto, не половина од картичката.
 */
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center {
    --bs-gutter-x: 1rem;
    max-width: 100%;
    min-width: 0;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body {
    max-width: 100%;
    min-width: 0;
}

/* Текст-колона: мора min-width:0 за flex да дозволи прелом; инаку една линија го турка копчето */
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:nth-child(2) {
    min-width: 0 !important;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:nth-child(2) h5,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:nth-child(2) p,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:nth-child(2) .card-title {
    white-space: normal !important;
    max-width: 100%;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:last-child .btn,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:last-child a.btn {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:first-child {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none;
        min-width: auto;
    }

    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:nth-child(2):not(:last-child) {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:nth-child(2):last-child {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .row.align-items-center > .col-md:last-child:not(:first-child):not(:nth-child(2)) {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto;
    }
}

/* Икона: тесно до текстот; отстрани ms/me од првиот блок / круг */
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body > .rounded-circle,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body > div:first-child {
    flex-shrink: 0;
    margin: 0 !important;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .rounded-circle {
    flex-shrink: 0;
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .btn,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body a.btn {
    flex-shrink: 0;
    align-self: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border-radius: 999px !important;
    padding: 0.62rem 1.4rem !important;
    border: none !important;
    background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 52%, #0369a1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35), 0 8px 20px rgba(14, 165, 233, 0.2);
    transition: transform 0.25s var(--bb-cta-ease), box-shadow 0.25s var(--bb-cta-ease), filter 0.25s var(--bb-cta-ease);
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .btn:hover,
.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body a.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45), 0 10px 24px rgba(2, 132, 199, 0.25);
}

.bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .btn svg {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10,
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .btn,
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body a.btn {
        transition: none;
    }

    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10:hover,
    .bb-customer-page .bb-profile-main .card.border-0.bg-info.bg-opacity-10 .card-body .btn:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   Customer offcanvas backdrop: softer overlay + drop stuck layers
   (Bootstrap sometimes leaves .offcanvas-backdrop.show without an open panel.)
   ------------------------------------------------------------------------- */
.bb-customer-page .offcanvas-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    /* default BS is heavy; keep dimming subtle on account pages */
    background-color: rgba(15, 23, 42, 0.28) !important;
}

.bb-customer-page .offcanvas-backdrop + .offcanvas-backdrop {
    display: none !important;
}

@supports selector(:has(*)) {
    /* Hide leftover backdrop when no customer offcanvas is open */
    .bb-customer-page:not(:has(.offcanvas.show)) .offcanvas-backdrop {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* -------------------------------------------------------------------------
   Empty state: replace broken/empty default SVG with on-brand developer icon
   (Storyset-style mood; original asset — see theme images folder.)
   ------------------------------------------------------------------------- */
/* Скриј го default SVG од темата (често карт/икона) — преку background прикажуваме сопствениот asset */
.bb-customer-page .bb-empty .bb-empty-img .d-inline-flex svg {
    display: none !important;
}

.bb-customer-page .bb-empty .bb-empty-img .d-inline-flex {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    min-height: 5.5rem;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9 !important;
    background-image: url('../images/customer-empty-developer.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 78%;
    animation: bb-customer-empty-float 3.5s ease-in-out infinite;
}

@keyframes bb-customer-empty-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-empty .bb-empty-img .d-inline-flex {
        animation: none;
    }
}

/* -------------------------------------------------------------------------
   Customer sidebar nav: hover / active / focus (бренд #3b82f6)
   ------------------------------------------------------------------------- */
.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link {
    --bb-nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    transition:
        background-color 0.22s var(--bb-nav-ease),
        color 0.22s var(--bb-nav-ease),
        transform 0.22s var(--bb-nav-ease),
        box-shadow 0.22s var(--bb-nav-ease);
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.03) 100%) !important;
    color: #0f172a !important;
    box-shadow: inset 3px 0 0 #3b82f6;
    transform: translateX(2px);
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) .nav-icon {
    color: #3b82f6 !important;
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link.active {
    box-shadow:
        0 4px 14px -4px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.55);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link {
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   Primary / CTA копчиња (празна состојба „Start shopping now“ и слични)
   ------------------------------------------------------------------------- */
.bb-customer-page .bb-empty .bb-empty-action .btn {
    --bb-btn-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    transition:
        transform 0.28s var(--bb-btn-ease),
        box-shadow 0.28s var(--bb-btn-ease),
        filter 0.2s ease;
}

.bb-customer-page .bb-empty .bb-empty-action .btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 0 rgba(15, 23, 42, 0.06),
        0 14px 32px -10px rgba(59, 130, 246, 0.55);
    filter: brightness(1.03);
}

.bb-customer-page .bb-empty .bb-empty-action .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(59, 130, 246, 0.4);
}

.bb-customer-page .bb-empty .bb-empty-action .btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-empty .bb-empty-action .btn,
    .bb-customer-page .bb-empty .bb-empty-action .btn:hover,
    .bb-customer-page .bb-empty .bb-empty-action .btn:active {
        transform: none;
        filter: none;
    }

    .bb-customer-page .bb-empty .bb-empty-action .btn:hover {
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
    }
}
