/* ----- Button styles ----- */
.webshop-button{
    color: #fff;
    border-radius: .75rem;
    transition: all .2s ease-out;
    -webkit-transition: all .2s ease-out;
}
.webshop-button.submit{
    border: 0;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    letter-spacing: 0.05em;
}
.webshop-button:hover{
    background-position: 100% !important;
}
@media (max-width: 767px){
    .webshop-button{
        border-radius: 0.5rem;
    }
    .webshop-button.submit{
        font-size: 1rem;
        letter-spacing: 0;
        padding: 0.5rem 1.25rem;
    }
}

/* ----- Product styles ----- */
.webshop-product{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.webshop-cart__products .webshop-product{
    display: block;
}
.webshop-cart__products .remove{
    cursor: pointer;
    top: 0.25rem;
    right: 0.25rem;
    color: #ED3030;
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    padding-left: 1px;
    border-radius: 50%;
    position: absolute;
    text-align: center;
    background-color: #fff;
}
.webshop-bundle .remove{
    right: 1.75rem;
}
.webshop-product__button.add-to-cart{
    display: grid;
    padding-left: 1rem;
    grid-column-gap: .5rem;
    grid-template-rows: auto auto;
    grid-template-columns: auto 3rem;
}
.webshop-product__button .title{
    margin: 0;
    color: #fff;
    align-self: end;
    font-weight: 500;
    grid-column: 1/2;
    padding-top: .5rem;
}
.webshop-product__button .description{
    margin: 0;
    color: #fff;
    font-weight: 300;
    font-size: .75rem;
    grid-column: 1/2;
    padding-bottom: .5rem;
}
.webshop-product__button .icon{
    grid-row: 1/3;
    grid-column: 2/3;
    align-self: center;
    justify-self: center;
    height: 100%;
    width: 3rem;
    display: inline-block;
    background-position: 50%;
    background-image: url(../img/cart.svg);
    background-repeat: no-repeat;
    background-size: 50%;
}
.webshop-product__count{
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.625rem 0.625rem 0.625rem 1.25rem;
}
.webshop-product__count .number{
    all: unset;
    width: 2rem;
    appearance: none;
    text-align: center;
    margin: 0 0.625rem;
    border-radius: 0.25rem;
    -webkit-appearance: none;
    border: 1px solid #AFAFAF;
    padding: 0.125rem 1rem;
    display: inline-block;
}
.webshop-product__count input::-webkit-outer-spin-button,
.webshop-product__count input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.webshop-product__count input[type=number] {
  -moz-appearance: textfield;
}
.webshop-product__count .control{
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.webshop-product__count .control:before{
    content: '';
    height: 2px;
    width: 1.25rem;
    position: absolute;
    border-radius: 4px;
}
.webshop-product__count .control.plus:after{
    content: '';
    width: 5px;
    height: 1.25rem;
    position: absolute;
    border-radius: 4px;
    border-width: 0 2px;
    border-style: solid;
    border-color: #fff;
}
@media (min-width: 768px) {
    .webshop-product__button.add-to-cart{
        min-width: 198px;
    }
}
@media (max-width: 767px) {
    .webshop-product__button.add-to-cart{
        width: 100%;
        margin-top: .5rem;
        min-height: 1.75rem;
        padding-left: .375rem;
        border-radius: 5px;
        grid-template-columns: 1fr auto;
    }
    .webshop-product__button .title{
        padding-top: 1px;
    }
    .webshop-product__button .description{
        margin-top: -4px;
        font-size: .563rem;
        padding-bottom: 1px;
    }
    .webshop-product__button .icon{
        width: 1.25rem;
        margin-right: .375rem;
        background-size: contain !important;
    }
}

/* ----- Cart styles ----- */
.webshop-cart--empty{
    margin-bottom: 0;
    font-size: 1.375rem;
    color: rgb(135, 135, 135);
}
.webshop-cart__products{
    display: flex;
    flex-wrap: wrap;
    display: -webkit-flex;
    -webkit-flex-wrap: wrap;
    width: calc(100% + 3rem);
    margin: 1.5rem -1.5rem -3rem;
}
.webshop-cart__products:empty{
    display: none;
}
.webshop-bundle{
    display: flex;
    flex-wrap: wrap;
    position: relative;
    display: -webkit-flex;
    -webkit-flex-wrap: wrap;
    padding-bottom: 2.875rem;
}
.webshop-bundle .webshop-product{
    position: static;
}
.webshop-cart__products .webshop-product{
    text-align: center;
    margin: 0 1.5rem 3rem;
    width: calc(25% - 3rem);
}
.webshop-cart__products .webshop-product img{
    width: 100%;
}
.webshop-bundle.columns-2{
    width: 50%;
}
.webshop-bundle.columns-2 .webshop-product{
    width: calc(50% - 3rem);
}
.webshop-bundle.columns-3{
    width: 75%;
}
.webshop-bundle.columns-3 .webshop-product{
    width: calc(33.3% - 3rem);
}
.webshop-bundle.columns-4{
    width: 100%;
}
.webshop-bundle .webshop-product:first-child .webshop-product__count{
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    margin: 0.625rem 0 0;
}
.webshop-bundle .webshop-product:not(:first-child) .webshop-product__count{
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px){
    .webshop-cart__products{
        width: calc(100% + 1rem);
        margin: 1.5rem -0.5rem -1.5rem;
    }
    .webshop-bundle{
        order: -1;
    }
    .webshop-bundle.columns-2{
        width: 66.6%;
    }
    .webshop-bundle.columns-2 .webshop-product{
        width: calc(50% - 1rem);
    }
    .webshop-bundle.columns-3{
        width: 100%;
    }
    .webshop-bundle.columns-3 .webshop-product{
        width: calc(33.3% - 1rem);
    }
    .webshop-cart__products .webshop-product{
        width: calc(33.3% - 1rem);
        margin: 0 0.5rem 1.5rem;
    }
}

@media (max-width: 599px){
    .webshop-bundle.columns-2,
    .webshop-bundle.columns-3{
        width: 100%;
    }
    .webshop-bundle.columns-3 .webshop-product{
        width: calc(50% - 1rem);
    }
    .webshop-cart__products .webshop-product{
        width: calc(50% - 1rem);
    }
}

/* ----- Thanks styles ----- */
.webshop-thanks{
    color: #7F7F7F;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
}
.webshop-thanks:before{
    content: '';
    display: block;
    width: 5.375rem;
    height: 3.75rem;
    margin: 0 auto 1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.webshop-thanks.success:before{
    background-image: url('../img/success.svg');
}
.webshop-thanks.error:before{
    background-image: url('../img/error.svg');
}

/* ----- Form styles ----- */
.webshop-form{
    color: #878787;
}
.webshop-form.completed > *:not(.webshop-thanks){
    display: none;
}
.webshop-form__row{
    margin-top: 0.625rem;
}
.webshop-form__row:first-child{
    margin-top: 0;
}
.webshop-form__row:last-of-type{
    text-align: left;
    margin-top: 1.375rem;
}
.webshop-form__row input[type="button"],
.webshop-form__row input[type="email"],
.webshop-form__row input[type="number"],
.webshop-form__row input[type="password"],
.webshop-form__row input[type="submit"],
.webshop-form__row input[type="tel"],
.webshop-form__row input[type="text"],
.webshop-form__row input[type="time"],
.webshop-form__row input[type="url"],
.webshop-form__row textarea {
    all: unset;
    width: 100%;
    font-size: 1.375rem;
    box-sizing: border-box;
    padding: 0.5rem 1.5rem;
    border-radius: 0.875rem;
    color: rgb(135, 135, 135);
    border: 1px solid #AFAFAF;
}
.webshop-form__row textarea {
    height: 12.5rem;
}
.webshop-form__row textarea::-webkit-input-placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row textarea::placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row textarea:-moz-placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row textarea::-ms-input-placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row input::-webkit-input-placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row input::placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row input:-moz-placeholder{
    color: #AFAFAF !important;
}
.webshop-form__row input::-ms-input-placeholder{
    color: #AFAFAF !important;
}

.webshop-form__row input::-webkit-outer-spin-button,
.webshop-form__row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.webshop-form__row input[type=number] {
  -moz-appearance: textfield;
}
.webshop-form__notice{
    margin-top: 0.25rem;
    font-size: 1.375rem;
}
.webshop-form__notice,
.webshop-form__legal{
    text-align: right;
}
.webshop-form__legal__title{
    text-align: left;
    font-weight: 500;
    line-height: 1.2;
    font-size: 1.375rem;
}
.webshop-form__legal__text{
    text-align: left;
    line-height: 1.3;
    overflow: hidden;
    position: relative;
    font-size: .8rem;
    height: auto !important;
    transition: height .3s ease;
    -webkit-transition: height .3s ease;
}
.webshop-form__legal__text a{
    position: relative;
    z-index: 1;
}
.webshop-form__legal__text.open:after{
    opacity: 0;
}
/*
.webshop-form__legal__text:after{
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    position: absolute;
    transition: opacity .3s ease;
    -webkit-transition: opacity .3s ease;
    background: -webkit-linear-gradient(180deg, transparent 20%, #fff);    
    background: -webkit-linear-gradient(bottom, transparent 20%, #fff);    
    background: linear-gradient(to bottom, transparent 20%, #fff);
}
*/
.webshop-read-more{
    cursor: pointer;
    font-weight: 500;
    margin-top: 0.25rem;
    font-size: 1.375rem;
    display: inline-block;
    display: none;
}
.webshop-read-more .less{
    display: none;
}
.webshop-read-more.open .more{
    display: none;
}
.webshop-read-more.open .less{
    display: block;
}
.webshop-form__additional {
    padding-right: 2rem;
    position: relative;
}
.webshop-form__code {
    position: absolute;
    right: -4px;
    bottom: 0;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .webshop-form__row input[type="button"],
    .webshop-form__row input[type="email"],
    .webshop-form__row input[type="number"],
    .webshop-form__row input[type="password"],
    .webshop-form__row input[type="submit"],
    .webshop-form__row input[type="tel"],
    .webshop-form__row input[type="text"],
    .webshop-form__row input[type="time"],
    .webshop-form__row input[type="url"],
    .webshop-form__row textarea {
        font-size: 1rem;
        padding: 0.5rem 1.25rem;
        border-radius: 0.5rem;
    }
    .webshop-form__row textarea {
        height: 8rem;
    }
    .webshop-form__notice,
    .webshop-form__legal__title,
    .webshop-form__legal__text,
    .webshop-read-more{
        font-size: 1rem;
    }
    .webshop-form__additional {
        padding-right: 0
    }
    .webshop-form__code {
        writing-mode: initial;
        transform: none;
        right: auto;
        bottom: auto;
        position: static;
        display: block;
        text-align: right;
        margin-top: 1rem;
    }
}

/* ----- For ipsen themes ----- */
.pdf-buttons .webshop-product{
    margin: 0 0.5rem;
}

@media (max-width: 991px) {
    .pdf-buttons .webshop-product{
        margin: 1rem 0.5rem 0;
    }
}

@media (max-width: 767px) {
    .pdf-buttons .webshop-product{
        width: 100%;
        margin: 0 0.5rem;
    }
}