#cart {
    padding: 0.5rem;
}

#cart h2,
#cart h3,
#cart h4,
#cart p,
#cart ol,
#area {
    margin: 0;
}

form button,
form fieldset,
#cart ol,
#area,
#area legend {
    padding: 0;
}

#note {
    padding: 1rem;
}

#area,
#area legend {
    margin: 1rem 0;
}

form fieldset {
    margin: 0.25rem 0;
}

#cart[hidden],
#shipping[hidden] {
    display: none;
}

#cart,
#cart section,
#cart ol li,
#area {
    display: flex;
}

#cart,
#cart section,
#cart ol li,
#area {
    gap: 1rem;
}

#cart,
#cart section,
#area {
    flex-flow: wrap;
    justify-content: space-between;
}

#cart,
#cart section {
    align-items: flex-start;
}

#area {
    font-size: 111%;
}

#cart ol li b {
    word-break: keep-all;
}

#cart ol li b::before {
    content: "¥ ";
}

#cart section,
#cart ol,
#shipping fieldset,
#shipping textarea,
#area,
#area legend {
    width: 100%;
}

#cart input {
    max-width: 100%;
}

#cart ol li {
    border-bottom: 0.1rem solid;
    padding: 0.5rem;
    margin: 0.25rem 0;
    align-items: end;
    list-style: disc inside;
}

#cart ol li img {
    height: 4.5rem;
}

form fieldset,
form button {
    border: none;
    outline: none;
    background: transparent;
}

form input,
form textarea {
    color: #000;
    font-family: inherit;
}

form input {
    display: inline-block;
    margin: 0.25rem 0;
}

form textarea {
    font-size: 20px;
    padding: 0.25rem;
    margin: 0.25rem 0 0;
}

#cart h3 {
    font-size: 175%;
}

#cart ol li,
#cart ol li p,
#cart h3 strong,
#cart h3 button,
#cart h4,
#cart h4 button {
    font-size: 125%;
}

#cart u,
#you b,
#address b,
form label small {
    font-size: 75%;
}

#cart h2 small,
#cart h3 sup {
    font-size: 55%;
}

#cart u,
#you b,
#address b,
#you strong,
#cart h2 small,
#cart h3 sup,
#cart h3 button,
form label {
    font-weight: 555;
}

#cart u,
#you b,
#address b,
#cart h3 strong,
form label small {
    font-weight: 400;
}

#address u {
    font-size: 70%;
    display: inline-block;
    margin-bottom: 0.5rem;
}

#cart ol li button,
#cart ol li strong {
    margin-left: auto;
}

#note {
    border: solid 0.1rem;
    border-radius: 2rem;
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
    place-self: end center;
}

#confirm {
    text-align: right;
}

#yourID {
    border: solid 0.1rem #000;
    border-radius: 50%;
    font-size: 90%;
    text-decoration: none;
    padding: 0 0.5rem;
}

@media screen and (max-width: 750px) {
    #cart p {
        width: 100%;
    }
}

@media screen and (max-width: 550px) {
    #cart ol li img {
        height: 12.5vw;
    }
}