.ets_pr_display_notification {
    margin-top: 20px;
}
.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: 20px;
}
.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;
}
.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;
}

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

.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 {
    position: relative;
    overflow: hidden;
}

.gift-products-grid .thumbnail-top .highlighted-informations {
    position: static;
    padding: 12px 15px 0;
    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.already-in-cart {
    background-color: #28a745 !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.95;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.add-to-cart-gift-product.already-in-cart:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

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

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