/* ===============================
   MINI CART BONGAE
   =============================== */

.b-mini-cart {
    max-width: 420px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: "Space Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #000000;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */

.b-mini-cart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.b-mini-cart__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
}

/* Barra spedizione gratuita */

.b-mini-cart__free-shipping {
    margin-bottom: 16px;
}

.b-mini-cart__free-shipping-text {
    font-size: 11px;
    margin-bottom: 6px;
}

.b-mini-cart__free-highlight {
    background: #ffe27a;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 700;
}

.b-mini-cart__free-shipping-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e6e6e6;
    overflow: hidden;
}

.b-mini-cart__free-shipping-bar-fill {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: #2e6b35;
    border-radius: inherit;
}

/* Colonne PRODOTTO / TOTALE */

.b-mini-cart__columns-head {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.b-mini-cart__col-label {
    color: #555555;
}

.b-mini-cart__col-label--right {
    text-align: right;
}

/* Lista prodotti */

.b-mini-cart__items {
    margin: 0;
    padding: 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.b-mini-cart__item {
    display: flex;
    padding: 14px 0;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.b-mini-cart__item:last-child {
    border-bottom: none;
}

.b-mini-cart__item-thumb img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 6px;
}

/* Info prodotto */

.b-mini-cart__item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.b-mini-cart__item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.b-mini-cart__item-info {
    flex: 1;
}

.b-mini-cart__item-title {
    font-size: 13px;
    font-weight: 700;
    display: block;
    text-decoration: none;
    color: #000000;
    margin-bottom: 2px;
}

.b-mini-cart__item-price-single {
    font-size: 11px;
    color: #555555;
}

/* Icona cestino */

.b-mini-cart__item-remove .remove {
    text-decoration: none;
}

.b-mini-cart__trash-icon::before {
    content: "\1F5D1";
    /* icona cestino basic, sostituibile con SVG */
    font-size: 16px;
}

/* Riga quantità + totale riga */

.b-mini-cart__item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 12px;
}

.b-mini-cart__qty {
    display: inline-flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f3f3;
}

.b-mini-cart__qty-btn {
    border: none !important;
    background: transparent;
    padding: 0 10px;
    font-size: 16px;
    cursor: pointer;
    line-height: 32px;
    min-inline-size: unset !important;
}

.b-mini-cart__qty-input {
    width: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    line-height: 32px;
    padding: 0;
    -moz-appearance: textfield;
}

.b-mini-cart__qty-input::-webkit-outer-spin-button,
.b-mini-cart__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.b-mini-cart__line-total {
    font-size: 13px;
    font-weight: 700;
}

/* Banner B-Club */

.b-mini-cart__promo {
    margin: 16px 0;
}

.b-mini-cart__promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.b-mini-cart__promo-inner {
    border-radius: 10px;
    padding: 12px 14px;
    background: #2e6b35;
    background-image: url(/wp-content/uploads/2025/11/Rectangle-43.jpg);
    color: #000;
    background-size: cover;
    background-position: center;
}

.b-mini-cart__promo-text {
    font-size: 11px;
	max-width: 250px;
}

/* Subtotale + punti */

.b-mini-cart__summary {
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 12px;
}

.b-mini-cart__subtotal,
.b-mini-cart__points {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.b-mini-cart__label a {
    color: #000;
    text-decoration: underline;
}

.b-mini-cart__value {
    font-weight: 700;
}

.b-mini-cart__value--points {
    font-size: 11px;
}

/* Bottone checkout */

.b-mini-cart__buttons {
    margin-bottom: 16px;
}

.b-mini-cart__button--checkout {
    display: block;
    width: 100%;
    text-align: center;
    background: #2e6b35;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 700;
    letter-spacing: .02em;
    border: none;
    cursor: pointer;
}

/* Loghi pagamenti */

.b-mini-cart__payments {
    display: flex;
    row-gap: 6px;
    align-items: center;
    justify-content: space-between;
}

.b-mini-cart__payments img {
    height: 25px;
    width: auto;
    display: block;
}

/* Nascondi elementi Woo di default che potrebbero interferire */

.woocommerce-mini-cart__total,
.woocommerce-mini-cart__buttons {
    display: none !important;
}

.b-mini-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.b-mini-cart-top {
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.b-mini-cart__items-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.b-mini-cart-bottom {
    flex-shrink: 0;
}

.b-mini-cart__items{
    padding-right: 10px;
}

.b-mini-cart__items::-webkit-scrollbar {
    width: 4px;
}

.b-mini-cart__items::-webkit-scrollbar-track {
    background: transparent;
}

.b-mini-cart__items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.b-mini-cart__items::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}