ldc-cocotte/integration/resources/sass/cart.scss
Olivier Legat d93553b396 Squashed commit of the following:
commit a962eca9b609623804bd8cfe57c246a61e77a382
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Thu Mar 4 17:41:46 2021 +0100

    responsive

commit a44ff3bde60c2af1db3169115a90741b8e868037
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Wed Mar 3 17:50:58 2021 +0100

    end tunnel

commit 4c40e47ae861909f76b92b0440d48b378ee621c2
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Tue Mar 2 18:10:17 2021 +0100

    heure de collecte

commit e05d598006060880f79573108e0c66fccfcfc62c
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Mon Mar 1 17:47:48 2021 +0100

    tunnel page 3

commit b85f96a655e868096aa42e9f99b2f67c49a041c3
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Fri Feb 26 13:16:05 2021 +0100

    Tunnel d'achat start

commit cdf9a38e8f5d38ffcc1728415f0b58b22ff455df
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Thu Feb 25 20:35:44 2021 +0100

    cart full

commit 9db34a8ab6881b1b88adebaa6426b6944608de47
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Wed Feb 24 17:40:18 2021 +0100

    work in progress - cart panel

commit 0a698cb62eb26b52f3b48f5ac8a39b89c34617f4
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Tue Feb 23 17:05:13 2021 +0100

    sassification des css

commit 5c277ae10d9ae8e0225a0f7d57d81146e43da146
Author: Olivier Legat <olivier.legat@ldc.fr>
Date:   Tue Feb 23 16:37:01 2021 +0100

    integration bato
2021-03-05 11:49:20 +01:00

1376 lines
27 KiB
SCSS
Vendored

BODY.cartOpened {
height: 100vh;
overflow-y: hidden;
}
.basket-panel {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1001;
.empty-basket {
margin: 2em auto;
text-align: center;
max-width: 80%;
// #icon-basket-empty {
// fill:$green;
// }
}
.message-box {
margin: .5rem 1rem;
}
}
.basket-panel__mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
background-color: rgba(0,0,0,.5);
opacity: 0;
pointer-events: none;
transition: opacity .3s ease-in-out;
}
.basket-panel__mask--visible {
pointer-events: auto;
opacity: 1;
}
.basket-panel__drawer {
position: absolute;
background-color: #f7f7f7;
top: 0;
right: 0;
transform: translateX(100%);
bottom: 0;
width: 20rem;
height: 100%;
transition: transform .3s ease-in-out;
display: flex;
flex-direction: column;
justify-content: space-between;
pointer-events: auto;
}
@media only screen and (min-width: 768px) {
.basket-panel__drawer {
width: 37.5rem;
}
}
@media only screen and (max-width: 767px) {
.basket-panel__drawer {
width: 100%;
}
}
.basket-panel__drawer--opened {
transform: none;
}
.basket-panel__header {
background-color: #fff;
display: flex;
flex: 1 0 auto;
justify-content: space-between;
align-items: center;
padding: .5em 1em;
transition: all .33s ease;
position: relative;
width: 100%;
}
.basket-panel__header--empty {
background-color: transparent;
position: relative;
margin-bottom: 4em;
justify-content: flex-end;
}
.basket-panel__close {
background: none;
border: 0;
position: relative;
padding: 0;
height: 2em;
width: 2rem;
cursor: pointer;
transition: all .25s ease;
&:hover {
transform-origin: center;
transform: rotate(180deg);
}
span {
position: absolute;
visibility: hidden;
left: -9999px;
}
&:before {
transform: translate(-50%,-50%) rotate(-45deg);
}
&:after {
transform: translate(-50%,-50%) rotate(45deg);
}
&:before, &:after {
content: "";
position: absolute;
display: block;
top: 50%;
left: 50%;
height: 0;
width: 2em;
border-top: 2px solid $blue;
}
}
.basket-panel--empty {
height: 100%;
}
.empty-basket {
padding: .5rem;
margin: .25rem .25rem 0;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
text-align: center;
.icon-basket-empty {
width: 7.5rem;
height: 7.5rem;
margin-bottom: .5rem;
position: relative;
left: -1.5rem;
}
.cart-item__text {
margin-top: .125rem;
}
.ds-button, .btn {
margin-top: 1.5rem;
}
}
@media only screen and (min-width: 768px) {
.empty-basket {
padding: 3rem;
width: 70%;
margin: 3rem auto;
}
}
.basket-panel--empty .basket-panel__close:after,
.basket-panel--empty .basket-panel__close:before {
border-color: $blue;
}
.cart-item__text {
margin: 0;
color: #575757;
font-size: .875rem;
font-weight: 500;
line-height: 1.4285;
}
@media only screen and (min-width: 768px) {
.cart-item__text {
font-size: 1rem;
}
}
.empty-basket__action {
margin-top: 3rem;
}
.empty-basket__action .btn {
line-height: 1.25;
display: block;
margin: auto;
margin-top: .125rem;
}
//cart full
//addins
.ds-button {
display: inline-flex;
padding: 0 .5rem;
border: .0625rem solid $blue;
outline: 0;
border-radius: .25rem;
min-width: 7rem;
background-color: $blue;
color: #fff;
font-size: .875rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .03125rem;
line-height: 1.375rem;
white-space: nowrap;
cursor: pointer;
align-items: center;
justify-content: center;
vertical-align: top;
transition: all .2s linear;
}
.basket-panel__title-wrapper {
display: flex;
align-items: center;
}
.message-box {
border-radius: 10px;
border: 1px solid #e6e1d8;
background-color: #f8f2e8;
margin: 0 1rem 1.25rem;
position: relative;
}
@media (min-width: 50em) {
.message-box {
margin: 0 0 1.25rem;
}
}
.message-box__inner {
padding: 1rem 3rem 1rem 2.2rem;
color: $blue;
font-size: 12px;
}
@media (min-width: 50em) {
.message-box__inner {
font-size: 14px;
padding: 1rem 3.5rem 1rem 2.5rem;
}
}
.message-box__actions, .message-box__heading {
font-weight: 700;
}
.message-box__icon {
position: relative;
font-size: 14px;
&:before {
content: "";
position: absolute;
display: block;
top: 50%;
margin-top: -9px;
left: -1.75em;
height: 18px;
width: 18px;
border-radius: 50%;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23db3832' d='M12 0a12 12 0 1012 12A12 12 0 0012 0zm-.796 6.625a.75.75 0 011.5 0v9.542a.75.75 0 01-1.5 0zm.817 13.423a.774.774 0 11.775-.774.774.774 0 01-.775.774z' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat #fff 50%;
background-size: contain;
}
}
.message-box__icon--low:before {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23db3832' d='M12 0a12 12 0 1012 12A12 12 0 0012 0zm-.796 6.625a.75.75 0 011.5 0v9.542a.75.75 0 01-1.5 0zm.817 13.423a.774.774 0 11.775-.774.774.774 0 01-.775.774z' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat #fff 50%;
}
@media (min-width: 50em) {
.message-box__heading {
font-size: 16px;
}
}
.message-box__heading {
font-size: 14px;
margin-bottom: .5rem;
}
.message-box__actions {
margin-top: .5rem;
}
.message-box__actions, .message-box__heading {
font-weight: 700;
}
//cart content
.basket-panel__content {
overflow-y: auto;
display: flex;
flex-direction: column;
height: 100%;
margin-top: .5rem;
.cart-tile {
margin: .25rem 1rem;
}
}
.basket-panel__content--smooth-scroll {
-webkit-overflow-scrolling: touch;
}
.cart-tile {
color: #575757;
background-color: #fff;
}
.cart-tile__bottom, .cart-tile__top {
background-color: $blue;
}
.cart-tile__top {
border-top-left-radius: .25rem;
border-top-right-radius: .25rem;
height: .5rem;
}
.cart-tile__actions, .cart-tile__bottom, .cart-tile__header, .cart-tile__informations, .cart-tile__products, .cart-tile__seller-details {
display: flex;
}
.cart-tile__header {
padding: .5rem 1rem .25rem;
justify-content: space-between;
align-items: center;
border-left: .0625rem solid #e5e5e5;
border-right: .0625rem solid #e5e5e5;
section {
display: flex;
}
}
.cart-tile__inner-content-row {
flex-direction: row;
justify-content: space-between;
width: 100%;
}
.cart-tile__inner-content {
flex-direction: column;
}
.cart-tile__informations img, .cart-tile__informations svg {
margin-right: 1rem;
}
.cart-tile__informations svg {
fill: $green;
}
svg:not(:root) {
overflow: hidden;
}
.svg-icon--color-interactive-1 {
fill: $green;
}
.svg-icon--l {
width: 2rem;
height: 2rem;
}
.svg-icon {
fill: currentColor;
}
.cart-tile__title {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.cart-tile__title-delivery-mode {
font-size: .75rem;
}
.ds-title--light {
font-weight: 300;
}
.ds-title--bold {
font-weight: 700;
}
.ds-title--secondary {
color: #575757;
}
@media only screen and (min-width: 768px){
.ds-title--xs {
font-size: .875rem;
}
}
.ds-title--xs {
font-size: .75rem;
}
@media only screen and (min-width: 768px){
.ds-title {
font-size: 1.25rem;
}
}
@media only screen and (min-width: 768px){
.ds-title--s {
font-size: 1rem;
}
}
.ds-title--s {
font-size: .875rem;
}
.ds-title {
display: block;
margin: 0;
color: $blue;
word-break: break-word;
overflow-wrap: break-word;
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
font-size: 1rem;
font-weight: 700;
line-height: 1.25;
}
.cart-tile__title-seller {
display: flex;
}
.cart-tile__warning {
font-size: .875rem;
padding-left: .25rem;
padding-bottom: .5rem;
}
.cart-tile__drive-type, .cart-tile__warning {
border-left: .0625rem solid #e5e5e5;
border-right: .0625rem solid #e5e5e5;
}
.cart-tile__products {
padding: 0 1rem .5rem;
flex-direction: column;
border-left: .0625rem solid #e5e5e5;
border-right: .0625rem solid #e5e5e5;
}
.products-brief {
overflow: hidden;
background-color: #fff;
padding: 0 0 1rem;
}
@media only screen and (min-width: 1024px){
.products-brief__top-section {
display: block;
}
}
.products-brief__top-section {
padding: 0 0 .5rem;
margin: 1rem 1rem 0;
}
.products-brief__box {
transition: margin-top .3s linear;
}
@media only screen and (min-width: 1024px){
.products-brief__box {
margin-bottom: 0;
}
}
.products-brief dl {
margin: 0 1rem;
}
.products-brief-data {
display: flex;
flex-wrap: wrap;
}
.ds-body-text {
margin: 0;
color: #575757;
font-size: .875rem;
font-weight: 400;
line-height: 1.4285;
}
@media only screen and (min-width: 768px){
.ds-body-text {
font-size: 1rem;
}
}
.ds-body-text--weight-bold {
font-weight: 700;
}
.products-brief__slot {
display: flex;
justify-content: space-between;
font-size: .875rem;
}
.pl-button--tertiary.pl-button--small {
font-size: .625rem;
}
.checkout-clear-basket__cta {
padding-left: 0;
}
@media only screen and (min-width: 768px){
.pl-button--tertiary {
font-size: .75rem;
}
}
.pl-button--tertiary {
font-size: .625rem;
height: auto;
margin: 0;
background-color: transparent;
}
.pl-button--secondary, .pl-button--tertiary {
color: $green;
letter-spacing: .04682rem;
}
.pl-button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
height: 2.5rem;
min-width: 2.5rem;
font-size: .875rem;
font-weight: 700;
letter-spacing: .03125rem;
text-align: center;
text-transform: uppercase;
border: 0;
outline: none;
border-radius: .25rem;
padding: .5rem;
transition: all .3s;
cursor: pointer;
}
.pl-button__label {
display: flex;
align-items: center;
justify-content: center;
}
.checkout-clear-basket__icon {
margin-right: .5rem;
}
.modal {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9999;
background-color: rgba(0,0,0,.5);
transition: all .3s ease;
}
@media (min-width: 37.5em){
.modal__container {
border-radius: 20px;
}
}
.modal__container {
display: flex;
flex-direction: column;
max-width: 90vw;
min-width: 300px;
min-height: 25vh;
margin: .75rem;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 8px rgb(0 0 0 / 50%);
transition: all .3s ease;
overflow: hidden;
position: relative;
}
.modal__body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
flex-grow: 1;
padding: 3rem 1.5rem;
overflow: auto;
}
.checkout-clear-basket__modal .modal__action {
justify-content: center;
align-items: center;
}
.modal__action {
display: flex;
align-items: flex-end;
justify-content: space-between;
flex-wrap: wrap;
flex-grow: 1;
padding: .75rem;
.a-button, .cta {
flex: 1 0 125px;
max-width: 300px;
margin: .75rem;
}
}
.cta--tertiary {
background-color: transparent;
border: 0;
color: $green;
text-transform: none;
padding: 0;
display: inline-block;
letter-spacing: .5px;
font-size: .9rem;
transition-property: color;
transition-duration: .3s;
font-weight: 700;
cursor: pointer;
}
.cta {
background-color: $green;
border: 1px solid $green;
color: #fff;
border-radius: 25px;
padding: .375rem 1.5rem;
display: inline-block;
letter-spacing: .5px;
text-transform: uppercase;
font-size: .9rem;
transition-property: border-color,background-color;
transition-duration: .3s;
font-weight: 700;
cursor: pointer;
text-align: center;
}
.ds-button__icon, .ds-button__label {
display: inline-block;
}
.ds-button__label {
padding: .5rem 0;
}
.products-brief .checkout-loyalty-info__loyalty {
margin: 0 1rem;
}
.checkout-loyalty-info__loyalty {
position: relative;
}
.checkout-loyalty-info__top-section {
margin-bottom: .5rem;
}
.cart-tile__bottom--fixed {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
}
.cart-tile__bottom {
padding: .5rem 1.5rem;
align-items: center;
justify-content: space-between;
}
.cart-tile__price {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.ds-title--bright {
color: #fff;
}
.pl-button--primary.pl-button--light {
color: $green;
background-color: #fff;
}
.pl-button--primary {
color: #fff;
background-color: $green;
}
.basket-products-list--without-padding {
padding: 0;
}
.basket-products-list {
flex: 1;
padding: 0 1rem;
}
.basket-products-list__inner {
width: 100%;
background-color: #fff;
}
.basket-products-list__category {
background-color: #fff;
}
.category-heading {
display: flex;
flex-direction: column;
align-content: center;
background-color: #fff;
min-width: 100%;
overflow: hidden;
}
.category-heading__header--collapsable {
cursor: pointer;
}
.category-heading__header {
display: inline-flex;
justify-content: space-between;
overflow: hidden;
padding: 1rem 0;
}
.category-heading__title {
flex: 0 0 auto;
}
.ds-title--medium {
font-weight: 400;
}
.category-heading__left-content {
display: inline-flex;
align-items: center;
justify-content: space-around;
}
.ds-badge {
background-color: #e5e5e5;
font-size: .875rem;
line-height: .625rem;
font-weight: 400;
color: #575757;
border-radius: 1.5rem;
padding: .25rem .5rem;
}
.category-heading__chevron {
margin: 0 0 0 1rem;
}
.ds-chevron--s {
width: 1rem;
height: 1rem;
}
.ds-chevron {
width: 1.5rem;
height: 1.5rem;
transition: all .3s ease-in-out;
flex: 0 0 auto;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23#{$blue-value}' d='M5 17.4c.5.5 1.2.5 1.7 0l5.9-5.8 5.8 5.8c.5.5 1.2.5 1.7 0s.5-1.2 0-1.7l-6.6-6.6c-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.8.3l-6.6 6.6c-.7.5-.7 1.3-.3 1.7z'/%3E%3C/svg%3E") no-repeat 50%;
&:hover {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23#{$green-value}' d='M5 17.4c.5.5 1.2.5 1.7 0l5.9-5.8 5.8 5.8c.5.5 1.2.5 1.7 0s.5-1.2 0-1.7l-6.6-6.6c-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.8.3l-6.6 6.6c-.7.5-.7 1.3-.3 1.7z'/%3E%3C/svg%3E") no-repeat 50%;
}
}
.ds-chevron--revert {
transform: rotate(180deg);
}
.basket-products-list li, .basket-products-list ol {
padding: 0;
margin: 0 0 1rem;
list-style: none;
}
.basket-products-list__product-card--no-margin {
margin-bottom: 0;
}
.basket-products-list__product-card {
margin-bottom: 1rem;
width: 100%;
}
.ds-product-card {
height: 100%;
position: relative;
padding: .5rem 1rem 1rem;
background-color: #fff;
border: .0625rem solid #e5e5e5;
border-radius: .25rem;
box-shadow: 0 0 0 0 hsl(0deg 0% 90% / 5%);
}
.ds-product-card--largehorizontal-icons {
position: absolute;
z-index: 1;
top: .5rem;
right: .5rem;
}
.ds-product-card--largehorizontal-highlightlabel {
height: 1.5rem;
overflow-y: visible;
}
.product-card-delete {
width: 1.5rem;
height: 1.5rem;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23#{$blue-value}' class='st1' d='M25.6 7.1c.6 0 1.1.5 1.1 1.1 0 .6-.5 1.1-1.1 1.1h-1.3l-.7 16.5c-.1 1.9-1.4 3.4-3.1 3.4H11c-1.6 0-3-1.5-3.1-3.4L7.3 9.3H6c-.6 0-1.1-.5-1.1-1.1 0-.6.5-1.1 1.1-1.1h19.6zm-4.3 18.8L22 9.3H9.3l.7 16.6c0 .7.5 1.2.8 1.2h9.6c.4 0 .8-.5.9-1.2zm-7.3-3c-.4 0-.8-.3-.8-.8l-.5-9.7c-.1-.4.3-.8.8-.8.4 0 .9.3.9.8l.5 9.7c0 .4-.4.8-.9.8.1 0 0 0 0 0zm3.9 0c-.5 0-.9-.4-.8-.9l.5-9.7c0-.5.5-.8.9-.8.5 0 .8.4.8.9l-.5 9.7c0 .5-.4.8-.9.8zm1.4-18h-7c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h7c.6 0 1.1.5 1.1 1.1s-.5 1.1-1.1 1.1z'/%3E%3C/svg%3E") no-repeat 50%;
background-size: contain;
cursor: pointer;
&:hover {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23#{$green-value}' class='st1' d='M25.6 7.1c.6 0 1.1.5 1.1 1.1 0 .6-.5 1.1-1.1 1.1h-1.3l-.7 16.5c-.1 1.9-1.4 3.4-3.1 3.4H11c-1.6 0-3-1.5-3.1-3.4L7.3 9.3H6c-.6 0-1.1-.5-1.1-1.1 0-.6.5-1.1 1.1-1.1h19.6zm-4.3 18.8L22 9.3H9.3l.7 16.6c0 .7.5 1.2.8 1.2h9.6c.4 0 .8-.5.9-1.2zm-7.3-3c-.4 0-.8-.3-.8-.8l-.5-9.7c-.1-.4.3-.8.8-.8.4 0 .9.3.9.8l.5 9.7c0 .4-.4.8-.9.8.1 0 0 0 0 0zm3.9 0c-.5 0-.9-.4-.8-.9l.5-9.7c0-.5.5-.8.9-.8.5 0 .8.4.8.9l-.5 9.7c0 .5-.4.8-.9.8zm1.4-18h-7c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h7c.6 0 1.1.5 1.1 1.1s-.5 1.1-1.1 1.1z'/%3E%3C/svg%3E") no-repeat 50%;
}
}
.product-card-highlightlabel--fid {
position: relative;
z-index: 0;
color: $blue;
}
.product-card-highlightlabel {
display: inline-block;
color: $blue;
line-height: 1.5rem;
}
.product-card-highlightlabel--fid:before {
content: "";
position: absolute;
left: 0;
top: 50%;
z-index: -1;
width: 100%;
height: .7em;
background-color: $green;
border-radius: .25rem;
}
.ds-body-text--weight-bold {
font-weight: 700;
}
.ds-body-text--color-inherit {
color: inherit;
}
.ds-body-text--size-s {
font-size: .75rem;
}
.ds-product-card--largehorizontal-infos {
display: block;
}
.ds-product-card--largehorizontal-infos-main {
display: flex;
flex-direction: row;
margin: .5rem 0;
}
.ds-product-card--largehorizontal-left {
margin-right: 1rem;
}
.ds-product-card--largehorizontal-image {
position: relative;
width: 6rem;
min-width: 6rem;
height: 6rem;
}
.product-card-image {
display: block;
line-height: 0;
padding-bottom: 100%;
position: relative;
}
.product-card-image__image {
margin-bottom: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
line-height: 1.25;
}
.product-badges-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
.product-badges-list__item:last-child {
margin-right: 0;
}
.basket-products-list li, .basket-products-list ol {
padding: 0;
margin: 0 0 1rem;
list-style: none;
}
blockquote :last-child, li :last-child, p :last-child {
margin-bottom: 0;
}
.product-badges-list__item {
margin: 0;
padding: 0;
margin-right: .5rem;
}
.product-badge__link {
display: block;
position: relative;
cursor: default;
pointer-events: none;
}
.product-badge__icon {
display: block;
}
.product-badge--size-m .product-badge__icon__img {
height: 1.5rem;
width: 1.5rem;
}
.product-badge__title {
display: block;
font-size: .75rem;
font-weight: 700;
line-height: 1;
text-align: center;
position: absolute;
left: 50%;
transform: translateX(-50%);
color: #fff;
background-color: $blue;
border-radius: 4px;
padding: 4px;
min-width: 90px;
max-width: 150px;
opacity: 0;
transition: all .3s ease;
}
.ds-format {
background: #fff;
color: #575757;
font-size: .75rem;
font-weight: 700;
padding: 0 .25rem;
border-radius: .25rem;
height: 1.5rem;
display: inline-block;
max-width: 6rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 2;
border: .0625rem solid #e5e5e5;
cursor: default;
}
.ds-body-text--color-standard-3 {
color: #575757;
}
.ds-product-card--largehorizontal-promotion {
position: relative;
margin-bottom: .5rem;
}
.promotion-description {
display: inline-block;
flex-direction: row;
cursor: pointer;
max-width: 100%;
padding-right: 1.5rem;
position: relative;
z-index: 0;
color: #e81e26;
font-size: .875rem;
font-weight: 700;
}
@media (hover: hover) {
.promotion-description {
padding-right: 0;
}
}
@media (hover: hover) {
.promotion-description:before {
width: 100%;
}
}
.promotion-description:before {
width: calc(100% - 1.5rem);
}
.promotion-description:before {
content: "";
position: absolute;
left: 0;
top: 50%;
z-index: -1;
width: 100%;
height: .7em;
background-color: #fff78f;
border-radius: .25rem;
}
.promotion-description--loyalty {
position: relative;
z-index: 0;
color: $blue;
font-size: .875rem;
font-weight: 700;
}
@media (hover: hover){
.promotion-description--loyalty:before {
width: 100%;
}
}
.promotion-description--loyalty:before {
width: calc(100% - 1.5rem);
}
.promotion-description--loyalty:before {
content: "";
position: absolute;
left: 0;
top: 50%;
z-index: -1;
width: 100%;
height: .7em;
background-color: $green;
border-radius: .25rem;
}
.promotion-label {
padding: 0;
margin: 0;
}
.promotion-description--loyalty .promotion-label {
max-height: 3rem;
padding-left: 1.5rem;
max-width: 100%;
}
@media only screen and (min-width: 768px){
.promotion-description--loyalty .promotion-label {
align-self: flex-start;
line-height: 1.4285;
}
}
.promotion-description--loyalty .promotion-label:before {
content: "";
background: url("../img/loyalty.svg");
background-size: contain;
background-position: 50%;
width: 1rem;
height: 1rem;
display: block;
position: absolute;
left: 0;
bottom: 0;
border-radius: .125rem;
}
.promotion-label__txt {
position: relative;
margin: 0;
padding: 0;
min-width: unset;
display: block;
flex-grow: 1;
overflow: hidden;
line-height: 1.4285;
max-height: 2.15rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.promotion-description .promotion-label__txt {
font-weight: 700;
}
.promotion-description__icon-info {
width: 1rem;
height: 1rem;
fill: #929292;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
@media only screen and (min-width: 768px){
.promotion-description__icon-info {
transform: translateY(-25%);
}
}
.promotion-slide {
position: absolute;
align-content: center;
align-items: center;
background: #fff;
justify-content: space-between;
padding: 0;
z-index: 7;
right: 0;
bottom: 100%;
left: 0;
top: auto;
min-width: 100%;
margin: 0 -.5rem .25rem;
transform-origin: bottom;
border-radius: 5px;
box-shadow: 0 0.3rem 0.5rem -0.3rem rgb(0 0 0 / 40%);
font-size: .875rem;
}
.promotion-slide__header {
color: #fff;
padding: .5rem;
border-radius: .25rem .25rem 0 0;
background: linear-gradient(90deg,#ef473a 0,#cb2d3e);
}
.promotion-slide__header--loyalty {
background: linear-gradient(90deg,$gradient-blue-2 0,$blue);
}
.promotion-slide__header-txt {
width: 100%;
display: flex;
flex: 0 0 100%;
font-weight: 300;
justify-content: space-between;
align-items: center;
font-size: .875rem;
}
.promotion-slide__header-label, .promotion-slide__header-txt {
}
.promotion-slide__icon-promo {
padding: 0 .25rem 0 0;
width: 1rem;
height: 1rem;
overflow: hidden;
cursor: pointer;
box-sizing: content-box;
}
.promotion-slide__header-label {
font-size: unset;
flex-grow: 1;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
padding-right: .5rem;
font-weight: 400;
}
.promotion-slide__txt {
font-size: .75rem;
color: $blue;
line-height: 1.3;
text-align: left;
width: 100%;
padding: .5rem;
opacity: 1;
font-weight: 400;
}
.promotion-slide__end-date {
color: #575757;
display: block;
margin-top: .25rem;
font-weight: 400;
}
.ds-product-card--largehorizontal-pricing {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
@media only screen and (min-width: 768px){
.ds-title--m {
font-size: 1.25rem;
}
}
.product-card-price__price--final {
white-space: nowrap;
}
.product-card-price__discount--fid {
position: relative;
z-index: 0;
color: $blue;
}
.product-card-price__discount--fid:before {
content: "";
position: absolute;
left: 0;
top: 50%;
z-index: -1;
width: 100%;
height: .7em;
background-color: $green;
border-radius: .25rem;
}
.ds-product-card--largehorizontal-cta {
margin-left: 1rem;
line-height: 0;
position: relative;
}
.add-to-cart {
width: auto;
height: 2.5rem;
position: relative;
transition: all .3s ease-out;
display: flex;
justify-content: flex-end;
}
.pl-button-counter {
min-width: 6.4rem;
height: 2.5rem;
border: .0625rem solid #e5e5e5;
border-radius: .25rem;
background: $beige-d;
}
.pl-button-counter, .pl-button-counter__action {
display: flex;
align-items: center;
justify-content: center;
}
.pl-button-counter__action {
min-width: 2.5rem;
border: 0;
background: transparent;
outline: none;
cursor: pointer;
svg:hover {
fill:$green;
}
}
.pl-button-counter__value {
font-size: 1.25rem;
font-weight: 700;
color: $blue;
width: 1.3rem;
text-align: center;
overflow: visible;
white-space: nowrap;
}
.promotion-feedback {
position: absolute;
top: 50%;
left: 55%;
transform: translate(-50%,-50%);
z-index: 1;
display: block;
}
.promotion-feedback--text-only {
top: auto;
bottom: 0;
transform: translate(-50%,50%);
background: #fff;
}
.svg-icon--s {
width: 1rem;
height: 1rem;
}
.message-box__actions a+a {
margin-left: 1em;
}
.promotion-slide:after, .promotion-slide:before {
top: 100%;
left: 2rem;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-width: .5rem;
margin-left: -.5rem;
}
.promotion-slide:after {
border-top-color: #fff;
}
.pl-button--secondary .svg-icon, .pl-button--tertiary .svg-icon {
width: 1rem;
height: 1rem;
}
.products-brief-data dd, .products-brief-data dt {
flex-grow: 1;
font-weight: 400;
margin: 0;
}
.products-brief-data dd {
text-align: right;
margin: 0;
width: 35%;
white-space: nowrap;
}