.amai-staff-purchases {
    --amai-merch-color-1: #aa1c37;
    --amai-merch-color-2: #e25050;
    --amai-merch-color-3: #841529;
    --amai-merch-color-4: #2a000033;
    position: relative;
    background-color: var(--amai-merch-color-4);
    padding: 1rem;
}

.amai-staff-purchases > :where(div, button, form){
    isolation: isolate;
}

.amai-staff-identity {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    gap: 1rem;
    background-color: var(--amai-merch-color-4);
}

.amai-staff-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.amai-staff-products~div {
    display: flex;
    gap: 0.2rem;
}

.amai-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 3px solid var(--amai-merch-color-1);
    border-radius: 5px;
    overflow: hidden;
}

.amai-product[data-required="1"] {
    order: -1!important;
}

.amai-product-name,
.amai-product-variation {
    width: 100%;
    height: 2rem;
    text-align: center;
}

.amai-product-variation {
    border: 1px solid var(--amai-merch-color-2);
    cursor: pointer;
}

.amai-product div:last-child {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    background-color: var(--amai-merch-color-4);
}

.amai-product-price {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--amai-merch-color-3);
}

.amai-product-toggle {
    width: 3rem;
    height: 3rem;
    background: var(--amai-merch-color-1);
    border-radius: 0;
}

.amai-staff-identity button, .amai-staff-purchase {
    display: block;
    margin-inline: auto;
    height: 3rem;
    background: var(--amai-merch-color-1);
    border-radius: 5px;
}

.amai-staff-purchase {
    margin-top: 1rem;
}

.amai-product-toggle:hover,
.amai-staff-purchase:hover,
.amai-staff-identity button:hover {
    background: var(--amai-merch-color-2);
}

.amai-staff-purchases button:disabled {
    background: var(--amai-merch-color-1);
    filter:sepia(0.5);
    cursor: default;
}

.amai-staff-purchases .amai-staff-purchase:disabled:after {
    all: inherit;
    content: "יש מצב שלא סימנתם מידה של חולצת סגל? או מוצרים בכלל?";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    filter: unset;
    margin: unset;
    white-space: nowrap;
}

.amai-staff-identity :where(label, input) {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 3rem;
}

.amai-product-image img {
    width: 100%;
}

.amai-staff-purchases > div:last-of-type {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    background-color: var(--amai-merch-color-4);
}