/**
 * Copyright ETS Software Technology Co., Ltd
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 website only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future.
 *
 * @author ETS Software Technology Co., Ltd
 * @copyright  ETS Software Technology Co., Ltd
 * @license    Valid for 1 website (or project) for each purchase of license
 */

.ets_pr_display_notification {
    margin-top: 20px;
}

body#product .ets-pr-js-injected-wrap[data-ets-pr-js-injected] .ets_pr_display_notification {
    margin-top: 0;
}

.ets_pr_close::before {
    background: #666666 none repeat scroll 0 0;
    content: "";
    height: 2px;
    left: 3px;
    position: absolute;
    top: 21px;
    width: 22px;
}

.ets_pr_close::after {
    background: #666666 none repeat scroll 0 0;
    content: "";
    height: 22px;
    left: 13px;
    position: absolute;
    top: 11px;
    width: 2px;
}

.ets_pr_highlight_bar_wrapper {
    font-size: 13px;
}

.ets_pr_gift_products .cart-gift-container {
    margin-top: 0px;
}

.ets_pr_gift_products .product-line-grid-right.product-line-actions {
    text-align: right;
}

.ets_pr_gift_products .product-line-grid-right.product-line-actions .row {
    margin: 0;
}

.ets_pr_display_highlight_bar .ets_pr_table {
    height: 100%;
    width: 100%;
}

.ets_pr_tablecell {
    vertical-align: middle;
    display: table-cell;
}

.js-product product .gift-product-card,
.product-miniature-wrapper .js-product product {
    max-width: 100% !important;
    width: 100%;
}

.ets_pr_table {
    display: table;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes loading {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}

.add-to-cart-gift-product.loading i {
    position: relative;
    color: transparent !important;
}

.add-to-cart-gift-product.loading i:before {
    opacity: 0;
}

.add-to-cart-gift-product.loading:after {
    content: "";
    position: absolute;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    top: 50%;
    animation: loading 0.5s infinite linear;
    -webkit-animation: loading 0.5s infinite linear;
}

.ets_pr_gift_products h2.h2 {
    text-transform: none;
}

.add-to-cart-gift-product {
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.ets_pr_display_highlight_bar .ets_pr_close::after,
.ets_pr_display_highlight_bar .ets_pr_close::before {
    background: #ffffff;
}


.ets_pr_close {
    cursor: pointer;
    font-size: 0;
    height: 44px;
    position: absolute;
    right: 20px;
    top: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 28px;
    z-index: 100;
}

.ets_pr_display_highlight_bar {
    background-color: #009d1d;
    border-color: #ffffff;
    border-radius: 0;
    border-style: solid;
    border-width: 0;
    color: #ffffff;
    margin: 0 auto;
    padding: 10px;
    max-width: 100%;
    display: none;
    position: relative;
}

.ets_pr_display_highlight_bar.show {
    display: block;
}

.ets_pr_popup_wrapper>.ets_pr_popup_content:first-child {
    padding-top: 40px;
    padding-bottom: 40px;
}

.alert.alert-info {
    display: block;
    clear: both;
}

.product-add-to-cart .ets_pr_display_notification {
    margin-top: 0;
    margin-left: 10px;
}

.panel-discount-countdown.ets_pr_rule_countdown_to_date {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
}

.ets_pr_display_popup {
    background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0;
    bottom: 0;
    display: none;
    left: 0;
    opacity: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 100%;
    z-index: 10000;
}

.ets_pr_display_popup.show {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: fadeIn .5s infinite linear;
    -webkit-animation: fadeIn .5s infinite linear;
    animation-iteration-count: 1;
}

.ets_pr_display_popup.show .ets_pr_container {
    animation: zoomIn .5s infinite linear;
    -webkit-animation: zoomIn .5s infinite linear;
    animation-iteration-count: 1;
}

.ets_pr_display_popup .ets_pr_container {
    background-color: #fff;
    border-color: #ffffff;
    border-radius: 10px;
    border-style: solid;
    border-width: 0;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
}

.ets_pr_display_notification {
    text-align: left;
}

.ets_pr_display_banner img {
    max-width: 100%;
}

.ets_pr_display_banner {
    margin-bottom: 30px;
    text-align: left;
    margin-top: 30px;
}

.ets_pr_display_popup .ets_pr_table {
    display: table;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
}

.ets_pr_tablecell {
    display: table-cell;
    vertical-align: middle;
}

.ets_pr_display_popup .ets_pr_popup_title {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0px;
    font-weight: bold;
    font-size: 18px;
}

.ets_pr_display_popup .ets_pr_popup_content {
    padding: 20px;
}

.ets_pr_rule_countdown_to_date .countdown-item {
    display: inline-block;
    text-align: center;
    padding: 0 10px;
    min-width: 50px;
    position: relative;
}

.ets_pr_rule_countdown_to_date .countdown-item .countdown-time {
    font-size: 22px;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.ets_pr_rule_countdown_to_date .countdown-item:not(:last-child) .countdown-time:before {
    content: ":";
    position: absolute;
    right: -2px;
    top: 0px;
    font-size: 18px;
}

.ets_pr_rule_countdown_to_date .countdown-item:first-child {
    padding-left: 0;
}

.ets_pr_highlight_bar_wrapper .ets_pr_rule_countdown_to_date .countdown-item .countdown-time {
    font-size: 18px;
    margin-bottom: 0px;
}

.ets_pr_highlight_bar_wrapper .ets_pr_rule_countdown_to_date .countdown-item .countdown-text {
    font-size: 10px;
}

.ets_pr_display_highlight_bar .ets_pr_tablecell {
    height: 30px;
}

.ets_pr_highlight_bar_wrapper .panel-discount-countdown.ets_pr_rule_countdown_to_date {
    position: absolute;
    right: 60px;
    top: 7px;
}

.ets_pr_display_highlight_bar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 50px;
    text-align: left;
}

.ets_pr_display_popup .panel-discount-countdown.ets_pr_rule_countdown_to_date {
    display: unset;
    vertical-align: middle;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@keyframes zoomIn {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes zoomIn {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 1199px) {
    .ets_pr_display_highlight_bar .container {
        padding-left: 15px;
    }
}

@media (max-width: 991px) {
    .ets_pr_highlight_bar_wrapper .panel-discount-countdown.ets_pr_rule_countdown_to_date {
        position: static;
    }

    .ets_pr_display_highlight_bar .container {
        padding-left: 40px;
        text-align: center;
        padding-right: 40px;
    }
}

/* Gift Product - Real-time state management */
.ets_pr_gift_products .cart-gift-container {
    border: none;
    box-shadow: none;
    background: transparent;
}

.ets_pr_gift_products .cart-gift-container .card-header {
    background: transparent;
    border: none;
    padding: 15px 0;
}

.ets_pr_gift_products .cart-gift-container .card-block {
    padding: 15px 0;
}

.gift-products-grid {
    margin: 0 -10px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.ets_pr_gift_products {
    margin-top: 40px;
}

.gift-products-grid .product-miniature-wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
}

.gift-products-grid .product-miniature {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gift-products-grid .product-miniature .thumbnail-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gift-products-grid .product-miniature:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
    border-color: #d0d0d0;
}

.gift-products-grid .product-miniature:hover .thumbnail-top {
    overflow: visible;
}

.gift-products-grid .thumbnail-container {
    position: relative;
    background: #f8f9fa;
}

.gift-products-grid .thumbnail-top {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding-top: 15px;
}

.gift-products-grid .thumbnail-container .thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
}

.gift-products-grid .thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-products-grid .product-miniature:hover .thumbnail-container img {
    transform: scale(1.08);
}

.gift-products-grid .thumbnail-container picture {
    display: block;
    width: 100%;
}

.gift-products-grid .product-description {
    padding: 15px;
    text-align: center;
}

.gift-products-grid .product-title {
    font-size: 14px;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
    line-height: 20px;
}

.gift-products-grid .product-title a {
    color: #414141;
}

.gift-products-grid .product-price-and-shipping {
    min-height: 24px;
    margin-bottom: 10px;
}

.gift-products-grid .thumbnail-top .highlighted-informations {
    position: static;
    padding: 12px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: 1;
    pointer-events: auto;
}

.gift-products-grid .product-miniature:hover .highlighted-informations,
.gift-products-grid .thumbnail-top:hover .highlighted-informations {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.add-to-cart-gift-product {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    padding: 10px 12px;
    text-transform: none;
    font-weight: 500;
    width: 100%;
    margin: 0;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.add-to-cart-gift-product::before {
    content: none;
}

.add-to-cart-gift-product:hover::before {
    content: none;
}

.add-to-cart-gift-product:hover {
    background-color: #f7f7f7;
    color: #222;
    box-shadow: none;
    transform: none;
}

.add-to-cart-gift-product:active {
    transform: none;
    box-shadow: none;
    transition: none;
}

.add-to-cart-gift-product i {
    margin-right: 8px;
    vertical-align: middle;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.add-to-cart-gift-product.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-gift-product.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.6s linear infinite;
}

.add-to-cart-gift-product.remove-gift-product.already-in-cart {
    background-color: transparent !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    cursor: pointer;
    opacity: 1;
    box-shadow: none;
}

.add-to-cart-gift-product.remove-gift-product.already-in-cart:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

.ets-pr-remove-gift-from-cart {
    display: inline-block;
    margin-top: 0.25rem;
}

.add-to-cart-gift-product:disabled:not(.already-in-cart) {
    background-color: rgba(229, 229, 229, 0.9) !important;
    color: #999 !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.add-to-cart-gift-product:disabled:not(.already-in-cart):hover {
    transform: none;
    box-shadow: none;
}

.add-to-cart-gift-product.blocked-paid-in-cart {
    cursor: not-allowed;
}

.ets-pr-gift-btn-wrap.has-gift-tooltip {
    position: relative;
    display: inline-block;
}

.ets-pr-gift-btn-wrap.has-gift-tooltip .add-to-cart-gift-product:disabled {
    pointer-events: none;
}

.ets-pr-gift-btn-wrap.has-gift-tooltip::after {
    content: attr(data-gift-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 280px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    border-radius: 4px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.ets-pr-gift-btn-wrap.has-gift-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 101;
    pointer-events: none;
}

.ets-pr-gift-btn-wrap.has-gift-tooltip:hover::after,
.ets-pr-gift-btn-wrap.has-gift-tooltip:hover::before,
.ets-pr-gift-btn-wrap.has-gift-tooltip:focus-within::after,
.ets-pr-gift-btn-wrap.has-gift-tooltip:focus-within::before {
    opacity: 1;
    visibility: visible;
}

.ets_pr_gift_products [data-limit-text] {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.ets_pr_gift_products [data-limit-text].alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ets_pr_gift_products [data-limit-text].alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ets_pr_gift_products [data-limit-text] i.material-icons {
    font-size: 20px;
    margin-right: 5px;
}

.ets_pr_gift_products [data-limit-text] .remaining-count {
    font-weight: 700;
    font-size: 16px;
    margin: 0 4px;
}

/* Modal Styles */
.ets-pr-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.ets-pr-modal.show {
    display: flex;
}

.ets-pr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ets-pr-modal-content {
    background-color: #fefefe;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ets-pr-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ets-pr-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ets-pr-close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.ets-pr-close-modal:hover,
.ets-pr-close-modal:focus {
    color: #000;
    text-decoration: none;
}

.ets-pr-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.ets-pr-modal-icon-wrapper {
    margin-bottom: 15px;
}

.ets-pr-icon-warning {
    font-size: 48px;
    color: #ffc107;
}

#ets-pr-modal-message {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.ets-pr-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f8f9fa;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.ets_pr_display_banner~.ets_pr_display_banner {
    display: none;
}

.gift-products-grid .thumbnail-container img {
    width: auto;
}