/* Styling untuk ikon cart */
.atc-cart {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99;
    cursor: pointer;
}

.atc-cart i {
font-size: 24px;
    color: #333;
}
.atc-cart-count {
  position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}
.atc-cart-notification {
    position: absolute;
    background: #4CAF50; /* Hijau */
    color: #fff;
     font-size: 14px;
    animation: fadeIn 0.5s ease, fadeOut 0.5s ease 2.5s;
    background: rgb(76, 175, 80);
    color: rgb(255, 255, 255);
    position: fixed;
    top: 22px;
    right: 52px;
    padding: 10px 25px 10px 15px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 6px;
    z-index: 990;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#discount-message {
    margin-bottom: 10px;
        display: none;
        font-size: 12px;
        text-align: center;
        line-height: 1.3em;
        background: #fff3cd;
        color: #856404;
        padding: 7px;
        margin-top: -13px;
        border: 1px solid #ffeeba;
        border-radius: 5px;
}
#discount-message  strong {
    color: #333;
}

/* Pop-up cart */
#atc-cart-popup {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    width: 350px;
    height: 100%;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2);
    padding: 15px;
    overflow-y: auto;
    z-index: 999999;
}
#atc-cart-popup h3 {
    text-align: center;
        margin-bottom: 25px;
        font-size: 15px;
        background: none;
        border-bottom: 1px solid #e7e3e3;
        padding-bottom: 13px;
}
div#atc-cart-items {
    overflow: auto;
    height: 60vh;
    padding: 0px 0;
    background: none;
}
.atc-cart-popup-content {
position: relative;
}

#close-atc-cart-popup {
    position: absolute !important;
    top: -10px !important;
    right: -5px !important;
    width: 35px;
    height: 35px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><line x1="4" y1="4" x2="20" y2="20" stroke="black" stroke-width="2" stroke-linecap="round"/><line x1="20" y1="4" x2="4" y2="20" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px;
    font-size: 0;
    background-color: rgba(0, 0, 0, 0.1); /* Warna latar semasa hover */
    border-radius: 50%;
    z-index: 999;
}

.atc-cart-total {
    margin-top: 20px;
    font-size: 16px;
}

.atc-checkout-button {
    display: block;
    width: 100%;
    background: #4CAF50;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.atc-checkout-button:hover {
    background-color: #2c6a2f;
    color: #fff;
}


.custom-atc-cart-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
#cart-items-outer { position:relative; }

.custom-atc-cart-item .custom-atc-remove-cart-item  {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
     border-radius: 50%;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><path d="M9 3v1H4v2h1v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6h1V4h-5V3H9zm-3 5h12v12H6V8zm3 2v8h2v-8H9zm4 0v8h2v-8h-2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    font-size: 0;
    margin-right: 10px;
}

/* Hover effect */
.custom-atc-cart-item .custom-atc-remove-cart-item:hover, .custom-atc-cart-item .custom-atc-remove-cart-item:focus {
    background-color: rgba(255, 0, 0, 0.1); /* Warna merah lembut bila hover */
    border-radius: 50%;
}

.custom-atc-cart-item img {
    width: 45px;
    height: auto;
    border: 1px solid #ddd;
    margin-right: 13px;
    border-radius: 4px;


}

.custom-atc-cart-item-details {
    flex: 1;
}
.custom-atc-cart-item-details .item-variations {
 font-size: 11px;
 line-height: 1.4em;
}

.custom-atc-cart-item-details .item-variations ul {
   margin-left: 0;
    padding-left: 18px;
}
body .custom-atc-cart-item-details h4 {
  font-size: 11px;
      margin: 0;
      margin-bottom: 5px !important;
      color: #333;
}

.custom-atc-cart-item-details .item-pricing {
    margin-bottom: 10px;
        margin-top: 3px;
        font-size: 11px;
        text-align: right;
        background: #ffeaea;
}
.custom-atc-cart-item-details input.cart-quantity {
    font-size: 12px;
}
.custom-atc-cart-item-pricing {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}


.custom-atc-cart-quantity-wrapper {
    display: flex    ;
        align-items: center;
        gap: 5px;
        justify-content: end;
}

.custom-atc-cart-quantity-wrapper input.custom-atc-cart-quantity {
    width: 31px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        height: 20px;
        font-size: 11px;
        padding: 0 !important;
}


.custom-atc-cart-quantity-wrapper .custom-atc-increment, .custom-atc-cart-quantity-wrapper .custom-atc-decrement {
    width: 22px;
    padding: 0;
    height: 23px;
    margin: 0 0;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}
/* Gantikan teks dengan ikon SVG */
.custom-atc-cart-quantity-wrapper .custom-atc-decrement{
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19 13H5v-2h14v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
}

.custom-atc-cart-quantity-wrapper .custom-atc-increment {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19 13H13v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
}

.custom-atc-cart-quantity-wrapper .custom-atc-decrement:hover, .custom-atc-cart-quantity-wrapper .custom-atc-decrement:focus,
.custom-atc-cart-quantity-wrapper .custom-atc-increment:hover, .custom-atc-cart-quantity-wrapper .custom-atc-increment:focus  {
    background-color: #bbb !important;
    color: #000 !important;
}

.atc-cart-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 3px;
    margin-bottom: 20px;
}
.atccart-subtotal {
    text-align: right;
    font-size: 13px;
    margin-top: 5px;
}
.cart-discount {
    text-align: right;
    font-size: 14px;
    margin-top: 0px;
    color: #f00;
}

#atc-cart-items{
    position: relative;
}

.cart-item-overlay, .cart-remove-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    display: none; /* Hide by default */
}

.cart-item-overlay .overlay-message, .cart-remove-item-overlay .overlay-message {
    display: block;
    /* flex-direction: row; */
    /* align-items: center; */
    align-content: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    position: unset;
    background: none;
}
@media (max-width: 767px) {
 .atc-cart {
     bottom: 59px;
     right: 18px;
     top: unset;
 }
}