/* CS Theme 0.14.0 — components/product-sticky
 * Ordre de cascade conservé depuis la 0.13.0. Voir docs/CSS-0.14.0.md.
 */

.cs-product-sticky.is-visible {
    transform: translateY(0);

    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

.cs-product-sticky__inner {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.8fr)
        minmax(360px, 1.4fr)
        minmax(180px, 0.7fr)
        minmax(190px, 0.65fr);

    align-items: center;

    gap: 20px;
}

.cs-product-sticky__summary {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}

.cs-product-sticky__image {
    flex:
        0
        0
        58px;

    width: 58px;
    height: 58px;

    object-fit: cover;

    background: #f7f5f2;
}

.cs-product-sticky__identity {
    min-width: 0;
}

.cs-product-sticky__name {
    overflow: hidden;

    color: var(--cs-text);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.3;

    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.cs-product-sticky__price {
    margin-top: 4px;

    color: #b49268;

    font-size: 15px;
    font-weight: 500;
}

.cs-product-sticky__variants {
    display: flex;
    align-items: center;

    gap: 22px;

    min-width: 0;
}

.cs-product-sticky__variant-group {
    display: flex;
    align-items: center;

    gap: 8px;

    min-width: 0;
}

.cs-product-sticky__variant-label {
    flex:
        0
        0
        auto;

    color: var(--cs-text);

    font-size: 10px;
    font-weight: 500;

    text-transform: uppercase;
}

.cs-product-sticky__colors {
    display: flex;

    gap: 6px;
}

.cs-product-sticky__color {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 3px;

    border:
        1px solid
        transparent;

    border-radius: 50%;

    background: #ffffff;
}

.cs-product-sticky__color.is-active {
    border-color: var(--cs-brown);
}

.cs-product-sticky__swatch {
    width: 20px;
    height: 20px;

    display: block;

    border:
        1px solid
        rgba(0, 0, 0, 0.12);

    border-radius: 50%;

    background-position: center;
    background-size: cover;
}

.cs-product-sticky__sizes {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.cs-product-sticky__size {
    min-width: 34px;
    height: 30px;

    padding:
        3px
        6px;

    border:
        1px solid
        var(--cs-border);

    background: #ffffff;
    color: var(--cs-text);

    font-size: 10px;
}

.cs-product-sticky__size.is-active {
    border-color: var(--cs-brown);

    box-shadow:
        inset 0 0 0 1px
        var(--cs-brown);
}

.cs-product-sticky__size:disabled,
.cs-product-sticky__color:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}

.cs-product-sticky__comment {
    min-width: 0;

    color: var(--cs-text-muted);

    font-size: 10px;
    line-height: 1.35;
}

.cs-product-sticky__add {
    width: 100%;
    min-height: 46px;

    padding:
        10px
        18px;

    border: 0;

    background: var(--cs-beige);
    color: var(--cs-text);

    font-size: 12px;
    font-weight: 500;

    text-transform: uppercase;
}

.cs-product-sticky__add:hover:not(:disabled) {
    background: var(--cs-brown);
    color: #ffffff;
}

.cs-product-sticky__add:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}

@media (max-width: 991.98px) {

    .cs-product-sticky {
        display: none;
    }

}
