/* ==========================================
   INSTALLATION OPTIONS — sladěno s designem webu
   ========================================== */

.rv-installation-options {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 300;
    letter-spacing: 0.005em;
    color: #333;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    padding: 0;
    box-shadow:
        inset 0 3px 46px rgba(237, 238, 243, 0.35),
        0px 2px 3px rgba(166, 193, 208, 0.42),
        0px 2px 11px rgba(166, 193, 208, 0.35);
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
}

.rv-installation-options *,
.rv-installation-options *::before,
.rv-installation-options *::after {
    box-sizing: border-box;
}

/* --- Title --- */
.rv-installation-options__title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 2px solid #5fbb2e;
    line-height: 1.4;
    letter-spacing: 0.005em;
}

/* --- Option Card --- */
.rv-installation-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
    margin: 0;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.rv-installation-option + .rv-installation-option {
    border-top: 1px solid #edf0f2;
}

.rv-installation-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #5fbb2e;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rv-installation-option:hover {
    background-color: #f8fbfd;
}

.rv-installation-option:hover::before {
    opacity: 1;
}

/* --- Image --- */
.rv-installation-option__image {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #d9dadc;
    background: #f8fbfd;
    padding: 2px;
    margin-right: 0;
    transition: border-color 0.3s ease;
}

.rv-installation-option:hover .rv-installation-option__image {
    border-color: #b4cad9;
}

.rv-installation-option__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}

/* --- Content --- */
.rv-installation-option__content {
    flex: 1;
    min-width: 0;
    padding: 0;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rv-installation-option__name,
.rv-installation-option__title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0 0 2px;
    line-height: 1.35;
    letter-spacing: 0.005em;
    white-space: normal;
}

/* --- Price --- */
.rv-installation-option__price {
    display: block;
    min-height: 16px;
    line-height: 1.3;
    font-size: 14px;
    color: #5fbb2e;
    font-weight: 600;
    margin-top: 0;
}

.rv-installation-option__price-current {
    font-size: 14px;
    font-weight: 600;
    color: #5fbb2e;
}

.rv-installation-option__price-old {
    font-size: 12px;
    font-weight: 300;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.rv-installation-option__price-avail {
    display: none;
}

.rv-installation-option__price-na {
    font-size: 12px;
    font-weight: 300;
    color: #8c9aa4;
}

.rv-installation-option__price-discontinued {
    font-size: 12px;
    font-weight: 400;
    color: #c00;
}

/* --- Loading skeleton --- */
.rv-installation-option__price-loading {
    display: inline-block;
    width: 70px;
    height: 13px;
    background: linear-gradient(90deg, #eef5f9 25%, #dde9f0 50%, #eef5f9 75%);
    background-size: 200% 100%;
    animation: rvShimmer 1.4s ease infinite;
    border-radius: 2px;
    vertical-align: middle;
}

@keyframes rvShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Button --- */
.rv-installation-option__button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    background: #5fbb2e;
    border: 1px solid #55a829;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 18px;
    margin-left: auto;
    margin-right: 0;
    height: auto;
    box-sizing: border-box;
    box-shadow:
        0px -2px 0px rgba(0, 0, 0, 0.15) inset,
        0px 3px 0px rgba(255, 255, 255, 0.1) inset,
        0px 3px 6px rgba(0, 0, 0, 0.15),
        0px 1px 2px rgba(0, 0, 0, 0.1);
}

.rv-installation-option__button::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    flex-shrink: 0;
}

.rv-installation-option__button:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
    background-color: #5fbb2e;
}

.rv-installation-option__button:active {
    opacity: 0.85;
    box-shadow:
        0px -2px 0px rgba(0, 0, 0, 0.15) inset;
}

.rv-installation-option__button:visited {
    color: #fff;
}

/* ==========================================
   RESPONSIVE — tablet
   ========================================== */
@media (max-width: 768px) {
    .rv-installation-options {
        max-width: 100%;
        box-sizing: border-box;
    }

    .rv-installation-options__title {
        font-size: 14px;
        padding: 12px 14px;
    }

    .rv-installation-option {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
        height: auto;
    }

    .rv-installation-option__image {
        width: 42px;
        height: 42px;
        margin-bottom: 0;
    }

    .rv-installation-option__content {
        width: calc(100% - 58px);
        padding-right: 0;
        margin-bottom: 0;
    }

    .rv-installation-option__name,
    .rv-installation-option__title {
        font-size: 12px;
        white-space: normal;
    }

    .rv-installation-option__price {
        margin-top: 2px;
        font-size: 13px;
    }

    .rv-installation-option__price-current {
        font-size: 13px;
    }

    .rv-installation-option__button {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        margin-top: 4px;
        padding: 9px 16px;
        font-size: 11px;
        justify-content: center;
    }
}

/* ==========================================
   RESPONSIVE — small mobile
   ========================================== */
@media (max-width: 479px) {
    .rv-installation-options__title {
        font-size: 13px;
        padding: 10px 12px;
    }

    .rv-installation-option {
        padding: 10px 12px;
        gap: 10px;
    }

    .rv-installation-option__image {
        width: 40px;
        height: 40px;
    }

    .rv-installation-option__name,
    .rv-installation-option__title {
        font-size: 11px;
    }

    .rv-installation-option__price-current {
        font-size: 12px;
    }

    .rv-installation-option__button {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* Reset form margin override */
form div {
    margin-bottom: -2px !important;
}