/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.lds-ring-wrapper {
    display: none;
}

.lds-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.th_quotation_brothers {
    color: #1d92eb !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* ========= PRODUCT FAMILY ========= */
.pack-qty-row--prodfamily {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 1em;
}

.pack-qty-row--prodfamily .pack-qty-controls {
    display: none!important
}

.pack-qty-row--prodfamily .pack-qty-total {
    display: flex!important;
    flex-direction: row!important;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    white-space: nowrap
}

.pack-qty-row--prodfamily .pack-qty-total-label,.pack-qty-row--prodfamily .pack-qty-total-price {
    display: inline!important;
    white-space: nowrap
}

.pack-qty-row--prodfamily .pack-qty-add {
    flex: 1;
    margin: 0
}

.pack-qty-row--prodfamily .pack-qty-add .add-to-cart {
    width: 100%!important;
    margin: 0
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily {
    display: flex!important;
    flex-wrap: wrap!important;
    align-items: center!important;
    width: 100%!important;
    gap: 10px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-controls {
    display: none!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total {
    flex: 0 0 auto!important;
    margin: 0!important;
    white-space: nowrap!important;
    display: flex!important;
    align-items: baseline!important;
    gap: 6px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add {
    flex: 0 0 100%!important;
    width: 100%!important;
    margin: 0!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add .add-to-cart {
    width: 100%!important;
    display: block!important
}

html.pf-has-family .product-actions .pack-qty-card,html.pf-has-family .product-actions .product-quantity,html.pf-has-family .product-actions .pack-qty-row--prodfamily {
    width: 100%!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add {
    flex: 0 0 100%!important;
    width: 100%!important;
    display: block!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart {
    width: 100%!important;
    max-width: none!important;
    min-width: 100%!important;
    display: flex!important;
    justify-content: center!important;
    box-sizing: border-box!important;
    margin: 0!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart {
    border-radius: 0!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add .add-to-cart i.fto-basket-2 {
    display: none!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add .add-to-cart span {
    margin-left: 0!important;
    font-size: 18px
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total {
    display: flex!important;
    flex-direction: column!important;
    align-items: flex-start!important;
    gap: 2px!important;
    white-space: normal!important;
    line-height: 1.1
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-label {
    display: block!important;
    opacity: .75;
    margin: 0!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-price {
    display: block!important;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-sub {
    display: block!important;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.1;
    margin: 0!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total {
    padding: 10px 0 8px!important;
    margin: 0 0 8px 0!important;
    display: flex!important;
    flex-direction: column!important;
    align-items: flex-start!important;
    gap: 4px!important;
    line-height: 1.15!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-label {
    font-weight: 600!important;
    letter-spacing: .2px;
    color: #000!important;
    opacity: 1!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-price {
    font-size: 34px!important;
    font-weight: 900!important;
    color: #111827!important;
    line-height: 1.0!important;
    margin-top: 2px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-sub {
    font-size: 22px!important;
    font-weight: 600!important;
    color: #000!important;
    margin-top: 2px!important;
    padding: 3px 8px
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart {
    height: 50px!important;
    min-height: 50px!important;
    padding: 0 18px!important;
    font-size: 17px!important;
    font-weight: 800!important;
    line-height: 50px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart {
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    line-height: 1!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-mainline {
    display: inline-flex!important;
    align-items: baseline!important;
    gap: 8px!important;
    flex-wrap: nowrap!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-sub,html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-unit {
    white-space: nowrap!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-unit {
    display: inline-block;
    font-weight: 600;
    color: #000;
    line-height: 1.1
}

@media (max-width: 420px) {
    html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-total-mainline {
        flex-wrap:wrap!important
    }
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart[data-inatech-scroll="1"] {
    position: relative!important;
    overflow: hidden!important;
    padding-left: 62px!important;
    padding-right: 62px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart[data-inatech-scroll="1"]::before {
    content: ""!important;
    position: absolute!important;
    left: 0!important;
    top: 0!important;
    width: 62px!important;
    height: 100%!important;
    background-color: #f5a623!important;
    background-image: url(/themes/panda/assets/img/inatech/arrow-down.png)!important;
    background-repeat: no-repeat!important;
    background-position: center!important;
    background-size: 18px 18px!important
}

@media (max-width: 420px) {
    html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart[data-inatech-scroll="1"] {
        padding-left:54px!important;
        padding-right: 54px!important
    }

    html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart[data-inatech-scroll="1"]::before {
        width: 54px!important;
        background-size: 16px 16px!important
    }
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart[data-inatech-scroll="1"] {
    padding-left: 92px!important;
    padding-right: 62px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button.add-to-cart[data-inatech-scroll="1"]::before {
    width: 80px!important;
    border-bottom-right-radius: 999px!important
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add {
    box-shadow: 0 12px 22px rgba(0,0,0,.38)!important;
    transition: transform .15s ease,box-shadow .15s ease,filter .15s ease;
    will-change: transform
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,.22)!important;
    filter: brightness(1.06) saturate(1.05)
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button {
    position: relative;
    overflow: hidden
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button::after {
    content: "";
    position: absolute;
    top: -25%;
    left: -70%;
    width: 50%;
    height: 150%;
    background: linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.22) 50%,rgba(255,255,255,0) 100%);
    transform: rotate(18deg);
    pointer-events: none;
    opacity: .75;
    z-index: 5;
    animation: pfFamilyShine 4.5s ease-in-out infinite
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add {
    animation: pfFamilyPulse 2.8s ease-in-out infinite
}

html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add:hover {
    animation: none
}

@keyframes pfFamilyPulse {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-1px)
    }
}

@keyframes pfFamilyShine {
    0%,70% {
        left: -70%;
        opacity: 0
    }

    78% {
        opacity: .75
    }

    95%,100% {
        left: 130%;
        opacity: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add {
        animation: none
    }

    html.pf-has-family .product-actions .pack-qty-row--prodfamily .pack-qty-add>button::after {
        animation: none
    }
}
/* ========= PRODUCT FAMILY ========= */

.th_quotation_add {
    color: #1d92eb;
    background: white;
    border: 1px solid #1d92eb;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s ease;
    height: 40px !important;
    padding: 0 32px !important;
    width: 100%;
}

.th_quotation_add:hover {
    color: white;
    background: #1d92eb;
}

/* top icon & menu */
.th_quote_cart_style {
    width: unset;

    .quote_cart {
        cursor: pointer;
    }

    .dropdown_list {
        width: 380px;
    }
}

.th_quote_cart_style .th_cart {
    position: relative;
}

.th_quote_cart_style {
    .cart_text {
        font-size: 14px;
    }

    i,
    .cart_text {
        text-align: center;
        font-style: normal;
        font-weight: 400;
        font-size: 15px;
    }

    .cart_text {
        color: var(--th-color-text-grey);
    }

    i {
        color: #1d92eb;
    }
}

.th_quote_cart_style .th_cart .amount_circle {
    position: absolute;
    top: -6px;
    right: -14px;
    left: auto;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.th-quotation-list {
    img {
        width: 70px;
        height: auto;
    }

    .th_quotation_product_info {
        a {
            color: #1d92eb;
        }
    }

    .th_quotation_actions {
        width: 100%;
        border-top: 1px solid #e6e6e6;

        a {
            background: #1d92eb;
            border-radius: 41px !important;
            color: white;
            font-size: 14px;
            font-weight: bold;
            font-family: 'Roboto', sans-serif;
            width: 100%;
            transition: opacity 0.2s ease;
        }

        a:hover {
            opacity: 0.9;
        }
    }
}

.delete-from-quotation,
.th_quotation_product_actions span {
    cursor: pointer;
}

.th_quotation_product_list .th_quotation_product:not(:last-child) {
    margin-bottom: .5rem !important;
    padding-bottom: .5rem !important;
    border-bottom: 1px solid #e6e6e6;
}

.th_quotation {
    background-color: #F5F5F5;
    border-radius: 7px;
    padding: 1em;
}

.th_quotation_header {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #1d92eb !important;
    padding: 3px 0;
    margin-bottom: 8px;
}

.th_quotation_no_products .alert {
    margin-bottom: 0;
}

.th_quotation_content {
    padding: 1em;
}

.th_quotation_content .th_quotation_product_image img,
.th_quotation_content .th_quotation_product_image {
    width: 8em;
    height: auto;
}

.th_quotation_content .th_quotation_product_image {
    padding-left: 0;
}

.th_quotation_product_qty {
    padding-left: 0;
    padding-right: 0;
}

.th_quotation_product_qty input {
    text-align: center;
}

.th_quotation_products .th_quotation_product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.th_quotation_products .th_quotation_product:first-child {
    padding-top: 3px;
}

.th_quotation_products .th_quotation_product:not(:last-child) {
    margin-bottom: 1rem;
}

.th_display_submit_error  {
    display: none;
}

.th_quotation .required {
    color: #E3001B;
}

.th_quotation_form .form-group:not(:last-child) {
    margin-bottom: .8em;
}

.th_quotation_form .form-group label[for="th_quotation_person_type"] {
    margin-bottom: 0;
    margin-left: .5em;
}

.th_quotation_form .form-group label[for="th_quotation_consent"] {
    margin-bottom: 0;
}

.th_quotation_form #th_quotation_consent {
    margin-right: .5em;
}

#th_quotation_submit {
    background: #1d92eb;
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    transition: opacity 0.2s ease;
    margin-top: 0.5rem;
}

.th_quotation .hidden {
    display: none;
}

.th_quotation_product_actions {
    text-align: right;
}

.th_quotation_product_prices {
    text-align: center;
}

.th_quotation_product_info a {
    color: var(--th-color-text-grey);
}

.th_quotation_product_info a:hover {
    color: #1d92eb;
}

.th_quotation_products .th_quotation_product_info {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
    .th_quotation_products .th_quotation_product {
        gap: 1em;
    }

    .th_quotation_form_wrapper {
        margin-top: 2em;
    }
}

.th_quotation_messages {
    display: flex;
    flex-direction: column;
}

.th-messages-history-body {
    height: 80%;
    margin-bottom: 1em;
    padding: 1em;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    max-height: 18em;
    overflow-y: auto;

    .th-messages-message.admin {
        text-align: start;
    }

    .th-messages-message.customer {
        text-align: end;
    }

    .th-messages-message:not(:last-child) {
        margin-bottom: 1em;
    }

    .th-messages-message-content {
        display: inline-block;
        background: #e6e6e6;
        padding: 1em;
        border-radius: 3px;
        margin-bottom: .5em;
    }
}

.th-messages-add-new {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    textarea {
        margin-right: 1em;
    }
}

.th-messages-cannot-send {
    display: none;
}

.th-q-cart-to-quotation:hover {
    background: var(--th-color-light-blue);
    border-color: var(--th-color-light-blue);
    color: white;
}

.th-q-cart-to-quotation {
    background: transparent;
    border-color: var(--th-color-light-blue);
    color: var(--th-color-light-blue);
    border-radius: 58px;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    padding: 12px 32px;
    width: 100%;
}

.th_quotation_details h3:not(:first-child) {
    margin-top: 1em;
}

div.th_quotations {
    padding: 0;
    border-radius: 8px;

    thead tr th:first-child {
        border-radius: 8px 0 0 0;
    }

    thead tr th:last-child {
        border-radius: 0 8px 0 0;
    }

    tbody tr:last-child td:first-child {
        border-radius: 0 0 0 8px;
        border-bottom: unset;
    }

    tbody tr:last-child td:last-child {
        border-radius: 0 0 8px 0;
        border-bottom: unset;
    }
}

.th_quotation_details_item {
    border-radius: 8px;
    border: 1px solid #9AA8AE;
}

.th_quotation_details .table-wrapper {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #9AA8AE;

    thead tr th:first-child {
        border-radius: 8px 0 0 0;
    }

    thead tr th:last-child {
        border-radius: 0 8px 0 0;
    }

    tbody tr:first-child th:first-child {
        border-radius: 8px 0 0 0;
    }

    tbody tr:first-child th:last-child {
        border-radius: 0 8px 0 0;
    }

    tbody tr:last-child th:first-child {
        border-radius: 0 0 0 8px;
        border-bottom: unset;
    }

    tbody tr:last-child th:last-child {
        border-radius: 0 0 8px 0;
        border-bottom: unset;
    }

    img {
        max-height: 10em;
    }
}
