/**
 * Kowal Warianty - Hyvä Compatible Styling
 * Max 100x100px boxes for variants
 */

/* Warianty grupa container */
.warianty-grupa {
    margin-bottom: 1.5rem;
}

.warianty-grupa h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212121;
}

/* Grid layout for variants container */
.warianty-grupa > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Warianty link styling - MAX 100x100px */
.warianty-list-link {
    display: block;
    width: 100px;
    height: 100px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.25rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.warianty-list-link:hover {
    border-color: #C22424;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.warianty-list-link.selected {
    border-color: #C22424;
    box-shadow: 0 0 0 2px #C22424;
}

.warianty-list-link.warianty-niedostepny {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image styling - fit within 100x100px box */
.warianty-img,
.warianty-img img,
.warianty-img picture,
.warianty-img picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
    display: block;
}

/* Fix for Magento placeholder images */
.warianty-img img[src*="placeholder"] {
    object-fit: contain;
    padding: 0.5rem;
}

/* Swatch styling (if used) */
.warianty-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    height: 100%;
    padding: 0.5rem;
}

.warianty-swatch img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Dropdown mode styling */
.product-options-wrapper select.super-attribute-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.product-options-wrapper select.super-attribute-select:focus {
    outline: none;
    border-color: #C22424;
    box-shadow: 0 0 0 2px rgba(194, 36, 36, 0.1);
}

/* Hide OwlCarousel navigation (not needed with this styling) */
.warianty-grupa .owl-nav,
.warianty-grupa .owl-dots {
    display: none !important;
}
