.mycart_wrapp {
display: inline-block;
position: relative;
}

div.hidden_for_cart {
display: none;
}

.mycart_mini_txt {
position: relative;
display: flex;
}

.mycart_mini_txt a {
color: #ffffff !important;
font-size: 20px;
text-align: center;
text-decoration: none !important;
padding-top: 8px;
width: 66px;
display: block;
position: relative;
}

.mycart_mini_txt a:hover {
background: none !important;
}

.clear {
clear: both;
}

.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
}

.defaultDOMWindow {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #ffffff;
padding: 25px;
border: 1px solid #eaeaea;
border-radius: 4px;
z-index: 1000000;
width: 80%;
max-width: 450px;
box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
overflow: hidden;
text-align: center;
}

.modal_header {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
font-size: 16px;
font-weight: 800;
color: #111;
text-decoration: none;
text-transform: uppercase;
}

.modal_text {
font-size: 15px;
color: #666;
margin-bottom: 25px;
line-height: 1.5;
}

.modal_text span.modal_summ,
.modal_text span.modal_quantity {
font-weight: 800;
color: #111;
}

.basicBox {
display: inline-block;
padding: 0px 20px;
text-align: center;
border-radius: 4px;
text-decoration: none;
}

.white {
background-color: #fff;
color: #333;
}

.red {
background-color: red;
color: #fff;
}

.closeDOMWindow {
position: absolute;
top: 15px;
right: 15px;
font-size: 24px;
line-height: 1;
cursor: pointer;
color: #ccc;
transition: color 0.3s;
}

.closeDOMWindow:hover {
color: #333;
}

#jshop_module_cart_mini .icon-c {
font-size: 28px;
color: #565656;
position: relative;
display: inline-block;
}

#jshop_module_cart_mini .icon-c i {
font-size: 28px;
color: #565656;
}

#jshop_module_cart_mini .ccount {
position: absolute;
top: 2px;
right: 2px;
background-color: #e87b1e;
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
font-size: 14px;
text-align: center;
line-height: 24px;
font-weight: 700;
z-index: 1;
}

.modal_footer {
display: flex;
justify-content: center;
}
.modal_anchor p {
margin-top: 0;
margin-bottom: 0;	
}
.modal_footer a {
padding: 16px 30px;
border-radius: 4px;
background: #222529 !important;
color: #fff !important;
text-decoration: none;
margin: 5px 20px 5px 20px;
font-size: 15px;
font-weight: 800;
transition: background 0.3s;
border: none;
line-height: 1;
}

.modal_footer a:hover {
background: #444 !important;
}
.back-to {
margin-top: 15px;
}
.back-to a {
color: #666;
font-size: 15px;
text-decoration: none;
}
.back-to a:hover {
color: #e87b1e;
text-decoration: underline;	
}
.animatedblock {
padding: 5px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}

.border-box-2 {
display: inline-block;
height: 50px;
width: 200px;
font-size: 15px;
line-height: 50px;
text-align: center;
position: relative;
cursor: pointer;
font-weight: 800;
color: #333333;
overflow: hidden;
}
.border-box-2:hover {
background: none;
}
.border-box-2.animated-button span {
color: #e87b1e;
position: relative;
z-index: 2;
transition: color 0.6s ease;
}
.border-box-2.animated-button:hover span {
color: #252525;
}
.border-box-2.animated-button svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
fill: none;
z-index: 1;
}
.border-box-2.animated-button svg rect {
stroke: #e87b1e;
stroke-width: 2;
stroke-dasharray: 400, 0;
transition: stroke-dasharray 0.6s ease, stroke-dashoffset 0.6s ease, stroke 0.6s ease;
}
.border-box-2:hover span {
color: #222;
}
.border-box-2:hover svg rect {
stroke: #e87b1e;
stroke-dasharray: 41, 482;
stroke-dashoffset: 43;
}
.slide-content-2 {
position: absolute;
bottom: 35%;
left: 35%;
transform: translateX(-50%);
text-align: center;
color: #252525;
}

@media (max-width: 768px) {
.defaultDOMWindow {
width: 90%;
max-width: 400px;
padding: 20px;
}
.modal_header {
font-size: 15px;
}
.modal_text {
font-size: 15px;
}
.basicBox {
width: 100%;
padding: 12px;
}
.animatedblock {
padding: 5px;
display: flex;
flex-direction: column;
align-items: stretch;
}
.border-box-2 {
width: 100%;
margin-bottom: 10px;
}
.modal_footer a {
margin: 0;
display: block;
}
#jshop_module_cart_mini .icon-c i {
    font-size: 24px;
}
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: -15px;
    width: 340px;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 20px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: left;
    cursor: default;
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -2px 1px rgba(0,0,0,0.05));
}

.mycart_wrapp:not(.disable-dropdown):hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cart-dropdown-header .cart-items-count {
    font-weight: 800;
    font-size: 15px;
    color: #111;
}

.cart-dropdown-header .cart-view-link {
    font-weight: 800;
    font-size: 15px;
    color: #0b2e59 !important;
    text-decoration: none !important;
    padding: 0;
    width: auto;
    height: auto;
}

.cart-dropdown-header .cart-view-link:hover {
    text-decoration: underline !important;
}

.cart-dropdown-body,
.modal-cart-items {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.cart-dropdown-body {
    max-height: 380px;
    margin-bottom: 15px;
}

.modal-cart-items {
    max-height: 250px;
    text-align: left;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-dropdown-body::-webkit-scrollbar,
.modal-cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-dropdown-body::-webkit-scrollbar-track,
.modal-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb,
.modal-cart-items::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}

.cart-dropdown-body::-webkit-scrollbar-thumb:hover,
.modal-cart-items::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

.cart-product-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
	padding: 10px;
}

.cart-product-info {
    flex: 1;
    padding-right: 15px;
    word-break: break-word;
}

.cart-product-name {
    display: block;
    font-size: 15px;
    color: #0b2e59 !important;
    text-decoration: none !important;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 0;
    width: auto;
    height: auto;
    text-align: left;
}

.cart-product-name:hover {
    color: #e87b1e !important;
}

.cart-product-price-qty {
    font-size: 15px;
    color: #666;
}

.cart-product-image {
    width: 60px;
    position: relative;
    flex-shrink: 0;
}

.cart-product-image img {
    width: 100%;
    height: auto;
}

.cart-product-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #fff !important;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none !important;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.cart-product-remove:hover {
    background: #f8f8f8 !important;
}

.cart-empty-text {
    font-size: 15px;
    color: #666;
    text-align: center;
    padding: 20px 0;
}

.cart-dropdown-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
    color: #111;
    margin-bottom: 20px;
}

.cart-dropdown-checkout {
    display: block;
    width: 100%;
    background: #222529 !important;
    color: #fff !important;
    text-align: center;
    padding: 16px 0;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.3s;
    line-height: 1;
    border: none;
    box-sizing: border-box;
}

.cart-dropdown-checkout:hover {
    background: #444 !important;
}

/* Loader */
.cart-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.cart-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 140, 0, 0.2);
    border-top: 4px solid #FF8C00;
    border-radius: 50%;
    animation: cart-spin 1s linear infinite;
}

@keyframes cart-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}