body.postid-217 .capsule_heading_wrapper [name="capsule_heading"] {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}
body.postid-217 .tasting-pack-count { margin: 12px 0; font-size: 16px; }
body.postid-217 .tasting-pack-count.is-complete { color: #266438; }
body.postid-217 .flavors-notify { display: block; color: #a32020; margin: 8px 0; }

/* Native fallback remains usable when the enhanced quantity control is unavailable. */
body.postid-217 .min-four-wapper td.label {
    position: relative;
}
body.postid-217 .min-four-wapper td.label select[name^="select_quanity_"] {
    position: absolute;
    inset: auto;
    left: 15px;
    bottom: 10px;
    width: 71px;
    max-width: none !important;
    height: 28px;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 4px 0 26px;
    line-height: 24px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
}
body.postid-217 .min-four-wapper td.label::before {
    content: "";
    position: absolute;
    left: 15px;
    bottom: 10px;
    width: 71px;
    height: 28px;
    border-radius: 6px;
    background: #6b5035;
    pointer-events: none;
    z-index: 1;
}
body.postid-217 .min-four-wapper td.label select[name^="select_quanity_"] option {
    color: #333;
    background: #fff;
}
body.postid-217 .min-four-wapper td.label label,
body.postid-217 .min-four-wapper td.label label::before,
body.postid-217 .min-four-wapper td.label label::after {
    pointer-events: none;
}
body.postid-217 .min-four-wapper td.label::after {
    content: "";
    position: absolute;
    left: 26px;
    bottom: 21px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 3;
}
body.postid-217 .min-four-wapper td.label:focus-within {
    outline: 2px solid #827161;
    outline-offset: 2px;
}
body.postid-217 .quantity-enhanced select[name^="select_quanity_"],
body.postid-217 .quantity-enhanced::before,
body.postid-217 .quantity-enhanced::after {
    display: none;
}
body.postid-217 .quantity-enhanced.is-quantity-open { z-index: 40; }
body.postid-217 form.cart .tasting-quantity-toggle {
    position: absolute;
    left: 15px;
    bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 71px;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: #6b5035;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
body.postid-217 form.cart .tasting-quantity-toggle > span {
    color: #fff;
    font: inherit;
    line-height: 1;
}
body.postid-217 .tasting-quantity-chevron {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
body.postid-217 .tasting-quantity-menu {
    position: absolute;
    left: 15px;
    top: calc(100% - 6px);
    width: 71px;
    padding: 3px;
    border: 1px solid #6b5035;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 12px #0003;
    box-sizing: border-box;
    z-index: 50;
}
body.postid-217 .tasting-quantity-menu[hidden] { display: none; }
body.postid-217 form.cart .tasting-quantity-option {
    display: block;
    width: 100%;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}
body.postid-217 form.cart .tasting-quantity-option:hover,
body.postid-217 form.cart .tasting-quantity-option:focus-visible { background: #eee3d5; outline: 2px solid #827161; }
body.postid-217 form.cart .tasting-quantity-option[aria-selected="true"] { background: #6b5035; color: #fff; }

@media (max-width: 767px) {
    body.postid-217 form.cart table.thwepo-extra-options {
        display: block;
        width: 100%;
    }
    body.postid-217 form.cart table.thwepo-extra-options > tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    body.postid-217 form.cart table.thwepo-extra-options > tbody > tr {
        display: block;
        grid-column: 1 / -1;
        min-width: 0;
    }
    body.postid-217 form.cart table.thwepo-extra-options > tbody > tr.min-four-wapper {
        grid-column: auto;
        width: auto;
    }
    body.postid-217 .min-four-wapper td.label {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 64px;
        margin: 0;
        border-radius: 8px;
    }
    body.postid-217 .min-four-wapper td.label > br { display: none; }
    body.postid-217 .min-four-wapper td.label label.label-tag {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        width: calc(100% - 72px);
        min-height: 0;
        font-size: 12px;
        line-height: 16px;
        text-align: right;
        overflow-wrap: anywhere;
    }
    body.postid-217 .min-four-wapper td.label label.label-tag::before,
    body.postid-217 .min-four-wapper td.label label.label-tag::after {
        display: none;
    }
    body.postid-217 .min-four-wapper td.label select[name^="select_quanity_"] {
        left: 8px;
        bottom: 18px;
        width: 48px;
        padding: 0 2px 0 20px;
        border-radius: 8px;
    }
    body.postid-217 .min-four-wapper td.label::before {
        left: 8px;
        bottom: 18px;
        width: 48px;
    }
    body.postid-217 .min-four-wapper td.label::after {
        left: 16px;
        bottom: 29px;
    }
    body.postid-217 .tasting-pack-count {
        margin: 10px 0;
        font-size: 14px;
        line-height: 1.5;
    }
    body.postid-217 form.cart .tasting-quantity-toggle {
        left: 8px;
        bottom: 18px;
        width: 48px;
        font-size: 15px;
    }
    body.postid-217 .tasting-quantity-menu {
        left: 8px;
        top: calc(100% - 14px);
        width: 48px;
    }
    body.postid-217 .capsule_heading_wrapper [name="capsule_heading"] {
        margin-bottom: 8px;
    }
}
