.wc-block-cart-item__wrap .wc-block-components-product-metadata:has(.wc-block-components-product-details__design-actions) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    margin-block: .6rem .85rem;
    line-height: 1.5;
}

/* WooCommerce renders custom details and variation attributes in separate wrappers. */
.wc-block-cart-item__wrap .wc-block-components-product-metadata:has(.wc-block-components-product-details__design-actions) > .wc-block-components-product-details {
    display: contents;
}

.wc-block-cart-item__wrap .wc-block-components-product-metadata:has(.wc-block-components-product-details__design-actions) .wc-block-components-product-details__name {
    font-weight: 700;
}

.wc-block-cart-item__wrap .wc-block-components-product-metadata:has(.wc-block-components-product-details__design-actions) span[aria-hidden="true"],
.wc-block-cart-item__wrap .wc-block-components-product-details__order-approval > .wc-block-components-product-details__name,
.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions > .wc-block-components-product-details__name {
    display: none;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__production-time {
    order: 1;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__order-approval {
    order: 2;
    max-width: 64ch;
    color: #41524c;
    font-size: .875rem;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions {
    order: 3;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions .wc-block-components-product-details__value {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid #326147;
    border-radius: .5rem;
    background: #fff;
    color: #142d20;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions a:first-child {
    background: #31e600;
    border-color: #31e600;
    color: #0c2109;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions a:hover {
    text-decoration: underline;
}

.wc-block-cart-item__wrap .wc-block-components-product-details__design-actions a:focus-visible {
    outline: 2px solid #123b29;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .wc-block-cart-item__wrap .wc-block-components-product-details__design-actions a {
        width: 100%;
    }
}
