﻿/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

html {
    font-size: var(--font-size);
}

body {
    color: var(--font-color-primary);
}

a {
    text-decoration:none;
}

img {
    display:block;
    max-width:100%;
}

input, select {
    border-radius: var(--input-radius);
    vertical-align: middle;
    font-size:1.1rem;
    line-height:1.1rem;
    padding:.24rem;
    border-color:var(--dark);
    border-width:1px;
    border-style:solid;
}

    input[type="hidden"] {
        display:none;
    }

select {
    color:var(--primary-font-color);
}

textarea {
    min-height:6rem;
    padding:.2rem;
}

input[type="checkbox"] {
    width:1.24rem;
    height:1.24rem;
}

input.no_border,
select.no_border {
    border:none;
    outline:none;
}

hr {
    margin:1rem 0rem;
}

object {
    pointer-events:none;
}

button {
    border:none;
    background:none;
}

table {
    border-collapse: collapse;
}

.management_table {
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    position: relative;
    table-layout: fixed;
}


.management_table tr.empty_management_table {
   text-align:center; 
   height:50vh;
   border-bottom:none;
   position:relative;
}

tr.empty_management_table td label {
    padding: 3rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display:flex;
    flex-direction:column;
    text-align:center;
}


    .management_table tr {
        border-bottom:1px solid #ddd;
    }

    .management_table tfoot tr {
        border-bottom:none;
    }

    .management_table caption {
        text-align:right;
        padding:.25rem 1rem;
    }

    .management_table th,
    .management_table td {
        padding:.625rem;
        position:relative;
    }

    .management_table tfoot {
        text-align: right;
    }

        .management_table tfoot td {
            padding: .25rem 1rem;
        }

    .management_table .paged_data_pager {
        display:flex;
        flex-direction:row-reverse;
        justify-content:space-between;
        align-items:center;
/*        flex-direction:column;
        align-items:flex-end;
        flex-grow:1;*/
        padding:1rem 2rem;
    }

    .management_table .pages_list {
        display:flex;
        margin-bottom:.5rem;
    }

        .management_table .pages_list .page_item {
            border-left:1px solid #ddd;
        }
            .management_table .pages_list .page_item label {
                display: inline-block;
                padding: .5rem 1rem;
            }
            .management_table .pages_list .page_item.current label {
                transform:scale(1.5);
            }

        .management_table .pages_list .page_item a {
            display:inline-block;
            padding:.5rem 1rem;
        }

.management_table.search {
    border-collapse: separate;
    border-spacing:0;
}

    .management_table.search caption {
        background-color:var(--storefront-bg);
        position:sticky;
        top:-1px;
        height:2.5rem;
        z-index:1;
    }

    .management_table.search thead {
        background-color: var(--storefront-bg);
        position: sticky;
        top: calc(2.5rem - 1px);
        z-index: 1;
    }

        .management_table.search thead th {
            border-bottom:2px solid #ddd;
        }

    .management_table.search td {
        border-bottom:1px solid #ddd;
    }


 /*Alerts*/

.ui_alert {
    z-index:9;
    position:sticky;
    top:0;
    left:0;
}

.alert {
    text-align:center;
    padding:1rem;
    position:relative;
    color:var(--light);
    font-weight:bold;
    font-size:1rem;
}

    .alert > button {
        position:absolute;
        right:2rem;
        top:.75rem;
        cursor:pointer;
        color:var(--light);
    }

        .alert > button > span {
            color:var(--light);
        }

    .alert.success {
        background-color:var(--success);
        color:var(--light);
    }

    .alert.error {
        background-color: var(--danger);
        color: var(--light);
    }

    .alert.info {
        background-color:var(--info);
    }

    .alert.warning {
        background-color:var(--warning);
    }

    .alert .alert_lnk {
        color:white;
        text-decoration:underline;
    }

@media screen and (max-width:900px) {
    .alert {
        font-size:.9rem;
    }


    tr.empty_management_table td label {
        display: block;

    }

    .management_table caption {
        text-align:center;
    }

    .management_table thead {
        border:none;
        clip:rect(0 0 0 0);
        height:1px;
        margin:-1px;
        overflow:hidden;
        position:absolute;
        width:1px;
    }

    .management_table tr,
    .management_table td {
        display:block;
    }

    .management_table td {
    text-align:right;
    }

        .management_table td:before {
            content:attr(data-label);
            float:left;
        }
} 

.col_sort {
    display:flex;
    align-items:center;
}

    .col_sort div {
        display:inline-block;
        margin-right:1rem;
    }

.box_shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
}

.button {
    display:inline-block;
    border: none;
    outline: none;
    background: none;
    padding: .6rem 1.6rem;
    cursor: pointer;
    border-radius: var(--button-radius);
}

    .button[disabled] {
        opacity:.5;
    }

    .button.primary {
        background-color: var(--primary-fg);
        color: #D8E5FF;
        /*background-color:var(--primary-bg);
    color:var(--primary-fg);*/
        font-size: 1.1rem;
    }

.button.secondary {
    background-color:var(--secondary-bg);
    color:var(--secondary-fg);
}



.bars {
    position:relative;
    height:1.24rem;
}

    .bars > span {
        display:block;
        width:1.24rem;
        height:3px;
        border-radius:3px;
        background-color:black;
        position:absolute;
        transition:all .25s ease-in-out;
    }

        .bars > span:nth-child(2),
        .bars > span:nth-child(3) {
            top:.55rem;
        }

        .bars > span:last-child {
            bottom:0;
        }

.nav_open > .bars > span:nth-child(1) {
    transform:rotate(45deg);
    transform-origin:5%;
    width:1.6rem;
}

.nav_open > .bars > span:nth-child(2) {
    transform: translate(-1rem);
    background-color:transparent;
}

.nav_open > .bars > span:nth-child(3) {
    transform: translate(1rem);
    background-color: transparent;
}

.nav_open > .bars > span:last-child {
    transform: rotate(-45deg);
    transform-origin: 5%;
    width: 1.6rem;
}

/**Alert Context*/
.danger {
    color:var(--danger);
}

.success {
    color:var(--success);
}

.warning {
    color:var(--warning);
}



/*Utility Classes*/
.bold {
    font-weight:bold;
}

.no_scroll {
    overflow:hidden;
}

.overflow_wrap_break {
    overflow-wrap:break-word;
}

input[type="checkbox"].panel_toggle ~ .panel {
    max-height: 0;
    width: 100%;
    overflow: hidden;
    transition: all .33s linear;
}

    input[type="checkbox"].panel_toggle ~ .panel + .panel_footer {
        height:0;
        opacity:0;
    }

input[type="checkbox"].panel_toggle:checked ~ .panel {
    max-height:100vh;
    overflow-y:auto;
   /* max-height:100%;*/
}
input[type="checkbox"].panel_toggle:checked ~ .panel + .panel_footer {
    opacity: 1;
    height:auto;
}
.admin_cmd,
.storefront_cmd {
    text-decoration: underline;
    font-size: .9rem;
    color: var(--font-color-dark);
    cursor: pointer;
    text-transform: lowercase;
}

.bannner_img_title {
    margin-left:1rem;
}

.admin_list_cmds {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
/*Utility classes*/

.sm_numeric {
    max-width:4rem;
}

.md_numeric {
    max-width:8rem;
}

.lg_numeric {
    max-width:12rem;
}

.italic {
    font-style: italic;
}

.float_right {
    float:right;
}

.float_left {
    float:left;
}

.horizontal_list,
.vertical_list {
    display: flex;
    justify-content: space-between;
}

.vertical_list {
    display: flex;
    flex-direction: column;
}

.flex {
    display:flex;
}

.flex_row {
    flex-direction:row;
}

.flex_col {
    flex-direction:column;
}

.flex_top_center {
    justify-content: center;
}

.flex_top_right {
    justify-content: flex-end;
}

.flex_middle_left {
    align-items: center;
}

.flex_middle_center {
    justify-content: center;
    align-items: center;
}

.flex_middle_right {
    justify-content: flex-end;
    align-items: center;
}

.flex_bottom_left {
    align-items: flex-end;
}

.flex_bottom_center {
    justify-content: center;
    align-items: flex-end;
}

.flex_bottom_right {
    justify-content: flex-end;
    align-items: flex-end;
}

.flex_between {
    justify-content:space-between;
}

.flex_evenly {
    justify-content:space-evenly;
}

.flex_around {
    justify-content:space-around;
}

.flex_align_start {
    align-items:flex-start;
}

.flex_align_center {
    align-items:center;
}

.flex_align_end {
    align-items:flex-end;
}

.flex_justify_end {
    justify-content:flex-end;
 }


.flex_align_stretch {
    align-items:stretch!important;
}

.validator_col .danger {
    height:1.6rem;
}

.col_3 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .col_3 > div {
        flex-basis:28%;
    }

.clear_color {
    color:revert;
}

.text_left {
    text-align:left;
}

.text_center {
    text-align:center;
}

.text_right {
    text-align:right;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/*End Utility Classes*/

/*Forms*/

.frm_grp {
    width:100%;
}

    .frm_grp input[type="text"],
    .frm_grp input[type="email"],
    .frm_grp input[type="password"],
    .frm_grp input[type="number"],
    .frm_grp input[type="tel"],
    .frm_grp textarea,
    .frm_grp select {
        width:100%;
    }

.frm_grp > label,
.frm_grp > span.field-validation-error {
    display:block;
}

.frm_buttons {
    display:flex;
}

    .frm_buttons.right {
        justify-content:flex-end;
    }

.frm_grp.flex_justify_end  {
    align-items:center;
    padding-bottom:.25rem;
}
.frm_grp.flex_justify_end > label {
    padding-right:.5rem;
}



.document_upload_preview {
    width:100%;
}

    .document_upload_preview > input[type="text"],
    .document_upload_preview > input[type="text"]:active {
        border: none;
        width:100%;
    }



.img_element_preview {
    max-width:12rem;
    margin:auto;
}

.img_upload_preview {
    flex-grow: 0;
    max-width: 20rem;
    /*    margin:2rem 1rem;*/
}

    .img_upload_preview.lrg {
        max-width:21rem;
        min-width:21rem;
    }

.img_upload_preview > img {
    max-width:100%;
    max-height:100%;
}

.grid_content_display {
    display:contents;
}


        @keyframes fade {
            0% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            visibility:collapse;
        }
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

.frm_panel {
    display:flex;
}

.frm_panel_content {
    padding:2rem;
}

    .frm_panel_content button[type="submit"] {
        margin-top:1rem;
    }

    .frm_panel_content .frm_grp {
        min-height:4rem;
        display:flex;
        flex-direction:column;
        justify-content:flex-end;

    }

.centered {
    justify-content: center;
    align-items: center;
}

.md {
    min-height:40vh;
}

    .md .frm_panel_content {
        min-width:40vw;
    }

.sitemap {
    padding-top:2rem;  
    width:98vw;
    margin:auto;
    text-align:center;
}

    .sitemap > div {
        margin-top:2em;
    }

        .sitemap > div > div {
            margin: 1.25rem 0rem;
            display:inline-block;
        }

    .sitemap a {
        display:block;
/*        min-width:14rem;*/
        min-width:20rem;
    }


@media screen and (min-width:600px) {



  
 /*   .sitemap > div {
     
       width:100%;
        flex-wrap:wrap;
        display:flex;
        padding:1rem;
    }*/

/*        .sitemap > div > div {
            margin:1rem;
        }

        .sitemap > div > div > div {
            display:flex;
            flex-wrap:wrap;
        }*/

    .sitemap a {
        padding:.15rem;
    }
}

@media screen and (min-width:800px) {
 


        .sitemap > div {
            column-count: 2;
        }
}


@media screen and (min-width:900px) {
    .sitemap {
        text-align: left;
        padding-left:8%;
    }

    .sitemap > div {
        column-count:3;
    }
}

.table {
    width:100%;
}

/*Pricing Widget*/
select[data-cart-product-pricing="account"][disabled] {
    border: none;
    opacity: 1;
    -moz-appearance: none;
    -webkit-appearance: none;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5rem;
    padding:0;
}

select[readonly] {
    pointer-events:none;
}

.frm_grp > label.inline_block {
    display:inline-block;
}

[data-ajax-container] .management_table tbody tr:last-child,
[data-ajax-container] .widget_content {
    border-bottom:none;
}


@media screen and (max-width:1500px) {
    .admin_list_cmds {
        flex-direction:column;
        align-items:flex-end;
    }
}

@media screen and (max-width:900px) {
    .admin_list_cmds {
        flex-direction: row;
        width:100%;
    }
}

.strikethrough {
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
}

.discounted_total_container label {
    display: block;
}

    .discounted_total_container label:last-child {
        font-size: .9rem;
        text-align: right;
    }

td.vertical_align_top {
    vertical-align: top;
}



.msg-modal {
    --modal-bg-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-25px);
}

    .msg-modal .modal-content {
        background-color: var(--modal-bg-color);
        min-width: max-content;
    }

    .msg-modal.white .modal-content {
        --modal-bg-color: white;
    }

    .msg-modal.red .modal-content {
        --modal-bg-color: red;
    }

    .msg-modal .modal-footer {
        padding:10px;
        display:flex;
        justify-content:flex-end;
        border-top:1px solid #ddd;
    }

    .msg-modal .modal-header {
        position:relative;
        padding:10px;
        border-bottom:1px solid #ddd;
    }

    .msg-modal .modal-header .button_close {
        position:absolute;
        top:0;
        right:5px;
        font-size:1.5em;
        font-weight:bold;
        color:var(--danger);
    }

.block_children > * {
    display: block;
}