shoppingCart.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. body{
  2. /* background-color: #F8F8F8; */
  3. }
  4. #main{
  5. padding: 0 .24rem;
  6. }
  7. .sectionContainer{
  8. display: flex;
  9. justify-content: center;
  10. }
  11. .elementorContainer{
  12. max-width: 13.2rem;
  13. flex: 1;
  14. -moz-box-sizing: border-box;
  15. -webkit-box-sizing: border-box;
  16. box-sizing: border-box;
  17. }
  18. .pageContainer{
  19. max-width: 18.8rem;
  20. margin: 0 auto;
  21. padding-bottom: 1rem;
  22. }
  23. .pageTitle{
  24. color: #333;
  25. font-weight: bold;
  26. font-size: .34rem;
  27. padding-top: .6rem;
  28. }
  29. .pageDataBox{
  30. padding-top: .6rem;
  31. display: flex;
  32. justify-content: space-between;
  33. }
  34. .productConatiner{
  35. flex: 1;
  36. }
  37. .productModelTitle{
  38. color: #333;
  39. font-size: .2rem;
  40. font-weight: bold;
  41. margin-bottom: .2rem;
  42. }
  43. .productList{
  44. border-top: .02rem solid rgba(0, 0, 0, .2);
  45. border-bottom: .02rem solid rgba(0, 0, 0, .2);
  46. padding-top: .36rem;
  47. }
  48. .productItem{
  49. margin-bottom: .24rem;
  50. height: 1.4rem;
  51. display: flex;
  52. align-items: center;
  53. position: relative;
  54. }
  55. .productImgBox{
  56. width: 1.4rem;
  57. height: 100%;
  58. }
  59. .productImgBox img{
  60. width: 100%;
  61. height: 100%;
  62. }
  63. .productInfo{
  64. padding-left: .22rem;
  65. flex: 1;
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: center;
  69. }
  70. .lfBox{
  71. flex: 1;
  72. padding-right: .12rem;
  73. }
  74. .lfBox .productTitle{
  75. font-size: .24rem;
  76. font-weight: bold;
  77. color: #434343;
  78. line-height: 1.4;
  79. display: -webkit-box;
  80. -webkit-line-clamp: 3;
  81. -webkit-box-orient: vertical;
  82. overflow: hidden;
  83. word-break: break-all;
  84. }
  85. .lfBox .specs{
  86. font-size: .2rem;
  87. color: #999999;
  88. overflow: hidden;
  89. white-space: nowrap;
  90. text-overflow: ellipsis;
  91. }
  92. .nunberBox{
  93. display: flex;
  94. align-items: center;
  95. color: #666666;
  96. }
  97. .numberInput{
  98. font-size: .24rem;
  99. font-weight: bold;
  100. }
  101. .numberReduce,.numberAdd{
  102. cursor: pointer;
  103. padding: .12rem .24rem;
  104. font-size: .24rem;
  105. vertical-align: middle;
  106. }
  107. .productPrice{
  108. color: #434343;
  109. font-weight: bold;
  110. font-size: .28rem;
  111. width: 3rem;
  112. text-align: center;
  113. word-break: break-all;
  114. }
  115. .productDelete{
  116. padding: 0 .36rem;
  117. cursor: pointer;
  118. }
  119. .productDelete img{
  120. width: .24rem;
  121. }
  122. .windContainer{
  123. width: 4.8rem;
  124. margin-left: 1rem;
  125. }
  126. .windTBox{
  127. display: flex;
  128. align-items: center;
  129. justify-content: space-between;
  130. font-size: .2rem;
  131. margin-bottom: .2rem;
  132. padding-right: .36rem;
  133. }
  134. .windTBox .lt{
  135. flex: 1;
  136. color: #434343;
  137. }
  138. .windTBox .cartTotals{
  139. color: #666666;
  140. }
  141. .linkItem{
  142. border-top: .02rem solid rgba(0, 0, 0, .2);
  143. border-bottom: .02rem solid rgba(0, 0, 0, .2);
  144. padding: .24rem 0 .16rem 0;
  145. }
  146. .mbItem{
  147. padding: .12rem 0;
  148. margin-bottom: .4rem;
  149. }
  150. .windInfoBox{
  151. display: flex;
  152. align-items: center;
  153. justify-content: space-between;
  154. color: #999999;
  155. font-size: .2rem;
  156. line-height: 1.4;
  157. margin-bottom: .08rem;
  158. padding-right: .36rem;
  159. }
  160. .windInfoBox .key{
  161. flex: 1;
  162. word-break: break-all;
  163. }
  164. .keyItem{
  165. margin-bottom: .1rem;
  166. }
  167. .windInfoBox .val{
  168. padding-left: .12rem;
  169. word-break: break-all;
  170. max-width: 1.2rem;
  171. }
  172. .windInfoBox.freeshipping .key{
  173. color: rgba(79, 73, 222, 1);
  174. }
  175. /* new start------------------------ */
  176. #selectABox{
  177. display: none;
  178. }
  179. #selectAddress{
  180. cursor: pointer;
  181. color: rgba(79, 73, 222, 1);
  182. padding: .04rem 0;
  183. margin-bottom: .08rem;
  184. }
  185. #addressListBox{
  186. padding-bottom: .24rem;
  187. display: none;
  188. }
  189. #addressList{
  190. border: .02rem solid rgba(0, 0, 0, .05);
  191. padding: .08rem;
  192. border-radius: .08rem;
  193. max-height: 3rem;
  194. overflow-y: scroll;
  195. scrollbar-width: none;
  196. -ms-overflow-style: none;
  197. }
  198. #addressList::-webkit-scrollbar {
  199. display: none;
  200. }
  201. .addressItem{
  202. display: flex;
  203. align-items: center;
  204. cursor: pointer;
  205. padding: .06rem 0;
  206. }
  207. .addressItem .iconBox{
  208. font-size: 0;
  209. font-size: 0;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. width: .24rem;
  214. height: .24rem;
  215. position: relative;
  216. }
  217. .addressItem .iconBox img{
  218. width: .2rem;
  219. height: .2rem;
  220. position: absolute;
  221. display: block;
  222. }
  223. .addressItem .iconBox img.sel{
  224. width: .22rem;
  225. height: .22rem;
  226. display: none;
  227. }
  228. .addressItem.active .iconBox img.noSel{
  229. display: none;
  230. }
  231. .addressItem.active .iconBox img.sel{
  232. display: block;
  233. }
  234. .itAddInfo{
  235. flex: 1;
  236. padding: 0 .12rem;
  237. font-size: .15rem;
  238. color: #999999;
  239. word-break: break-all;
  240. line-height: 1.4;
  241. }
  242. .addressDelete{
  243. color: rgba(79, 73, 222, 1);
  244. font-size: .14rem;
  245. }
  246. .selAddressButtonBox{
  247. display: flex;
  248. align-items: center;
  249. gap: .16rem;
  250. justify-content: flex-end;
  251. padding-top: .24rem;
  252. }
  253. #selCancel,#selSave{
  254. background-color: rgba(79, 73, 222, 1);
  255. color: #FFF;
  256. font-size: .15rem;
  257. border-radius: .04rem;
  258. height: .4rem;
  259. display: flex;
  260. align-items: center;
  261. justify-content: center;
  262. width: 1.2rem;
  263. cursor: pointer;
  264. -moz-box-sizing: border-box;
  265. -webkit-box-sizing: border-box;
  266. box-sizing: border-box;
  267. }
  268. #selCancel{
  269. border: .02rem solid rgba(0, 0, 0, .2);
  270. background: transparent;
  271. color: #434343;
  272. }
  273. #deleteAddressModal{
  274. position: fixed;
  275. z-index: 999;
  276. top: 0;
  277. left: 0;
  278. bottom: 0;
  279. right: 0;
  280. background-color: rgba(0, 0, 0, .5);
  281. display: none;
  282. }
  283. #deleteAddressModal .deleteAddressBox{
  284. border-radius: .06rem;
  285. overflow: hidden;
  286. margin: 25% auto 0 auto;
  287. width: 4rem;
  288. padding: .24rem;
  289. background-color: #fff;
  290. border-radius: .12rem;
  291. }
  292. .deteTips{
  293. font-size: .24rem;
  294. font-weight: bold;
  295. word-break: break-all;
  296. text-align: center;
  297. padding: .12rem 0;
  298. line-height: 1.5;
  299. }
  300. .deteTips #daleteAddInfo{
  301. color: rgba(79, 73, 222, 1);
  302. }
  303. .deteButtonBox{
  304. display: flex;
  305. align-items: center;
  306. justify-content: center;
  307. padding-top: .24rem;
  308. }
  309. #cancelDelete,#confirmDelete{
  310. background-color: rgba(79, 73, 222, 1);
  311. color: #FFF;
  312. font-size: .2rem;
  313. border-radius: .04rem;
  314. margin: 0 .24rem;
  315. height: .5rem;
  316. display: flex;
  317. align-items: center;
  318. justify-content: center;
  319. width: 1.3rem;
  320. cursor: pointer;
  321. -moz-box-sizing: border-box;
  322. -webkit-box-sizing: border-box;
  323. box-sizing: border-box;
  324. }
  325. #cancelDelete{
  326. border: .02rem solid rgba(0, 0, 0, .2);
  327. background: transparent;
  328. color: #434343;
  329. }
  330. /* new end------------------------ */
  331. #changeAddress{
  332. cursor: pointer;
  333. color: rgba(79, 73, 222, 1);
  334. }
  335. .totalBox{
  336. display: flex;
  337. align-items: center;
  338. justify-content: space-between;
  339. font-size: .22rem;
  340. border-top: .02rem solid rgba(0, 0, 0, .2);
  341. padding-top: .32rem;
  342. margin-bottom: .48rem;
  343. }
  344. .totalBox .totalT{
  345. color: #333333;
  346. flex: 1;
  347. word-break: break-all;
  348. font-weight: bold;
  349. }
  350. .totalBox .totalVal{
  351. color: #999999;
  352. max-width: 1.2rem;
  353. word-break: break-all;
  354. }
  355. .payPalButton,.checkoutButton{
  356. background-color: rgba(79, 73, 222, 1);
  357. color: #FFF;
  358. font-weight: bold;
  359. font-size: .22rem;
  360. width: 100%;
  361. height: .62rem;
  362. display: flex;
  363. align-items: center;
  364. justify-content: center;
  365. cursor: pointer;
  366. margin-bottom: .2rem;
  367. }
  368. .checkoutButton{
  369. background-color: rgba(51, 55, 59, 1);
  370. }
  371. .orBox{
  372. display: flex;
  373. align-items: center;
  374. padding: .06rem .24rem 0 .24rem;
  375. margin-bottom: .26rem;
  376. }
  377. .orBox .link{
  378. flex: 1;
  379. height: .02rem;
  380. background-color: rgba(0, 0, 0, .1);
  381. }
  382. .orBox .or{
  383. padding: 0 .12rem;
  384. font-size: .18rem;
  385. font-weight: bold;
  386. color: #999999;
  387. }
  388. #addressContainer{
  389. margin-bottom: .24rem;
  390. display: none;
  391. }
  392. .addressItem{
  393. display: flex;
  394. align-items: center;
  395. padding: .06rem 0;
  396. }
  397. .addItmeTitle{
  398. width: 1.4rem;
  399. text-align: right;
  400. font-size: .16rem;
  401. color: #999999;
  402. padding-right: .08rem;
  403. }
  404. #areaSelect{
  405. height: .4rem;
  406. font-size: .16rem;
  407. border: .02rem solid rgba(0, 0, 0, .05);
  408. border-radius: .08rem;
  409. color: #434343;
  410. padding: 0 .12rem;
  411. }
  412. .addInput{
  413. flex: 1;
  414. height: .45rem;
  415. font-size: .15rem;
  416. border: .02rem solid rgba(0, 0, 0, .05);
  417. border-radius: .08rem;
  418. padding: 0 .12rem;
  419. color: #434343;
  420. }
  421. #addressButModel{
  422. display: none;
  423. }
  424. .addressButtonBox{
  425. display: flex;
  426. align-items: center;
  427. gap: .16rem;
  428. justify-content: flex-end;
  429. padding-top: .24rem;
  430. }
  431. #addCancel,#addSave{
  432. background-color: rgba(79, 73, 222, 1);
  433. color: #FFF;
  434. font-size: .15rem;
  435. border-radius: .04rem;
  436. height: .4rem;
  437. display: flex;
  438. align-items: center;
  439. justify-content: center;
  440. width: 1.2rem;
  441. cursor: pointer;
  442. -moz-box-sizing: border-box;
  443. -webkit-box-sizing: border-box;
  444. box-sizing: border-box;
  445. }
  446. #addCancel{
  447. border: .02rem solid rgba(0, 0, 0, .2);
  448. background: transparent;
  449. color: #434343;
  450. }
  451. #loadingModel{
  452. position: fixed;
  453. z-index: 999;
  454. top: 0;
  455. left: 0;
  456. bottom: 0;
  457. right: 0;
  458. background-color: rgba(0, 0, 0, .5);
  459. display: none;
  460. }
  461. #loadingModel .loadingBox{
  462. border-radius: .06rem;
  463. overflow: hidden;
  464. font-size: 0;
  465. margin: 25% auto 0 auto;
  466. width: 1rem;
  467. }
  468. #loadingModel .loadingBox img{
  469. width: 1rem;
  470. }
  471. @media (max-width: 1680px) {
  472. .productPrice{
  473. width: 2rem;
  474. font-size: .24rem;
  475. }
  476. .windContainer{
  477. margin-left: .6rem;
  478. }
  479. .productDelete img{
  480. width: .2rem;
  481. }
  482. .numberInput{
  483. font-size: .2rem;
  484. }
  485. .lfBox .productTitle{
  486. font-size: .22rem;
  487. }
  488. .lfBox .specs{
  489. font-size: .18rem;
  490. }
  491. }
  492. @media (max-width: 1499px) {
  493. .productPrice{
  494. width: 1.8rem;
  495. font-size: .22rem;
  496. }
  497. .lfBox .productTitle{
  498. font-size: .2rem;
  499. }
  500. .windContainer{
  501. width: 4rem;
  502. }
  503. .windTBox{
  504. font-size: .18rem;
  505. }
  506. .windInfoBox{
  507. font-size: .18rem;
  508. }
  509. .totalBox{
  510. font-size: .2rem;
  511. }
  512. .payPalButton,.checkoutButton{
  513. font-size: .2rem;
  514. height: .52rem;
  515. }
  516. .mbItem{
  517. margin-bottom: .3rem;
  518. }
  519. .pageTitle{
  520. font-size: .3rem;
  521. }
  522. }
  523. @media (max-width: 1299px) {
  524. .pageDataBox{
  525. flex-direction: column;
  526. align-items: flex-end;
  527. }
  528. .productConatiner{
  529. width: 100%;
  530. }
  531. .productList{
  532. padding-left: .12rem;
  533. }
  534. .windContainer{
  535. margin-left: 0;
  536. padding-top: .8rem;
  537. }
  538. }
  539. @media (max-width: 1199px) {
  540. .productDelete{
  541. position: absolute;
  542. top: 0;
  543. right: 0;
  544. padding: 0 .12rem .12rem .12rem;
  545. }
  546. .addItmeTitle{
  547. font-size: .2rem;
  548. }
  549. #areaSelect{
  550. font-size: .2rem;
  551. height: .5rem;
  552. }
  553. .addInput{
  554. font-size: .2rem;
  555. height: .55rem;
  556. }
  557. #addCancel,#addSave{
  558. font-size: .2rem;
  559. height: .5rem;
  560. }
  561. /* new start------------------------ */
  562. .windContainer{
  563. width: auto;
  564. padding-left: .52rem;
  565. padding-right: .52rem;
  566. }
  567. #addressList{
  568. padding: .12rem;
  569. max-height: 4rem;
  570. }
  571. .addressItem{
  572. display: flex;
  573. align-items: center;
  574. cursor: pointer;
  575. padding: .12rem 0;
  576. }
  577. .addressItem .iconBox{
  578. width: .26rem;
  579. height: .26rem;
  580. }
  581. .addressItem .iconBox img{
  582. width: .24rem;
  583. height: .24rem;
  584. }
  585. .addressItem .iconBox img.sel{
  586. width: .26rem;
  587. height: .26rem;
  588. }
  589. .itAddInfo{
  590. font-size: .22rem;
  591. }
  592. .addressDelete{
  593. color: rgba(79, 73, 222, 1);
  594. font-size: .22rem;
  595. }
  596. #selCancel,#selSave{
  597. font-size: .2rem;
  598. height: .5rem;
  599. }
  600. #deleteAddressModal .deleteAddressBox{
  601. width: 5rem;
  602. padding: .36rem .24rem;
  603. }
  604. .deteTips{
  605. font-size: .28rem;
  606. line-height: 1.5;
  607. }
  608. #cancelDelete,#confirmDelete{
  609. font-size: .22rem;
  610. height: .56rem;
  611. }
  612. /* new end------------------------ */
  613. }
  614. @media (max-width: 750px) {
  615. .pageDataBox{
  616. display: block;
  617. }
  618. .windContainer{
  619. width: auto;
  620. padding-left: .52rem;
  621. padding-right: .52rem;
  622. }
  623. .pageTitle{
  624. font-size: .3rem;
  625. }
  626. .productModelTitle{
  627. font-size: .24rem;
  628. }
  629. .productItem{
  630. height: auto;
  631. min-height: 1.2rem;
  632. padding: .12rem 0;
  633. margin-bottom: 0;
  634. margin-bottom: .12rem;
  635. }
  636. .productImgBox{
  637. width: 1.2rem;
  638. height: 1.2rem;
  639. }
  640. .lfBox .productTitle{
  641. font-size: .22rem;
  642. }
  643. .lfBox .specs{
  644. font-size: .2rem;
  645. }
  646. .productPrice{
  647. text-align: right;
  648. font-size: .26rem;
  649. }
  650. .numberInput{
  651. font-size: .24rem;
  652. }
  653. .numberReduce,.numberAdd{
  654. font-size: .26rem;
  655. }
  656. .windTBox{
  657. font-size: .24rem;
  658. }
  659. .windInfoBox{
  660. font-size: .24rem;
  661. }
  662. .totalBox{
  663. font-size: .26rem;
  664. }
  665. .payPalButton,.checkoutButton{
  666. font-size: .26rem;
  667. height: .76rem;
  668. }
  669. .orBox .or{
  670. font-size: .2rem;
  671. }
  672. .totalBox .totalVal{
  673. max-width: 2rem;
  674. }
  675. .windInfoBox .val{
  676. max-width: 2rem;
  677. }
  678. #loadingModel .loadingBox{
  679. margin: 50% auto 0 auto;
  680. width: 1.5rem;
  681. }
  682. #loadingModel .loadingBox img{
  683. width: 1.5rem;
  684. }
  685. }