.bf-cart-trigger { position: relative; }
.bf-cart-trigger::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
html:has(.bf-cart-drawer[open]) { overflow: hidden; }
.bf-cart-drawer {
    --bf-cart-brown: #382014;
    --bf-cart-gutter: 20px;
    inset: 0 0 0 auto;
    width: min(500px, 100%);
    height: 100dvh;
    max-width: 100%;
    max-height: 100dvh;
    padding: var(--bf-cart-gutter) var(--bf-cart-gutter) 10px;
    color: var(--bf-cart-brown);
    overflow: hidden;
}
.bf-cart-drawer[open] { display: flex; flex-direction: column; }
.bf-cart-drawer::backdrop { background: rgb(0 0 0 / .7); }
.bf-cart-drawer-close { position: absolute; top: 0; right: 0; }
.bf-cart-drawer-close button { width: 44px; height: 44px; color: #000; }
.bf-cart-drawer-close button:focus-visible { outline-offset: -4px; }
.bf-cart-drawer-close svg { width: 16px; height: 16px; }
.bf-cart-drawer-heading {
    display: flex;
    align-items: flex-start;
    flex: none;
    gap: 8px;
    min-height: 26px;
    padding-right: 32px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--bf-cart-brown);
    color: #000;
    font: 700 15px/15px BF Condensed, Impact, sans-serif;
}
.bf-cart-drawer-heading h2 { margin: 0; font: inherit; letter-spacing: -.3px; }
.bf-cart-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.bf-cart-empty-message {
    margin: 27px 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}
.bf-cart-recommendation {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 23px;
    border: 1px solid var(--bf-cart-brown);
    background: #f5e4b3;
    text-align: center;
}
.bf-cart-recommendation img { width: 110px; height: 110px; object-fit: cover; display: block; }
.bf-cart-recommendation h3 {
    margin: 0;
    font: 700 15px/18px BF Condensed, Impact, sans-serif;
    color: #000;
    text-transform: uppercase;
}
.bf-cart-recommendation-summary > p { margin: 0 0 12px; font-size: 14px; line-height: 1.3; }
.bf-cart-offer { display: grid; gap: 11px; }
.bf-cart-recommendation .bf-cart-offer { grid-template-columns: auto minmax(0, 1fr); }
.bf-cart-offer .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.bf-cart-offer select, .bf-cart-offer button {
    color: #000;
    padding: 5px 4px;
    min-height: 32px;
    border: 1px solid var(--bf-cart-brown);
    background: #fff;
    border-radius: 0;
    text-align: center;
    font: 700 13px/1.5 BF America, sans-serif;
    cursor: pointer;
}
.bf-cart-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0 4px;
}
.bf-cart-categories a {
    display: block;
    padding: 11px;
    border: 1px solid var(--bf-cart-brown);
    text-align: center;
    text-decoration: none;
}
.bf-cart-categories a:hover span { text-decoration: underline; }
.bf-cart-categories img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.bf-cart-categories span { display: block; padding-top: 8px; }
.bf-cart-empty-footer { padding: 20px 0 10px; }
.bf-cart-shop-all {
    display: block;
    padding: 17px 10px;
    background: var(--bf-cart-brown);
    color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    font-weight: 500;
}
.bf-cart-shop-all:hover { text-decoration: underline; }
@media (max-width: 540px) {
    .bf-cart-drawer { font-size: 14px; padding-bottom: 20px; }
    .bf-cart-empty-message { margin: 24px 0; font-size: 16px; }
}

.bf-cart-drawer-status { display: none; }
.bf-cart-drawer-status p { margin: 16px 0; }
.bf-cart-drawer[data-bf-cart-state="loading"] .bf-cart-drawer-loading,
.bf-cart-drawer[data-bf-cart-state="error"] .bf-cart-drawer-error { display: block; }
.bf-cart-drawer:is([data-bf-cart-state="loading"], [data-bf-cart-state="error"])
    .bf-cart-drawer-count { display: none; }
.bf-cart-drawer-error button {
    border: 1px solid var(--bf-cart-brown);
    background: transparent;
    min-height: 44px;
    margin-right: 14px;
    padding: 0 14px;
    color: inherit;
    cursor: pointer;
}

.woocommerce-message.bf-cart-notice-handled { display: none; }
.bf-cart-drawer-content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.bf-cart-drawer[data-bf-cart-state="loading"] .bf-cart-drawer-content,
.bf-cart-drawer[data-bf-cart-state="error"] .bf-cart-drawer-content { visibility: hidden; }
.bf-cart-action-message { flex: none; margin: 0 0 10px; font-size: 13px; }
.bf-cart-shipping {
    box-sizing: border-box;
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 83px;
    padding: 14px 16px;
    background: #205437;
    color: #fbf8ee;
    text-align: center;
}
.bf-cart-shipping p { margin: 0; font-size: 14px; line-height: 1.35; }
.bf-cart-shipping progress {
    width: 100%;
    height: 13px;
    appearance: none;
    padding: 1px;
    border: 1px solid #fbf8ee;
    border-radius: 0;
    background: #fbf8ee;
    color: #445e91;
}
.bf-cart-shipping progress::-webkit-progress-bar { background: transparent; }
.bf-cart-shipping progress::-webkit-progress-value { background: #445e91; }
.bf-cart-shipping progress::-moz-progress-bar { background: #445e91; }
.bf-cart-drawer .bf-cart-lines { margin: 4px 0 16px; padding: 0; list-style: none; }
.bf-cart-drawer .bf-cart-line {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bf-line);
}
.bf-cart-drawer .bf-cart-line-image img { display: block; width: 70px; height: 70px; object-fit: cover; }
.bf-cart-line-name { margin: 0 0 5px; font-weight: 700; line-height: 1.25; }
.bf-cart-line-name a { color: inherit; text-decoration: none; }
.bf-cart-line-name a:hover { text-decoration: underline; }
.bf-cart-line .variation { margin: 2px 0; color: #625b51; font-size: 13px; }
.bf-cart-line .variation :is(dt,dd) { display: inline; margin: 0; }
.bf-cart-line .variation dd :is(p,span) { display: inline; margin: 0; }
.bf-cart-line-sale {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 9px;
    border: 1px solid currentColor;
    border-radius: 16px;
    font-size: 12px;
}
.bf-cart-line-actions { display: grid; justify-items: end; align-content: start; gap: 3px; }
.bf-cart-line-quantity {
    display: grid;
    grid-template-columns: 27px minmax(17px, auto) 27px;
    align-items: center;
    text-align: center;
    border: 1px solid currentColor;
}
.bf-cart-line-quantity button,
.bf-cart-line-remove {
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.bf-cart-line-quantity button { min-height: 32px; padding: 0; }
.bf-cart-line-quantity button:disabled { opacity: .4; cursor: default; }
.bf-cart-drawer[aria-busy="true"] :is([data-bf-cart-step],[data-bf-cart-remove]) { cursor: progress; }
.bf-cart-line-remove { display: grid; place-items: center; width: 32px; height: 32px; }
.bf-cart-related h3 { text-align: center; font-size: 15px; text-transform: uppercase; }
.bf-cart-related ul {
    display: flex;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0 0 5px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}
.bf-cart-related li {
    display: flex;
    flex: 0 0 calc((100% - 24px) / 3);
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 13px;
}
.bf-cart-related li > a:first-child { color: inherit; text-decoration: none; }
.bf-cart-related li > a:first-child:hover { text-decoration: underline; }
.bf-cart-related img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; margin-bottom: 5px; }
.bf-cart-related-price { margin-bottom: 5px; }
.bf-cart-related li .bf-cart-offer,
.bf-cart-related-options { margin-top: auto; }
.bf-cart-related .bf-cart-offer button,
.bf-cart-related-options {
    display: grid;
    place-items: center;
    min-height: 33px;
    padding: 4px;
    background: #445e91;
    border: 0;
    color: #fff;
    text-align: center;
    text-decoration: none;
}
.bf-cart-filled-footer {
    flex: none;
    display: grid;
    gap: 7px;
    padding: 12px 0 0;
    background: inherit;
}
.bf-cart-total-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    font-size: 14px;
}
.bf-cart-subtotal { border-top: 1px solid var(--bf-line); padding-top: 10px; font-size: 17px; }
.bf-cart-shipping-note { margin: 0; font-size: 12px; }
.bf-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35em;
    min-height: 51px;
    background: #445e91;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.bf-cart-view-cart { justify-self: center; padding: 4px 10px; color: inherit; text-decoration: underline; }
@media (max-width: 540px) {
    .bf-cart-drawer .bf-cart-line { gap: 10px; }
    .bf-cart-related li { flex-basis: calc((100% - 24px) / 2.3); }
    .bf-cart-line-quantity { grid-template-columns: 29px minmax(16px, auto) 29px; }
    .bf-cart-line-remove { width: 40px; height: 36px; }
}
