/* ------------------------------------------- Mini Popup ---------------------------------------------- */ .minipopup-area { position: fixed; display: flex; flex-direction: column-reverse; #{$left}: 3rem; bottom: 3rem; z-index: 6000; } .minipopup-box { width: 30rem; margin-top: 2rem; padding: 2rem; background: var(--alpha-change-color-light-1); box-shadow: 0 10px 30px rgba(0,0,0,.1); opacity: 0; transition: opacity .4s, transform .4s ease-out; transform: translateX(if-ltr(-200%, 200%)); &.show { opacity: 1; transform: translateX(0); } .product { font-size: 0.92857em; @include if-rtl { flex-flow: row; } } figure.product-media { flex-basis: 8rem; max-width: 8rem; margin-#{$right}: 1.2rem; } div.product-details { max-width: calc(100% - 9.2rem); } a.product-title { display: block; margin-bottom: .8rem; color: var(--alpha-change-color-dark-1); font-size: 1.0769em; line-height: 1.43; @include text-block(); } figure { max-width: 9rem; } .btn { min-width: 12.5rem; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-size: 1.2rem; text-transform: capitalize; + .btn { margin-#{$left}: .5rem; } } } .minipopup-title { font-size: 1.07143em; text-align: center; margin-bottom: 1rem; } .minipopup-footer { display: flex; justify-content: space-between; margin-top: 1.5rem; .minipopup-box & .btn { padding: 0.9em 0; } }