shoppingCart.css 14 KB

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