.cn-store .cn-catalog-card {
    --cn-card-saving-bg: #ffe18b;
    container-type: inline-size;
}

.cn-store .cn-catalog-card .product-visual .badge {
    border: 2px solid var(--cn-card-saving-bg);
    border-radius: 3px;
    max-width: calc(100% - 28px);
}

.cn-store .cn-catalog-card .product-text > .cn-quick-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-width: none;
    min-height: 0;
    margin: 0;
    gap: 0;
}

.cn-store .cn-catalog-card .cn-quick-form > select {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 8px 0 0;
    padding: 4px 8px;
    flex: none;
}

.cn-store .cn-catalog-card .product-kind {
    margin-top: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cn-store .cn-catalog-card .product-text .price-line {
    display: block;
    margin: auto 0 0;
    padding-top: 12px;
}

.cn-store .cn-catalog-card .price-line > strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-width: 0;
    line-height: 1.2;
}

.cn-store .cn-catalog-card .cn-card-price-main {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 2px 8px;
    color: var(--ink);
    font-weight: 750;
}

.cn-store .cn-catalog-card .cn-card-price-main > .cn-current-price,
.cn-store .cn-catalog-card .cn-card-price-regular > .woocommerce-Price-amount {
    min-height: 0;
    font-size: clamp(18px, 12cqi, 40px);
    letter-spacing: -.045em;
}

.cn-store .cn-catalog-card .cn-card-price-main ins {
    color: inherit;
    text-decoration: none;
}

.cn-store .cn-catalog-card .cn-card-price-from {
    font-size: .6em;
    letter-spacing: normal;
}

.cn-store .cn-catalog-card .cn-card-before-price {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    color: var(--cn-muted);
}

.cn-store .cn-catalog-card .cn-card-price-regular > .cn-offer-price {
    flex-basis: 100%;
}

.cn-store .cn-catalog-card .cn-card-saving {
    box-sizing: border-box;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--cn-card-saving-bg);
    color: #231a05;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cn-store .cn-catalog-card .price-line > strong > .cn-amount-basis {
    margin: 0;
    color: var(--cn-muted);
    font-size: 12px;
}

.cn-store .cn-catalog-card .cn-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: 9px;
}

.cn-store .cn-catalog-card .cn-card-footer .stock {
    color: var(--cn-muted);
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}

.cn-store .cn-catalog-card:not(.cn-variant-price-error) .cn-card-in-stock::before {
    content: '✓' / '';
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-inline-end: 5px;
    border: 1px solid #247346;
    border-radius: 50%;
    color: #247346;
    font-size: 10px;
    line-height: 1;
}

.cn-store .cn-catalog-card .cn-card-actions {
    position: relative;
    display: flex;
    flex: none;
    gap: 6px;
    margin-inline-start: auto;
}

.cn-store .cn-catalog-card .cn-card-actions .cn-card-action {
    position: static;
    box-sizing: border-box;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--cn-line);
    border-radius: 50%;
    padding: 0;
    margin: 0;
}

.cn-store .cn-catalog-card .cn-card-action svg { width: 21px; height: 21px; }
.cn-store .cn-catalog-card .cn-card-action.favorite { background: #fff; }
.cn-store .cn-catalog-card .cn-card-action.favorite[aria-pressed="true"] svg { fill: currentColor; }

.cn-store .cn-catalog-card .cn-card-action::after {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    z-index: 5;
    padding: 5px 8px;
    border-radius: 4px;
    background: #173b2e;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    visibility: hidden;
    content: attr(data-card-help);
}

.cn-store .cn-catalog-card .cn-card-action[aria-pressed="true"]::after { content: attr(data-card-remove-help); }
.cn-store .cn-catalog-card .cn-card-action:focus-visible::after { visibility: visible; }
@media (hover: hover) {
    .cn-store .cn-catalog-card .cn-card-action:hover::after { visibility: visible; }
}

@container (max-width: 195px) {
    .cn-store .cn-catalog-card .product-kind { font-size: 11px; }
    .cn-store .cn-catalog-card .cn-card-saving { padding-inline: 5px; font-size: 11px; }
    .cn-store .cn-catalog-card .cn-card-before-price { font-size: 12px; }
}
