/* Smartcart */
:root {
    --smartcart-border-color: #d5d5d5;

    /* Light */
    --smartcart-side-border-color: #bebebe;
    --smartcart-side-bg-color: #fff;
    --smartcart-side-header-color: #aaaaaa1a;
    --smartcart-side-text-color: #000;

    --smartcart-discount-bg-color: #fff;

    --smartcart-back-btn-bg-color: #707070;
    --smartcart-back-btn-color: #f6f6f6;
    --smartcart-back-btn-border: 1px solid #a8a8a8;

    --smartcart-back-btn-hover-color: #f6f6f6;
    --smartcart-back-btn-hover-bg-color: #686868;
}

body#module-smartcart-view section#main {
    max-width: 1440px;
    margin: 0 auto;
}

#smartcart_side_cart.dark {
    /* Dark */
    --smartcart-side-border-color: #4c4c4c;
	--smartcart-side-bg-color: #222;
	--smartcart-side-header-color: #04010160;
    --smartcart-side-text-color: #fff;
}

body#module-smartcart-view.smartcart-theme-dark  {
    --smartcart-border-color: #313131;
    --smartcart-discount-bg-color: #000;
}

.add-to-smartcart {
	background: rgb(32,227,61) !important;
    font-size: 16px;
    font-weight: 600;
    padding-top:1.0714285714rem;
    padding-bottom:1.0714285714rem;
}

#smartcart-info i.fa-shopping-bag {
    position: relative;
}

#smartcart-info {
    text-align: center;
}

#smartcart-info .fa-shopping-bag {
    font-size: 2.2857142857rem;
}

#smartcart-info .title {
    /* margin-top: 0.5rem; */
    display: inline-block;
}

.js-product-miniature-wrapper .product-add-cart {
    display:none;
}

#smartcart_summary_wrapper {
    overflow-x: auto;
}
#smartcart_summary_wrapper .cart-item-header{
border-top: 1px solid var(--smartcart-border-color);
border-bottom: 1px solid var(--smartcart-border-color);


}

#smartcart_summary_wrapper .table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 0px solid var(--smartcart-border-color);
    border-bottom: 1px solid var(--smartcart-border-color);
}
#smartcart_summary_wrapper .table td {
    padding: 1rem;
    vertical-align: top;
    border-top: 0px solid var(--smartcart-border-color);
    /* border-bottom: 1px solid var(--smartcart-border-color); */
    /* background: linear-gradient(180deg,rgb(25 25 25) 0%,#00000021 100%); */
}
#smartcart_summary_wrapper .table tfoot tr td {
    /* background: linear-gradient(180deg,rgb(39 39 39) 0%,#11111121 100%); */
    font-weight: 700;
    font-size: 18px;
    border-top: 1px solid var(--smartcart-border-color);
    border-bottom:none;
}

.smartcart_summary.cart-items {
    margin: 0px;
}

.smartcart-grid {
    align-items: start!important;
}
.can-proceed-alert:empty {
    margin: 0!important;
    padding: 0!important;
}

.btn-back-shopping {
    background-color: var(--smartcart-back-btn-bg-color);
    border: var(--smartcart-back-btn-border);
    color: var(--smartcart-back-btn-color);
}

.btn-back-shopping {
    color: var(--smartcart-back-btn-hover-color)!important;
    background-color: var(--smartcart-back-btn-hover-bg-color)!important;
}

.back-shopping-mobile {
    display: none;
}
.back-shopping-desktop {
    display: inline-block;
}

@media (max-width: 991px) {
    .back-shopping-mobile {
        display: inline-block;
    }


    .back-shopping-desktop {
        display: none;
    }

}

.btn-increment {
    padding: 3px;
    background: transparent;
    border: transparent;
    cursor: pointer;
}

.smartcart-curr-qty-view > .form-control {
    padding: 0.4rem 0.4rem;
    max-width: 100px;
}

.btn-increment .fa {
    font-size: 1.2em;
}

.smartcart_summary .availability > .avail-small {
    display: none;
}

.smartcart_summary .smartcartnewqty {
    padding: 3px;
    min-width: 30px;
}

.smartcart_summary img {
    height: 80px;
}

.smartcart_summary .delete-label {
    display: none;
}

.smartcart-foot-txt {
    font-weight: 600;
    font-size: 0.9em;
}

.vat-included-row td {
    padding-top: 0!important;
    margin-top: 0!important;
    font-size: 0.8em;
}

.smartcart_summary tbody td.quantity-column {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smartcart_summary .cart-item {
    border-bottom: 1px solid var(--smartcart-border-color);
}

.smartcart_summary .cart-items {
    border: 1px solid var(--smartcart-border-color)!important;
}

.smartcart-totals-summary > div {
    width: 100%!important;
}

.smartcart-totals-summary {
    margin-top: 0;
    border: 1px solid #d5d5d5;
}

@media (max-width: 991px) {
    .smartcart-totals-summary {
        margin-top: 18px!important;
    }

    .smartcart-totals-summary .card-header {
        display: none;
    }
}

.smartcart-totals-summary .cart-voucher-area {
    background: transparent;
}

.smartcart-totals-summary .card-header {
    background-color: transparent!important;
    font-size: 1.8em;
    font-weight: bolder;

    padding: 2rem 1.75rem;
    border-bottom: 1px solid var(--smartcart-border-color);
}

.smartcart-totals-summary .cart-voucher-area,
.smartcart-totals-summary .checkout.cart-detailed-actions  {
    padding: 1.25rem!important;
}

.smartcart-totals-summary .cart-summary-totals {
    padding: 0 1.25rem 1.25rem;
}

.smartcart-totals-summary #cart-subtotal-discount {
    color: green;
}

.smartcart-totals-summary .voucher-icon {
    font-size: 1.8em!important;
}

.smartcart-totals-summary .confirm-smart-cart {
    border-radius: 5px;
}

#smartcart_add_discount_codes .input-group .btn-group {
    flex: 1;
}

.smartcart-totals-summary .remove-discount {
	cursor: pointer;
}


@media (max-width: 575px) {
    .smartcart-xs-block {
        display: block!important;
    }

    .smartcart-xs-flex {
        display: flex!important;
    }

    .smartcart-xs-none {
        display: none!important;
    }

    /* Compact Data */
    .smartcart_summary tbody td:nth-child(2),
    .smartcart_summary tbody td:nth-child(6) {
        display: none;
    }

    .smartcart_summary .availability > div.label,
    .smartcart_summary thead,
    .smartcart_summary .form-row,
    .smartcart_summary tfoot td:not(:has(.smartcart-foot-num, .smartcart-foot-txt)),
    .smartcart_summary .regular-price,
    .smartcart_summary .tot-nb-prods {
        display: none;
    }

    .smartcart_summary .product-link {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .smartcart_summary .availability > .avail-small,
    .smartcart_summary .delete-label {
        display: inline-block;
    }

    .smartcart_summary img {
        height: 100px;
    }

    .smartcart_summary tfoot tr {
        display: flex;
        place-content: flex-end;
    }

    .smartcart_summary tfoot td {
        border: none!important;
    }

    .btn-increment .fa {
        font-size: 1.5em;
    }

    .smartcart_summary tbody .cart-item.auto-add .quantity-column {
        display: none;
    }

    /* The default .td area should be main, so when we add items only the height increments */
    .smartcart_summary tr.cart-item {
        width: 100%;

        display: inline-grid;
        grid-template-columns: 1fr 7.5fr 2.5fr;
        /* grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 0.5fr; */
        grid-template-rows: min-content;
        grid-template-areas:
        "sidebar header header"
        "sidebar main main"
        "footer footer footer";
    }

    .smartcart_summary .cart-item:last-child {
        border-bottom: none!important;
    }

    .smartcart_summary .product-price-unit > div {
        flex-direction: row!important;
    }

    /* New elements should be in main */
    .smartcart_summary tbody td {
        padding: 0.75rem;
        grid-area: main;
        grid-column: 1 / -1;
        border: none!important;
    }

    .smartcart_summary tbody td.image-column {
        grid-area: sidebar;
    }

    .smartcart_summary tbody td.product-column {
        grid-area: header;
        z-index: 1;
    }

    .smartcart_summary tbody td.quantity-column {
        grid-area: footer;
        grid-column-start: 2;

        padding-top: 0!important;
        display: block;
    }

    .smartcart_summary tbody td.quantity-column > div.smartcart-curr-qty-view {
        display: flex!important;
        flex-direction: row-reverse;
    }

    .smartcart_summary tbody td.product-price-unit {
        grid-column: 3;
        justify-items: right;
    }

    .smartcart_summary tbody td.delete-product {
        text-align: center;
        grid-area: footer;
        grid-column: 1;

        padding-top: 0!important;
    }

    .smartcart_summary .product-price-unit .value {
        align-self: anchor-center;
        margin-left: 5px;
    }

    .smartcart_summary .product-price-unit .product-discount {
        margin-bottom: 0px!important;
    }

    .smartcart-foot-txt, .smartcart-foot-num {
        font-weight: 500;
    }

    .smartcart-total-row {
        border-top: 1px solid var(--smartcart-border-color);
        padding: 6px 0px 6px 0px;
    }

    .smartcart-total-row td * {
        font-weight: 700;
    }

    .smartcart_summary .delete-product {
        align-content: center;
    }

    .smartcart_summary:has(.vat-included-row) .smartcart-total-row td {
        padding-bottom: 0!important;
    }

    .smartcart_summary .smartcart-total-row .smartcart-foot-totvat {
        font-size: 1.2em;
    }
}

#module-smartcart-view .delete {
    color: #ff0000;
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 16px;
    gap: 5px;
}

#module-smartcart-view .smartcartpencil {
    color: #909090;
    margin: -3px 0 0 5px;
    display: inline-block;
    position: absolute;
    line-height: 13px;
}

@media (max-width: 575px) {
    #module-smartcart-view .smartcartpencil {
        position:initial;
    }
}

#smartcart_summary_wrapper .table tbody .smartcart-curr-qty-view,
#smartcart_summary_wrapper .table tbody .smartcart-curr-qty-edit {
    display: none;
}
#smartcart_summary_wrapper .table tbody td.quantity.view .smartcart-curr-qty-view{
    display: block;
}
#smartcart_summary_wrapper .table tbody td.quantity.edit .smartcart-curr-qty-edit{
    display: block;
}


.smartcart_summary tr.purchase-not-allowed td .availability,
.smartcart_summary tr.purchase-not-allowed td.quantity,
.smartcart_summary tr.purchase-not-allowed td.product-price-unit,
.smartcart_summary tr.purchase-not-allowed td.total-product-price,
.smartcart_summary tr.purchase-not-allowed td.delete-product {
    color: red;
}

.smartcart_summary .product-info {
    font-size: small;
    color: #909090;
}

.smartcart-curr-qty-edit .done,
.smartcart-curr-qty-view .edit {
    cursor: pointer;
}

.smartcart_delivery_address,.smartcart_invoice_address {
    max-width: 400px;
}

.confirm-smart-cart, #b2b-payment-summary a {
    background: green;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
}
#module-smartcart-view .summary-box .row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: 0px;
    margin-left: 0px;
    align-content: center;
    align-items: center;
}

#field-smartcart-msg {
    min-height: 120px;
    background: rgb(34 34 34);
}

.field-smartcart-prod-msg {
    padding: 10px;
    background: rgb(34 34 34);
    width: 100%;
    color: white;
    border: solid 1px #404040;
}

.address-group {
    margin: 10px 0 20px 0;
}

#module-smartcart-view .summary-box .form-group {
    /* border-top: 1px solid #454545; */
    padding: 20px 0 0 0;
}

#module-smartcart-view .form-footer {
    border-top: 1px solid var(--smartcart-border-color);
    padding: 20px 0 0 0;
    margin-top: 20px;
}

#module-smartcart-view thead th {
    /* background: rgb(245 245 245); */
    border-bottom: none;
    padding: 1rem;
}

#module-smartcart-view .smctitle {
    color: #FF5900;
    font-size: 16px;
}
#module-smartcart-view .tdqt,#module-smartcart-view .tdprice,#module-smartcart-view .tdtotalprice {
    font-size: 18px
}

#module-smartcart-view .tdqt {
    min-width: 70px;
}

#module-smartcart-view .tdsubtotalprice {
    background: rgb(255 193 7 / 24%);
}

#b2b-immediatepayment-summary .card-title{
    text-align:center;
}
#b2b-immediatepayment-summary #b2b-payment-summary {
    text-align:right;
    padding:15px;
    margin:0 0 10px 0;
    display:block;
}
#b2b-immediatepayment-summary #b2b-payment-summary a {
    background: #00cd00;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}
#b2b-immediatepayment-summary .total-value{
    font-size:18px;
}
#b2b-immediatepayment-summary #order-items .order-line {
    border-bottom: 1px solid var(--smartcart-border-color);
    background: linear-gradient(180deg,rgb(31 31 31) 0%,#00000021 100%);
    padding:15px;
    margin:0
}
#b2b-immediatepayment-summary .card, #b2b-immediatepayment-summary hr {
    border: none;
}
.smartcart_hidden {
    display:none;
}
#smartcart-payments-list{
    padding: 4px 15px;
}
#smartcart-payments-list legend{
    margin: 0 0 20px 0;
}
#smartcart-payments-list label{
    font-size: 16px;
    font-weight: 600;
    padding: 4px 10px;
}
#smart-cart-confirm-error{
    padding: 15px;
    margin: 8px 15px;
    border: 4px solid #eb7a22;
    background: rgba(235, 122, 34, 0.16);
    width: auto;
    display: block;
    font-size: 16px;
}
.confirm-smart-cart-wrapper{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid var(--smartcart-border-color);
    margin-top: 25px;
}
.confirm-smart-cart{
    float: none!important;
    text-align: right;
    position: relative;
    right: 0;
}
.confirm-smart-cart-wrapper .import-smart-cart{
    background:#333;
    margin: 0 15px 0 0px;
    font-size: 16px;
}
#smartcart-payments-list .custom-radio input[type=radio] {
    opacity:1;
}

/*Confirm page*/
/* #module-smartcart-view .card{
     border: none;
} */
#order-items .order-line{
    border-top: 1px solid var(--smartcart-border-color);
    padding: 5px
}
#module-smartcart-view .order-line-footer-wrapper{
    border-top: 1px solid var(--smartcart-border-color);
    margin-right: -15px;
    margin-left: -15px;
    padding: 9px 20px;
    margin-top: 1rem;
}
#module-smartcart-view .order-line-footer{
     padding: 6px 0;
}
#prodres-bank-accounts {
    border-top: 1px solid var(--smartcart-border-color);
    padding: 10px 15px;
    background: rgb(29 29 29);
}
#prodres-bank-accounts .row{
    padding: 5px 15px;
    flex-direction: column;
    }

#module-smartcart-view .prodres-bank-summary{
    padding: 0; font-size:16px;
}
#module-smartcart-view .bank-account-wrapper{
    display: block;
    font-size: 16px;
    padding:10px 10px;
    margin: 5px 0;
    border-left: 1px solid var(--smartcart-border-color);
}
#module-smartcart-view .bank-account-name{
     font-weight: bold;
}
#module-smartcart-view .prodres-order-total{
    font-weight: bold;
    font-size: 22px;
}
#field-smartcart-send-available,
#field-smartcart-nosend-available {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
#smart-cart-address-missing {
    padding:10px;
    border-radius: 10px;
}
.smart-cart-address-missing-link {
    text-decoration: underline;
}
.smart-cart-warning {
    font-weight: 700;
}

.smartcart_alerts ul {
    list-style: disc;
}

.smartcart_alerts ul li {
    margin-left: 24px;
}

.discount-container .discount-badge {
    font-size: small;
    padding: 4px 8px;
    border-radius: 16px;

    background: #24aac250;
    border: 2px solid #24aac2;
    width: max-content;
    cursor: pointer;
}
tr.discount-row {
    color: #00cd00;
}

#module-smartcart-view .discount-code-container {
	max-width: 400px;
    padding: 10px 20px;
	flex: 1 1 300px;
    margin-left: auto;
	border-radius: 0;
	background: var(--smartcart-discount-bg-color);
	border: 1px solid var(--smartcart-border-color);
}

.discount-code-container .discount-title {
    align-items: center;
    gap: 5px;
}

.discount-code-container .discount-title > i {
    font-size: 1.5em;
}

@media (max-width: 575.98px) {
	.discount-code-container {
		max-width: 100%;
	}
}

.smartcart_summary .product-attributes {
    margin: 0 0 8px 0;
    font-size: smaller;
}

.smartcart_summary .product-attributes .attribute-group-name {
    font-weight: 700;
}

.smartcart_summary .product-attributes .attribute-value {
    font-weight: 400;
}

.ap5_pack_product_list.ap5_pack_product_list_cart_summary li {

/* Overflow pack to 1 line */
/*
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
*/
    line-height: 1.4em;
}

.ap5_pack_product_list.ap5_pack_product_list_cart_summary li:not(:last-child) {
    margin-bottom: 4px;
}

.smartcartnewqty {
    appearance: textfield;
}

#smartcart_summary_wrapper .discount {
    padding: 0.5em
}

#smartcart_summary_wrapper .value,
td.total-product-price {
    font-size: 16px;
    line-height: calc(16px * 1.5);
    font-weight: 700;
}
#smartcart_summary_wrapper .product-discount,
#smartcart_summary_wrapper .value,
#smartcart_summary_wrapper .total-product-price {
    text-align: center;
}
#smartcart_summary_wrapper .product-discount {
    line-height: 2rem;
    margin-bottom: 8px;
}

#smartcart_summary_wrapper .delete {
    cursor: pointer;
}

/* Side Cart */
#smartcart_side_cart {
    width: 400px;
    height: 100%;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0,0,0,.2);

    position: fixed;
    top: 0;
    left: auto;
    right: -100%;
    background:  var(--smartcart-side-bg-color);
    color: var(--smartcart-side-text-color);
}

/* Add compatibility for dialog tag */
dialog#smartcart_side_cart {
    padding: 0;
    max-height: 100%;
    border: 0;
    margin: 0;
}

#smartcart_side_cart.show,
dialog#smartcart_side_cart[open] {
    right: 0;
}

#smartcart_side_cart.show:not(.no-transition),
dialog#smartcart_side_cart[open]:not(.no-transition) {
    animation: showSidecart 0.2s ease-in-out;
}

body:has(#smartcart_side_cart.show),
body:has(dialog#smartcart_side_cart[open]) {
    overflow: hidden;
}

@keyframes showSidecart {
    from {
        right: -100%;
    }
    to {
        right: 0;
    }
}

#smartcart_side_cart::backdrop {
    background: rgba(0,0,0,.5);
    animation: showSidecartBackdrop 0.4s ease-in-out;
}

@keyframes showSidecartBackdrop {
    from {
        background: rgba(0,0,0,0);
    }
    to {
        background: rgba(0,0,0,.5);
    }
}

.side-cart-container {
    display: flex;
    flex-direction: column;

    height: 100%;
    max-height: 100%;
}

.side-cart-container > .cart-header {
    min-height: 60px;
    background: var(--smartcart-side-header-color);
    /* color: #fff; */
    padding: 8px 24px 8px 24px;
    box-shadow: 0 4px 4px rgba(0,0,0,.2);
}

.side-cart-container > .cart-body {
    flex: 1;
	overflow-y: auto;
    position: relative;
}

.side-cart-container .close-sidecart,
.side-cart-container .cart-icon,
.side-cart-container .modal-title {
    align-content: center;
}

.side-cart-container .close-sidecart {
    cursor: pointer;
    padding: 0 10px 0 10px;
}

.side-cart-container .cart-item {
    display: flex;
    position: relative;
    padding: 10px 24px 10px 24px;
    border: none;
}

.side-cart-container .cart-item picture {
    align-self: center;
}

.side-cart-container .cart-item:not(:last-child) {
    border-bottom: 1px solid var(--smartcart-side-border-color);
}

.side-cart-container .cart-item img {
    max-width: 90px;
    max-height: fit-content;
}

.side-cart-container .cart-footer {
    min-height: 60px;
    padding: 8px 24px 8px 24px;

    background: var(--smartcart-side-header-color);
    /* color: white; */
    box-shadow: 0 -4px 4px rgba(0,0,0,.2);
}

.side-cart-container .cart-footer .cart-total {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    font-size: 20px;
    padding: 6px 0 12px 0;

    border-bottom: 1px solid var(--smartcart-side-border-color);
}

.side-cart-container .cart-item .item-info {
    display: flex;
    flex-direction:column;
    justify-content: space-between;

    margin-left: 8px;
    width: 100%;
    /* color: white; */
}

.side-cart-container .cart-item .item-info a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-cart-container .cart-item .item-info a::before {
    content: '';
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
}

.side-cart-container .cart-item .item-info .cart-data {
    /* justify-items: flex-end; */
    text-align: end;
}

.side-cart-container .regular-price {
    text-decoration: line-through;
}

.side-cart-container .cart-footer .cart-confirm > .btn {
    font-size: large;
    font-weight: bold;
    color: #fff;
    width: 100%;
    border-radius: 4px;
    margin: 8px 0 8px 0;
}

.side-cart-container .cart-full {
    color: gray;
    height: 100%;
    text-align: center;
    align-content: center;
}

.side-cart-container .cart-empty {
    display: none;
}
.side-cart-container .cart-empty:only-child {
    display: block;
}

.side-cart-container .cart-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    align-content: center;
    text-align: center;
    color: white;
    /* background-color: #222222; */
}