﻿.param-card {
    background: #f7f8fa;
    border: 1px solid #e6e9ee;
    padding: 14px;
}

.param-item {
    border-radius: 10px;
    transition: box-shadow .15s ease, border-color .15s ease;
}

    .param-item:hover {
        border-color: #d8dee6;
        box-shadow: 0 1px 10px rgba(0,0,0,.04);
    }

.param-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.param-label {
    font-weight: 600;
    color: #17181a;
}

.param-type {
    font-size: .75rem;
    color: #445;
    background: #eef3f9;
    border: 1px solid #dbe7f5;
    border-radius: 999px;
    padding: .2rem .5rem;
}

.param-options {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
}

.param-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #f3f5f8;
    border: 1px solid #e3e9f0;
    border-radius: 999px;
    padding: .35rem .65rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

    .param-chip:hover {
        background: #eef2f7;
        border-color: #d7e0ea;
    }

.param-input {
    background: #fff;
    border-color: #e6ebf1;
}

    .param-input:focus {
        border-color: #1fa2f1;
        box-shadow: 0 0 0 .15rem rgba(31,162,241,.15);
    }

.param-item + .param-item {
    margin-top: .75rem;
}

@media (max-width: 576px) {
    .param-card {
        padding: 10px !important;
    }

    .param-item {
        padding: 8px !important;
        margin-bottom: 0.5rem;
    }

    .param-head {
        margin-bottom: 0.4rem;
    }

    .param-label {
        font-size: 0.8rem !important;
        font-weight: 600;
    }

    .param-options {
        gap: 0.3rem 0.4rem !important;
    }

    .param-chip {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }

        .param-chip span {
            font-size: 0.75rem;
            line-height: 1.2;
        }

        .param-chip .form-check-input {
            width: 1rem !important;
            height: 1rem !important;
            margin: 0 !important;
        }

    .param-input {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }

        .param-input::placeholder {
            font-size: 0.75rem;
        }

        .param-input[rows] {
            min-height: 80px;
            font-size: 0.8rem;
        }

    .param-item + .param-item {
        margin-top: 0.5rem !important;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
}

.param-accordion {
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    background: #f7f8fa;
    overflow: hidden;
}

.param-header {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

    .param-header:hover {
        background-color: #eef2f7;
    }

.param-content {
    background: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

    .param-content.collapsed {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
