.pf2e.item.sheet.spell,
.pf2e.item.sheet.equipment,
.pf2e.item.sheet.consumable {
    fieldset.linked {
        .drop-zone {
            align-items: center;
            border: 1px solid var(--color-border-light-tertiary);
            display: flex;
            gap: 0.25rem;
            max-width: fit-content;
            padding: 0 4px 0 0;

            &.empty {
                font-weight: normal;
                min-width: 12rem;
                padding: 4px;

                .name {
                    font-style: italic;
                    flex: 1;
                    text-align: center;
                }
            }

            picture,
            img {
                border: 1px solid var(--color-border-dark);
                border-radius: 2px;
                box-sizing: border-box;
                display: block;
                float: left;
                height: 24px;
                width: 24px;
            }

            a {
                &.content-link {
                    align-items: center;
                    border: none;
                    border-right: 1px solid var(--color-border-light-2);
                    display: flex;
                    gap: 0.5em;
                    min-width: 9rem;
                    padding: 4px;
                }

                &.delete {
                    display: flex;
                }
            }
        }
    }
}

.application.pf2e-toolbelt-actionable-generate-cast {
    min-width: 500px;

    hr {
        background: none;
        border-bottom: 1px solid var(--color-border);
        margin: 0.5em 0;

        &:first-child {
            display: none;
        }
    }

    .spell {
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;

        .header {
            display: flex;
            align-items: center;
            gap: 0.3em;
        }

        img {
            height: 2rem;
            border-radius: 3px;
            border: 1px solid #c1ae48;
        }

        input {
            &[type="text"],
            &[type="number"] {
                padding-inline: 0.3rem;
                height: 2em;
            }

            &[type="number"] {
                text-align: center;
                width: 2.1rem;
            }
        }

        select {
            padding-inline: 0.3rem;
            width: fit-content;
            height: 2em;
        }

        span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }

        .recharge {
            display: flex;
            align-items: center;
        }

        .uses {
            display: flex;
            align-items: center;
            gap: 0.3em;
        }

        .options {
            display: flex;
            align-items: center;
            gap: 0.5em;
            justify-content: flex-end;
        }

        .predicate {
            display: flex;
            align-items: center;
            gap: 0.3em;
        }
    }

    .empty {
        text-align: center;
        font-size: 1.1em;
        opacity: 0.6;
        border: 2px dotted var(--color-border);
        padding: 0.5em 1em;
    }
}

.sheet.item.physical {
    .pf2e-toolbelt-actionable-generate-cast {
        line-height: 0;
        height: 1.75em;
        flex: 0 0 fit-content;
    }
}

.sheet.actor {
    button.cast-spell.unequipped {
        background: var(--color-disabled);
        border-color: transparent;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
        cursor: not-allowed;
        height: 2em;
        transition: none;
    }

    a.actionable-use {
        &.disabled {
            pointer-events: none;
            color: rgba(0, 0, 0, 0.5);
        }
    }
}
