/* OFUR mini cart (GenerateBlocks panel 57814). Markup: woocommerce/cart/mini-cart.php. */
.ofur-cart-panel {
    --ofur-cart-gap: 20px;
}
.ofur-cart-panel .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    gap: var(--ofur-cart-gap);
    color: var(--contrast, #000);
    font-size: 14px;
    line-height: 1.5;
}

/* Header */
.ofur-cart-header {
    padding-right: 48px; /* room for the panel's close button */
}
.ofur-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}
.ofur-cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 12px;
}
.ofur-cart-header .ofur-review-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 13px;
}
.ofur-cart-header .ofur-review-count {
    color: inherit; /* the shortcode's grey is too light on #eee */
    text-decoration: underline;
}

/* Free shipping */
.ofur-cart-free-shipping {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent, #de389a) 12%, #fff);
}
.ofur-cart-free-shipping .ofur-product-icon {
    width: 20px;
    height: 20px;
}
.ofur-cart-free-shipping p {
    margin: 0;
}
.ofur-cart-free-shipping .ofur-product-shipping-progress {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.ofur-cart-free-shipping .ofur-product-shipping-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent, #de389a);
}
/* Unlocked: one line, the full bar adds nothing. */
.ofur-cart-free-shipping:has([aria-valuenow="100"]) {
    padding: 10px 16px;
}
.ofur-cart-free-shipping:has([aria-valuenow="100"]) .ofur-product-shipping-progress {
    display: none;
}

/* Items */
.ofur-cart-panel .woocommerce-mini-cart {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Specificity above GP Premium's mini cart rules (padding for an absolute thumbnail). */
.ofur-cart-panel .widget_shopping_cart .cart_list li.ofur-cart-item {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(96px, 30%) 1fr;
    gap: 16px;
    margin: 0;
    padding: 0 0 var(--ofur-cart-gap);
    border-bottom: 1px solid #d6d6d6;
    list-style: none;
}
.ofur-cart-panel .ofur-cart-item + .ofur-cart-item {
    padding-top: var(--ofur-cart-gap);
}
/* WooCommerce's clearfix pseudo-elements would become grid items. */
.ofur-cart-panel .woocommerce-mini-cart .ofur-cart-item::before,
.ofur-cart-panel .woocommerce-mini-cart .ofur-cart-item::after {
    content: none;
}
/* Specificity above WooCommerce/GeneratePress widget image rules. */
.ofur-cart-panel .widget_shopping_cart .cart_list .ofur-cart-item img {
    position: static;
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}
.ofur-cart-item-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.ofur-cart-item-name {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}
.ofur-cart-item-name a {
    color: inherit;
}
.ofur-cart-item-color,
.ofur-cart-item-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.ofur-cart-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgb(0 0 0 / 12%);
}
.ofur-cart-item .variation {
    margin: 0;
}
.ofur-cart-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}
.ofur-cart-sizes legend {
    width: 100%;
    margin-bottom: 6px;
    padding: 0;
    font-size: inherit;
}
/* Same states as the product page and Shop the Look size buttons (css/single-product.css). */
/* Sizes share one row (XS–XXL fits on a phone); more sizes wrap. */
.ofur-cart-panel .ofur-cart-size {
    flex: 1 1 0;
    min-width: 34px;
    max-width: 52px;
    height: 40px;
    padding: 0 4px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}
.ofur-cart-panel .ofur-cart-size[aria-pressed="true"],
.ofur-cart-panel .ofur-cart-size:not(:disabled):hover {
    border-color: #111;
    background: #111;
    color: #fff;
}
.ofur-cart-panel .ofur-cart-size:disabled {
    background: #f6f6f6;
    color: #aaa;
    text-decoration: line-through;
    cursor: not-allowed;
}
.ofur-cart-item-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wc-green, #2e9e5b);
}
.ofur-cart-item-status--pre-order::before,
.ofur-cart-item-status--backorder::before {
    background: #ef94bd;
}
.ofur-cart-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.ofur-cart-item .quantity-label {
    display: none;
}
/* Specificity above GP Premium's .woocommerce-mini-cart-item .quantity { display: block }. */
.ofur-cart-panel .ofur-cart-item .quantity {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 6px;
    border: 1px solid #d0d0d0;
    border-radius: 24px;
    background: #fff;
}
.ofur-cart-item :is(.dec-qty, .inc-qty, .input-qty-holder) {
    float: none;
    height: auto;
}
.ofur-cart-item .qty-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%; /* the focus ring follows the round icon */
}
.ofur-cart-item .qty-btn svg {
    width: 18px;
    height: 18px;
}
/* Below 1 is Remove, so at 1 the pill shows only the number and plus. */
.ofur-cart-item .quantity:has(input.qty[value="1"]) .dec-qty {
    display: none;
}
.ofur-cart-item .quantity:has(input.qty[value="1"]) {
    padding-left: 10px;
}
.ofur-cart-panel .ofur-cart-item .quantity input.qty {
    width: 32px;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}
.ofur-cart-item input.qty::-webkit-inner-spin-button,
.ofur-cart-item input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.ofur-cart-item-price {
    font-size: 16px;
}
/* Specificity above WooCommerce's round "×" a.remove rules; GP Premium sets border/font with !important. */
.ofur-cart-panel .widget_shopping_cart .cart_list .ofur-cart-item a.remove {
    position: static;
    display: inline;
    float: none;
    width: auto;
    height: auto;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    font-family: inherit !important;
    color: #555 !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: underline;
    background: none !important;
}
.ofur-cart-quantity-error {
    margin: 0;
    font-size: 13px;
}

/* Totals */
.ofur-cart-panel .widget_shopping_cart .woocommerce-mini-cart__total.total {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}
.ofur-cart-totals {
    margin: 0;
}
.ofur-cart-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}
.ofur-cart-row dt,
.ofur-cart-row dd {
    margin: 0;
    font-weight: 400;
}
.ofur-cart-row small {
    color: #666;
}
.ofur-cart-free {
    color: var(--wc-green, #2e9e5b);
    font-weight: 700;
}
.ofur-cart-row--total {
    align-items: baseline;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #111;
}
.ofur-cart-row--total dt {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}
.ofur-cart-row--total dt small {
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
}
.ofur-cart-row--total dd {
    font-size: 20px;
    font-weight: 800;
}
.ofur-cart-klarna {
    margin: 0;
}
.ofur-cart-klarna a,
.ofur-cart-coupon summary,
.ofur-cart-continue a {
    color: inherit;
    text-decoration: underline;
}

/* Checkout: in flow below the totals, pinned to the panel bottom when it would scroll away. */
.ofur-cart-panel .widget_shopping_cart .ofur-cart-actions {
    position: sticky;
    bottom: -20px; /* panel padding */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0 -20px;
    padding: 12px 20px 20px;
    background: #eee;
}
.ofur-cart-panel .widget_shopping_cart .ofur-cart-actions a.ofur-cart-checkout {
    display: flex;
    width: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 28px;
    background: #111;
    color: #fff !important;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}
.ofur-cart-checkout:hover,
.ofur-cart-checkout:focus {
    background: #333;
}
.ofur-cart-checkout .ofur-product-icon {
    width: 18px;
    height: 18px;
}
.ofur-cart-actions .ofur-pp-payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}
.ofur-cart-actions .ofur-pp-payment-icons img {
    display: block;
    width: 34px;
    height: 24px;
    object-fit: contain;
}

/* Coupon, benefits, continue */
.ofur-cart-coupon summary {
    cursor: pointer;
    list-style: none;
}
.ofur-cart-coupon summary::-webkit-details-marker {
    display: none;
}
.ofur-cart-coupon .ofur-mini-cart-coupon {
    margin-top: 12px;
}
.ofur-cart-coupon .coupon {
    display: flex;
    gap: 8px;
}
.ofur-cart-coupon input[type="text"] {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    background: #fff;
}
.ofur-cart-coupon button {
    border-radius: 8px;
}
.ofur-cart-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 18px 16px;
    border-radius: 12px;
    background: #fff;
    list-style: none;
    font-size: 13px;
}
.ofur-cart-benefits li {
    display: flex;
    gap: 10px;
    margin: 0;
}
.ofur-cart-benefits .ofur-product-icon {
    flex: none;
    width: 20px;
    height: 20px;
}
.ofur-cart-benefits strong,
.ofur-cart-benefits li > span > span {
    display: block;
}
.ofur-cart-benefits li > span > span {
    color: #666;
}
.ofur-cart-continue {
    margin: 0 0 8px;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}
.ofur-cart-panel .woocommerce-mini-cart__empty-message {
    margin: 0;
}

@media (max-width: 420px) {
    .ofur-cart-title { font-size: 19px; }
}
@media (max-width: 340px) {
    .ofur-cart-benefits { grid-template-columns: 1fr; }
}
