/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~ 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 {
}

.heading {
    background-color: white;
    font-size: 0.875rem;
    font-weight: 600;
    grid-column-end: span 2;
    line-height: 1rem;
    padding: 1.5rem 0 1.25rem;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.body {
    align-content: start;
    animation-duration: 224ms;
    animation-iteration-count: 1;
    animation-name: enter;
    background-color: white;
    bottom: 5rem;
    box-shadow: 0 -1px rgb(var(--venia-border));
    display: grid;
    grid-gap: 0.5rem;
    left: 0;
    max-height: calc(100vh - 8.5rem);
    overflow: auto;
    padding: 0 1.5rem;
    right: 0;
}

.footer {
    align-items: center;
    background-color: white;
    display: grid;
    grid-auto-columns: min-content;
    grid-auto-flow: column;
    grid-gap: 0.75rem;
    height: 5rem;
    justify-content: center;
    justify-items: center;
    position: relative;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* fields */

.button {
    text-transform: capitalize;
}

.textInput {
    background: white;
    border: 1px solid rgb(var(--venia-text-alt));
    border-radius: 2px;
    color: rgb(var(--venia-text));
    display: inline-flex;
    flex: 0 0 100%;
    font-size: 0.9375rem;
    height: 2.25rem;
    padding: calc(0.375rem - 1px) calc(0.625rem - 1px);
    width: 100%;
}

.textInput:focus {
    border-color: rgb(var(--venia-text));
    outline: 0 none;
}

.city,
.firstname,
.lastname,
.postcode,
.region_code,
.telephone {
    grid-column-end: span 1;
}

.address_select,
.email,
.street0 {
    grid-column-end: span 2;
}

.default_shipping,
.save_in_address_book {
    grid-column-end: span 2;
    text-align: left;
}

.validation {
    grid-column-end: span 2;
    line-height: normal;
}

.error {
    color: rgb(var(--venia-error));
    grid-column-end: span 2;
    line-height: normal;
}
