:root {
    --backpack-grey: #666;
    --backpack-light-grey: #6D6D6D;
    --backpack-light-blue: #e1eff8;
    --backpack-blue: #84adff;
}

.package-status {
    display: block;
    position: absolute;
    bottom: 0;
    padding: 1rem 1rem 0.5rem 1rem;
    color: var(--backpack-grey);
    font-size: 0.9rem;

    span {
        margin: 0 0.5rem;
    }
}

.package-entry {
    position: relative;
    margin: 0;
    padding: 0;
    background-color: white;
    border-top: 1px solid #DDD;

    .header {
        display: flex;
        align-items: center;
        gap: 1rem;
        height: 2.5rem;
        padding: 0.5rem 1rem;
    }

    &:is(.references, .livecopies) .header {
        padding-left: 2rem;
    }

    &.reference-type .header {
        padding-left: 3rem;
    }

    &.secondary {
        padding-left: 4rem;

        & .icon .coral3-Icon {
            opacity: 0.6;
        }
    }

    &.primary .icon .coral3-Icon--sizeM {
        font-size: 1.9rem;
    }

    &.foundation-selections-item {
        background-color: var(--backpack-light-blue);
    }

    &.primary[data-tree-state="collapsed"] :is(.references, .livecopies),
    &.references[data-tree-state="collapsed"] .reference-type,
    &:is(.reference-type, .livecopies)[data-tree-state="collapsed"] .secondary {
        display: none;
    }
}

.toggler {
    width: 0.7rem;
    cursor: pointer;

    coral-icon {
        transition: transform 0.25s ease-in-out;
    }

    [data-tree-state="collapsed"] & coral-icon {
        transform: rotate(-90deg);
    }
}

.icon {
    width: 2.5rem;
    text-align: center;
    transform: translateY(0.2rem);
}

.path {
    display: block;
    margin: 0 0 0.25rem 0;
    color: var(--backpack-grey);
    font-weight: 600;

    .package-entry.primary & {
        font-size: 1.0rem;
    }

    .package-entry.secondary & {
        color: var(--backpack-light-grey);
        font-size: 0.9rem;
    }
}

.parents {
    color: var(--backpack-grey);
}

.children {
    color: var(--backpack-blue);
    font-weight: 600;
    font-size: 0.8rem;
}

.split-start {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.split-end.foundation-toggleable-control {
    padding: 0.625rem 0.2rem;
    margin-left: 2px;
    min-width: 1.375rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.selection-action {
    display: flex;
    align-items: center;

    coral-button-label {
        display: inline-block;
        max-width: 4rem;
        text-align: left;
        text-wrap: wrap;
    }
}

.foundation-collection-container.foundation-layout-util-maximized {
    bottom: 2.5rem;
}

.foundation-collection-selectall {
    display: none;
}

#js-backpack-logs-dialog .coral3-Dialog-content {
    width: 700px;
    height: 500px;
    overflow: scroll;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: auto;
}

#install-submit-btn {
    margin-top: 0;
}

#js-backpack-alert {
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.granite-title {
    display: none;
}

a.disabled {
    pointer-events: none;
    cursor: default;
}

._coral-Button {
    max-height: 42px;
    min-width: max-content;

    &.js-backpack-live-copies {
        min-width: 110px;
    }
}

.foundation-layout-panel:has(.js-backpack-package-list) {
    min-width: max-content;
}