/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    background-attachment: fixed;
    background-size: cover;
    z-index: 9999999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-in, .preloader-in2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 99;
    text-align: center;
    color: #fff;
}

.preloader-in .spinner {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    line-height: 100vh;
    pointer-events: none;
}

.preloader-in2 .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
}

.preloader-in-scroll {
    position: absolute;
    z-index: 999;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    text-align: center;
    opacity: 1 !important;
}

html {
    background-color: var(--color-main-bg);
}

body {
    background-color: var(--color-main-bg);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ##### COMMONS ##### */
main {flex-grow: 1; position: relative; min-height: 50vh;}
.section-padding {padding-top: 40px; padding-bottom: 40px;}
.anchor {position: absolute; z-index: -1; top: -35px; display: block;}
body.is-mobile .sf-toolbar {display: none !important;}

/* ##### HEADER ##### */
.header {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 999;
    margin-bottom: 30px;
}

.header .header-in1 {
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-grow: 1;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 70px;
}

.header .header-in2 {
    background: var(--color-white);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 50px;
    width: 100%;
    border-bottom: 2px solid var(--color-primary7);
}

.header .i-main-logo {display: inline-block;}
.header .i-main-logo img {max-height: 45px;}

/* header-in .i-action-btn  */
.header .i-action-btn {
    position: absolute;
    z-index: 999;
    right: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* header-in .i-notification  */
.header .i-notification {position: relative; overflow: unset;}
.header .i-notification .circle-badge {
    position: absolute;
    right: -2px;
    top: 0;
}
/* header-in .i-cart  */
.header .i-cart {position: relative; overflow: unset;}
.header .i-cart .circle-badge {
    position: absolute;
    right: -2px;
    top: 0;
}

/* ##### BADGE-LABEL ##### */
.badge-label {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-default);
    padding: 5px 10px;
    text-transform: uppercase;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: calc(100% - 20px);
    display: inline-flex;
    align-items: center;
    height: 28px;
    position: relative;
}

/* ##### BX-ARTICLE ##### */
.bx-article {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-default);
    overflow: hidden;
    position: relative;
    min-height: 430px;
    line-height: 1.4;
}

.bx-article .i-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

a.bx-article:hover .i-img, a.bx-article:focus .i-img {transform: scale(1.15);}

.bx-article .badge-label {
    position: absolute;
    z-index: 10;
    left: 10px;
    top: 10px;
}

.bx-article .i-desc {
    position: relative;
    z-index: 11;
    padding: 8px 15px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    color: var(--color-default);
    background: var(--color-white);
    min-height: 100px;
    font-size: 14px;
}

.bx-article .i-title {font-size: 22px; line-height: 1.2; margin-bottom: 5px; text-transform: uppercase;}
.bx-article .i-short {margin-bottom: 0;}

/* .bx-article.v-small  */
.bx-article.v-small {min-height: 300px; font-size: 14px;}
.bx-article.v-small .i-desc {min-height: 80px;}
.bx-article.v-small .i-title {font-size: 20px;}

/* .bx-article.v-small2  */
.bx-article.v-small2 {min-height: 190px; font-size: 14px;}
.bx-article.v-small2 .i-desc {min-height: 55px;}
.bx-article.v-small2 .i-title {font-size: 20px;}

/* .bx-article.v-height-auto  */
.bx-article.v-height-auto {height: auto;}


/* ##### BX-ARTICLE-2 ##### */
.bx-article2 {
    display: flex;
    background-color: var(--color-primary7);
    border-radius: var(--radius-default);
    color: var(--color-default);
    padding: 8px;
    width: 100%;
    line-height: 1.3;
    border: 1px solid transparent;
}
a.bx-article2:hover, a.bx-article2:focus {color: inherit; border-color: var(--color-primary-hover);}

.bx-article2 .i-img {
    position: relative;
    flex: 0 0 80px;
    margin-right: 8px;
}

.bx-article2 .i-title {font-size: 14px; line-height: 1.2; color: var(--color-primary); margin-bottom: 5px;}
.bx-article2 .i-short {font-size: 14px; margin-bottom: 0;}

/* ##### BX-WITH-TILE ##### */
.bx-with-title {
    box-shadow: var(--shadow-inset);
    background-color: var(--color-white);
    border-radius: var(--radius-default);
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.bx-with-title .i-bg-title {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    height: 35px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

a.bx-with-title:hover {border-color: var(--color-secondary-hover);}

/* .bx-with-title.v-primary  */
.bx-with-title.v-primary { border-color: var(--color-primary);}
.bx-with-title.v-primary .i-bg-title {background: var(--color-primary);}

/* ##### BX-BLOCK ##### */
.bx-block {
    overflow: hidden;
    border-radius: var(--radius-default);
    background-color: var(--color-white);
    display: block;
}

/* ##### BX-DATE ##### */
.bx-date {
    border-radius: var(--radius-default);
    background-color: var(--color-white);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.bx-date .i-day {
    font-size: 36px;
    line-height: 42px;
    font-weight: 700;
    color: var(--color-red2);
}

.bx-date .i-month {
    background: var(--color-default);
    color: var(--color-white);
    font-size: 11px;
    line-height: 11px;
    padding: 5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.m-line {
    --line-color: var(--color-primary);
    --line-height: 1px;
    --line-gap: 15px;

    display: grid;
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    align-items: center;
    gap: var(--line-gap);
    text-align: center;
}

.m-line::before,
.m-line::after {
    content: "";
    height: var(--line-height);
    background-color: var(--line-color);
}

/* ##### BX-VIDEO-WRAPPER ##### */
.bx-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.bx-video-wrapper iframe {position: absolute; top: 0; left: 0; width: 100%; height: 100%;}

/* ##### BX-ORDER ##### */
.bx-order {
    border-radius: 5px;
    background: var(--color-white);
    padding: 20px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    grid-template-rows: auto auto;
    column-gap: 20px;
    position: relative;
    cursor: pointer;
    color: var(--color-default);

    border: 1px solid var(--color-primary6);
    box-shadow: var(--shadow-2);
}

.bx-order:hover, .bx-order:focus {
    color: inherit;
    text-decoration: none;
    border-color: var(--color-gray3);
}

.bx-order.active {
    box-shadow:
            inset 6px 0 0 var(--color-primary),
            inset 0 0 0 1px var(--color-primary);
    border-color: var(--color-primary);
}



.bx-order .i-in1 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    grid-column: 1;
    grid-row: 1;
}

.bx-order .i-img {
    flex: 0 0 130px;
    text-align: center;
}
.bx-order .i-img img {height: 100px;}

.bx-order .i-in2 {
    border-left: 1px solid var(--color-gray3);
    padding-left: 20px;
    padding-right: 40px;
    grid-column: 2;
    grid-row: 1;
}

.bx-order .i-in3 {
    border-top: 1px solid var(--color-gray3);
    margin-top: 15px;
    padding-top: 10px;
    grid-column: 1;
    grid-row: 2;
}

.bx-order .i-in4 {
    border-left: 1px solid var(--color-gray3);
    padding-left: 20px;
    grid-column: 2;
    grid-row: 2;
}

.bx-order .i-in5 {
    border-top: 1px solid var(--color-gray3);
    margin-top: 15px;
    padding-top: 10px;
}

.bx-order .i-link {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.bx-order-details-inline {
    width: 100%;
    margin: 0 0 10px;
}

.bx-order-details-inline #orderDetails {
    width: 100%;
}

/* ##### BX-ORDER-STEP ##### */
.bx-order-step {
    --order-step-size: 60px;
    --order-step-line-width: 2px;
    display: flex;
    align-items: start;
    color: var(--color-gray2);
    width: 100%;
}

.bx-order-step .i-item {
    flex: 1 1 0;
    position: relative;
    min-width: 0;
    text-align: center;
}

.bx-order-step .i-item::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc(var(--order-step-size) / 2);
    right: 50%;
    width: 100%;
    height: var(--order-step-line-width);
    background: var(--color-gray3);
    transform: translateY(-50%);
}

.bx-order-step .i-item:first-child::before {
    content: none;
}

.bx-order-step .i-icon {
    position: relative;
    z-index: 1;
    width: var(--order-step-size);
    height: var(--order-step-size);
    border: 2px solid var(--color-gray3);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-gray2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.bx-order-step .i-label {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.bx-order-step .i-item.active {
    color: var(--color-primary);
}

.bx-order-step .i-item.active::before {
    background: var(--color-primary3);
}

.bx-order-step .i-item.active .i-icon {
    background: var(--color-primary7);
    border-color: var(--color-primary3);
    color: var(--color-primary3);
}

.bx-order-step .i-item.current {
    color: var(--color-primary);
}

.bx-order-step .i-item.current .i-icon {
    background: var(--color-primary3);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 0 4px var(--color-primary7);
}

.bx-order-step .i-item.current .i-label {
    font-weight: 700;
}

@media all and (max-width: 991px) {
    .bx-order {display: block; padding-bottom: 10px;}
    .bx-order .i-in1 {gap: 15px;}
    .bx-order .i-img {flex-basis: 110px;}
    .bx-order .i-in2 {
        border-left: none;
        border-top: 1px solid var(--color-gray3);
        margin-top: 15px;
        padding: 10px 0 0 0;
    }
    .bx-order .i-in4 {border-left: none; padding-left: 0;}
    .bx-order .i-in5 {margin-top: 5px;}
    .bx-order .i-link {
        top: auto;
        right: 20px;
        bottom: 16px;
        transform: none;
    }
    .bx-order .i-link i {transform: rotate(90deg);}
}

@media all and (max-width: 575px) {
    .bx-order .i-in1 {display: block;}
    .bx-order .i-img {margin-bottom: 10px; display: flex; align-items: center; gap: 10px; text-align: left;}
    .bx-order .i-img img {height: 60px;}



    .bx-order-step {
        --order-step-size: 42px;
        --order-step-line-width: 1px;
    }
    .bx-order-step .i-icon {
        font-size: 18px;
    }
    .bx-order-step .i-label {
        font-size: 10px;
    }
}


/* ##### PAGINATION ##### */
.pagination {display: flex; align-items: center; flex-wrap: wrap; justify-content: center; padding: 20px 0; margin: 0;}

.pagination .page-link {
    display: block;
    text-align: center;
    border-radius: var(--radius-default);
    color: var(--color-default);
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 2px;
    font-size: 14px;
    font-weight: 700;
}

.pagination .active .page-link, .pagination .page-link:hover, .pagination .page-link:focus {background: var(--color-primary5);}
.pagination .active .page-link {background: var(--color-primary); color: var(--color-white);}

.pagination .page-item {margin: 0;}
.pagination .page-item::before {content: none !important;}
.pagination .page-item:last-child .page-link {margin-right: 0;}
.pagination .page-item:first-child .page-link {margin-left: 0;}

/* ##### BX-LOGIN-AS-ADMIN ##### */
.bx-login-as-admin {
    position: fixed;
    font-size: 13px;
    z-index: 99;
    left: 10px;
    bottom: 10px;
    color: var(--color-black);
    background: var(--color-warning);
    padding: 5px 10px;
    border-radius: var(--radius-default);
}


/* #### LINK-WITH-ICO #### */
.link-with-ico {
    align-items: center;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    color: inherit;
    line-height: 1.1;
}
.link-with-ico:hover {color: var(--color-primary);}
.link-with-ico:hover i {text-decoration: none !important;}
.link-with-ico i {margin-right: .25rem; width: 1.25em; font-size: 1.2em; vertical-align: -0.04em; text-align: center;}

/* ##### ICO-WITH-BORDER ##### */
.ico-with-border {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--color-primary5);
    border-radius: 50%;
    background: var(--color-primary7);
    color: var(--color-primary3);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.ico-with-border.v-color-default {
    border: 1px solid var(--color-default);
    color: var(--color-default);
}

.ico-with-border.v-lg {
    width: 60px;
    height: 60px;
    font-size: 30px;
}

.ico-with-border.v-sm {
    width: 30px;
    height: 30px;
    font-size: 15px;
}


/* ##### BX-NO-DATA ##### */
.bx-no-data {
    min-height: clamp(260px, 42vh, 480px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--color-default2);
}

.bx-no-data .i-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eef3fb;
    color: var(--color-default2);
    font-size: 30px;
}

.bx-no-data .i-title {
    margin-bottom: 6px;
    color: var(--color-default2);
    font-size: 20px;
    font-weight: 700;
}

.bx-no-data .i-text {
    font-size: 15px;
    line-height: 1.55;
}

/* ##### TABLE-RWD ##### */
.table-rwd .i-show-in-mobile {display: none !important;}

/* ##### TABLE ##### */
/* TABLE-XS */
.table-xs th, .table-xs td {padding: 3px 5px; font-size: 12px;}

/* TABLE-SM */
.table-sm th, .table-sm td {padding: 5px 10px; font-size: 14px;}

/* TABLE-CLEAR */
.table-clear th, .table-clear td {border: none !important;}

/* TABLE-STRIPED */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.03);
}


/* v-patient-measurements */
table.v-patient-measurements thead th {border-bottom: 1px solid var(--color-primary6);}
table.v-patient-measurements td {border-bottom-width: 2px;}
table.v-patient-measurements .i-type {
    position: absolute;
    left: 10px;
    top: -1px;
    background: var(--color-primary6);
    border-radius: 0 0 4px 4px;
    color: var(--color-default2);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 5px;
}

/* v-products-params */
table.v-products-params {border: none;}
table.v-products-params th {background-color: var(--color-primary6); border: 1px solid var(--color-white); font-size: small;}
table.v-products-params td {border: 1px solid var(--color-primary6);}



/* ##### ICO-GO-TOP ##### */
.ico-go-top {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-primary);
    position: fixed;
    z-index: 88;
    right: 15px;
    bottom: 15px;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.ico-go-top::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--color-white);
    border-right: 2px solid var(--color-white);
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -8px;
}
.ico-go-top:hover {opacity: 0.6;}

/* #### FOOTER #### */
.footer {
    position: relative;
    background: var(--color-primary);
    color: var(--color-white);
    margin-top: 20px;
    font-size: 12px;
}

.footer .i-foot-action {
    background: var(--color-white);
    padding: 5px 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.footer .i-foot-action ul.i-foot-menu {font-size: 14px;}
.footer .i-foot-action ul.i-foot-menu {display: flex; flex-wrap:wrap; gap: 30px; text-transform: uppercase;}
.footer .i-foot-action ul.i-foot-menu li a {color: var(--color-primary); font-weight: 600;}
.footer .i-foot-action ul.i-foot-menu li a:hover {color: var(--color-primary-hover);}

.footer .i-foot-action .i-search {position: relative; width: 200px; margin-left: 20px;}
.footer .i-foot-action .i-search input {height: 25px; border-radius: 9px; font-size: 13px; padding: 0 20px 0 10px;}
.footer .i-foot-action .i-search button {
    position: absolute;
    background: none;
    border: none;
    right: 4px;
    top: 0;
    font-size: 16px;
    height: 25px;
    line-height: 25px;
    color: var(--color-primary);
}
.footer .i-foot-action .i-search button:hover, .footer .i-foot-action .i-search button:focus {color: var(--color-secondary-hover);}


/* ##### COOKIES MESSAGE ##### */
#cookies-message {
    padding: 5px;
    font-size: 13px;
    text-align: center;
    position: fixed;
    bottom: 0;
    background-color: var(--color-white);
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 10px 8px #000000;
}

/* #### RESPONSIBLE WEB DESIGN #### */
@media all and (max-width: 1299px) {

}

@media all and (max-width: 1199px) {
    /* ##### BX-ARTICLE ##### */
    .bx-article:not(.v-height-auto) {min-height: 320px !important;}
    .bx-article.v-height-auto {min-height: 200px;}
    .bx-article .i-desc {min-height: 80px; font-size: 14px;}
    .bx-article .i-title, .bx-article.v-small .i-title {font-size: 18px;}
}

@media all and (max-width: 991px) {
    /* ##### COMMONS ##### */
    body.open-menu .sf-toolbar {display: none !important;}
    .section-padding {padding-top: 30px; padding-bottom: 30px;}

    /* ##### HEADER ##### */
    .header {position: sticky; left: 0; top: 0; margin-bottom: 20px;}
    .header .header-in1 {align-items: start; height: 50px;}
    .header .header-in2 {height: 50px; position: absolute; top:0;}
    .header .i-main-logo img {max-height: 30px;}

    .header.v-login .header-in1 {align-items: center; height: 70px;}
    .header.v-login .i-main-logo img {max-height: 40px;}

    /* header-in .i-action-btn  */
    .header .i-action-btn {right: 60px; top: 7px; bottom: auto; left: auto; color: var(--color-white);}
    .header .i-action-btn > a, .header .i-action-btn .btn-group > a {color: var(--color-white);}

    /* ##### BX-ARTICLE ##### */
    .bx-article:not(.v-height-auto) {min-height: 260px !important;}

    /* ##### TABLE-RWD ##### */
    .table-rwd th {display: none !important;}
    .table-rwd td {display: block !important; width: auto!important; position: relative; border: none !important; border-bottom: 1px solid var(--color-primary6) !important; padding: 10px !important; padding-left: calc(40% + 10px) !important; text-align: left !important; min-height: 40px;}
    .table-rwd td::before {
        content: attr(data-th) ": ";
        position: absolute;
        left: 0;
        top: 0;
        border-right: 1px solid var(--color-primary6);
        height: 100%;
        width: 40%;
        text-align: right;
        color: var(--color-default2);
        padding: 10px;
        white-space: normal;
        font-size: small;
        font-weight: 600;
    }
    .table-rwd.table-align-middle td::before {display: flex; align-items: center; justify-content: flex-end;}

    .table-rwd tr {box-shadow: inset 0 -3px 0 var(--color-primary6); border-top: 1px solid var(--color-primary6);}
    .table-rwd .i-hidden-in-mobile {display: none !important;}
    .table-rwd .i-show-in-mobile {display: block !important;}

    .table-rwd .i-full-in-mobile td {padding-left: 10px !important;}
    .table-rwd .i-full-in-mobile td::before {display: none;}

    /* ##### ICO-GO-TOP ##### */
    .ico-go-top {width: 35px; height: 35px;}
    .ico-go-top::after {width: 10px; height: 10px; margin: -3px 0 0 -5px;}

    /* ##### COOKIES MESSAGE ##### */
    #cookies-message-container {display: none;}
}

@media all and (max-width: 767px) {

    /* #### FOOTER #### */
    .footer .i-foot-action ul.i-foot-menu {font-size: 14px;}
    .footer .i-foot-action .i-search {width: 100%; margin: 5px 0 0 0;}

}

@media all and (max-width: 575px) {

}

@media all and (max-width: 479px) {

}

@media all and (max-width: 340px) {

}
