.cart-items .card {
    padding: 10px;
    margin-bottom: 15px;
}
.cart-items .card h4 {
    /*margin-top: 0;*/
}
.cart-items .card h4 a {
    text-decoration: none;
}
.cart-items .card img {
    max-height: 100px;
    width: auto;
}
.cart-items .card .col-amount {
    padding-right: 0;
    padding-left: 0;
    display: flex;
    justify-content: center;
}
.cart-items .card small {
    display: block;
    opacity: 0.65;
}
.cart-items .card .item-old-price {
    margin-right: 5px;
    font-size: 0.9em;
    position: relative;
}
.cart-items .card .item-old-price:before {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    width: 100%;
    background-color: #000;
}



label[for="amount"] {
    font-size: 1.5em;
}

section#checkout {
    margin: 20px 0 0 0;
}

section#checkout input,
section#checkout select,
section#checkout button.input,
section#checkout textarea.input,
section#checkout label.input,
section#checkout .select2.select2-container {
    background-color: #f7f7f7;
    border: none;
    border-radius: 5px;
    font-size: 1.15em;
    color: #777;
    display: inline-block;
    max-width: 100%;
    /*height: 50px;*/
    min-height: 50px;
    line-height: 35px;
    margin: 0 0 1rem 0;
    margin-bottom: 1rem;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    white-space: normal;
    cursor: pointer;
    -moz-transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}
section#checkout label {
    font-size: 1em;
    color: #999;
    font-weight: 400;
    display: block;
}
section#checkout input[id^="amount-"] {
    width: 32px;
    text-align: center;
    padding: 4px;
}
section#checkout label[for^="amount-"] {
    padding: 8px 8px;
}
section#checkout input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    text-overflow: '';
}
section#checkout input[type="number"]::-webkit-outer-spin-button,
section#checkout input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
section#checkout input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}
section#checkout input:hover,
section#checkout input:focus,
section#checkout select:hover,
section#checkout select:focus,
section#checkout label.input:hover,
section#checkout label.input:focus,
section#checkout button.input:hover,
section#checkout button.input:focus,
section#checkout textarea.input:hover,
section#checkout textarea.input:focus,
section#checkout .select2.select2-container:hover {
    background-color: #f1f1f1;
    color: #555;
}
section#checkout input[type="radio"] {
    margin: 0;
    height: 1em;
    min-height: 1em;
}

section#checkout .cart-items .card .col-amount label.input:nth-child(1) {
    border-radius: 5px 0 0 5px;
}
section#checkout .cart-items .card .col-amount input[type="number"] {
    border-radius: 0;
}
section#checkout .cart-items .card .col-amount label.input:nth-child(3) {
    border-radius: 0 5px 5px 0;
}
section#checkout .pt1 {
    padding-top: 1em;
}
section#checkout .pt2 {
    padding-top: 2em;
}
section#checkout .card p.links {
    color: #888;
    opacity: 0.5;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
    -o-transition: opacity .25s ease-in-out;
    transition: opacity .25s ease-in-out;
}
section#checkout .card:hover p.links {
    opacity: 1;
}
section#checkout .card p.links a {
    color: #888;
    text-decoration: none;
}
section#checkout .card p.links a:not(:last-child) {
    margin-right: 20px;
}
section#checkout .card p.links a:hover {
    color: #444;
    text-decoration: none;
}
section#checkout .card p.links a[data-action="remove"] {
    color: #b06e6d;
}
section#checkout .card p.links a[data-action="remove"]:hover {
    color: #840610;
}

section#checkout .detail-link,
section#checkout p.detail-link,
section#checkout a.detail-link {
    color: #aaa;
    cursor: pointer;
    display: inline-block;
    margin: 10px 0;
    text-decoration: none;
}
section#checkout .card ul.details {
    list-style-type: none;
    font-size: 0.9em;
    color: #888;
    display: none;
    line-height: 1.75em;
}
section#checkout .detail-link svg {
    -moz-transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
    margin-right: 5px;
}
section#checkout .detail-link svg.r180 {
    transform: rotate(180deg);
}
section#checkout .price-row
{
    /*padding: 1rem 0;*/
    font-size: 1.35em;
    color: #222;
}
section#checkout h5 {
    margin: 30px 0 20px 0;
    font-size: 1.25em;
    font-weight: 300;
    color: #777;
}
section#checkout #user-data,
section#checkout #delivery-type,
section#checkout #delivery-services-internal,
section#checkout #delivery-services-external,
section#checkout #order-options,
section#checkout #payment-methods,
section#checkout div.delivery-service
{
    padding: 2em 2em 1em 2em;
}
section#checkout #user-data input,
section#checkout #order-options input,
section#checkout #order-options select,
section#checkout #order-options button,
section#checkout #order-options .alert
{
    margin-bottom: 0;
    height: 50px;
    line-height: 16px;
}
section#checkout #delivery-type > .row.d-flex,
section#checkout #delivery-services-internal > .row.d-flex,
section#checkout #delivery-services-external > .row.d-flex
{
    display: flex;
    flex-flow: wrap;
    justify-content: start;
}

section#checkout #delivery-type input[type="radio"] + label.input,
section#checkout #delivery-services-internal input[type="radio"] + label.input,
section#checkout #delivery-services-external input[type="radio"] + label.input
{
    width: 100%;
    padding: 1em;
    text-align: center;
    margin-bottom: 2rem;
}
section#checkout #delivery-type input[type="radio"]:checked + label.input,
section#checkout #delivery-services-internal input[type="radio"]:checked + label.input,
section#checkout #delivery-services-external input[type="radio"]:checked + label.input
{
    background-color: #fff;
    color: #222;
    font-weight: 600;
    box-shadow: 0 0 1.25rem 0 rgba(0,0,0,.25);
    border: solid 1px #f8a34b;
}
section#checkout #delivery-services-internal label.input img,
section#checkout #delivery-services-external label.input img
{
    margin-right: 10px;
}
section#checkout .delivery-tab {
    margin-top: 4rem;
}
section#checkout .delivery-tab .map {
    background-image: url(/modules/checkout/img/kyiv.map.png);
    background-repeat: no-repeat;
    background-position: center center;
    /*position: relative;*/
    height: 320px;
}
section#checkout .delivery-tab .map + button.input {
    min-height: 40px;
    font-size: 0.95em;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    line-height: 25px;
    opacity: 0.9;
    background-color: #fff;
    z-index: 999;
}
section#checkout .form-group {
    position: relative;
}
section#checkout .delivery-tab .suggestions {
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    left: 0;
    right: 0;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 1.25rem 0px;
    position: absolute;
    display: none;
    max-height: 240px;
    overflow-y: scroll;
}
section#checkout .delivery-tab .suggestions p {
    margin-bottom: 0.85rem;
    line-height: 1.25em;
    padding-left: 2px;
    padding-right: 2px;
}
section#checkout .delivery-tab .suggestions p a {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}
section#checkout .delivery-tab .suggestions p a:hover {
    color: #000;
}
section#checkout .delivery-tab .suggestions p small {
    color: #777;
}
section#checkout .delivery-tab .suggestions p a:hover small {
    color: #333;
}
section#checkout .delivery-tab p.delivery-legend {
   /* margin-top: 2rem;*/
    margin-bottom: 2rem;
}

section#checkout button[type="submit"] {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #ffa824;
    color: #fff;
}
section#checkout button[type="submit"]:hover {
    background-color: #ff8319;
    color: #fff;
}

section#checkout .select2-container .select2-selection--single {
    height: 30px;
    margin-top: 3px;
    background-color: transparent;
    border: none;
}
section#checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}
section#checkout button[type="submit"] span#total {
    font-weight: 600;
}
section#checkout #order-options .select2.select2-container {
    margin-bottom: 0;
}


.p-1 {padding: 1rem;}
.p-2 {padding: 2rem;}
.p-3 {padding: 2rem;}
.m-1 {margin: 1rem;}
.m-2 {margin: 2rem;}
.m-3 {margin: 2rem;}
.d-block {display: block}
.w-100 {width: 100%}
.mb-1 {margin-bottom: 1rem}
.mb-2 {margin-bottom: 2rem}

#order-options a[data-toggle="comment"] {
    text-decoration: none;
    color: #999;
    margin-bottom: 10px;
    cursor: pointer;
    border-bottom: dashed 1px;
}
#order-options textarea[name="comment"] {
    margin-bottom: 2rem;
}
#order-options + div.alert.alert-success {
    margin: 2em 0 0 0;
    float: none;
    clear: both;
    display: block;
}

.text-gray {
    color: #999;
}
.relative {
    position: relative;
    width: 100%;
    height: 100%;
}

section#checkout input:required,
section#checkout input[required="true"],
section#checkout input[data-required="true"],
section#checkout input[pattern],
section#checkout .input:required
{
    background-image: url("/modules/checkout/img/exclamation-triangle-light-red.svg");
    background-position: 125% -50%;
    background-repeat: no-repeat;
    background-size: 0px;
}
section#checkout input:invalid,
section#checkout input.invalid,
section#checkout .input.invalid
{
    background-image: url("/modules/checkout/img/exclamation-triangle-light-red.svg");
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #fbeeee;
    background-size: 20px;
}
section#checkout input:required:not(.invalid):placeholder-shown,
section#checkout input[pattern]:not(.invalid):placeholder-shown
{
    background-color: #f7f7f7;
    background-position: 125% 50%;
    background-size: 20px;
}
section#checkout input:required:placeholder-shown:focus,
section#checkout input[pattern]:placeholder-shown:focus
{
    background-color: #f1f1f1;
}
#order-options + .alert {
    margin-top: 20px;
}
a#attention-link {
    text-decoration: none;
    cursor: pointer;
    border-bottom: dashed 1px #787878;
}
a#attention-link:hover {
    border-bottom-color: #f8a34b;
}
#attention-modal h3 {
    
}
#attention-modal ol.attention-list {
    padding: 30px;
    font-size: 1.25em;
    color: #555;
}
#attention-modal ol.attention-list li {
    margin-bottom: 15px;
    list-style: none;
    counter-increment: attention_list;
    color: #888;
}
#attention-modal ol.attention-list li h5 {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 300;
    color: #222;
}
#attention-modal ol.attention-list li h5:before {
    content: counter(attention_list);
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: solid 1px #999;
    margin-right: 10px;
    text-align: center;
    font-size: 16px;
    line-height: 27px;
    vertical-align: middle;
    color: #999;
}
#attention-modal .modal-header {
    position: relative;
}
#attention-modal .modal-header h3 {
    text-align: center;
    font-size: 2em;
}
#attention-modal .modal-header .close {
    position: absolute;
    top: 25px;
    right: 20px;
}
#attention-modal .modal-footer.text-center {
    text-align: center !important;
}
section#checkout button.input.btn-more {
    background-color: #fbc341;
    color: #fff;
}

.privacy-policy{
    margin-top: 15px;
}

section#checkout input.has-error, section#checkout select.has-error {
    border: 1px solid #f5c1c1;
    background-color: #fff9f9;
}
section#checkout .help-block-error{
    color: #d50000;
}
@media only screen and (max-width: 768px) {

    section#checkout input,
    section#checkout select,
    section#checkout button.input,
    section#checkout label.input,
    section#checkout .select2.select2-container,
    section#checkout #order-options .select2.select2-container,

    section#checkout #user-data div:not(:last-child) input,
    section#checkout #order-options div:not(:last-child) input,
    section#checkout #order-options div:not(:last-child) select,
    section#checkout #order-options div:not(:last-child) button,
    section#checkout #order-options div:not(:last-child) .alert
    {
        margin-bottom: 2rem;
    }

    section#checkout .delivery-tab .map {
        margin-bottom: 4rem;
    }
    .d-sm-flex {display: flex; flex-wrap: wrap;}
    .order-sm-1 {order: 1;}
    .order-sm-2 {order: 2;}
    .order-sm-3 {order: 3;}
    .order-sm-4 {order: 4;}
    .row.d-sm-flex .col-sm-6 {
        width: 100%;
    }
    #order-options textarea[name="comment"] {
        min-height: 90px;
    }
    section#checkout .price-row {
        text-align: center;
    }
    section#checkout #delivery-services > .row.d-flex {
        justify-content: center;
    }

    section#checkout .cart-items .pt2.sm-text-center {
        padding-top: 1em;
        padding-bottom: 1em;
    }
    section#checkout .cart-items .pt2.col-amount  {
        padding-top: 0;
    }
    section#checkout .cart-items .col-amount input,
    section#checkout .cart-items .col-amount label
    {
        margin-bottom: 0;
    }
    section#checkout .cart-items .pt2.sm-text-center:last-of-type {
        font-weight: 700;
    }

    .privacy-policy{
        margin-top: 0;
    }
}


.cashback.alert{
    padding:10px;
}

.container-cashback{
    float: right;
    margin-right:8px
}

#checkout .cart-items .card{
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -moz-user-select: none;
}
#user-password input + #forgot-password {
    position: absolute;
    top: 14px;
    right: 20px;
    cursor: pointer;
    font-style: normal;
}
#user-password span.alert {
    font-style: normal;
    display: block;
    float: none;
    clear: both;
    text-align: center;
}
#user-password .form-group {
    position: relative;
}

.break-word{
    word-wrap: break-word;
}

.helpcrunch-iframe-wrapper iframe[name="helpcrunch-iframe"] {
    right: 10px !important
}

.price-slogan{
    font-weight: 600;
}
#payment-methods label {
    cursor: pointer;
}
#payment-methods .pdf-payment-details {
    margin-left: 2.5rem;
}
#payment-methods .pdf-payment-details p.small {
    margin-top: 1rem;
    margin-left: 2rem;
}
#payment-methods .pdf-payment-details input[name="Order[pdf_payment_type]"]:checked + span {
    color: #000;
}

.cash-back[data-depended="true"] b {
    display: inline-block;
}
section#checkout div.delivery-service {
    background-color: #fff;
    box-shadow: 0 0 1.25rem 0 rgba(0, 0, 0, .1);
    border-radius: 5px;
}



@media only screen and (max-width:768px) {
    #user-password .form-group {
        display: block;
    }
    section#checkout textarea.input {
        margin: 0 0 2rem 0;
    }

    .select2.select2-container{
        width: 100%;
    }

    #delivery-services-external .col-sm-8.order-sm-2{
        min-width: 100%;
        width: 100%;
    }
}

@media only screen and (max-width:480px) {
    .container-cashback{
        float: left;
        margin-top:8px
    }
}

@media (max-width: 600px) {
    .map-wrapper {
        display: none;
    }
}

@media only screen and (max-width: 900px) {
    .container-cashback{
        float: left;
        margin-top:8px
    }

    @media only screen and (max-width: 830px) {
        span.cash-back {
            margin-top: 5px;
            clear: both;
            display: block;
        }
    }
}