.fixe-fabric-modal-dialog {
    width: 92%;
    max-width: 1100px;
}

.fixe-step-hint {
    margin: 0 0 14px;
    color: #666;
    font-size: 14px;
}

.fixe-family-list {
    display: block;
}

.fixe-family-row {
    width: 100%;
    padding: 0;
    margin-bottom: 16px;
}

.fixe-family-row:last-child {
    margin-bottom: 0;
}

.fixe-modal1 #fixeFamilyView .fixe-family-row-inner,
.fixe-family-list .fixe-family-row-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 20px;
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.fixe-modal1 #fixeFamilyView .fixe-family-row-inner:hover,
.fixe-modal1 #fixeFamilyView .fixe-family-row-inner:focus,
.fixe-family-list .fixe-family-row-inner:hover,
.fixe-family-list .fixe-family-row-inner:focus {
    border-color: #ffab29;
    color: inherit;
    text-decoration: none;
}

.fixe-family-card {
    flex: 0 0 180px;
    width: 180px;
    max-width: 180px;
}

.fixe-family-list .fixe-family-card .fabric-modal-box {
    margin-bottom: 0 !important;
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    min-height: 0;
}

.fixe-family-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.fixe-family-info-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #17121f !important;
    line-height: 1.3;
}

.fixe-family-description {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #555 !important;
}

.fixe-family-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #35b13a !important;
    font-weight: 600;
    margin-top: auto;
}

.fixe-family-meta span {
    color: #35b13a !important;
}

.fixe-family-grid,
.fixe-fabric-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.fixe-family-tile,
.fixe-fabric-tile {
    width: 25%;
    padding: 0 8px 16px;
}

.fixe-family-list .fixe-family-tile {
    width: 100%;
    padding: 0;
}

.fixe-family-list .fixe-family-card .fabric-modal-box img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 8px;
    display: block;
}

.fixe-family-tile:not(.fixe-family-row) .fabric-modal-box,
.fixe-fabric-tile .fabric-modal-box {
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    min-height: 150px;
    transition: border-color 0.15s ease;
}

.fixe-family-tile:not(.fixe-family-row) .fabric-modal-box:hover,
.fixe-fabric-tile .fabric-modal-box:hover,
.fixe-family-tile:not(.fixe-family-row) .fabric-modal-box.selected,
.fixe-fabric-tile .fabric-modal-box.selected {
    border-color: #ffab29;
}

.fixe-family-list .fixe-family-card .fabric-modal-box img,
.fixe-family-tile:not(.fixe-family-row) .fabric-modal-box img,
.fixe-fabric-tile .fabric-modal-box img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 8px;
}

.fixe-family-tile h5,
.fixe-family-tile h6,
.fixe-fabric-tile h5,
.fixe-fabric-tile h6 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.3;
}

.fixe-family-tile h5,
.fixe-fabric-tile h5 {
    font-size: 14px;
    margin: 0 0 4px;
}

.fixe-family-tile h6,
.fixe-fabric-tile h6 {
    font-size: 11px;
    color: #777;
    margin: 0;
}

.fixe-color-actions {
    margin-top: 8px;
}

.fixe-fabric-detail {
    margin-top: 4px;
}

.fixe-preview-stage {
    position: relative;
    margin-bottom: 14px;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px;
}

.fixe-fabric-detail .fixe-preview-main {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}

.fixe-open-gallery-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    opacity: 0.92;
}

.fixe-room-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.fixe-room-thumb {
    width: calc(20% - 8px);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px;
    background: #fafafa;
}

.fixe-room-thumb img {
    width: 100%;
    height: 88px;
    object-fit: cover;
}

.fixe-room-thumb.active,
.fixe-room-thumb:hover {
    border-color: #ffab29;
}

.fixe-room-thumb span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: #666;
}

.fixe-empty-group {
    padding: 24px;
    text-align: center;
    color: #888;
}

.fixe-lightgallery {
    display: none;
}

/* 3-step textile wizard (AO10 test) */
.fixe-wizard-step {
    margin-bottom: 32px;
}

.fixe-wizard-step-label {
    margin: 0 0 14px;
}

.fixe-wizard-step .fixe-wizard-option {
    margin-bottom: 10px;
}

.fixe-wizard-step .fixe-wizard-option:last-child {
    margin-bottom: 0;
}

.fixe-wizard-fabric-preview {
    margin-top: 8px;
}

.fixe-wizard-empty {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.paramFixeTextileWizard .screenduk-2 {
    background-size: cover;
    background-position: center;
    min-height: 100px;
}

/* lightGallery over Bootstrap modal */
.lg-outer,
.lg-backdrop {
    z-index: 2000 !important;
}

@media (max-width: 991px) {
    .fixe-family-tile:not(.fixe-family-row),
    .fixe-fabric-tile {
        width: 33.3333%;
    }
    .fixe-room-thumb {
        width: calc(33.3333% - 8px);
    }
    .fixe-fabric-detail .fixe-preview-main {
        max-height: 380px;
    }
}

@media (max-width: 767px) {
    .fixe-fabric-modal-dialog {
        width: auto;
        margin: 0;
        max-width: none;
        height: 100%;
    }

    body.fixe-modal-open-mobile .fixe-modal-wizard {
        padding: 0 !important;
    }

    body.fixe-modal-open-mobile .fixe-modal-wizard .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: none;
        min-height: 100%;
    }

    body.fixe-modal-open-mobile .fixe-modal-wizard .modal-content {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
        display: flex;
        flex-direction: column;
    }

    body.fixe-modal-open-mobile .fixe-modal-wizard .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 24px;
    }

    body.fixe-modal-open-mobile .fixe-modal-wizard .modal-header,
    body.fixe-modal-open-mobile .fixe-modal-wizard .modal-footer {
        flex-shrink: 0;
    }

    .fixe-modal-action-row .col-xs-6 {
        width: 100%;
        float: none;
        text-align: left !important;
        margin-bottom: 8px;
    }

    .fixe-open-gallery-btn {
        position: static;
        display: block;
        width: 100%;
        margin-top: 8px;
    }

    .fixe-modal1 #fixeFamilyView .fixe-family-row-inner,
    .fixe-family-list .fixe-family-row-inner {
        flex-direction: column !important;
        gap: 12px;
    }

    .fixe-family-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .fixe-family-list .fixe-family-card .fabric-modal-box img {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .fixe-family-tile:not(.fixe-family-row),
    .fixe-fabric-tile {
        width: 50%;
    }
    .fixe-room-thumb {
        width: calc(50% - 8px);
    }
    .fixe-fabric-detail .fixe-preview-main {
        max-height: 280px;
    }
}
