#cart-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0 15rem 0;
    margin: 0 0.25rem;
}
#cart-page h2 {
    font-size: 1.2rem;
    text-align: center;
}

html:not([data-step="checkout"]) #go-to-delivery,
html:not([data-step="delivery"]) #go-to-payment-method,
html:not([data-step="payment"]) #go-to-pay,
html:not([data-step="checkout"]) #checkout,
html:not([data-step="delivery"]) #delivery,
html:not([data-step="payment"]) #payment {
    display: none !important;
}


#cart-summary {
    width: 100%;
    min-width: calc(320px - 2rem);
}
#summary {
    border: 1px solid #eee;
    background-color: #fefefe;
    padding: 1rem 0.25rem;
    border-radius: 0.2rem;
}
#summary ul {
    margin: 1rem 0;
    padding: 0;
}
#summary li {
    list-style-type: none;
    margin: 0;
    padding: 0.25rem 0;
}
#summary li label {
    display: inline-block;
    width: calc(100% - 7rem);
    vertical-align: top;
    white-space: nowrap;
}
#summary li.use-line {
    position: relative;
}
#summary li.use-line .label {
    padding-left: 1rem;
    font-style: italic;
}
.i.delete-use {
    position: absolute;
    z-index: 2;
    left: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    --icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTYgMTljMCAxLjEuOSAyIDIgMmg4YzEuMSAwIDItLjkgMi0yVjdINnYxMnptMi40Ni03LjEybDEuNDEtMS40MUwxMiAxMi41OWwyLjEyLTIuMTJsMS40MSAxLjQxTDEzLjQxIDE0bDIuMTIgMi4xMmwtMS40MSAxLjQxTDEyIDE1LjQxbC0yLjEyIDIuMTJsLTEuNDEtMS40MUwxMC41OSAxNGwtMi4xMy0yLjEyek0xNS41IDRsLTEtMWgtNWwtMSAxSDV2MmgxNFY0eiIvPjwvc3ZnPg==);
}


#summary li span {
    display: inline-block;
    width: 7rem;
    white-space: nowrap;
    text-align: right;
}

#summary a {
    cursor: pointer;
}

#summary #vat-line {
    color: #aaa;
}

#summary .amount {
    color: var(--primary-bg-color);
    font-style: italic;
}


#apply li:not(.fill) .hide-not-fill,
#apply li.fill .hide-fill {
    display: none;
}
#apply input {
    padding: 0.25rem 0.5rem;
    width: 100%;
    text-transform: uppercase;
}
#apply input::placeholder {
    text-transform: none;
}
#apply input:focus {
    border: 1px solid var(--primary-bg-color);
}

#total-order-line, #total-payment-line {
    font-weight: bold;
}

#delivery-message {
    height: 4rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.2rem;
    font-size: 0.9rem;
}

.button.next {
    width: 100%;
    text-align: center;
    font-weight: bold;
}


#cart-contact {
    text-align: center;
    margin-top: 2rem;
    background: #f1f1f1;
    padding: 0.25rem;
    border-radius: 0.2rem;
}
#cart-contact p {
    text-align: center;
}

#cart-contact .i {
    width: 1.5rem;
    height: 1.5rem;
}
#cart-contact a {
    margin-left: 1rem;
    vertical-align: sub;
}

#payment {
  width: 100%;
}


@media (min-width: 768px) {
    #cart-page {
        flex-direction: row;
        margin: 0 1rem;
    }
    #summary {
        padding: 1rem 1rem;
    }
    #cart-summary {
        margin-left: 1rem;
        position: sticky;
        top: var(--header-height);
    }
    #cart-page h2  {
         text-align: left;
         padding: 0.25rem 1rem;
    }
    #cart-contact h2 {
         text-align: center !important;
    }
}

@media (min-width: 1024px) {
#cart-summary {
  width: 50%;
    }
}
