html,
body {
    height: 100%;
    margin: 0;
    background: #333;
    color: #e4e4e4;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .phone-frame {
        width: 390px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        background: #333;
        position: relative;
        max-height: 100vh;
        overflow-y: auto;
    }

    .phone-frame header {
        position: sticky;
        top: 0;
        width: 100%;
    }

    html,
    body {
        background: #333;
    }

    .grid {
        margin-top: 20px !important;
    }

    .phone-frame {
        scrollbar-width: thin;
        scrollbar-color: #888 #222;
        /* thumb color, track color */
    }

    /* WebKit (Chrome, Safari, Edge) */
    .phone-frame::-webkit-scrollbar {
        width: 8px;
    }

    .phone-frame::-webkit-scrollbar-track {
        background: #222;
    }

    .phone-frame::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

    header {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* remove spinners in cart/quantity field */
    .cart-qty::-webkit-inner-spin-button,
    .cart-qty::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    background: #333;
    padding: 20px 10px 10px 10px;
    text-align: center;
    z-index: 100;
}

.header-selection {
    padding: 20px 10px 10px 10px !important;
    height: 120px;
}

main {
    padding-top: 80px;
}

.thumb img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.selection-page {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selection-page img {
    max-width: 100%;
    border-radius: 8px;
}

button {
    font-family: Roboto;
    font-weight: 500;
    padding: 0.8rem;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.original-note {
    font-family: Roboto;
    font-weight: 600;
    font-style: italic;
    color: #999;
    margin-top: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* forces 3 columns */
    gap: 10px;
    padding: 10px;
    background: #333;
    margin-top: 110px;
}

.grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.thumb {
    text-align: center;
}

.caption {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    margin-top: 0;
    font-size: 0.9rem;
    color: #e4e4e4;
    text-align: center;
}

.heading {
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-style: normal;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 1.5rem;
    color: #e4e4e4;
    text-align: center;
}

#selected-img {
    position: relative;
    margin-top: 120px;
    height: auto;
}

label {
    color: #e4e4e4;
}

.summary-wrapper {
    color: #e4e4e4;
    padding: 40px;
}

select#size,
input#qty {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.75rem;
    color: #e4e4e4;
    background-color: #222 !important;
    border-color: #555 !important;
    margin-bottom: 0;
}

label[for="size"],
label[for="qty"] {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #999;
    margin-bottom: -10px !important;
}

.payment {
    text-align: center;
}

/* CART */
section.cart-container {
    margin-top: 100px;
    padding: 0 20px;
}

footer {
    margin-top: auto;
}

footer p {
    font-size: .75rem;
    font-weight: 300;
    color: #e4e4e4;
    padding: 10px 20px;
}

.cart-details p {
    color: #e4e4e4;
    margin-bottom: 4px;
}

.cart-details h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e4e4e4;
    margin-bottom: 5px;
    margin-top: 10px;
}

input,
select,
textarea {
    background-color: #222 !important;
    color: #e4e4e4 !important;
    border-color: #555 !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #888 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.qty-remove-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-qty {
    min-width: 3.5rem;
    padding-right: 1.5em;
    text-align: center;
}

.remove-item {
    flex: 1;
}

.cart-thumb {
    width: 40%;
    height: auto;
    padding: 3px;
    border: 1px solid #555;
    margin-top: 10px;
}

.cart-button {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: rgb(202, 0, 0);
    border: none;
    border-radius: 2px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button img {
    position: relative;
    width: 70%;
    height: 70%;
    bottom: -5px;
    filter: invert(1);
    /* makes white if SVG is black */
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.cart-qty-badge {
    position: absolute;
    top: 5px;
    right: 12px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
}

.button-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.roco-button {
    padding: 0.75rem;
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    /* background-color: #e53935; */
    color: #fff;
    cursor: pointer;
}

.roco-button:hover {
    background-color: #d32f2f;
}

.full-width {
    width: 100%;
}

.disabled-button {
    background-color: #555 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.cart-qty-badge {
    transition: transform 0.3s ease;
}

.cart-qty-badge.bump {
    transform: scale(1.3);
}

.cart-wrapper {
    padding-left: 20px;
    padding-right: 20px;
}

.cart-item {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;

}

.cart-summary>h4 {
    color: #e4e4e4;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    background-color: #444;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 999;
}

#backToTop.show {
    display: block;
}

.close-button {
    position: absolute;
    display: block;
    /* float: right; */
    top: 20px;
    right: 20px;
}

img.close-button {
    transition: filter 0.2s ease, opacity 0.2s ease;
    filter: grayscale(100%) brightness(90%);
    opacity: 0.8;
}

img.close-button:hover {
    filter: grayscale(0%) brightness(120%);
    opacity: 1;
}