import styled from "styled-components" import { Background, Wrapper } from "./styled" export const BnplWrapper = styled(Wrapper)` background: linear-gradient(90deg, #ab2185 0%, #5a24b3 79.67%); p { margin-bottom: 0; } ` export const BnplBackground = styled(Background)` background: unset; ` export const CurentText = styled.p` font-family: Oswald; font-style: normal; font-weight: 500; font-size: 30px; line-height: 140%; text-align: center; color: #ffffff; ` export const IdWrapper = styled.div` display: flex; flex-direction: row; align-items: center; margin-top: 10px; ` export const IdInput = styled.input` height: 30px; line-height: 30px; width: 80px; margin-left: 10px; font-size: 22px; ` export const FetchInput = styled.input` margin-left: 10px; height: 30px; ` export const ProductListStyled = styled.div` display: flex; align-items: center; width: 100%; flex-direction: column; .product-image-placeholder { position: relative; height: 800px; max-width: 360px; min-width: 320px; margin-top: 20px; >img { height: 100%; width: 100%; } .payment-block { position: absolute; bottom: 0; left: 0; height: 130px; width: 100%; .total-price, .button-controls { padding: 0 20px; } } } .star { position: relative; display: inline-block; width: 0; height: 0; margin-left: 0.9em; margin-right: 0.9em; margin-bottom: 1.2em; border-right: 0.3em solid transparent; border-bottom: 0.7em solid #939aa1; border-left: 0.3em solid transparent; /* Controlls the size of the stars. */ font-size: 8px; &:before, &:after { content: ""; display: block; width: 0; height: 0; position: absolute; top: 0.6em; left: -1em; border-right: 1em solid transparent; border-bottom: 0.7em solid #939aa1; border-left: 1em solid transparent; transform: rotate(-35deg); } &:after { transform: rotate(35deg); } } .total-price { font-size: 20px; color: #ffffff; margin: 10px 0; } .button-controls { margin-top: 5px; display: flex; .bnpl-btn { float: left; width: 57%; background: #1e266e; border-radius: 60px; padding: 1px 5px; font-size: 11px; color: #ffffff; cursor: pointer; height: 40px; display: flex; flex-direction: column; align-items: center; p { display: flex; align-items: center; justify-content: center; } } .next-btn { height: 40px; float: right; margin-left: 2%; width: 35%; background: #f9b514; border-radius: 60px; padding: 1px 5px; text-align: center; color: #333333; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; } } .product-block { position: relative; background: #ffffff; margin: 2px 0; padding: 5px 15px; height: 158px; .btn-close { position: absolute; top: 7px; right: 10px; font-size: 20px; font-weight: bold; color: #939aa1; } .index-num { position: absolute; top: 0; left: -7px; height: 18px; width: 18px; border-radius: 3px; text-align: center; font-size: 12px; background: #939aa1; color: #ffffff; } .star-block { position: absolute; top: 45%; left: -9px; } .product-row { display: block; float: left; width: 100%; &.title { font-weight: bold; font-size: 14px; padding: 7px; } &.content { height: 80px; margin-bottom: 0; .right { .detail { color: #939aa1; font-size: 13px; } } } &.controls { margin-bottom: 0; > div { float: right; } .checkbox { display: flex; align-items: center; height: 25px; margin-right: 40px; } .quantity { margin-right: 10px; display: flex; input { text-align: center; font-size: 15px; font-weight: bold; border: 1px solid #939aa1; } input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type="number"] { -moz-appearance: textfield; } } } .left { float: left; width: 25%; height: 100%; img { width: 100%; height: 100%; object-fit: contain; } } .right { float: left; margin-left: 3%; width: 72%; height: 100%; } } } ` export const SliderWrapperStyled = styled.div` margin-top: 10px; display: flex; align-items: center; > div { color: white; font-weight: bold; } .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: 0.4s; transition: 0.4s; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: 0.4s; transition: 0.4s; } input:checked + .slider { background-color: #2196f3; } input:focus + .slider { box-shadow: 0 0 1px #2196f3; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } /* Rounded sliders */ .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } ` export const ProductContentWrapper = styled.div` position: absolute; bottom: 130px; left: 0; height: 480px; width: 100%; display: flex; align-items: center; justify-content: center; ` export const ProductContent = styled.div` width: calc(100% - 24px); height: 100%; background: #f3f6fb; align-items: center; display: flex; justify-content: center; ` export const ProductBlockWrapper = styled.div` width: calc(100% - 12px); height: 100%; background: #f3f6fb; ` export const CheckboxStyled = styled.div` display: flex; align-items: center; height: 25px; margin-right: 40px; `