shoppingCart.css 14 KB

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