
.remove_link_cart{
    padding: 0px; text-align: right; font-size: 1.2rem; margin-left: auto; order: 2;
}
.remove_link_cart a{
    font-size: 2.2rem;
}
.cart-flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}
.cart-flex-grid > .col {
    flex: 1 1 30%;
    min-width: 0;
    width: 30%;
}
.cart-flex-grid > .col-sml {
    flex:content;
    min-width: 0;
    width: 30%;
}
.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before {
    content: none !important;
}
.product-thumbnail{
    display: block;flex:0 0 25%;height: 100%;margin:0 auto;max-width: 12rem;max-height: 12rem;padding:0;width: 100%;
}
.item_details{
    width: 100%;flex:1;
}
.product-name{
    text-align:left;display: flex;
}
.cart_item_footer{
    align-items: center;display: flex;margin-bottom: 1rem;margin-top: 1rem; justify-content: space-between;
}
.product-subtotal{
    text-align:right;font-size: 1.5rem; max-width: 100px;
}
.cart_sales{
    margin-top:20px;
}
.woocommerce-variation-add-to-cart .quantity{
    margin-left: 10px !important;
}
.coupon_row::before{
    content: "" !important;
}
.cart_sizes{
    color: #646464;font-size: 1.2rem;
}
.cart_item{
    border-top: 1px solid #d0d0d0;padding-top: 10px; padding-bottom: 10px;position: relative;
}
.cart_container{
    padding: 0px !important;
}
.ywgc_enter_code{
    display: flex; gap: 0.5rem;
    margin: 0px;
    padding: 0px;
    background-color: #f2f2f2 !important;
}
.ywgc_enter_code input{
    border:solid 1px #CCC !important;
}

.cart-label {
  font-weight: 400;
}
.cart-value {
  text-align: right;
}
.cart-value span{
    color: #333333;
}
.total-label{
  font-weight: 500;
}
.cart-totals-wrapper{
    background: rgb(246, 245, 248); padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; border-radius: 5px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.woocommerce-shipping-destination{
    margin-top: 10px;
}
.scr_coupon{
    display: flex; gap: 0.5rem; margin-bottom: 10px;
}
.coupon_label a{
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 0px solid #ccc;
  color: #474747 !important;
  border-bottom: 1px solid #ccc;
}
.coupon_label a i {
  margin-left: auto;
}
.coupon_input,.coupon_input_checkout{
    height: 25px !important; background-color: #fff !important; border-color: #ccc !important;
}
.coupon_button{
  height: 25px !important;
  line-height: 0px !important;
  background-color: #97262c;
  display: inline-block;
  color: #fff;
  width: 60px;
  left: auto;
  border-radius: 3px !important;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  overflow: visible;
  padding: 0 26px;
  min-width: 150px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500 !important;
  letter-spacing: 0px !important;
  font-family: inherit;
  font-size: 1.5rem !important;
  border: 0px;
}
.coupon_button:hover{
    background-color: #000;
}
.cart-totals-wrapper h4{
    margin-bottom: 15px;
}
.woocommerce-checkout-review-order-table .woocommerce-Price-amount,.woocommerce-checkout-review-order-table .woocommerce-Price-currencySymbol{
    font-weight: 400 !important;
}
.cart-subtotal th{
    font-weight: 500 !important;
}
.cart-subtotal td:nth-child(2){
    text-align: right;
}
.order-total td:nth-child(2){
    text-align: right;
}
.product-total{
    text-align: right;
}
.order-total .woocommerce-Price-amount,.order-total .woocommerce-Price-currencySymbol{
    font-weight: 500 !important;
}
.woocommerce-checkout-review-order-table{
    background: rgb(246, 245, 248);
}
.woocommerce-checkout #payment {
    background: rgb(246, 245, 248) !important;
}
.cart-discount th{
    font-weight: 400 !important;
}
.cart-discount td:nth-child(2){
    text-align: right;
}
.woocommerce-shipping-methods {
    display: flex; flex-direction: column; gap: 1rem; width: 100%;
}

.shipping-method-box {
  border: 1px solid #ccc;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  transition: border-color 0.2s ease;
  cursor: pointer; margin-bottom: 0px;
  background-color: #fff;
}

.shipping-method-box:hover {
  border-color: #666;
}
.shipping_method{
    margin: 0; vertical-align: middle; height: 16px; width: 16px;
}
.shipping-method-left {
    display: flex; align-items: center; gap: 0.5rem; line-height: 1.4;
}

.shipping-method-price {
  white-space: nowrap;
  font-weight: 400;
}
.ship_heading{
    margin-bottom: 10px;
}
.cart_totals .ship_heading{
    margin-bottom: 0px !important;
}
.ship_label{
    font-weight: 400; line-height: 1.4; display: inline-block; margin-right: 30px; padding-left: 8px; color: #666;
}

.login-heading  a:before {
    font-family: 'Glyphicons Halflings';
    content: "\e114";
    float: right;
    transition: all 0.5s;
}
.login-heading.active a:before {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
} 
.login-title>a, .panel-title>a:active{
    display:block;
    padding:0px;
    color:#333333;
    font-size:1.5rem;
    font-weight:400;
    text-transform:uppercase;
    text-decoration:none;
}
.login-title{
    margin-bottom: 0px !important;
}
.login-row{
    margin: 0px !important; padding: 0px !important;
}
.login-row input{
    height: 30px !important;
}
#checkout-ajax-login{
    margin-bottom:10px; margin-top: 5px; padding:10px; background: rgba(129,110,153,.14); border-radius: 5px;
}
#ajax-login-btn{
    margin-top: 10px; margin-right: 10px; margin-bottom: 10px;
}
#checkout-login-message{
    margin-top:10px;
}
.sign-up{
    display: inline-block;
}

/* ===================================
   Cart Drawer Styles
   =================================== */

/* Cart Drawer Overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer Container */
.cart-drawer {
    position: fixed;
    background-color: #fff;
    z-index: 99999;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
}

/* Desktop: Slide in from right */
@media (min-width: 768px) {
    .cart-drawer {
        top: 0;
        right: 0;
        width: 450px;
        max-width: 90vw;
        height: 100vh;
        transform: translateX(100%);
    }

    .cart-drawer.is-open {
        transform: translateX(0);
    }
}

/* Mobile: Slide up from bottom with gap at top */
@media (max-width: 767px) {
    .cart-drawer {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 85vh;
        top: 15vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .cart-drawer.is-open {
        transform: translateY(0);
    }

    .wc-stripe-gpay-mini-cart, .wc-stripe-applepay-mini-cart{
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }
    .mini-cart-features{
        display: none !important;
        margin-top: 0px !important; padding-top: 10px !important;
    }
}

/* Flexbox layout for scrollable cart items (all screen sizes) */
.cart-drawer .cart-drawer-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    min-height: 0; /* Important for flex children to shrink */
}

/* Widget wrapper must also be flex to pass height down */
.cart-drawer .widget_shopping_cart {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.cart-drawer .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Important for flex children to shrink */
}

/* Free shipping bar stays at top, doesn't scroll */
.cart-drawer .free-shipping-bar {
    flex-shrink: 0;
}

/* Cart items list fills remaining space and scrolls */
.cart-drawer .woocommerce-mini-cart {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* Important for flex children to shrink */
    max-height: none;
}

/* Cart Drawer Header */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.cart-drawer-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}

/* Cart Drawer Notices */
.cart-drawer-notices {
    flex-shrink: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cart-drawer-notices.has-notices {
    max-height: 200px;
    overflow-y: auto;
}

.cart-drawer-notices .woocommerce-message,
.cart-drawer-notices .woocommerce-error,
.cart-drawer-notices .woocommerce-info {
    margin: 0;
    padding-top:0px;
    padding-bottom: 0px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.woocommerce-message::before {
    top:auto;
}

.cart-drawer-notices .woocommerce-message {
    background-color: #f0f8f0;
    color: #2d5c2d;
}

.cart-drawer-notices .woocommerce-error {
    background-color: #f8f0f0;
    color: #5c2d2d;
}

.cart-drawer-notices .woocommerce-info {
    background-color: #f0f5f8;
    color: #2d4a5c;
}

.cart-drawer-notices .woocommerce-message::before {
    content: "✓";
    font-weight: bold;
}

.cart-drawer-notice-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.cart-drawer-notice-close:hover {
    opacity: 1;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.2s ease;
}

.cart-drawer-close:hover {
    color: #000;
}

/* Cart Drawer Body */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when drawer is open */
body.cart-drawer-open {
    overflow: hidden;
}

/* Mini cart item adjustments for drawer */

.cart-drawer .mini-cart-item {
    padding: 0px;
    border-bottom: 1px solid #e5e5e5;
}

/*.cart-drawer .mini-cart-item:last-child {
    border-bottom: none;
}*/

.cart-drawer .woocommerce-mini-cart__total {
    padding: 20px 0;
    margin: 0;
    border-top: 2px solid #333;
    font-size: 2rem;
    font-weight: 600;
}

.cart-drawer .woocommerce-mini-cart__buttons {
    margin: 0;
}

.cart-drawer .woocommerce-mini-cart__buttons a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 1.6rem;
}
.min_cart_title{
    line-height: 20px;
    font-size: 1.3rem;
    font-weight: 400;
    color: #210400;
}
.mini-cart-name a{
    font-size: 1.3rem !important; font-weight: 400 !important;
}
.woocommerce-mini-cart__buttons{
    margin-bottom: 0px;
}
.woocommerce-mini-cart__buttons a{
    
    width:100%; height: auto !important;
    font-weight: 600 !important;
    line-height: 18px!important;
}
.mini-cart-checkout::before{
   content: "\e033";
   font-family: 'Glyphicons Halflings';
   padding-right: 5px;
}
.mini-cart-bottom{
    background-color: #f6f5f8;
    border-top: 1px solid #e5e5e5;
    padding: 0px 20px 20px 20px;
    flex-shrink: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.mini-cart-coupon{
    border-bottom: 1px solid #e5e5e5;
}
.mini-cart-coupon a{
    display: block;
}
.mini-cart-coupon-input .coupon_button{
    margin-top: 0px !important; padding: 0px !important;
}
.mini-cart-coupon .col{
    font-size: 1.2rem; height: 30px; line-height: 30px;
}

.mini-cart-coupon .col-left{
    text-align: left !important;
}

/* Coupon input form */
.mini-cart-coupon-input {
    padding: 10px 0;
    display: flex;
    gap: 10px;
}

.mini-cart-coupon-input .form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 1rem;
}

.mini-cart-coupon-input .coupon_button {
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.mini-cart-coupon-input .coupon_button:hover {
    background-color: #000;
}

.mini-cart-coupon-input .coupon_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Applied coupon display */
.mini-cart-coupon-applied {
    
    line-height: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.mini-cart-coupon-applied .col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-cart-coupon-applied .coupon-label {
    font-size: 1.2rem;
    color: #333;
    text-transform: uppercase;
}

.mini-cart-coupon-applied .remove-coupon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    line-height: 1;
}

.mini-cart-coupon-applied .remove-coupon:hover {
    color: #333;
}

.mini-cart-coupon-applied .coupon-discount {
    color: #28a745;
    font-weight: 600;
    font-size: 1.2rem;
}
.mini-cart-dam{
    text-align:right; width: 100%;
}

.cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
    background-color: #333;
    color: #fff;
}

.cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #000;
}

/* Empty cart message */
.cart-drawer .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: #666;
}

/* Loading state */
.cart-drawer-body.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-drawer-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.cart-drawer-body.is-loading .cart-drawer-loading {
    display: block;
}

/* Modern Mini Cart Styles */
.mini_cart_item, .mini-cart-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: rgb(246, 245, 248);
    border: 1px solid #e5e5e5;
    min-height: 94px;
    max-height: 110px;
}

.mini-cart-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  font-size: 2rem;
  line-height: 40px;
}
.mini-cart-flex-grid > .col {
    flex: 1 1 30%;
    min-width: 0;
    width: 30%;
    text-align: right;
}
.mini-cart-flex-grid > .col-sml {
    flex:content;
    min-width: 0;
    width: 30%;
}
.mini-cart-flex-grid .subtotal {
    text-align: left;
}
.mini-cart-flex-grid i{
    color: #97262c;
    font-size: 2.8rem;
}
.mini-cart-icons{
    font-size: 2rem;
}
.icons-grid{
    gap:30px;
}

/* Mini Cart Features Section */
.mini-cart-features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    padding: 15px 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-cart-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.mini-cart-feature i {
    color: #97262c;
    font-size: 2.2rem;
    line-height: 1;
    display: block;
}

.mini-cart-feature span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.mini-cart-thumbnail {
    flex: 0 0 70px;
    max-width: 70px;
    height: 78px;
    padding-top: 10px;
}

.mini-cart-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.mini-cart-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 78px;
    padding-right: 10px;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3px;
    gap: 5px;
    padding-top: 10px;
}

.mini-cart-name {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
    margin: 0;
    padding: 0;
    text-align: left;
}

.mini-cart-remove {
    flex-shrink: 0;
    line-height: 1;
}

.mini-cart-remove a {
    font-size: 2rem !important;
    line-height: 1;
    color: #666;
    text-decoration: none;
    display: block;
}

.mini-cart-remove a:hover {
    color: #333;
}

.mini-cart-size {
    color: #646464;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
    margin-top: 5px;
    font-weight: 400;
}

.mini-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0;
}

.mini-cart-quantity {
    flex-shrink: 0;
}

.mini-cart-price {
    font-size: 1.3rem;
    font-weight: 500;
    text-align: right;
    line-height: 1;
}

/* Mini Cart Quantity Input Styles */
.mini-cart-qty-input {
    width: 35px !important;
    text-align: center;
    border: none;
    box-shadow: none;
    font-size: 1.4rem;
    margin: 0px !important;
    padding: 0 !important;
    line-height: 1;
}

.mini-cart-qty-btn {
    padding: 0.3rem 0.5rem !important;
    font-size: 1.3rem !important;
    height: 28px;
    line-height: 1;
}

/* Free Shipping Progress Bar */
progress-bar {
    display: block;
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    position: relative;
}

progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background-color: #4caf50;
    transition: width 0.3s ease;
}
.free-shipping-bar{
    margin-bottom: 15px;
    line-height: 30px;
}
.free-shipping-bar span{

}

.m_cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.m_cart-total-label { display: flex; flex-direction: column; gap: 2px; }
.m_cart-total-note { font-size: 1.2rem; color: #666; }
.m_cart-total-value { font-size: 1.8rem; margin: 0; font-weight: 500; }

.coupon_button .btn-icon { display: none; }

@media (max-width: 768px) {
    .scr_coupon, .ywgc_enter_code {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .scr_coupon .coupon_button{
        padding-left: 9px;
    }
    .coupon_button {
        height: 30px !important;
        min-width: unset;
        width: auto;
        padding: 0 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .coupon_button .btn-text { display: none; }
    .coupon_button .btn-icon { display: inline-flex; align-items: center; font-size: 1.4rem; }
    .coupon_input, .coupon_input_checkout {
        height: 30px !important;
        flex: 1;
        min-width: 0;
    }
}