.download-link a {
    display: inline-block;
    text-decoration: none !important;
    margin: 0.2em 0.5em;
}

.download-link a .order {
    text-decoration: none;
    opacity: 0.75;
    font-size: 0.75em;
    vertical-align: middle;
    margin-inline-end: 0.2rem;
}

.download-link a .name {
    font-weight: bold;
    text-decoration: dotted underline;
}

.download-link a:not(:hover) .name {
    text-decoration: underline;
}

.download-battery {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    gap: 0.2;
}

.download-battery .cell {
    width: 1.2em;
    height: 1em;
    border: 2px solid black;
    background-color: currentColor;

    border-radius: 0.15rem;
}
.download-battery .cell:not(:first-child) {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-inline-start-width: 1px;
}
.download-battery .cell:not(:last-child) {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-inline-end-width: 1px;
}

.download-battery .cell:not(.charged) {
    background-color: lightgray;
}
.download-battery::after {
    content: '';
    display: inline-block;
    width: 0.15em;
    height: 0.6em;
    box-sizing: border-box;
    background-color: black;

    border-radius: 0.1rem;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.alxs-library {
    box-sizing: border-box;
}
.alxs-library * {
    box-sizing: inherit;
}

.alxs-library .items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25ch, 1fr));

    gap: 1rem;
}

.tile[data-entity='product'] {
    background-color: #fbfbfb;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.tile[data-entity='product'] .content {
    display: flex;
    flex-direction: column;

    text-decoration: none;
}

.tile[data-entity='product'] img {
    background-color: #ddd;
    width: 100%;
    height: auto;

    border-radius: 0;
}

.tile[data-entity='product'] :is(h1) {
    text-align: center;

    font-size: 1rem;
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-primary-font-family), Ubuntu;
    font-weight: var(--e-global-typography-primary-font-weight);

    margin: 1.618rem 0 0.5rem;
}

.tile[data-entity='product'] footer {
    margin-block-end: 1rem;
    text-align: center;
}

.tile[data-entity='product'] footer a {
    font-size: 1.25rem;
    font-weight: bold;
}

.tile[data-entity="product"][data-format="e-kniha"] {
    display: flex;
    flex-direction: column;
}

.tile[data-entity="product"][data-format="e-kniha"] footer {
    margin-block-start: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}
.tile[data-entity="product"][data-format="e-kniha"] footer strong {
    width: 100%;
}

.tile[data-entity="product"][data-format="e-kniha"] footer a {
    padding: 0.1rem 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;

    border: 1px dashed currentColor;
}
.tile[data-entity="product"][data-format="e-kniha"] footer a .name {
    line-height: 1.5;
}
