fix fav
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / layout / _checkout.scss
1 //Support bar
2 .l-checkout__support {
3     margin-bottom: 22px;
4
5     margin-left: 16px;
6     margin-right: 16px;
7 }
8
9 .l-checkout__support__bar {
10   background: #E6F0F1 url(../images/approval.svg) center right 5px no-repeat;
11   border-radius: 10px;
12   width: 100%; height: 34px;
13   position: relative;
14   flex: 1;
15   span {
16     position: absolute;
17     top: 0; left: 0;
18     height: 100%;
19     background: #92BD39;
20     border-radius: 10px;
21     &:after {
22         white-space: nowrap;
23         color: #083F4D;
24         top: 0; left:10px; bottom: 2px;
25         @include rwd($B5) {
26             color: #FFFFFF;
27             right: 13px;
28             left: auto;
29         }
30       margin: auto;
31       position: absolute;
32       content: attr(data-label);
33       font-weight: bold;
34       font-size: 15px;
35       display: flex;
36       align-items: center;
37       justify-content: center;
38     }
39   }
40 }
41
42 .l-checkout__support__footer {
43   display: flex;
44   margin-top: 7px;
45   justify-content: space-between;
46   align-items: flex-start;
47   gap: 15px;
48   p {
49     margin: 0;
50     font-weight: normal;
51     font-size: 15px;
52     line-height: 150%;
53     color: #083F4D;
54   }
55 }
56
57 //Box
58 .l-checkout__box {
59   background: #E1F1F2;
60   border-radius: 10px;
61   padding-bottom: 30px;
62   overflow: hidden;
63   margin: 0 16px;
64 }
65
66 .l-checkout__box__header {
67   display: flex;
68   background: #083F4D;
69
70   .l-checkout__box__header__img {
71       display: none;
72       background-position: center;
73       background-size: cover;
74       @include rwd($break-flow) {
75           display: block;
76           width: 50%;
77       }
78   }
79 }
80
81 .l-checkout__box__header__content h1 {
82   font-style: italic;
83   font-weight: 300;
84   font-size: 48px;
85   line-height: 55px;
86   letter-spacing: -0.02em;
87   color: #92BD39;
88   margin: 0;
89 }
90
91 .l-checkout__box__header__content p:first-of-type {
92   font-style: normal;
93   font-weight: 600;
94   font-size: 21.5px;
95   line-height: 140%;
96   letter-spacing: -0.01em;
97   color: #FFFFFF;
98   margin-top: 23px;
99 }
100
101 .l-checkout__box__header__content p {
102   font-weight: normal;
103   font-size: 18px;
104   line-height: 150%;
105   color: #FFFFFF;
106   margin-top: 8px;
107 }
108
109 .l-checkout__box__header__content {
110   padding: 32px 45px;
111 }
112
113 //Steps
114 .l-checkout__steps {
115   display: flex;
116   margin-top: -24px;
117   justify-content: space-around;
118
119   @include rwd($break-flow) {
120       padding: 0 125px;
121       justify-content: space-between;
122   }
123
124   div {
125     width: 145px;
126     display: flex;
127     flex-direction: column;
128     align-items: center;
129     justify-content: center;
130
131     span {
132       width: 46px;
133       height: 46px;
134       background: #86AD34;
135       color: white;
136       border-radius: 50%;
137       display: flex;
138       align-items: center;
139       justify-content: center;
140       font-weight: 600;
141       font-size: 21px;
142       line-height: 140%;
143       letter-spacing: -0.01em;
144     }
145
146     p {
147       margin-top: 4px;
148       font-weight: 600;
149       font-size: 21px;
150       line-height: 140%;
151       text-align: center;
152       letter-spacing: -0.01em;
153       color: #083F4D;
154       display: none;
155       @include rwd($break-flow) {
156           display: block;
157       }
158     }
159
160     &.is-completed {
161       span {
162         overflow: hidden;
163         text-indent: -999px;
164         background: #86AD34 url(../images/check.svg) center no-repeat;
165       }
166     }
167
168     &.is-inactive {
169       span {
170         background: #ffffff;
171         color: #003C3C;
172       }
173       p {
174         color: #74BDC2;
175         font-weight: normal;
176       }
177     }
178   }
179 }
180
181 //Switch
182 .l-switch__wrapper {
183   display: flex;
184   align-items: center;
185   justify-content: center;
186   margin-top: 35px;
187   width: 100%;
188 }
189
190 .l-switch {
191   background: #fff;
192   display: block;
193   position: relative;
194   height: 26px;
195   width: 77px;
196   border-radius: 4px;
197 }
198
199 .l-switch label {
200   color: #74BDC2;
201   font-weight: 600;
202   font-size: 18.5px;
203   line-height: 26px;
204   transition: color .2s ease;
205   width: 122px;
206   cursor: pointer;
207
208   @include rwd($break-flow) {
209       font-size: 21.5px;
210   }
211 }
212
213 .l-switch label:nth-of-type(1) {
214   left: -175%;
215   position: absolute;
216   text-align: right;
217 }
218
219 .l-switch label:nth-of-type(2) {
220   position: absolute;
221   right: -175%;
222   text-align: left;
223 }
224
225 .l-switch input {
226   left: 0;
227   opacity: 0;
228   position: absolute;
229   top: 0;
230   height: 26px;
231   width: 77px;
232   z-index: 2;
233 }
234
235 .toggle-input-left:checked ~ .l-switch__wrapper {
236     .toggle-for-left {
237         color: #003C3C;
238     }
239     .toggle {
240         left: 5px;
241     }
242 }
243 .toggle-input-right:checked ~ .l-switch__wrapper {
244     .toggle-for-right {
245         color: #003C3C;
246     }
247     .toggle {
248         left: 39px;
249     }
250 }
251 .l-switch input:checked~label:nth-of-type(1) { color: #003C3C; }
252 .l-switch input~:checked~label:nth-of-type(2) { color: #003C3C; }
253
254 .l-switch input:checked~.toggle {
255   left: 5px;
256 }
257
258 .l-switch input~:checked~.toggle {
259   left: 39px;
260 }
261
262 .l-switch input:checked {
263   z-index: 0;
264 }
265
266 .toggle {
267   background: #003C3C;
268   left: 0;
269   position: absolute;
270   top: 5px;
271   transition: left .2s ease;
272   height: 16px;
273   width: 33px;
274   z-index: 1;
275   border-radius: 2px;
276   cursor: pointer;
277 }
278
279 //Payments
280 .l-checkout__payments {
281     display: none;
282     padding: 0 16px;
283   margin-top: 34px;
284   margin-bottom: 0;
285   flex-wrap: wrap;
286   justify-content: flex-start;
287   flex-direction: row;
288   column-gap: 16px;
289
290   @include rwd($break-flow) {
291       //flex-direction: row;
292       padding: 0 30px;
293       column-gap: 30px;
294   }
295 }
296
297 .l-checkout__payments__box {
298   display: flex;
299   flex-direction: column;
300   background: #FFFFFF;
301   border-radius: 10px;
302   overflow: hidden;
303   transition: box-shadow $ease-out 250ms;
304   box-shadow: 0px 0px 0px rgba(55, 170, 156, 0);
305   margin-bottom: 30px;
306   width: 100%;
307
308   @include rwd($break-flow) {
309       width: calc(33.333% - 20px);
310   }
311   h3 {
312     margin: 0;
313     font-weight: bold;
314     font-size: 44px;
315     line-height: 130%;
316     letter-spacing: -0.01em;
317     color: #083F4D;
318     height: 90px;
319     display: flex;
320     align-items: center;
321     justify-content: center;
322     transition: all $ease-out 250ms;
323
324     span {
325       font-weight: 600;
326       font-size: 25px;
327       line-height: 140%;
328       letter-spacing: -0.01em;
329       color: #92BD39;
330       margin-left: 10px;
331       transition: opacity $ease-out 250ms;
332     }
333   }
334   .l-checkout__payments__box__btn-wrp {
335       padding: 20px;
336     margin-bottom: 0;
337     margin-top: auto;
338   }
339   p {
340     margin-top: 0;
341     font-weight: normal;
342     font-size: 16px;
343     line-height: 150%;
344     color: #474747;
345     padding: 20px;
346     strong {
347       font-weight: 600;
348     }
349   }
350   button {
351       margin: 0;
352       font-family: "Source Sans Pro",sans-serif;
353     font-weight: bold;
354     font-size: 44px;
355     letter-spacing: -0.01em;
356     min-height: 90px;
357     display: flex;
358     align-items: center;
359     justify-content: center;
360     transition: all $ease-out 250ms;
361
362     background: #FFFFFF;
363     border: 1px solid #92BD39;
364     border-radius: 3px;
365     width: 100%;
366     outline: 0;
367     cursor: pointer;
368     text-align: center;
369     color: #083F4D;
370
371     flex-direction: column;
372     @include rwd($break-flow) {
373         flex-direction: row;
374         line-height: 130%;
375     }
376
377     span {
378       font-weight: 600;
379       font-size: 25px;
380       letter-spacing: -0.01em;
381       color: #92BD39;
382       margin-left: 10px;
383       transition: opacity $ease-out 250ms;
384     }
385     
386     &:hover {
387       background: rgba(#92BD39, 0.75);
388     }
389   }
390   img {
391       display: none;
392       @include rwd($break-flow) {
393           display: block;
394       }
395   }
396
397   &.is-active {
398       box-shadow: 0px 0px 20px rgba(55, 170, 156, 0.35);
399       background: white;
400       color: black;
401
402     h3 {
403       color: white;
404       background: #083F4D;
405     }
406
407     button {
408       background: #92BD39;
409       &:hover {
410         background: #83AD2B;
411       }
412       span {
413           color: white;
414       }
415     }
416   }
417
418   &.l-checkout__payments__box--half {
419       width: calc(50% - 8px);
420       @include rwd($break-flow) {
421           width: calc(33.333% - 20px);
422       }
423
424       &.is-active {
425           background: #083F4D;
426           color: white;
427
428           @include rwd($break-flow) {
429               background: white;
430               color: black;
431           }
432       }
433   }
434   &.l-checkout__payments__box--bar {
435       flex-direction: row;
436       
437       @include rwd($break-flow) {
438           flex-direction: column;
439       }
440
441       &.is-active {
442           background: #083F4D;
443           color: white;
444
445           @include rwd($break-flow) {
446               background: white;
447               color: black;
448           }
449       }
450
451       h3, .l-checkout__payments__box__btn-wrp {
452           flex-grow: 1;
453       }
454   }
455   &.l-checkout__payments__box--card {
456   }
457   
458   &.l-checkout__payments__box--xl {
459       width: 100%;
460       justify-content: center;
461       min-height: 160px;
462
463       @include rwd($break-flow) {
464           width: calc(67.4% - 20px);
465           padding-left: calc(33.7% - 10px);
466           position: relative;
467
468           h3 {
469               position: absolute;
470               left: 0;
471               top: 0;
472               padding-right: 50%;
473           }
474           
475           .l-checkout__payments__box__btn-wrp {
476               margin: 0;
477
478               p {
479                   flex-wrap: wrap;
480                   max-width: 340px;
481                   margin-right: 20px;
482               }
483
484               button {
485                   position: absolute;
486                   bottom: 20px;
487                   left: 20px;
488                   width: calc(50% - 50px);
489                   align-items: center;
490                   justify-content: center;
491               }
492           }
493       }
494
495     h3 {
496       width: 100%;
497     }
498
499     .l-checkout__payments__box__btn-wrp {
500       width: 100%;
501     }
502
503     &.once {
504       h3 {
505         text-indent: 0;
506         padding-left: 0;
507       }
508     }
509   }
510   &.l-checkout__payments__box--special {
511     button {
512       border-color: #FFA500;
513       background-color: #FFA500;
514       &:hover {
515         background: darken(#FFA500, 5%);
516       }
517     }
518   }
519 }
520
521 //Amount
522 .l-checkout__amount {
523   display: flex;
524   flex-direction: column;
525   padding: 0 16px;
526   row-gap: 16px;
527
528   @include rwd($break-flow) {
529       flex-direction: row;
530       align-items: flex-end;
531       justify-content: flex-end;
532       padding-right: 30px;
533   }
534   
535   button {
536       border: none;
537     height: 56px;
538     background: #083F4D;
539     border-radius: 3px;
540     font-weight: 600;
541     font-size: 20px;
542     line-height: 25px;
543     display: flex;
544     align-items: center;
545     justify-content: center;
546     text-align: center;
547     color: #FFFFFF;
548
549     @include rwd($break-flow) {
550         margin-left: 32px;
551         width: 340px;
552     }
553
554   }
555
556   .l-checkout__input {
557       @include rwd($break-flow) {
558           width: 340px;
559       }
560   }
561 }
562
563
564
565 //Input
566 .l-checkout__input {
567   display: flex;
568   flex-direction: column;
569
570   label {
571     font-style: normal;
572     font-weight: 600;
573     font-size: 15px;
574     line-height: 160%;
575     color: #083F4D;
576     span { color: #FF4C54; }
577   }
578   input, select, textarea {
579       width: 100%;
580     height: 56px;
581     background: #FFFFFF;
582     border: 1px solid #D5ECED;
583     border-radius: 3px;
584     transition: all $ease-out 250ms;
585     padding: 10px;
586     outline: 0;
587
588     &:focus {
589       border: 1px solid #007880;
590     }
591   }
592
593   button {
594     height: 40px;
595     background: #083F4D;
596     border: none;
597     border-radius: 3px;
598     font-weight: 600;
599     font-size: 16px;
600     line-height: 25px;
601     display: flex;
602     align-items: center;
603     justify-content: center;
604     text-align: center;
605     color: #FFFFFF;
606
607     @include rwd($break-flow) {
608         height: 56px;
609         font-size: 20px;
610         width: 340px;
611         margin-left: 32px;
612     }
613   }
614 }
615
616 //Cols
617 .l-checkout__cols {
618   display: flex;
619   flex-direction: column;
620   margin-top: 50px;
621   padding: 0 16px;
622
623   @include rwd($break-flow) {
624       padding: 0 30px;
625       flex-direction: row;
626   }
627   
628   &.bt-w {
629     margin-top: 30px;
630     padding-top: 20px;
631     border-top: 1px solid white;
632   }
633 }
634
635 .l-checkout__col {
636   @include rwd($break-flow) {
637   &:nth-child(1) {
638     width: 402px;
639     padding-right: 62px;
640     .l-checkout__payments__box {
641       width: 100%;
642     }
643   }
644   &:nth-child(2) {
645     width: calc(100% - 402px);
646   }
647   &.full {
648     width: 100%;
649     padding-right: 0;
650
651     .l-checkout__form__row.full {
652       flex-direction: row;
653
654       & > h3 {
655         margin-top: 22px;
656       }
657
658       .l-checkout__info {
659         width: 100%;
660         padding-left: 100px;
661       }
662     }
663   }
664   }
665 }
666
667 .l-checkout__secure {
668     margin-top: 30px;
669     margin-right: 30px;
670     text-align: right;
671     font-size: 15px;
672     color: #888;
673
674     .l-checkout__secure__padlock {
675         margin-right: 5px;
676         vertical-align: baseline;
677     }
678     
679     .l-checkout__secure__img {
680         margin-left: 10px;
681         vertical-align: bottom;
682     }
683 }
684
685
686 //Form
687 .l-checkout__form {
688   display: flex;
689   width: 100%;
690   flex-direction: column;
691 }
692
693 .l-checkout__form__row {
694     display: flex;
695     flex-direction: column;
696     gap: 20px;
697   margin-bottom: 24px;
698
699   @include rwd($break-flow) {
700       flex-direction: row;
701   }
702   
703   &.full {
704     flex-direction: column;
705     @include rwd($break-flow) {
706         flex-direction: column;
707     }
708   }
709
710   h3 {
711     margin-top: 0;
712     font-weight: 600;
713     font-size: 21.5px;
714     line-height: 140%;
715     letter-spacing: -0.01em;
716     color: #083F4D;
717   }
718
719   .iframe {
720     margin-top: 16px;
721   }
722
723   .l-checkout__input {
724     width: 100%;
725   }
726
727   & > a {
728     font-weight: 600;
729     font-size: 20px;
730     line-height: 25px;
731     color: #74BDC2;
732     transition: all $ease-out 250ms;
733
734     &:hover {
735       color: #007880;
736     }
737   }
738
739   &.confirm {
740       display: flex;
741       flex-direction: row;
742     align-items: center;
743     justify-content: stretch;
744     width: 100%;
745     gap: 50px;
746
747     @include rwd($break-flow) {
748         justify-content: space-between;
749     }
750     
751     .l-checkout__input {
752         flex-grow: 1;
753         @include rwd($break-flow) {
754             width: auto;
755             flex-grow: 0;
756         }
757     }
758   }
759   .errorlist {
760       padding: 0;
761       margin: 0;
762       list-style: none;
763       color: #FF4C54;
764       li:before {
765           content: 'âš  ';
766       }
767   }
768 }
769
770 //Info
771 .l-checkout__info__item {
772   position: relative;
773   display: flex;
774   align-items: center;
775   justify-content: space-between;
776   transition: all $ease-out 250ms;
777   width: 100%;
778   overflow: hidden;
779   margin-top: 15px;
780
781   &:hover {
782     background-color: darken(#E1F1F2, 2%);
783   }
784
785   div {
786     font-weight: normal;
787     font-size: 15px;
788     line-height: 150%;
789     color: #083F4D;
790     width: 100px;
791   }
792
793   h3 {
794     width: 426px;
795     font-weight: 500;
796     font-size: 18px;
797     line-height: 150%;
798     color: #083F4D;
799     padding-left: 30px;
800   }
801
802   button {
803     outline: 0;
804     background: transparent;
805     border: 0;
806     cursor: pointer;
807     display: flex;
808     align-items: center;
809     justify-content: center;
810     margin-right: 0;
811     margin-left: auto;
812     &:hover {
813       opacity: 0.75;
814     }
815   }
816   input {
817     top: 0;
818     left: 0;
819     position: absolute;
820     transform: translate(-100%,-100%);
821   }
822 }
823
824 //Completed
825 .l-checkout__completed {
826   display: flex;
827   align-items: center;
828   justify-content: center;
829   flex-direction: column;
830   margin: auto;
831   padding: 140px 0;
832   background: url(../images/checkout-bg.png) no-repeat center;
833
834   .l-checkout__completed__wrapper {
835     max-width: 580px;
836     display: flex;
837     align-items: center;
838     justify-content: center;
839     flex-direction: column;
840   }
841
842   h1 {
843     margin-top: 0;
844     font-style: italic;
845     font-weight: 300;
846     font-size: 58px;
847     line-height: 55px;
848     letter-spacing: -0.02em;
849     color: #083F4D;
850   }
851   p {
852     margin-top: 30px;
853     font-weight: normal;
854     font-size: 21.5px;
855     line-height: 140%;
856     text-align: center;
857     letter-spacing: -0.01em;
858     color: #007880;
859   }
860   a {
861     margin-top: 50px;
862     font-weight: 600;
863     font-size: 20px;
864     line-height: 25px;
865     display: flex;
866     align-items: center;
867     justify-content: center;
868     background: #083F4D;
869     border-radius: 3px;
870     height: 56px;
871     text-align: center;
872     color: #FFFFFF;
873     width: 340px;
874   }
875 }
876
877 //Footer
878 .l-checkout__footer {
879   display: flex;
880   flex-wrap: wrap;
881   margin-top: 12px;
882   margin-bottom: 52px;
883   margin-left: 16px;
884   margin-right: 16px;
885 }
886
887 .l-checkout__footer > img {
888   margin-right: 0;
889   margin-left: auto;
890 }
891
892 .l-checkout__footer__content {
893   display: flex;
894   flex-direction: column;
895 }
896
897 .l-checkout__footer__content__item {
898   display: flex;
899   flex-direction: column;
900
901   @include rwd($break-flow) {
902       flex-direction: row;
903   }
904   
905   &:not(:last-child) {
906     padding-bottom: 30px;
907     margin-bottom: 30px;
908     border-bottom: 1px solid #E1F1F2;
909   }
910 }
911
912 .l-checkout__footer__content h3 {
913   @include rwd($break-flow) {
914   font-weight: 600;
915   font-size: 21.5px;
916   line-height: 140%;
917   letter-spacing: -0.01em;
918   color: #083F4D;
919   width: 318px;
920   }
921 }
922
923 .l-checkout__footer__content__item > div {
924   @include rwd($break-flow) {
925   width: 100%;
926   padding-left: 120px;
927   }
928 }
929
930 .l-checkout__footer__content__item > div p {
931   font-weight: normal;
932   font-size: 15px;
933   line-height: 150%;
934   color: #808080;
935 }
936
937 .l-checkout__footer__content__item > div p a {
938   color: #007880;
939   &:hover {
940     text-decoration: underline;
941   }
942 }
943
944 .l-checkout__footer__content {
945   .l-article__read-more {
946     margin-top: 20px;
947     font-size: 15px;
948     &:after {
949       margin-left: 5px;
950       display: inline-block;
951       transform: rotate(180deg);
952       content: $icon-arrow-up;
953       font-family: '#{$icomoon-font-family}' !important;
954       font-size: 12px;
955       speak: never;
956       font-style: normal;
957       font-weight: normal;
958       font-variant: normal;
959       text-transform: none;
960       line-height: 1;
961
962       /* Better Font Rendering =========== */
963       -webkit-font-smoothing: antialiased;
964       -moz-osx-font-smoothing: grayscale;
965     }
966   }
967
968   .l-article__overlay {
969     &:after {
970       display: none;
971     }
972     &.is-clicked {
973       & + .l-article__read-more {
974         &:after {
975           transform: none;
976         }
977       }
978     }
979   }
980 }
981
982
983
984
985
986 .toggle-input{
987     &#switch-once:checked {
988         ~.l-switch__wrapper {
989             label {
990                 &:nth-of-type(1) { color: #003C3C; }
991                 &:nth-of-type(2) { color: #74BDC2; }
992             }
993             .toggle {
994                 left: 5px;
995             }
996         }
997         ~.payments-once {
998             display: flex;
999
1000             &.wide-spot-1 ~.l-checkout__amount {
1001                 @include rwd($break-flow) {
1002                     margin-top: -110px;
1003
1004                     > div, > button {
1005                         width: calc(33.333% - 20px);
1006                     }
1007                 }
1008             }
1009             &.wide-spot-2 ~.l-checkout__amount {
1010                 @include rwd($break-flow) {
1011                     flex-direction: column;
1012                     margin-top: -182px;
1013
1014                     > div, > button {
1015                         width: calc(33.333% - 20px);
1016                     }
1017                 }
1018             }
1019         }
1020     }
1021     &#switch-monthly:checked {
1022         ~.l-switch__wrapper {
1023             label {
1024                 &:nth-of-type(1) { color: #74BDC2; }
1025                 &:nth-of-type(2) { color: #003C3C; }
1026             }
1027             .toggle {
1028                 left: 39px;
1029             }
1030         }
1031         ~.payments-recurring {
1032             display: flex;
1033
1034             &.wide-spot-1 ~.l-checkout__amount {
1035                 @include rwd($break-flow) {
1036                     margin-top: -110px;
1037
1038                     > div, > button {
1039                         width: calc(33.333% - 20px);
1040                         margin-left: 24px;
1041                     }
1042                 }
1043             }
1044             &.wide-spot-2 ~.l-checkout__amount {
1045                 @include rwd($break-flow) {
1046                     flex-direction: column;
1047                     margin-top: -182px;
1048
1049                     > div, > button {
1050                         width: calc(33.333% - 20px);
1051                     }
1052                 }
1053             }
1054         }
1055     }
1056 }
1057
1058
1059 .if-monthly { display: none; }
1060 .is-monthly {
1061     .if-monthly {
1062         display: block;
1063     }
1064     .if-not-monthly {
1065         display: none;
1066     }
1067 }
1068
1069
1070 .checkout-infobar {
1071     margin: 0 0 20px;
1072     padding: 20px;
1073     border-radius: 10px;
1074     border: 1px solid #edc016;
1075     background: #edc016;
1076 }
1077
1078
1079 .donation-more {
1080     margin-bottom:40px;
1081 }