/* The "Cenówki" library (Pages/PriceTags.razor, Shared/PriceTags/). Global, not .razor.css: a new
   component's scoped styles do not apply under hot reload. */

.price-tags-add-button {
    background: #334194;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.price-tags-add-button:hover {
    background: #28337a;
}

/* The tabs look as on "Sieci i sklepy" (active-tab, visonet-badge); a tab is a button only so the
   keyboard reaches it, so the button's own look is taken off. */
.price-tags-tab {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.price-tags-tab:not(.active-tab) {
    background: transparent;
}

.price-tags-sortable {
    cursor: pointer;
}

.price-tags-row {
    cursor: pointer;
}

.price-tag-thumb-head {
    width: 112px;
}

.price-tag-thumb-cell {
    width: 112px;
}

/* 96 × 64, the tag drawn whole ("contain") over a checkerboard, so transparent parts show as such. */
.price-tag-thumb {
    width: 96px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
        linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
        linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.price-tag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* No thumbnail yet: a grey tile with the tag's size. */
.price-tag-thumb.is-empty {
    background: #e9ecef;
}

.price-tag-thumb-size {
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
}
