/* Shared, unchanged slider styles for Products/Overview and personalized sets. */
.cfg-selectable-thumb {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: .55rem;
    padding: 1px;
    background: transparent;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
    cursor: pointer;
}

.cfg-color-thumb,
.cfg-design-thumb {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
}

.cfg-selectable-thumb:hover {
    border-color: rgba(22, 63, 99, 0.35);
    background: transparent;
}

.cfg-selectable-thumb.cfg-thumb-selected {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}

.cfg-color-thumb,
.cfg-design-thumb {
    background: transparent !important;
    box-shadow: none;
}

.cfg-no-motif-thumb {
    width: 88px !important;
    height: 52px !important;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.38rem;
    border: 1px dashed rgba(22, 63, 99, 0.45);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #163f63;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
}

.cfg-color-thumb:hover,
.cfg-design-thumb:hover {
    background: transparent !important;
}

.cfg-color-thumb.cfg-thumb-selected,
.cfg-design-thumb.cfg-thumb-selected {
    background: transparent !important;
    box-shadow: none;
}

.cfg-selectable-thumb.cfg-thumb-disabled {
    cursor: not-allowed;
    pointer-events: none;
    border-color: transparent;
    box-shadow: none;
    filter: none;
    opacity: 1;
}

.cfg-slider-tile.cfg-slider-tile-disabled {
    cursor: not-allowed;
    background: rgba(148, 163, 184, 0.08);
    border: 1px dashed #7b8794;
    border-radius: 0.6rem;
    padding: 0.18rem;
}

.cfg-slider-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem;
    border: 1px solid rgba(36, 66, 79, 0.14);
    border-radius: 0.72rem !important;
    background: rgba(255, 255, 255, 0.36);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}

.cfg-slider-tile:has(.cfg-thumb-selected),
.cfg-slider-tile.cfg-slider-tile-selected {
    border-color: #1f6fa5;
    background: rgba(22, 63, 99, 0.06);
    box-shadow: 0 0 0 1px rgba(31, 111, 165, 0.18), 0 0.7rem 1.35rem rgba(22, 63, 99, 0.14);
    transform: translateY(-1px);
}

.cfg-slider-tile:has(.cfg-thumb-selected)::after,
.cfg-slider-tile.cfg-slider-tile-selected::after {
    content: "";
    position: absolute;
    top: 0.42rem;
    right: 0.42rem;
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 999px;
    background: #4f8970;
    border: 2px solid #fff;
    box-shadow: 0 0.35rem 0.85rem rgba(49, 95, 85, 0.28);
    pointer-events: none;
    z-index: 4;
}

.cfg-slider-tile:has(.cfg-color-thumb.cfg-thumb-selected)::after {
    top: 0.54rem;
    right: 0.54rem;
    width: 0.68rem;
    height: 0.68rem;
}

.cfg-slider-tile:has(.cfg-thumb-selected) .cfg-commerce-badge,
.cfg-slider-tile.cfg-slider-tile-selected .cfg-commerce-badge {
    right: auto;
    left: -0.2rem;
}

.cfg-slider-tile.cfg-slider-tile-disabled {
    border-color: #7b8794;
    background: rgba(148, 163, 184, 0.08);
    box-shadow: none;
    transform: none;
}

.cfg-slider-tile.cfg-slider-tile-disabled::after {
    content: none;
}

.cfg-commerce-badge {
    position: absolute;
    z-index: 3;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.5rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 0.65rem;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.cfg-discount-badge {
    background: #c92a2a;
}

.cfg-unavailable-badge {
    width: 1.4rem;
    padding: 0;
    background: #495057;
    cursor: pointer;
}

.cfg-slider-tile.cfg-slider-tile-disabled .cfg-unavailable-badge {
    left: auto;
    right: -0.2rem;
}

span.cfg-unavailable-badge {
    cursor: not-allowed;
}

.cfg-unavailable-message {
    margin-top: 0.45rem;
    color: #6c757d;
    font-size: 0.78rem;
    line-height: 1.25;
}

.cfg-cart-price-old {
    margin-right: 0.4rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    text-decoration: line-through;
}

.cfg-design-child-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.12rem 0.16rem;
    border-radius: 0.65rem;
    background: rgba(148, 163, 184, 0.10);
}

.cfg-slider-nav {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) 1.75rem;
    align-items: center;
    gap: 0.22rem;
}

.cfg-slider-arrow {
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(22, 63, 99, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,244,248,0.98));
    color: #163f63;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.08);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.cfg-slider-arrow:hover {
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.12);
    transform: translateY(-1px);
}

.cfg-slider-arrow:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(17, 24, 39, 0.12);
}

.cfg-slider-arrow:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.cfg-slider-shell {
    min-width: 0;
}

.cfg-slider-shell .swiper.gap-3 {
    gap: 0.25rem !important;
}

.cfg-slider-shell .swiper-wrapper {
    align-items: center;
}

.cfg-slider-shell .swiper-slide.cfg-slider-tile {
    width: auto !important;
    min-width: 54px;
    margin-right: 6px !important;
}

