.grainpill-jerry-packs {
    border: 0;
    margin: 0 0 14px;
    padding: 0;
    min-inline-size: 0;
}

.grainpill-jerry-packs__legend {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.grainpill-jerry-packs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grainpill-jerry-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    min-width: 0;
    border: 1px solid #d5e3db;
    border-radius: 14px;
    padding: 12px 12px 10px;
    background: #fff;
    cursor: pointer;
}

.grainpill-jerry-pack.is-selected {
    border-color: #0e9f6e;
    background: #f3fbf7;
    box-shadow: inset 0 0 0 1px #0e9f6e;
}

.grainpill-jerry-pack input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.grainpill-jerry-pack__days {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.grainpill-jerry-pack__packs {
    color: #4d6358;
    font-size: 13px;
    line-height: 1.3;
}

.grainpill-jerry-pack__price {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.grainpill-jerry-pack__price .amount {
    font-weight: 800;
}

.grainpill-jerry-pack__save {
    margin-top: 8px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e7f8ef;
    color: #0b7f58;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

body.grainpill-jerry-packs-on form.cart .quantity {
    display: none !important;
}

.grainpill-jerry-days-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    width: fit-content;
    margin: 8px 0 0;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e7f8ef;
    color: #0b7f58;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.grainpill-jerry-days-badge strong {
    font-weight: 800;
    font-size: 13px;
}

.woocommerce-cart td.product-price .grainpill-jerry-pack-price,
.woocommerce-checkout td.product-total .grainpill-jerry-pack-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.grainpill-jerry-pack-price__row {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.woocommerce-cart td.product-price .grainpill-jerry-pack-price__row > .woocommerce-Price-amount,
.woocommerce-checkout td.product-total .grainpill-jerry-pack-price__row > .woocommerce-Price-amount {
    display: inline;
    color: #122f25;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.grainpill-jerry-pack-save,
.grainpill-jerry-pack-save .woocommerce-Price-amount,
.grainpill-jerry-pack-save .amount,
.grainpill-jerry-pack-save bdi,
.grainpill-jerry-pack-save .woo-bg--currency {
    color: #0b7f58;
    font-size: 12px;
    font-weight: 500 !important;
    line-height: 1.3;
    text-decoration: none;
}

.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price .grainpill-jerry-pack-price .woo-bg--currency,
.woocommerce-checkout td.product-total .grainpill-jerry-pack-price .woo-bg--currency {
    display: inline;
    margin-top: 0;
    font-size: inherit;
    font-weight: inherit;
}

.grainpill-jerry-pack-was,
.grainpill-jerry-pack-was .woocommerce-Price-amount,
.grainpill-jerry-pack-was .amount,
.grainpill-jerry-pack-was bdi,
.grainpill-jerry-pack-was .woo-bg--currency {
    color: #8aa094;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.2;
    text-decoration: line-through;
}

@media (max-width: 420px) {
    .grainpill-jerry-packs__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .grainpill-jerry-pack {
        padding: 10px 8px 8px;
    }

    .grainpill-jerry-pack__days {
        font-size: 14px;
    }

    .grainpill-jerry-pack__packs,
    .grainpill-jerry-pack__save {
        font-size: 11px;
    }

    .grainpill-jerry-pack__price {
        font-size: 16px;
    }
}
