#edit-feature-modal {
    transition: 0.1s;
}

.port-input {
    max-width: 60px;
    text-align: center;
}

.textbox-wrapper:has(input.path-input) {
    width: 100%;
    max-width: 400px;
}
/*
.feature-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 28px;
    text-align: center;
    background-color: whitesmoke;
    border: 1px solid #ccc;
    overflow-y: scroll;
    max-height: 600px;
    min-height: 250px;
    border-radius: 4px;
} */

.feature-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
    grid-auto-rows: 1fr;
    gap: 1rem;
    overflow-y: auto;
    /* min-height: 560px; */
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    background-color: whitesmoke;
    border: 1px solid #ccc;
    justify-items: start;
    align-items: stretch;
}

.wide-feature-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
    width: calc(100% - 160px);
}

.feature-settings {
    overflow-y: scroll;
    background-color: whitesmoke;
    border: 1px solid #ccc;
    padding: 0 20px 20px 20px;
    border-radius: 4px;
}

.modal .feature-container {
    /* min-height: 600px; */
    padding: 20px;
    /* padding-left: 80px; */
}

body.modal-open {
    overflow: hidden;
}

.feature-tile {
    /* width: 200px; */
    width: 100%;
    max-width: 450px;
    max-height: 320px;
    /* height: 100%; */
}

.wide-feature-container .feature-tile {
    width: 100%;
    /* min-height: 300px; */
}

#available-features-panel {
    max-height: 480px;
    padding: 10px;
    gap: 8px;
}

.icon-frame {
    padding-top: 18px;
}

.feature-label {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.feature-tagline {
    position: relative;
    display: block;
    width: 100%;
    min-height: 102px;
    padding: 20px 10px 10px 10px;
    /* line-height: 50px; */
}

.feature-label span {
    width: 100%;
}

.feature-tile:not(:active) .feature-label {
    background-color: whitesmoke;
}

.feature-tile img {
    height: 40px;
    margin: 0 auto;
}

.feature-tile hr {
    width: calc(100% - 24px);
    margin: 0 auto 20px auto;
}

.add-feature {
    background: #2ecc71;
    color: white;
    border: none;
    font-size: 1.5em;
    /* border: 1px solid #fff; */
}

#advanced-settings-toggle {
    max-width: 500px;
    scroll-margin-top: 20px;
}

.feature-tag-container {
    display: flex;
    gap: 4px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 6px;
    vertical-align: bottom;
    flex-wrap: wrap;
    /* Allows wrapping to a new row */
    overflow-y: auto;
    /* Enables vertical scrolling if needed */
    /* max-height: 400px; */
}

.feature-tag {
    border: 1px solid #ccc;
    padding: 2px 4px;
    background-color: whitesmoke;
    border-radius: 4px 10px 4px 10px;
    font-size: small;
    font-weight: normal;
}

button:active .feature-tag {
    background-color: transparent;
}

button:not(:active) .highlighted {
    color: #2ecc71;
}

.active-tag {
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

button:active .feature-tag {
    color: #fff;
    border: 1px solid #fff;
}

.feature-filter-panel {
    width: 120px;
    padding: 10px 10px;
    border: 1px solid #ccc;
    background-color: whitesmoke;
    border-radius: 4px;
}

#feature-tag-filter-panel {
    display: flexbox;
    gap: 4px;
    flex-wrap: wrap;
    overflow-y: auto;
    overflow-x: hidden;
}

#feature-tag-filter-panel button {
    width: 100%;
    margin-bottom: 4px;
    height: 24px;

    /* min-width: 100px; */
}

#feature-tag-filter-panel button .push-top {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.tag-filter-active.checked {
    color: white !important;
}

@media (min-width: 601px) {
  .feature-filter-wrapper {
    width: 160px !important;
  }
}
@media (max-width: 600px) {
  .feature-filter-panel {
    width: 100% !important;
    float: none !important;
  }
}