﻿/* Main.css */

/* #region Main Content */
.body-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 392px;
    overflow-y: auto;
    height: 100vh;
}

.page-wrapper {
    flex: 1 0 auto;
}
/*#endregion*/

/* #region Content Editor */
.edition-toggle {
    position: fixed;
    bottom: 1.4rem;
    left: 1.4rem;
    color: #FFB847;
    z-index: 10;
}

body.active .editable {
    border-width: 2px;
    border-style: dotted;
    border-color: #14a05a;
    background-color: #fff8e577;
    opacity: 0.75;
}

body.active .editimage {
    border: 2px dotted #14a05a;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#imageModal .modal-footer button, .edition-toggle button {
    background-color: #14a05a;
    border: 1px solid white !important;
    box-shadow: 0 8px 12px #444;
}

    .edition-toggle button:hover {
        background-color: #0c6036;
    }

body.active .edition-toggle button {
    background-color: #0c6036;
}

    body.active .edition-toggle button:hover {
        background-color: #14a05a;
    }

    .edition-toggle button:focus {
        box-shadow: 0 8px 12px #444;
    }

.edition-toggle .btn {
    height: auto;
    font-size: .9rem;
    line-height: 1.2rem;
    padding: 0.3rem 1rem;
}

.edition-toggle button:active {
    -webkit-transition:all 0ms ;
    transform: translateY(6px);
}
/*#endregion*/

#signInGrid .position-absolute.right-0.top-0 {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
}

#signUpGrid .position-absolute.right-0.top-0 {
    right: 16px;
    top: 50%;
    transform: translateY(-31%);
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
}

.position-absolute.right-0.top-0:focus {
    box-shadow: none !important;
}

.position-absolute.right-0.top-0:hover {
    color: black;
}

.position-absolute.right-0.top-0:active {
    background-color: transparent;
    color: black;
}

/* #region Datatables */
div.dts div.dataTables_scrollBody {
    background: none;
}

.dataTables_scrollHeadInner ::after {
    vertical-align: middle;
}

.dataTables_scrollHeadInner .sorting::after {
    content: url("Datatables/images/sort_both.png");
}

.dataTables_scrollHeadInner .sorting_asc::after {
    content: url("Datatables/images/sort_asc.png");
}

.dataTables_scrollHeadInner .sorting_desc::after {
    content: url("Datatables/images/sort_desc.png");
}

.dataTables_scrollHeadInner .sorting_asc_disabled::after {
    content: url("Datatables/images/sort_asc_disabled.png");
}

.dataTables_scrollHeadInner .sorting_desc_disabled::after {
    content: url("Datatables/images/sort_desc_disabled.png");
}
/*#endregion*/

/* #region Native Elements */
.form-control {
    color: #acacac;
}

.form-control:not(:placeholder-shown) {
    color: #495057;
}

.intl-tel-input.allow-dropdown input[type=tel] {
    padding-left: 60px;
}
/*#endregion*/

/* #region Theme Content */
.cart-sidebar {
    width: 620px;
}

    .cart-sidebar .cart-inner {
        padding: 1rem 1.25rem 1rem .85rem;
    }

/*#endregion*/

table tr {
    cursor: pointer;
}

.admin {
    background-color: #fef9e9
}

/* #region Front */
/* #region Login */
#Forgotten {
    color: #14a05a;
}

    #Forgotten:hover {
        color: #42b37a;
    }

#sign-up-input input, #sign-in-input input {
    color: #14a05a;
    border: 0;
    -webkit-transition: all 0.2s linear 0s;
    transition: all 0.2s linear 0s;
    outline: 0 none;
    text-decoration: none;
    background-color: transparent;
}

    #sign-up-input input:hover, #sign-in-input input:hover {
        color: #42b37a;
    }
    /*#endregion*/
/* #endregion */

/* #region Front */
.entity-block-disabled {
    border-radius: 0.75rem;
    background-color: #fff;
    color: #747d88;
    opacity: 0.5;
}

.entity-block-badge-tr,
.entity-block-badge-br,
.comp-entity-block-badge-tr {
    position: absolute;
    top: 24px;
    right: 72px;
    padding: 4px 8px;
    min-width: 20px;
    min-height: 20px;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
    transform: translate(50%, -50%);
}

.entity-block-badge-br {
    top: 50px;
}

.comp-entity-block-badge-tr {
    top: 2px;
    right: 20px;
}

.entity-block-times {
    position: absolute;
    top: 18px;
    right: 18px;
    min-width: 18px;
    min-height: 18px;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: color .4s ease-in;
}

    .entity-block-times:hover {
        color: red;
    }

.entity-block-edit {
    position: absolute;
    top: 18px;
    right: 38px;
    min-width: 18px;
    min-height: 18px;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: color .4s ease-in;
}

    .entity-block-edit:hover {
        color: #17a2b8;
    }

.entity-expandable .entity-expand-head {
    opacity: 0.5;
}
.entity-expandable .entity-expand-head .entity-expand {
    opacity: 0;
}
.entity-expandable.has-preparation .entity-expand-head {
    opacity: 1;
}
.entity-expandable.has-preparation .entity-expand-head .entity-expand {
    opacity: 1;
}
.entity-expandable.has-preparation .entity-expand-head:hover .entity-expand {
    opacity: 0.8;
}
.entity-expandable:not(.active, .has-preparation):hover .entity-expand-head .entity-expand {
    opacity: 0;
}
.entity-expandable.active .entity-expanded-content, .entity-expandable.active:hover .entity-expanded-content {
    display: none;
    opacity: 0;
}
.entity-expandable.has-preparation.active .entity-expanded-content, .entity-expandable.has-preparation.active:hover .entity-expanded-content {
    display: block;
    opacity: 1;
}
/* #endregion */

.cart-sidebar .close-link {
    color: #45595b;
    font-size: 1.5rem;
    text-align: center;
    right: 2rem;
    top: 0.6rem;
    position: absolute;
    z-index: 3;
}

.modal {
    font-family: 'Rubik' !important;
    color: #45595b;
}

.border {
    border-width: 2px !important;
}

.progress {
    height: 1.4rem !important;
    font-size: 1rem;
}

input.btn-theme.aspNetDisabled {
    opacity: .5 !important;
}

.nav-pills .nav-link.active {
    background-color: #42b37a;
}

:not(.active).nav-link[data-toggle='pill'] {
    color: #42b37a;
}

    :not(.active).nav-link[data-toggle='pill']:hover {
        background-color: #d9efe4;
    }

.form-check .form-check-input {
    opacity: 1;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.error {
    animation: shake 0.48s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.select2-container {
    display: block;
    width: 100% !important;
    padding: 0;
}
    .select2-container .select2-selection--single .select2-selection__rendered {
        padding-left: 24px;
    }

.select2-container--default .select2-selection--single {
    border: 2px solid #dee2e6;
    border-radius: 1.4375rem;
    height: 2.875rem;
    box-shadow: 0 0.1rem 0.3rem rgb(204, 204, 204, 0.5);
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 10px;
        right: 4px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 42px;
    }

.select2-results__message {
    font-family: 'Rubik', sans-serif;
}


/* #region Basket Composition Fields */
#bc-fields label {
    font-size: .85rem;
}

#bc-fields .form-control {
    border-radius: 1.25rem;
    height: 2.175rem;
    padding: 0.1875rem .6rem;
    font-size: .95rem;
}

#bc-fields .btn {
    font-size: .85rem;
    height: 2.175rem;
    line-height: 1;
    padding: .25rem .45rem;
    border-radius: 1.25rem;
}

.row-comp {
    line-height: 1.4;
}
/* #endregion */

/* #region ImageMgt */
.image-upload-wrapper {
    position: relative;
    width: 95%;
    padding-bottom: 95%;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-upload-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #45595b;
    font-size: 2rem;
}

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.picture-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    float: left;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-comp-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* #endregion */

.goodies-row {
    color: #0041C2; /* Example color, change to your preferred color */
}

.basket-presentation-item .btn {
    font-size: .75rem;
    height: 1.75rem;
    line-height: .75rem;
    padding: 0.5rem .75rem;
}

.tbb-order .btn {
    font-size: .8rem;
    height: 1.6rem;
    line-height: 1;
    padding: .3rem .5rem;
    border-radius: .5rem;
}

body.modal-printing .modal-force-print {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
}

body.modal-printing.modal-open {
    overflow: auto !important;
    position: revert;
}
body.modal-printing form {
    display: none !important;
}

.form-control {
    border-radius: .75rem;
}

body .btn {
    font-size: 1.1rem;
    height: auto;
    line-height: normal;
    padding: 0.5rem 1rem;
    font-family: 'Rubik';
    font-weight: 600;
    border-radius: .75rem;
    text-shadow: none;
    transition: all 0.2s linear 0s;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 1px 1px 4px #333;
}

body .btn-theme:hover {
    background-color: #42b37a;
    box-shadow: 2px 2px 8px black;
    color: white;
}

button:focus {
    outline: none;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #fff;
    color: var(--theme-color);
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.step-image-wrapper {
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.step-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-image-wrapper {
        height: 128px;
    }
}