/* Basic layout. Add improvements and RTL if needed */
.cs-mc-float-btn {
    position: fixed;
    z-index: 9999;
    padding: 27px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cs-mc-float-count {
    padding: 6px 9px;
    font-weight: 700;
    margin-left: 4px;
    line-height: 1;
}
.cs-mc-icon {
    line-height: 1;
}
.cs-mc-drawer {
    position: fixed;
    right: -420px;
    top: 0;
    height: 100vh;
    width: 380px;
    max-width: 100%;
    background: #fff;
    z-index: 10000;
    transition: right .28s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    display:flex;
    flex-direction:column;
}
.admin-bar .cs-mc-drawer {
    top: 32px;
    height: calc(100vh - 32px);
}
body.cs-mc-open {
    overflow: hidden;
}
.cs-mc-open .cs-mc-drawer{ 
    right:0; 
}
.cs-mc-drawer-header { 
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px;
    border-bottom:1px solid #eee;
}
.cs-mini-cart-title-text {
    font-size: 22px;
    font-weight: 700;
}
.cs-cart-item-count {
    font-size: 16px;
    padding: 2px 10px;
    margin-left: 5px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: inline-block;
    line-height: 1.5;
}
.cs-mc-cart-item .cs-mc-item-remove,
.cs-mc-close,
.cs-remove-coupon {
    background: none;
    padding: 0;
}
.cs-mc-close {
    margin-left: 5px;
}
.cs-mc-clear-cart {
    vertical-align: middle;
    line-height: 1;
}
.cs-mc-close:hover,
.cs-remove-coupon:hover {
    background: none;
}
.cs-mc-item-remove, 
.cs-mc-close, 
.cs-remove-coupon,
#cs-mc-apply-coupon {
    border: none;
}
.cs-mc-close img {
    width: 16px;
}
.cs-mc-title {
    margin: 0;
}
.cs-mc-drawer-inner { 
    padding:16px; 
    overflow:auto; 
    flex:1; }

/* Cart item */
.cs-mc-cart-items {
    list-style: none;
    margin:0;
    padding:0;
}
.cs-mc-cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: relative;
}
.cs-mc-item-image {
    width: 66px;
}
.cs-mc-item-image img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}
.cs-mc-item-details {
    flex: 1;
}
.cs-mc-item-qty {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}
.cs-mc-qty-input {
    width: 56px;
    padding: 6px;
    text-align: center;
}
.cs-mc-item-remove {
    position: absolute;
    top: 5px;
    right: 0;
}
.cs-mc-item-remove img {
    width: 18px;
}
.cs-mc-item-title {
    font-size: 16px;
    font-weight: 500;
	line-height: 1.5;
}
.cs-mc-item-price {
    font-size: 16px;
    align-self: end;
}
.cs-mc-qty-decrease, 
.cs-mc-qty-increase,
.cs-mc-items-wrap .cs-mc-qty-input {
    padding: 5px 8px;
    line-height: 1;
    background: none;
    border: 1px solid #eee;
    border-radius: 5px;
    color: inherit;
}
.cs-mc-qty-input::-webkit-outer-spin-button,
.cs-mc-qty-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.cs-mc-qty-input {
  -moz-appearance: textfield;
}
.cs-mc-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.cs-mc-actions .cs-mc-btn {
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    flex: 1;
    text-align: center;
}
.cs-mc-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cs-mc-totals,
.cs-mc-related {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.cs-mc-open .cs-mc-drawer .cs-mc-related-items ul li {
    margin-bottom: 0;
}
.cs-mc-open.woocommerce .cs-mc-related-items ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 0 0 15px;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
}
.cs-mc-open .cs-mc-related-items ul::-webkit-scrollbar {
  height: 6px; /* 👈 smaller scrollbar height */
}
.cs-mc-open.woocommerce .cs-mc-related-items ul.products li.product {
  flex: 0 0 50%; 
  margin: 0 3.8% 2.992em 0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}
.cs-mc-related h4 {
    margin-top: 0;
}
.cs-mc-icon {
    width: 32px;
    height: 32px;
}
.cs-woocommerce-mini-cart__empty-message {
    margin-top: 10px;
    text-align: center;
}

/* Coupon and totals */
.cs-mc-coupon-wrap {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}
span.cs-coupon-tag {
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 5px 8px;
    font-size: 16px;
}
.cs-remove-coupon,
.cs-remove-coupon:hover{
    color: inherit;
}

/* Free shipping */
.cs-mc-free-bar-wrap { 
    background: #eee;
    height: 8px;
    border-radius: 8px;
    margin: 6px 0;
    overflow: hidden;
}
.cs-mc-free-bar { 
    height: 100%;
    background: #2b9df4;
    width: 0;
}
