.wp-block-kadence-wootemplate-blocks-add-to-cart p.stock {
    display: none;
}

.merida-key-attribute-variants-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* if you ever need wrapping on very small screens: */
    /* flex-wrap: wrap; */
}

.merida-key-attribute-section {
    /* keep your left block tight to its content */
    flex: 1;
}

.merida-key-product-attribute {
    margin: 0;
    /* remove default p-margins */
}

.merida-collection-section {
    text-align: right;
    /* right-align the link */
    white-space: nowrap;
    /* prevent wrapping of “Pozostałe…” */
}

.merida-product-collection a {
    position: relative;
    text-decoration: none;
}

.merida-product-collection a::after {
    content: "→";
    display: inline-block;
    margin-left: 0.25em;
    /* vertical-align to match your font size if needed */
}

.merida-current-color-info span,
.merida-key-product-attribute span {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}

/* 1. Flex: tekst + kółka w jednej linii */
.merida-color-swatches-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* tekst po lewej (nagłówek i opis) */
.merida-current-color-info {
    flex: 1;
}

/* 2. Flex dla samych kółek */
.merida-color-swatches {
    display: flex;
    align-items: center;
}

/* 2a. Podstawowy styl każdego kółka */
.merida-color-swatch {
    width: 28px;
    height: 28px;
    border: 1px solid #777;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
}

/* 3. Nakładanie kolejnych */
.merida-color-swatch+.merida-color-swatch {
    margin-left: -20px;
}

/* 3. z-index od 5 do 1 */
.merida-color-swatch:nth-child(1) {
    z-index: 5;
}

.merida-color-swatch:nth-child(2) {
    z-index: 4;
}

.merida-color-swatch:nth-child(3) {
    z-index: 3;
}

.merida-color-swatch:nth-child(4) {
    z-index: 2;
}

.merida-color-swatch:nth-child(5) {
    z-index: 1;
}

/* 4. Ukryj 6+ elementów */
.merida-color-swatch:nth-child(n+6) {
    display: none;
}

/* 5. Jeśli jest 6. kółko, doklej "+" na 5. */
.merida-color-swatches:has(.merida-color-swatch:nth-child(6)) .merida-color-swatch:nth-child(5)::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #000;
    pointer-events: none;
}

/* Common heading styles - 14px, 600 font weight */
.merida-block-heading,
.merida-product-collection a {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.merida-block-heading {
    margin: 0 0 8px 0;
}

.merida-key-attribute-variants-link {
    display: flex;
    justify-content: space-between;
    /* zamiast center – wyrównujemy dzieci do dolnej krawędzi */
    align-items: flex-end;
}

.merida-key-attribute-section {
    flex: 1;
}

/* Availability status with dot */
/* SKU value styling */
.merida-availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.merida-availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.merida-availability-text,
.merida-sku-value {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}

/* Force everything lowercase, then uppercase only the first letter */
.merida-key-product-attribute {
    text-transform: lowercase !important;
}

.merida-key-product-attribute:first-letter {
    text-transform: uppercase !important;
}