.header-links .wr-cart-link { position: relative; }
.header-links .wr-cart-badge {
    position: absolute;
    inset: 0 -8px auto auto;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 20px;
    background: #def68a;
    color: #173b19;
    font: 700 12px/1 system-ui, sans-serif;
}
.header-links .wr-cart-badge span { font: inherit; }
.header-links .wr-cart-badge[hidden] { display: none; }
.wr-cart-badge .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.woocommerce .wr-buy-now {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: #237c27;
}
[data-wr-buying] { opacity: .65; cursor: progress; }
.wr-continue-shopping { margin: 0 0 18px; }
.wr-continue-shopping a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid currentColor;
    border-radius: 9px;
    font-weight: 600;
}
.wr-continue-shopping a:hover { text-decoration: underline; }
.woocommerce-checkout #payment ul.payment_methods {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.woocommerce-checkout #payment li.wc_payment_method,
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
    border: 1px solid #9aa99c;
    border-radius: 12px;
    padding: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-checkout #payment li.wc_payment_method:has(> input:checked),
.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(input:checked) {
    border-color: #32753b;
    box-shadow: inset 0 0 0 1px #32753b;
}
.woocommerce-checkout #payment li.wc_payment_method > label {
    display: inline-block;
    padding: 8px 0;
    font-weight: 650;
    cursor: pointer;
}
.woocommerce-checkout #payment li.wc_payment_method:focus-within {
    outline: 2px solid #32753b;
    outline-offset: 2px;
}
.wr-payment-icon { margin-inline-start: 8px; }
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option + .wc-block-components-radio-control-accordion-option {
    margin-top: 10px;
}
.wc-block-checkout__payment-method .wc-block-components-payment-method-label::before {
    content: '◈' / '';
    margin-inline-end: 8px;
    color: #32753b;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(input[value*="pix"]) .wc-block-components-payment-method-label::before {
    content: '◆' / '';
}
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(input[value*="custom"]) .wc-block-components-payment-method-label::before {
    content: '▤' / '';
}
.wr-payment-status {
    border-inline-start: 4px solid #32753b;
    padding: 12px 16px;
    margin-block: 20px;
}
.wr-payment-status a { text-decoration: underline; }
@media (max-width: 640px) {
    .header-links .wr-cart-badge { inset-inline-end: -3px; }
    .woocommerce-checkout .wc-block-components-order-summary-item .price {
        font-size: 1rem;
        line-height: 1.35;
    }
}
@media (prefers-reduced-motion: reduce) {
    .woocommerce-checkout #payment li.wc_payment_method,
    .woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
        transition: none;
    }
}

.header-links .wr-cart-icon { display: block; flex: none; }
@media (max-width: 640px) {
    .header-links .wr-cart-icon { width: 24px; height: 24px; }
    .header-links .wr-cart-link > small { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Show product names without descriptions or attributes in cart and checkout. */
.woocommerce-cart .wc-block-cart-items .wc-block-components-product-metadata,
.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    display: none;
}
