/* One quiet price/action row for catalog and recommendation cards. */
.ski-storefront #content :is(.ski-card-inner, .ski-mini-card-inner) { container-type: inline-size; container-name: ski-purchase-card; }
.ski-storefront #content .ski-purchase {
    --ski-purchase-red: #d9283d;
    --ski-purchase-red-hover: #b91e31;
    --ski-purchase-ink: #202326;
    --ski-purchase-muted: #555b61;
    --ski-purchase-circle: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--ski-purchase-circle);
    gap: 3px 12px;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    color: var(--ski-purchase-ink);
    font-family: Arial, Helvetica, sans-serif;
}
.ski-storefront #content .ski-purchase-price { grid-column: 1; grid-row: 1; align-self: end; min-width: 0; color: inherit; font: 700 18px/1.5 Arial, Helvetica, sans-serif; }
.ski-storefront #content .ski-purchase-price .woocommerce-Price-amount { white-space: nowrap; }
.ski-storefront #content .ski-purchase-price del { display: block; color: var(--ski-purchase-muted); font-size: 12px; font-weight: 400; }
.ski-storefront #content .ski-purchase-price ins { background: none; text-decoration: none; }
.ski-storefront #content .ski-purchase-label { grid-column: 1; grid-row: 2; align-self: start; min-width: 0; color: var(--ski-purchase-muted); font: 12px/1.5 Arial, Helvetica, sans-serif; }
.ski-storefront #content .ski-purchase-action { display: contents; }
.ski-storefront #content .ski-purchase .ski-purchase-button {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ski-purchase-circle);
    min-width: var(--ski-purchase-circle);
    max-width: var(--ski-purchase-circle);
    height: var(--ski-purchase-circle);
    min-height: var(--ski-purchase-circle);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ski-purchase-red);
    color: #fff;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    overflow: visible;
}
.ski-storefront #content .ski-purchase-button::before, .ski-storefront #content .ski-purchase-button::after { display: none; }
.ski-storefront #content .ski-purchase .ski-purchase-button:hover { background: var(--ski-purchase-red-hover); color: #fff; box-shadow: none; }
.ski-storefront #content .ski-purchase-button:focus-visible { outline: 3px solid var(--ski-purchase-red); outline-offset: 4px; }
.ski-storefront #content .ski-purchase-button .ski-icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ski-storefront #content .ski-purchase-added-icon, .ski-storefront #content .ski-purchase-loading-label, .ski-storefront #content .ski-purchase-added-label { display: none; }
.ski-storefront #content .ski-purchase .ski-purchase-button.added { background: #306349; color: #fff; }
.ski-storefront #content .ski-purchase-button.added .ski-purchase-default-icon { display: none; }
.ski-storefront #content .ski-purchase-button.added .ski-purchase-added-icon { display: block; width: 14px; height: 14px; }
.ski-storefront #content :is(.ski-purchase-added-icon, .ski-product-cart-check)::before { content: ''; display: block; width: 12px; height: 7px; margin-top: 2px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.ski-storefront #content .ski-purchase:has(.ski-purchase-button.added) .ski-purchase-default-label { display: none; }
.ski-storefront #content .ski-purchase:has(.ski-purchase-button.added) .ski-purchase-added-label { display: inline; }
.ski-storefront #content .ski-purchase .ski-purchase-button.loading { opacity: .7; cursor: wait; }
.ski-storefront #content .ski-purchase-button.loading > span { visibility: hidden; }
.ski-storefront #content .ski-purchase-button.loading::after { content: ''; display: block; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: ski-purchase-spin .8s linear infinite; }
.ski-storefront #content .ski-purchase:has(.ski-purchase-button.loading) :is(.ski-purchase-default-label, .ski-purchase-added-label) { display: none; }
.ski-storefront #content .ski-purchase:has(.ski-purchase-button.loading) .ski-purchase-loading-label { display: inline; }
.ski-storefront #content .ski-purchase-action > .added_to_cart { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; color: var(--ski-purchase-red-hover); font: 12px/1.5 Arial, Helvetica, sans-serif; }
.single-product #content .related-products .ski-purchase-price { font-size: 16px; }
.single-product #content .related-products .ski-purchase-label { font-size: 11px; }
.single-product #content .ski-product-cart-feedback {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    min-width: 0;
    color: #555b61;
    font-size: .875rem;
}
.single-product #content .ski-product-cart-feedback:not([data-state]) { position: absolute; }
.single-product #content .ski-product-cart-feedback[data-state="success"] { color: #306349; }
.single-product #content .ski-product-cart-feedback[data-state="success"] .ski-product-cart-message { font-weight: 600; }
.single-product #content .ski-product-cart-feedback[data-state="error"] .ski-product-cart-message { color: #a62232; }
.single-product #content .ski-product-cart-check { flex: 0 0 14px; }
.single-product #content .ski-product-cart-feedback a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.single-product #content .ski-product-cart-feedback [hidden],
.single-product #content .ski-cart-feedback-active .single_add_to_cart_button + .added_to_cart { display: none; }
@keyframes ski-purchase-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
    .ski-storefront #content .ski-purchase { --ski-purchase-circle: 44px; column-gap: 8px; }
    .ski-storefront #content .ski-purchase-price { font-size: 15px; }
    .single-product #content .related-products .ski-purchase-price { font-size: 14px; }
    .ski-storefront #content .ski-purchase-label { font-size: 11px; }
}
/* Narrow cards retain the full amount, with the circle beside the action caption. */
@container ski-purchase-card (max-width: 140px) {
    .ski-storefront #content .ski-purchase-price { grid-column: 1 / -1; grid-row: 1; }
    .ski-storefront #content .ski-purchase-label { grid-column: 1; grid-row: 2; align-self: center; }
    .ski-storefront #content .ski-purchase .ski-purchase-button { grid-column: 2; grid-row: 2; }
}
@media (max-width: 360px) {
    .ski-storefront #content .ski-purchase-price { grid-column: 1 / -1; grid-row: 1; }
    .ski-storefront #content .ski-purchase-label { grid-column: 1; grid-row: 2; align-self: center; }
    .ski-storefront #content .ski-purchase .ski-purchase-button { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .ski-storefront #content .ski-purchase-button.loading::after { animation: none; } }
