/* Rozbalené produkty - Frontend štýly */

.rp-variants-container {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    width: 100%;
}

/* Device-specific containers */
.rp-variants-container.rp-device-mobile {
    /* Mobile specific styles */
}

.rp-variants-container.rp-device-desktop {
    /* Desktop specific styles */
}

.rp-variants-container.rp-device-tablet {
    /* Tablet specific styles */
}

.rp-variants-container.rp-device-all {
    /* All devices (original shortcode) */
}

.rp-product-card {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    background: #fff;
    transition: all 0.1s ease;
    font-size: 12px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rp-product-card.current-product {
    border-color: #ff6b35;
    background: #fff5f2;
    cursor: default;
}

.rp-variant-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rp-variant-link:hover .rp-product-card {
    border-color: #999;
    background: #f8f8f8;
}

.rp-card-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rp-card-price {
    font-size: 12px;
    font-weight: 700;
    color: #ff6b35;
    margin: 0;
}

.rp-card-price .currency {
    font-size: 10px;
    font-weight: 600;
}

.rp-help-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 8px;
    line-height: 12px;
    text-align: center;
    cursor: help;
    position: relative;
    font-weight: bold;
}

.rp-help-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
    z-index: 1000;
    pointer-events: none;
}

.rp-help-icon::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
    z-index: 1000;
}

.rp-help-icon:hover::before,
.rp-help-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Proporcie pre rôzne situácie */
.rp-variants-container .rp-product-card:first-child {
    /* Prvý produkt (originál) */
}

.rp-variants-container .rp-product-card.current-product {
    /* Aktuálny produkt */
}

/* Ak je aktuálny produkt variant, originál má 50% šírku */
.rp-variants-container .rp-product-card:first-child:not(.current-product) {
    flex: 1;
}

.rp-variants-container .rp-product-card.current-product {
    flex: 2; /* 50% šírka pre aktuálny produkt */
}

/* Ostatné varianty majú menšiu šírku */
.rp-variants-container .rp-product-card:not(.current-product):not(:first-child) {
    flex: 1; /* 25% šírka pre ostatné varianty */
}

/* Responsive */
@media (max-width: 768px) {
    .rp-variants-container {
        gap: 6px;
        margin: 12px 0;
    }
    
    .rp-product-card {
        padding: 6px;
        font-size: 11px;
        min-height: 50px;
    }
    
    .rp-card-title {
        font-size: 11px;
    }
    
    .rp-card-price {
        font-size: 11px;
    }
}

/* Originálny produkt container */
.rp-original-product-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 16px 0;
}

.rp-original-product-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 14px;
}

.rp-original-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #007cba;
    font-weight: 500;
}

.rp-original-link:hover {
    color: #005a87;
}

.rp-original-price {
    font-weight: 600;
    color: #333;
} 