@zanina-yassine
Cheese Burger
Extra Spicy
No mayo
Your cart subtotal:
47.99$
Discount through applied coupons:
3.99$
Shipping fees:
4.99$
#form
#e8e8e8206 views
CSSAdd prefixes
1.master-container { 2 display: grid; 3 grid-template-columns: auto; 4 gap: 5px; 5} 6 7.card { 8 width: 400px; 9 background: #FFFFFF; 10 box-shadow: 0px 187px 75px rgba(0, 0, 0, 0.01), 0px 105px 63px rgba(0, 0, 0, 0.05), 0px 47px 47px rgba(0, 0, 0, 0.09), 0px 12px 26px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1); 11} 12 13.title { 14 width: 100%; 15 height: 40px; 16 position: relative; 17 display: flex; 18 align-items: center; 19 padding-left: 20px; 20 border-bottom: 1px solid #efeff3; 21 font-weight: 700; 22 font-size: 11px; 23 color: #63656b; 24} 25 26/* cart */ 27.cart { 28 border-radius: 19px 19px 7px 7px; 29} 30 31.cart .products { 32 display: flex; 33 flex-direction: column; 34 padding: 10px; 35} 36 37.cart .products .product { 38 display: grid; 39 grid-template-columns: 60px 1fr 80px 1fr; 40 gap: 10px; 41} 42 43.cart .products .product span { 44 font-size: 13px; 45 font-weight: 600; 46 color: #47484b; 47 margin-bottom: 8px; 48 display: block; 49} 50 51.cart .products .product p { 52 font-size: 11px; 53 font-weight: 600; 54 color: #7a7c81; 55} 56 57.cart .quantity { 58 height: 30px; 59 display: grid; 60 grid-template-columns: 1fr 1fr 1fr; 61 margin: auto; 62 background-color: #ffffff; 63 border: 1px solid #e5e5e5; 64 border-radius: 7px; 65 filter: drop-shadow(0px 1px 0px #efefef) 66 drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5)); 67} 68 69.cart .quantity label { 70 width: 20px; 71 height: 30px; 72 display: flex; 73 align-items: center; 74 justify-content: center; 75 padding-bottom: 2px; 76 font-size: 15px; 77 font-weight: 700; 78 color: #47484b; 79} 80 81.cart .quantity button { 82 width: 30px; 83 height: 30px; 84 display: flex; 85 align-items: center; 86 justify-content: center; 87 border: 0; 88 outline: none; 89 background-color: transparent; 90 padding-bottom: 2px; 91} 92 93.card .small { 94 font-size: 15px; 95 margin: 0 0 auto auto; 96} 97 98.card .small sup { 99 font-size: px; 100} 101 102/* coupons */ 103.coupons { 104 border-radius: 7px; 105} 106 107.coupons form { 108 display: grid; 109 grid-template-columns: 1fr 80px; 110 gap: 10px; 111 padding: 10px; 112} 113 114.input_field { 115 width: auto; 116 height: 36px; 117 padding: 0 0 0 12px; 118 border-radius: 5px; 119 outline: none; 120 border: 1px solid #e5e5e5; 121 filter: drop-shadow(0px 1px 0px #efefef) 122 drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5)); 123 transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1); 124} 125 126.input_field:focus { 127 border: 1px solid transparent; 128 box-shadow: 0px 0px 0px 2px #242424; 129 background-color: transparent; 130} 131 132.coupons form button { 133 display: flex; 134 flex-direction: row; 135 justify-content: center; 136 align-items: center; 137 padding: 10px 18px; 138 gap: 10px; 139 width: 100%; 140 height: 36px; 141 background: linear-gradient(180deg, #4480FF 0%, #115DFC 50%, #0550ED 100%); 142 box-shadow: 0px 0.5px 0.5px #EFEFEF, 0px 1px 0.5px rgba(239, 239, 239, 0.5); 143 border-radius: 5px; 144 border: 0; 145 font-style: normal; 146 font-weight: 600; 147 font-size: 12px; 148 line-height: 15px; 149 color: #ffffff; 150} 151 152/* Checkout */ 153.checkout { 154 border-radius: 9px 9px 19px 19px; 155} 156 157.checkout .details { 158 display: grid; 159 grid-template-columns: 3fr 1fr; 160 padding: 10px; 161 gap: 5px; 162} 163 164.checkout .details span { 165 font-size: 13px; 166 font-weight: 600; 167} 168 169.checkout .details span:nth-child(odd) { 170 font-size: 11px; 171 font-weight: 700; 172 color: #707175; 173 margin: auto auto auto 0; 174} 175 176.checkout .details span:nth-child(even) { 177 font-size: 13px; 178 font-weight: 600; 179 color: #47484b; 180 margin: auto 0 auto auto; 181} 182 183.checkout .checkout--footer { 184 display: flex; 185 align-items: center; 186 justify-content: space-between; 187 padding: 10px 10px 10px 20px; 188 background-color: #efeff3; 189} 190 191.price { 192 position: relative; 193 font-size: 22px; 194 color: #2B2B2F; 195 font-weight: 900; 196} 197 198.price sup { 199 font-size: 13px; 200} 201 202.price sub { 203 width: fit-content; 204 position: absolute; 205 font-size: 11px; 206 color: #5F5D6B; 207 bottom: 5px; 208 display: inline-block; 209} 210 211.checkout .checkout-btn { 212 display: flex; 213 flex-direction: row; 214 justify-content: center; 215 align-items: center; 216 width: 150px; 217 height: 36px; 218 background: linear-gradient(180deg, #4480FF 0%, #115DFC 50%, #0550ED 100%); 219 box-shadow: 0px 0.5px 0.5px #EFEFEF, 0px 1px 0.5px rgba(239, 239, 239, 0.5); 220 border-radius: 7px; 221 border: 0; 222 outline: none; 223 color: #ffffff; 224 font-size: 13px; 225 font-weight: 600; 226 transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1); 227}
HTML
1<div class="master-container"> 2 <div class="card cart"> 3 <label class="title">Your cart</label> 4 <div class="products"> 5 <div class="product"> 6 <svg fill="none" viewBox="0 0 60 60" height="60" width="60" xmlns="http://www.w3.org/2000/svg"> 7<rect fill="#FFF6EE" rx="8.25" height="60" width="60"></rect> 8<path stroke-linejoin="round" stroke-linecap="round" stroke-width="2.25" stroke="#FF8413" fill="#FFB672" d="M34.2812 18H25.7189C21.9755 18 18.7931 20.5252 17.6294 24.0434C17.2463 25.2017 17.0547 25.7808 17.536 26.3904C18.0172 27 18.8007 27 20.3675 27H39.6325C41.1993 27 41.9827 27 42.4639 26.3904C42.9453 25.7808 42.7538 25.2017 42.3707 24.0434C41.207 20.5252 38.0246 18 34.2812 18Z"></path> 9<path fill="#FFB672" d="M18 36H17.25C16.0074 36 15 34.9926 15 33.75C15 32.5074 16.0074 31.5 17.25 31.5H29.0916C29.6839 31.5 30.263 31.6754 30.7557 32.0039L33.668 33.9453C34.1718 34.2812 34.8282 34.2812 35.332 33.9453L38.2443 32.0039C38.7371 31.6754 39.3161 31.5 39.9084 31.5H42.75C43.9926 31.5 45 32.5074 45 33.75C45 34.9926 43.9926 36 42.75 36H42M18 36L18.6479 38.5914C19.1487 40.5947 20.9486 42 23.0135 42H36.9865C39.0514 42 40.8513 40.5947 41.3521 38.5914L42 36M18 36H28.5ZM42 36H39.75Z"></path> 10<path stroke-linejoin="round" stroke-linecap="round" stroke-width="2.25" stroke="#FF8413" d="M18 36H17.25C16.0074 36 15 34.9926 15 33.75C15 32.5074 16.0074 31.5 17.25 31.5H29.0916C29.6839 31.5 30.263 31.6754 30.7557 32.0039L33.668 33.9453C34.1718 34.2812 34.8282 34.2812 35.332 33.9453L38.2443 32.0039C38.7371 31.6754 39.3161 31.5 39.9084 31.5H42.75C43.9926 31.5 45 32.5074 45 33.75C45 34.9926 43.9926 36 42.75 36H42M18 36L18.6479 38.5914C19.1487 40.5947 20.9486 42 23.0135 42H36.9865C39.0514 42 40.8513 40.5947 41.3521 38.5914L42 36M18 36H28.5M42 36H39.75"></path> 11<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#FF8413" d="M34.512 22.5H34.4982"></path> 12<path stroke-linejoin="round" stroke-linecap="round" stroke-width="2.25" stroke="#FF8413" d="M27.75 21.75L26.25 23.25"></path> 13</svg> 14 <div> 15 <span>Cheese Burger</span> 16 <p>Extra Spicy</p> 17 <p>No mayo</p> 18 </div> 19 <div class="quantity"> 20 <button> 21 <svg fill="none" viewBox="0 0 24 24" height="14" width="14" xmlns="http://www.w3.org/2000/svg"> 22 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="2.5" stroke="#47484b" d="M20 12L4 12"></path> 23 </svg> 24 </button> 25 <label>2</label> 26 <button> 27 <svg fill="none" viewBox="0 0 24 24" height="14" width="14" xmlns="http://www.w3.org/2000/svg"> 28 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="2.5" stroke="#47484b" d="M12 4V20M20 12H4"></path> 29 </svg> 30 </button> 31 </div> 32 <label class="price small">$23.99</label> 33 </div> 34 </div> 35 </div> 36 37 <div class="card coupons"> 38 <label class="title">Apply coupons</label> 39 <form class="form"> 40 <input type="text" placeholder="Apply your coupons here" class="input_field"> 41 <button>Apply</button> 42 </form> 43 </div> 44 45 <div class="card checkout"> 46 <label class="title">Checkout</label> 47 <div class="details"> 48 <span>Your cart subtotal:</span> 49 <span>47.99$</span> 50 <span>Discount through applied coupons:</span> 51 <span>3.99$</span> 52 <span>Shipping fees:</span> 53 <span>4.99$</span> 54 </div> 55 <div class="checkout--footer"> 56 <label class="price"><sup>$</sup>57.99</label> 57 <button class="checkout-btn">Checkout</button> 58 </div> 59 </div> 60</div>