<style>
.post_main_row.groceries_page_myorder {
    padding-bottom: 20px;
}

.shoplist .product_main .single_product_main .product_img img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 293 / 275 !important;
}

/* Select2 Modal Fixes */
.select2-container {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    background: transparent !important;
    border: none !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.modal .select2-search__field {
    background: #fff !important;
    border: 1px solid #ccc !important;
    padding: 4px 8px !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #aaa !important;
    border-radius: 4px !important;
}

.cpn_applied_cls {
    color: red;
    font-size: 21px;
    text-transform: uppercase;
    border-top: 1px solid #0038510f;
    padding: 18px 0px;
}

.price {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 10px 0 !important;
} 

.price del {
    font-size: 13px !important;
    margin-right: 10px !Important;
}

.tab_col ul li a.active:before {

    bottom: -27px;

}

.set_pvt_mem_price {
    padding: 10px;
    color: #fd0f00bf;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 10px;
    width: 230px;
    border: 1px solid #000;
    margin: 0px auto;
    font-size: 14px;
}

.groceries_page_myorder .qty p input {
    width: 55px;
    color: black;
    font-weight: bold;
    background: transparent;
    border: 0px none;
    box-shadow: unset;
    outline: unset;
}

.cart-button {
    position: relative;
    padding: 10px;
    min-width: 200px;
    height: 60px;
    border: 0;
    border-radius: 10px;
    background-color: #4834d4;
    outline: none;
    cursor: pointer;
    color: #fff;
    transition: .3s ease-in-out;
    overflow: hidden;
}

.product_content .quantity_cart_main .cart_btn .add_to_cart.cart-button.clicked {
    background-color: #003851 !important;
    cursor: default;
}

.cart-button:hover {
    background-color: #35269b;
}

.cart-button:active {
    transform: scale(.9);
}

.cart-button .fa-shopping-cart {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: -10%;
    font-size: 2em;
    transform: translate(-50%, -50%);
}

.cart-button .fa-box {
    position: absolute;
    z-index: 3;
    top: -25%;
    left: 52%;
    font-size: 1.2em;
    transform: translate(-50%, -50%);
}

.cart-button span {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    font-size: 1.2em;
    color: #fff;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.cart-button span.add-to-cart {
    opacity: 1;
}

.cart-button span.added {
    opacity: 0;
}

.cart-button.clicked .fa-shopping-cart {
    animation: cart 1.5s ease-in-out forwards;
}

.cart-button.clicked .fa-box {
    animation: box 1.5s ease-in-out forwards;
}

.cart-button.clicked span.add-to-cart {
    animation: txt1 1.5s ease-in-out forwards;
}

.cart-button.clicked span.added {
    animation: txt2 1.5s ease-in-out forwards;
}

@keyframes cart {
    0% {
        left: -10%;
    }

    40%,
    60% {
        left: 50%;
    }

    100% {
        left: 110%;
    }
}

@keyframes box {

    0%,
    40% {
        top: -25%;
    }

    60% {
        top: 40%;
        left: 52%;
    }

    100% {
        top: 40%;
        left: 112%;
    }
}

@keyframes txt1 {
    0% {
        opacity: 1;
    }

    20%,
    100% {
        opacity: 0;
    }
}

@keyframes txt2 {

    0%,
    80% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body .select2-search--dropdown {
    display: block !important;
    padding: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 38px !important;
    margin-right: 30px !important;
    font-size: 1.5em !important;
}

.select2-results__option {
    padding: 0px 10px !important;
}

.select2-dropdown {
    padding: 7px 0 !important;
}

.mp_revamp_modal .modal-header {
    padding: 20px !important;
}

/* ===== Cart Sidebar Redesign ===== */
.cart-sidebar-header {
    padding-right: 15px;
}

.cart-sidebar-header .sidebar_title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item-count {
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
}

/* Cart item block wrapper */
.cart-item-block {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
    margin-top: 16px;
}

.cart-item-block:first-child {
    margin-top: 0;
}

/* Title row */
.cart-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cart-item-name {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #003851 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.autoship-pill-badge {
    display: inline-block;
    background: #fff8e6;
    color: #10B7C4;
    border: 1px solid #10B7C4;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Variant label */
.cart-item-variant {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Controls row: QTY | price | delete */
.cart-item-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-qty-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 5px 8px;
    background: #fff;
}

.cart-qty-wrap .qty-label {
    font-size: 12px;
    font-weight: 600;
    color: #003851;
}

.qty-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.qty-input-wrap input.qtychange {
    width: 36px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 700;
    color: #003851;
    padding: 0;
    -moz-appearance: textfield;
}

/*

.qty-input-wrap input.qtychange::-webkit-inner-spin-button,
.qty-input-wrap input.qtychange::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

*/

.qty-caret {
    font-size: 14px;
    color: #003851;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.cart-item-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #003851 !important;
    flex: 1;
    margin: 0 !important;
}

.cart-delete-btn {
    color: #adb5bd !important;
    transition: color 0.2s;
    line-height: 1;
}

.cart-delete-btn:hover {
    color: #e74c3c !important;
}

.cart-delete-btn i {
    font-size: 15px;
}

/* Autoship info box */
.autoship-info-box {
    background: #f8feff;
    border: 1px solid #d1eef1;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.autoship-info-top {
    margin-bottom: 8px;
}

.autoship-icon-text {
    font-size: 12px;
    font-weight: 700;
    color: #003851;
}

.autoship-info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.autoship-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
}

.autoship-detail-row strong {
    color: #003851;
}

.autoship-edit-link {
    color: #10B7C4 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: opacity 0.2s;
}

.autoship-edit-link:hover {
    opacity: 0.75;
}

/* Total cost value */
.cart-total-value {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #003851 !important;
}

/* You're always in control notice */
.cart-control-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px 10px 0;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.cart-control-notice strong {
    color: #003851;
    display: block;
}

.cart-learn-more {
    color: #10B7C4 !important;
    font-weight: 600;
    text-decoration: underline !important;
}

.sidebar_single_product {
    margin: 0 !important;
}

  .autoship-notice {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .autoship-notice__icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fdf0e6 0%, #f7e4d6 60%, #f3dccb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .autoship-notice__icon-wrap img {
    width: 100%;
    object-fit: cover;
  }
  .autoship-notice__content {
    flex: 1;
    min-width: 0;
  }

  .autoship-notice__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .autoship-notice__title {
    margin: 0;
    line-height: 1.3;
    font-size: 16px;
    font-weight: 700;
    color: #003851;
  }

  .autoship-notice__info-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2196c4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: background-color 0.15s ease;
  }

  .autoship-notice__info-btn:hover,
  .autoship-notice__info-btn:focus-visible {
    background-color: rgba(33, 150, 196, 0.1);
    outline: none;
  }

  .autoship-notice__info-btn svg {
    width: 19px;
    height: 19px;
  }

  .autoship-notice__body {
    line-height: 1.4;
    font-size: 13px;
    color: #003851;
    margin: 0 0 10px 0;
  }

  .autoship-notice__footer {
    font-size: 14px;
    font-style: italic;
    color: #3a3a3a;
    margin: 0;
  }

  /* Tooltip / popover */
  .autoship-notice__tooltip-wrap {
    position: relative;
    display: inline-flex;
  }

  .autoship-notice__tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .autoship-notice__tooltip.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .autoship-notice__tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    transform: rotate(45deg);
  }

  div#autoshipFreeModal .modal-header img {
        width: 80px;
        border-radius: 50%;
        aspect-ratio: 1;
        object-fit: cover;
        margin-right: 20px;
    }

    div#autoshipFreeModal .modal-header h5#autoshipFreeModalLabel {
        font-size: 26px !important;
    }

    div#autoshipFreeModal .modal-header,
    div#autoshipFreeModal .modal-footer {
        border: 0px none;
    }

    div#autoshipFreeModal .modal-footer {
        padding: 0 0 20px 0;
        align-items: center;
        justify-content: center;
    }

    div#autoshipFreeModal .modal-header h5#autoshipFreeModalLabel:after {
        content: '';
        width: 50px;
        height: 3px;
        background: #098ab0;
        display: flex;
        position: relative;
        top: 8px;
    }

    div#autoshipFreeModal .modal-header button.btn-close {
        border-radius: 50%;
        border: 1px solid #aaa;
        aspect-ratio: 1;
        padding: 8px;
        align-self: flex-start;
        margin: 5px;
    }

    div#autoshipFreeModal .modal-footer button.btn.btn-sm.btn-primary {
        padding: 15px 50px !important;
        border-radius: 15px !important;
        background: #3da8c3 !important;
        color: #fff !important;
        font-family: Montserrat, sans-serif !important;
        font-size: 18px !important;
        line-height: 24px !important;
        font-weight: 500 !important;
        outline: 0 !important;
        border: 2px solid #fff !important;
        text-decoration: none !important;
        transition: .2s ease-in-out !important;
    }

    @media (max-width: 767px) {
        /* The testimonials carousel's prev/next buttons are sized at
        width:5% of their container by public/assets/css/style.css
        (.featured-reviews-warpper .carousel-control-prev/-next) — on a
        narrow phone that's well under the recommended 44x44 tap target.
        Overridden here (not in style.css, which is minified/compiled)
        with matching selector specificity so it wins by normal cascade
        order, mobile only. */
        .quantity button,
        .featured-reviews-warpper .carousel-control-prev,
        .featured-reviews-warpper .carousel-control-next {
            width: 44px;
            min-width: 44px;
            min-height: 44px;
        }
        body .quantity {
            width: auto;
            height: auto;
        }
    }

  @media (max-width: 480px) {
    
    .autoship-notice {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 12px;
    }
    .autoship-notice__header {
      justify-content: center;
      position: relative;
    }
    .autoship-notice__tooltip {
      right: 50%;
      transform: translate(50%, -4px);
    }
    .autoship-notice__tooltip.is-open {
      transform: translate(50%, 0);
    }
    .autoship-notice__tooltip::before {
      right: 50%;
      transform: translate(50%, 0) rotate(45deg);
    }

    div#autoshipFreeModal .modal-header img {
        width: 60px;
        border-radius: 50%;
        aspect-ratio: 1;
        object-fit: cover;
        margin-right: 12px;
    }

    div#autoshipFreeModal .modal-header h5#autoshipFreeModalLabel {
        font-size: 18px !important;
    }
  }
</style>
