/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~ Copyright 2021 Adobe
 ~
 ~ Licensed under the Apache License, Version 2.0 (the "License");
 ~ you may not use this file except in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~     http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing, software
 ~ distributed under the License is distributed on an "AS IS" BASIS,
 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ~ See the License for the specific language governing permissions and
 ~ limitations under the License.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.root {
    position: relative;
    align-content: start;
    display: grid;
    grid-gap: 0 1rem;
    grid-template-areas:
        'image name'
        'image options'
        'image quantity';
    grid-template-columns: 80px 1fr;
    grid-template-rows: min-content minmax(54px, 1fr) min-content;
}

.image {
    background-color: rgb(var(--venia-grey));
    border: solid 1px rgb(var(--venia-border));
    border-radius: 2px;
    grid-area: image;
    max-width: 80px;
    min-height: 100px;
}

.name {
    font-size: 0.875rem;
    font-weight: 600;
    grid-area: name;
    padding-top: 0.125rem;
}

.quantityRow {
    align-items: center;
    width: 100%;
}

.quantity {
    align-items: flex-start;
    display: flex;
    grid-column: 2 / span 1;
    font-size: 13px;
    align-self: end;
}

.quantityOperator {
    align-items: center;
    color: rgb(var(--venia-text-alt));
    display: inline-flex;
    margin: 0 0.375rem;
}

.price {
    align-items: center;
    display: inline-flex;
}

.rowTotalRow {
    align-items: center;
    width: 100%;
    text-align: right;
}

.rowTotal {
    align-items: center;
    display: inline-flex;
    float: right;
}

.bundleOptions {
    padding: 3px 0 7px;
}

.bundleOptionTitle {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 7px 0 3px;
}

.bundleOptionValue {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.mask {
    position: absolute;
    left: -24px;
    right: -24px;
    top: -7px;
    bottom: -7px;
    background-color: rgb(var(--venia-grey));
    opacity: 0.5;
    z-index: 2;
}
