.fs-7 {
    font-size: var(--text-xs) !important;
}

.cart-drawer-item:last-child,
.cart-products .cart-drawer-item:last-child { border-bottom: 0 !important; }

@keyframes shake-attention {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

.shake-attention {
    animation: shake-attention .5s cubic-bezier(.36, .07, .19, .97);
}

.variation-chip.is-locked {
    cursor: default;
}

.nav-segmented {
    --segmented-bg: #e4e7ec;
    --segmented-border-color: #d0d5dd;
    --segmented-color: #475467;
}

@media (min-width: 1200px) {
    #cartContent,
    #summaryContent {
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-auto-flow: dense;
        gap: 0 24px;
        max-width: 1400px !important;
    }

    #cartContent > *,
    #summaryContent > * {
        grid-column: 1;
    }

    #cartContent > #cartSummarySection,
    #summaryContent > .cart-grid-side {
        grid-column: 2;
        grid-row: 1 / span 99;
        min-width: 400px;
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

#cartFloatingBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    z-index: 1030;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 12px;
    padding-bottom:  calc(12px + env(safe-area-inset-bottom));
}
#cartFloatingBar .cart-floating-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none;
}

#productDetailFav,
.product-fav {
    transition: box-shadow .32s cubic-bezier(.4, 0, .2, 1), transform .32s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

#productDetailFav:hover:not(:disabled),
.product-fav:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18) !important;
    transform: scale(1.05);
}

#productDetailFav:active,
.product-fav:active {
    transform: scale(.95);
}

#productDetailFav:focus-visible,
.product-fav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2) !important;
}

.price-range {
    position: relative;
    height: 40px;
    padding: 0 12px;
}

.price-range-track,
.price-range-fill {
    position: absolute;
    top: 50%;
    height: 8px;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-range-track {
    left: 12px;
    right: 12px;
    background: var(--color-bg-subtle);
}

.price-range-fill {
    background: var(--color-primary);
}

.price-range input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    margin-top: -7px;
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    cursor: pointer;
    pointer-events: auto;
}

.price-range input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
    border: none;
}

.price-range input[type="range"]::-moz-range-track {
    background: transparent;
    height: 8px;
    border: none;
}

.fs-sm {
    font-size: var(--text-sm) !important;
}

.cp,
.cP {
    cursor: pointer !important;
}

.cD {
    cursor: default !important;
}

.btn-nav {
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
}

.min-w-0 {
    min-width: 0 !important;
}

.fade-bottom {
    opacity: 0;
    animation: fade-bottom 0.3s ease forwards;
}

.field-suffix::after {
    content: '';
    position: absolute;
    inset: -12px;
}

.offcanvas {
    transition: transform .3s ease-in-out, visibility 0s linear .3s;
}
.offcanvas.showing,
.offcanvas.show {
    visibility: visible;
    transition: transform .3s ease-in-out, visibility 0s linear;
}

.variation-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 6px);
    background: var(--color-bg-surface);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}
.variation-chip:hover:not(.is-disabled):not(.is-selected) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.variation-chip.is-selected {
    background: var(--color-primary-subtle);
    border-color: var(--color-primary);
    color: var(--color-primary-dark, var(--color-primary));
    font-weight: var(--font-weight-semibold);
}
.variation-chip.is-disabled {
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: .7;
    overflow: hidden;
}

.variation-chip.is-disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top right,
        transparent calc(50% - 1px),
        var(--color-text-muted) 50%,
        transparent calc(50% + 1px)
    );
    pointer-events: none;
}

@keyframes fade-bottom {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    min-height: unset;
}

.icon-eye svg, .icon-eye-off svg {
    width: 20px;
    height: 20px;
}

.card {
    margin-bottom: unset;
}

.mb24px {
    margin-bottom: 24px;
}

.mt24px {
    margin-top: 24px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.patient-option {
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.patient-option:hover,
.patient-option:focus {
    background-color: var(--interactive-hover-bg);
    outline: none;
}

.form-control {
    text-overflow: ellipsis;
    overflow: hidden;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
}

.btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:active {
    transform: scale(0.9);
    background-color: var(--color-bg-subtle);
}

.icon-circle {
    --icon-circle-size: 2.5rem;
    --icon-circle-radius: var(--radius-md);
    width: var(--icon-circle-size);
    height: var(--icon-circle-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--icon-circle-radius);
    flex: 0 0 auto;
}

.icon-circle-pill {
    --icon-circle-radius: var(--radius-pill);
}

.icon-circle-lg {
    --icon-circle-size: 3.5rem;
}

.icon-circle-xl {
    --icon-circle-size: 5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm) var(--space-md);
    align-items: baseline;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.product-image-placeholder > svg {
    color: var(--color-primary-light);
    opacity: .7;
}
.product-image-placeholder > .product-image {
    width: auto;
    max-width: 80%;
    height: auto;
    object-fit: contain;
}


@media (max-width: 1199.98px) {
    #productsGrid.grid-auto {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 36px 12px;
    }

    .product-card,
    .product-card:hover{
        padding: 0 !important;
        gap: 8px;
        display: flex;
        flex-direction: column;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

    }

    .product-card .product-image-placeholder {
        aspect-ratio: 1 / 1;
        margin-bottom: 0;
        border-radius: var(--radius-xl);
        background: #eeeeee;
    }

    .product-card .product-card-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .product-card .product-card-body .numeric {
        font-size: 15px !important;
        margin-bottom: 0;
    }

    .product-card .product-card-name {
        font-size: var(--text-xs) !important;
        line-height: 1.35 !important;
        display: -webkit-box;
        font-weight: 500 !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-add-fab {
        position: absolute;
        right: 8px;
        bottom: 8px;
        width: 44px;
        height: 44px;
        min-height: 0;
        padding: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff !important;
        border: 1px solid var(--color-border-subtle) !important;
        color: var(--color-primary) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    }

    .product-add-fab:hover,
    .product-add-fab:focus {
        background: #fff !important;
        color: var(--color-primary-dark) !important;
    }
    .product-add-fab.is-in-cart {
        background: var(--color-primary) !important;
        color: #fff !important;
        border-color: var(--color-primary) !important;
    }
    .product-add-fab.is-in-cart:hover,
    .product-add-fab.is-in-cart:focus {
        background: var(--color-primary-dark, var(--color-primary)) !important;
        color: #fff !important;
    }
}
.active-filters-box:not(:empty) {
    margin-top: 1rem;
}

.object-fit-contain {
    object-fit: contain;
}

.object-fit-cover {
    object-fit: cover;
}
.app-main {
    background-color: var(--color-bg);
    min-height: calc(100vh - 60px);
}
@supports (min-height: 100dvh) {
    .app-main { min-height: calc(100dvh - 60px); }
}

.btn-close {
    width: 28px !important;
    height: 28px !important;
    opacity: 1 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
    background-size: 18px 18px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.btn-close:hover {
    opacity: .7 !important;
}

[data-bs-toggle="collapse"] .collapse-arrow {
    transition: transform var(--transition-fast);
}

[data-bs-toggle="collapse"][aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
}

hr {
    opacity: 1;
}

.hr-subtle {
    border-color: rgba(0,0,0,.1);
    opacity: 1;
}

.border-subtle {
    border-color: var(--color-border-subtle) !important;
}

.success-pulse {
    animation: success-pulse-ring 1.6s ease-out 0.2s 2;
}

.opacity-1 {
    opacity: 1 !important;
}

.field:hover:has(:disabled) .field-outline,
.field:focus-within:has(:disabled) .field-outline {
    border-color: var(--color-border-subtle) !important;
    --field-border-width: .0625rem !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .line-clamp-2-md-down {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }
}

.modal-body,
.modal-body [class*="overflow-auto"],
.modal-body [class*="overflow-y"],
.modal-body [class*="overflow-x"],
.modal-dialog-scrollable .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.modal-body::-webkit-scrollbar,
.modal-body [class*="overflow-auto"]::-webkit-scrollbar,
.modal-body [class*="overflow-y"]::-webkit-scrollbar,
.modal-body [class*="overflow-x"]::-webkit-scrollbar,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-body::-webkit-scrollbar-track,
.modal-body [class*="overflow-auto"]::-webkit-scrollbar-track,
.modal-body [class*="overflow-y"]::-webkit-scrollbar-track,
.modal-body [class*="overflow-x"]::-webkit-scrollbar-track,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-pill);
}

.modal-body::-webkit-scrollbar-thumb,
.modal-body [class*="overflow-auto"]::-webkit-scrollbar-thumb,
.modal-body [class*="overflow-y"]::-webkit-scrollbar-thumb,
.modal-body [class*="overflow-x"]::-webkit-scrollbar-thumb,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: var(--radius-pill);
    transition: background-color var(--transition-fast);
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-body [class*="overflow-auto"]::-webkit-scrollbar-thumb:hover,
.modal-body [class*="overflow-y"]::-webkit-scrollbar-thumb:hover,
.modal-body [class*="overflow-x"]::-webkit-scrollbar-thumb:hover,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-muted);
}

#docPreviewBody [class*="overflow-auto"] {
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

#docPreviewBody [class*="overflow-auto"]::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, .3);
}

#docPreviewBody [class*="overflow-auto"]::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, .5);
}

.patient-option {
    transition: background-color var(--transition-fast);
}
.patient-option:hover,
.patient-option:focus-visible {
    background-color: var(--color-bg-subtle) !important;
}

.patient-option.is-active {
    background-color: rgba(125, 125, 125, 0.07) !important;
}

.payment-hero {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-hero-icon {
    z-index: 2;
    animation: paymentHeroBreath 2.4s ease-in-out infinite;
}
.payment-hero-pulse {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-pill);
    background-color: var(--color-primary-subtle);
    z-index: 0;
    animation: paymentHeroPulse 2.4s ease-out infinite;
}
.payment-hero-pulse-delay {
    animation-delay: 1.2s;
}
.payment-hero-ring {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.payment-hero-ring-track {
    stroke: var(--color-primary-subtle);
}
.payment-hero-ring-progress {
    stroke: var(--color-primary);
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 800ms ease-out;
}

@keyframes paymentHeroBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
@keyframes paymentHeroPulse {
    0%   { transform: scale(0.85); opacity: 0.55; }
    100% { transform: scale(1.35); opacity: 0; }
}

.payment-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity var(--transition-normal);
    opacity: .5;
}
.payment-stage.is-current,
.payment-stage.is-done {
    opacity: 1;
}
.payment-stage-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    background-color: var(--color-bg-subtle);
    color: var(--color-text-muted);
    position: relative;
}
.payment-stage.is-current .payment-stage-icon {
    background-color: var(--color-primary-subtle);
    color: var(--color-primary-dark);
}
.payment-stage.is-done .payment-stage-icon {
    background-color: var(--color-success-subtle);
    color: var(--color-success-dark);
}
.payment-stage-icon .stage-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-primary-subtle);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-pill);
    animation: paymentStageSpin 900ms linear infinite;
}
.payment-stage.is-current .stage-spinner { display: block; }
.payment-stage.is-current .stage-check,
.payment-stage.is-current .stage-dot { display: none; }
.payment-stage.is-done .stage-dot,
.payment-stage.is-done .stage-spinner { display: none; }
.payment-stage:not(.is-done):not(.is-current) .stage-check,
.payment-stage:not(.is-done):not(.is-current) .stage-spinner { display: none; }

@keyframes paymentStageSpin {
    to { transform: rotate(360deg); }
}

.payment-stage-label {
    font-size: var(--text-sm);
    color: var(--text-body);
    transition: font-weight var(--transition-fast);
}
.payment-stage.is-current .payment-stage-label {
    font-weight: var(--font-weight-semibold);
}
.payment-stage.is-done .payment-stage-label {
    color: var(--color-text-secondary);
}

@keyframes profileFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    body:has(#profileMenu) main > .container > *,
    body:has(#profileMenu) main > p:last-child,
    #profileMenu > li {
        animation: profileFadeIn 280ms ease-out both;
    }

    body:has(#profileMenu) main > .container > header { animation-delay: 0ms; }
    body:has(#profileMenu) main > .container > nav { animation-delay: 40ms; }

    #profileMenu > li:nth-child(1) { animation-delay: 80ms; }
    #profileMenu > li:nth-child(2) { animation-delay: 120ms; }
    #profileMenu > li:nth-child(3) { animation-delay: 160ms; }
    #profileMenu > li:nth-child(4) { animation-delay: 200ms; }
    #profileMenu > li:nth-child(5) { animation-delay: 240ms; }
    #profileMenu > li:nth-child(6) { animation-delay: 280ms; }
    #profileMenu > li:nth-child(7) { animation-delay: 320ms; }
    #profileMenu > li:nth-child(8) { animation-delay: 360ms; }

    body:has(#profileMenu) main > .container > a[onclick*="logout"] { animation-delay: 260ms; }
    body:has(#profileMenu) main > p:last-child { animation-delay: 400ms; }
}

.container {
    padding: 1.5rem 1rem;
}

.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
     .container{
        padding: 3rem 1rem;
    }
}
@media (min-width: 1200px) {
    .container,
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .cart-floating-bar-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@keyframes success-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 var(--color-success-subtle);
    }

    60% {
        box-shadow: 0 0 0 18px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.iti:has(input:disabled) { opacity: .55; }
.iti:has(input:disabled) .iti__flag-container { pointer-events: none; }
.iti:has(input:disabled) input { cursor: not-allowed; }
.iti:has(input:disabled) input:hover,
.iti:has(input:disabled) input:focus {
    border-color: var(--bs-border-color, #d1d5db);
    box-shadow: none;
}

a:not(.btn):hover {
    color: var(--color-primary) !important;
}

a.alert.alert-warning:hover {
   color: var(--color-warning-dark) !important;
}
a.alert.alert-info:hover {
    color: var(--color-info-dark) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 600000s 0s, color 600000s 0s !important;
    -webkit-text-fill-color: inherit !important;
}

@media (prefers-reduced-motion: no-preference) {
    body:has(#lastOrderSkeleton) main .container > section {
        animation: profileFadeIn 320ms ease-out both;
    }
    body:has(#lastOrderSkeleton) main .container > section:nth-child(1) { animation-delay: 40ms; }
    body:has(#lastOrderSkeleton) main .container > section:nth-child(2) { animation-delay: 120ms; }
    body:has(#lastOrderSkeleton) main .container > section:nth-child(3) { animation-delay: 200ms; }
    body:has(#lastOrderSkeleton) main .container > section:nth-child(4) { animation-delay: 200ms; }

    body:has(#lastOrderSkeleton) main .grid-2 > a {
        animation: profileFadeIn 320ms ease-out both;
    }
    body:has(#lastOrderSkeleton) main .grid-2 > a:nth-child(1) { animation-delay: 140ms; }
    body:has(#lastOrderSkeleton) main .grid-2 > a:nth-child(2) { animation-delay: 180ms; }
    body:has(#lastOrderSkeleton) main .grid-2 > a:nth-child(3) { animation-delay: 220ms; }
    body:has(#lastOrderSkeleton) main .grid-2 > a:nth-child(4) { animation-delay: 260ms; }
}
