.mcw-cart-protection {
    margin: 24px 0;
    background: transparent;
}

.mcw-cart-protection-prompt {
    margin: 24px 0;
    padding: 1.5rem;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.mcw-cart-protection-modal {
    inset: 0;
    position: fixed;
    z-index: 9999;
}

.mcw-cart-protection-modal[hidden] {
    display: none;
}

.mcw-cart-protection-modal__overlay {
    background: rgba(0, 0, 0, 0.55);
    inset: 0;
    position: absolute;
}

.mcw-cart-protection-modal__dialog {
    left: 50%;
    max-width: 640px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    z-index: 1;
}

.mcw-cart-protection-modal__dialog .mcw-cart-protection-prompt {
    margin: 0;
    position: relative;
}


body.mcw-cart-protection-modal-open {
    overflow: hidden;
}

.mcw-cart-protection-prompt h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.mcw-cart-protection-prompt p {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.mcw-cart-protection-prompt__question {
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.mcw-cart-protection-prompt__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mcw-cart-protection-prompt__acknowledgement {
    align-items: start;
    column-gap: 0.6rem;
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 1rem;
}

.mcw-cart-protection-prompt__acknowledgement input[type="checkbox"] {
    margin-top: 0.2rem;
}

.mcw-cart-protection-prompt__acknowledgement span {
    font-size: 0.95rem;
    line-height: 1.45;
}

.mcw-cart-protection-prompt .mcw-cart-protection-prompt__btn {
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #9A3820;
    color: #ffffff;
    background-color: #9A3820;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Woodford Bourne Regular", sans-serif;
}

.mcw-cart-protection-prompt .mcw-cart-protection-prompt__btn:hover {
    background-color: #36312D;
    border-color: #36312D;
}

.mcw-cart-protection-prompt .mcw-cart-protection-prompt__btn:disabled,
.mcw-cart-protection-prompt .mcw-cart-protection-prompt__btn[aria-disabled="true"] {
    background-color: #a8a29f;
    border-color: #a8a29f;
    cursor: not-allowed;
    opacity: 0.7;
}

.mcw-cart-protection-prompt .mcw-cart-protection-prompt__btn:disabled:hover,
.mcw-cart-protection-prompt .mcw-cart-protection-prompt__btn[aria-disabled="true"]:hover {
    background-color: #a8a29f;
    border-color: #a8a29f;
}

.mcw-cart-protection h3 {
    margin: 0 0 0.5rem;
    font-size: 22px;
    font-family: 'WoodfordBourne-SemiBold' !important;
    text-transform: uppercase;
    color: #36312d;
    font-weight: normal !important;
}

.mcw-cart-protection__help {
    margin: 0 0 1rem;
    color: #36312D;
    font-size: 18px;
}

.woocommerce .mcw-cart-protection table.shop_table.mcw-cart-protection__table {
    margin: 0 0 9px 0;
    border: none;
}

.mcw-cart-protection__category-name {
    font-weight: 600;
    display: block;
    margin: 0 0 0.35rem;
}

.mcw-cart-protection__category-name span {
    display: block;
    font-weight: 400;
}

.mcw-cart-protection__table td {
    border: none;
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent) !important;
}

.mcw-cart-protection__table td label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.mcw-cart-protection__table td .mcw-cart-protection__add-label-text {
    font-weight: 600;
    padding-top: 3px;
}

.mcw-cart-protection__table td label.mcw-cart-protection__choice--stacked {
    align-items: start;
    column-gap: 0.35rem;
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 0.2rem;
    row-gap: 0.15rem;
    white-space: normal;
}

.mcw-cart-protection__table td label.mcw-cart-protection__choice--stacked input[type="radio"] {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 0.15rem;
}

.mcw-cart-protection__table td label.mcw-cart-protection__choice--stacked span:first-of-type {
    font-weight: 400;
    grid-column: 2;
    grid-row: 1;
    padding-top: 3px;
}

.mcw-cart-protection__disclaimer {
    color: #36312D;
    display: block;
    font-size: 16.2px;
    grid-column: 2;
    grid-row: 2;
    line-height: 1.35;
    margin-left: 0;
}

@media (max-width: 768px) {
    .mcw-cart-protection-modal__dialog {
        width: calc(100% - 1.25rem);
    }

    .mcw-cart-protection {
        padding: 0.85rem;
    }

    .mcw-cart-protection__table th,
    .mcw-cart-protection__table td {
        font-size: 0.92rem;
    }
}

/* ───────── Delivery Choice (Custom Bulk Beef) ───────── */

.mcw-cr-protection-cart-fragment--hidden,
.mcw-cr-protection-checkout-fragment--hidden {
    display: none !important;
}

/* On checkout the customer enters the address in the standard checkout
   form above the order review, so the in-section "enter shipping
   address" prompt is redundant — hide it. */
.woocommerce-checkout .mcw-cr-delivery-choice__address {
    display: none !important;
}

.mcw-cr-delivery-choice {
    margin: 24px 0;
}

.mcw-cr-delivery-choice h3 {
    margin: 0 0 0.5rem;
    font-size: 22px;
    font-family: 'WoodfordBourne-SemiBold' !important;
    text-transform: uppercase;
    color: #36312d;
    font-weight: normal !important;
}

.mcw-cr-delivery-choice__help {
    margin: 0 0 1rem;
    color: #36312D;
    font-size: 18px;
}

.mcw-cr-delivery-choice__options {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.mcw-cr-delivery-choice__options li {
    margin: 0 0 0.5rem;
}

.mcw-cr-delivery-choice__options label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 18px;
}

.mcw-cr-delivery-choice__address[hidden] {
    display: none;
}

.mcw-cr-delivery-choice__address {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.mcw-cr-delivery-choice__address-help {
    margin: 0 0 0.75rem;
    font-size: 18px;
    color: #36312D;
}

/* When the calculator is relocated into our slot, force its form open. */
.mcw-cr-delivery-choice__address-slot .shipping-calculator-form,
.mcw-cr-delivery-choice__address-slot form.woocommerce-shipping-calculator {
    display: block !important;
    margin: 0;
    padding: 0;
}

.mcw-cr-delivery-choice__address-slot .shipping-calculator-button {
    display: none !important;
}

/*
 * When the cart has a custom-beef-shares product, suppress WooCommerce's
 * native shipping calculator everywhere on the page. The only place the
 * address fields should ever appear is inside our delivery-choice slot,
 * which is exempted by the rule above.
 */
body.mcw-cr-has-custom-beef .woocommerce-shipping-calculator,
body.mcw-cr-has-custom-beef .shipping-calculator-form,
body.mcw-cr-has-custom-beef .shipping-calculator-button,
body.mcw-cr-has-custom-beef .cart-collaterals .shipping_calculator {
    display: none !important;
}

body.mcw-cr-has-custom-beef .mcw-cr-delivery-choice__address-slot .woocommerce-shipping-calculator,
body.mcw-cr-has-custom-beef .mcw-cr-delivery-choice__address-slot .shipping-calculator-form {
    display: block !important;
}

/* ───────── Cart Totals: full width ───────── */

.woocommerce-cart .cart-collaterals,
.woocommerce .cart-collaterals {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .shipping_calculator {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}