/**
* 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_add {
    color: var(--th-color-main-purple);
    border-radius: 41px !important;
    background: white;
    border: 1px solid var(--th-color-main-purple);
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s ease;
    height: 40px !important;
    padding: 0 32px !important;
}

.th_quotation_add:hover {
    color: white;
    background: var(--th-color-main-purple);
}

/* top icon & menu */
.th_quote_cart_style {
    width: unset;
 
    .quote_cart {
        cursor: pointer;
    }

    .dropdown-menu {
        min-width: 25em;
    }
}

.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;
    }

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

    i {
        color: var(--th-color-main-purple);
    }
}

.th_quote_cart_style .th_cart .amount_circle {
    position: absolute;
    top: -8px;
    right: -8px;
    left: auto;
    min-width: 20px;
    height: 20px;
    background-color: #E3001B;
    border-radius: 50%;
    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: var(--th-color-main-purple);
        }
    }

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

        a {
            background: var(--th-color-main-purple);
            border-radius: 41px !important;
            color: white;
            font-size: 14px;
            font-weight: bold;
            font-family: 'Roboto', sans-serif;
            width: 100%;
            transition: opacity 0.2s ease;
            margin-top: 0.5rem;
        }

        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 var(--th-color-main-purple) !important;
    padding: 3px 0;
    margin-bottom: 30px;
}

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

.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;
    margin-bottom: 1rem;
}

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

.th_display_submit_error  {
    display: none;
}

.th_quotation .required {
    color: #E3001B;
}

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

#th_quotation_submit {
    background: var(--th-color-main-purple);
    border-radius: 5px !important;
    color: white;
    font-size: 14px;
    font-weight: 500;
    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: var(--th-color-main-purple);
}

.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;
    }

    button {
        padding: .8em 1em !important;
    }
}

.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;
    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: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;
    }
}

#th_quotation_add_confirmation {
    z-index: 10000;
}

@media (max-width: 767px) {
    div.th_quotations.table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
    }
    div.th_quotations.table-wrapper table {
        min-width: 400px;
    }
}
