/**
 * Vitrinify — small storefront UI patches (not scoped to body.vitrinify-cart-ui).
 * Enqueued only where needed (mini-cart sitewide, My Account orders notices).
 */

/* WoodMart: mini-cart footer “View cart” filled button — keep label white */
.woocommerce-mini-cart__buttons a.button.btn-cart.wc-forward {
    color: #ffffff !important;
}

.woocommerce-mini-cart__buttons a.button.btn-cart.wc-forward:hover,
.woocommerce-mini-cart__buttons a.button.btn-cart.wc-forward:focus-visible,
.woocommerce-mini-cart__buttons a.button.btn-cart.wc-forward:focus {
    color: #ffffff !important;
}

/* My Account → orders: empty-state info notice matches checkout validation card */
body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info {
    list-style: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    padding-inline-start: calc(14px + 22px + 0.35em);
    border-radius: 6px;
    border: 1px solid #000000;
    background: #ffffff;
    box-shadow: none;
    color: #000000;
    font-size: 0.9375rem;
    line-height: 1.48;
    position: relative;
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info::before {
    content: "";
    position: absolute;
    inset-inline-start: 14px;
    top: calc(12px + 0.35em);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: no-repeat center / contain
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b91c1c%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%208v4M12%2016h.01%22%2F%3E%3C%2Fsvg%3E");
    opacity: 0.96;
    pointer-events: none;
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info a.woocommerce-Button,
body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info a.button {
    display: inline;
    margin-inline-start: 0.35em;
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #000000;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: none;
    vertical-align: baseline;
    unicode-bidi: isolate;
}

body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info a.woocommerce-Button:hover,
body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info a.woocommerce-Button:focus-visible,
body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info a.button:hover,
body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content .woocommerce-info a.button:focus-visible {
    color: #000000;
    text-decoration: underline;
    background: transparent;
}

/* Syncify CRM inventory location inside Woodmart stock badge */
.single-product p.stock.syncify-has-inventory-location.wd-style-bordered > span:before,
.single-product p.stock.syncify-has-inventory-location.wd-style-with-bg > span:before {
    width: 16px;
    height: 16px;
    margin-inline-end: 7px;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2385B951'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.single-product p.stock .syncify-availability-locations-label {
    display: block;
    margin-bottom: 0.35em;
}

.single-product p.stock .syncify-availability-locations {
    margin: 0;
    padding: 0 0 0 1.1em;
    list-style: disc;
    text-align: start;
}

.single-product p.stock.wd-style-bordered .syncify-availability-locations {
    padding-inline-start: 1.25em;
}

.single-product p.stock .syncify-availability-locations li {
    margin: 0.2em 0;
    line-height: 1.45;
}
