fix
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / layout / _checkout.scss
index b4423dd..870da23 100644 (file)
   align-items: center;
   justify-content: center;
   margin-top: 35px;
   align-items: center;
   justify-content: center;
   margin-top: 35px;
+  width: 100%;
 }
 
 .l-switch {
 }
 
 .l-switch {
 }
 
 .l-switch label {
 }
 
 .l-switch label {
-  color: #fff;
+  color: #74BDC2;
   font-weight: 600;
   font-weight: 600;
-  font-size: 21.5px;
+  font-size: 18.5px;
   line-height: 26px;
   transition: color .2s ease;
   width: 122px;
   cursor: pointer;
   line-height: 26px;
   transition: color .2s ease;
   width: 122px;
   cursor: pointer;
+
+  @include rwd($break-flow) {
+      font-size: 21.5px;
+  }
 }
 
 .l-switch label:nth-of-type(1) {
 }
 
 .l-switch label:nth-of-type(1) {
   z-index: 2;
 }
 
   z-index: 2;
 }
 
+.toggle-input-left:checked ~ .l-switch__wrapper {
+    .toggle-for-left {
+        color: #003C3C;
+    }
+    .toggle {
+        left: 5px;
+    }
+}
+.toggle-input-right:checked ~ .l-switch__wrapper {
+    .toggle-for-right {
+        color: #003C3C;
+    }
+    .toggle {
+        left: 39px;
+    }
+}
 .l-switch input:checked~label:nth-of-type(1) { color: #003C3C; }
 .l-switch input:checked~label:nth-of-type(1) { color: #003C3C; }
-.l-switch input:checked~label:nth-of-type(2) { color: #74BDC2; }
-
-.l-switch input~:checked~label:nth-of-type(1) { color: #74BDC2; }
 .l-switch input~:checked~label:nth-of-type(2) { color: #003C3C; }
 
 .l-switch input:checked~.toggle {
 .l-switch input~:checked~label:nth-of-type(2) { color: #003C3C; }
 
 .l-switch input:checked~.toggle {
   transition: box-shadow $ease-out 250ms;
   box-shadow: 0px 0px 0px rgba(55, 170, 156, 0);
   margin-bottom: 30px;
   transition: box-shadow $ease-out 250ms;
   box-shadow: 0px 0px 0px rgba(55, 170, 156, 0);
   margin-bottom: 30px;
-  width: calc(50% - 8px);
+  width: 100%;
 
 
-  &.narrow-wide {
-      flex-direction: row;
-      width: 100%;
-  }
-  
   @include rwd($break-flow) {
       width: calc(33.333% - 20px);
   }
   @include rwd($break-flow) {
       width: calc(33.333% - 20px);
   }
       background: rgba(#92BD39, 0.75);
     }
   }
       background: rgba(#92BD39, 0.75);
     }
   }
+  img {
+      display: none;
+      @include rwd($break-flow) {
+          display: block;
+      }
+  }
 
   &.is-active {
       box-shadow: 0px 0px 20px rgba(55, 170, 156, 0.35);
 
   &.is-active {
       box-shadow: 0px 0px 20px rgba(55, 170, 156, 0.35);
-      background: #083F4D;
-      color: white;
+      background: white;
+      color: black;
 
 
-      @include rwd($break-flow) {
-          background: white;
-          color: black;
-      }
     h3 {
       color: white;
       background: #083F4D;
     h3 {
       color: white;
       background: #083F4D;
     }
   }
 
     }
   }
 
+  &.l-checkout__payments__box--half {
+      width: calc(50% - 8px);
+      @include rwd($break-flow) {
+          width: calc(33.333% - 20px);
+      }
+
+      &.is-active {
+          background: #083F4D;
+          color: white;
+
+          @include rwd($break-flow) {
+              background: white;
+              color: black;
+          }
+      }
+  }
+  &.l-checkout__payments__box--bar {
+      flex-direction: row;
+      
+      @include rwd($break-flow) {
+          flex-direction: column;
+      }
+
+      &.is-active {
+          background: #083F4D;
+          color: white;
+
+          @include rwd($break-flow) {
+              background: white;
+              color: black;
+          }
+      }
+
+      h3, .l-checkout__payments__box__btn-wrp {
+          flex-grow: 1;
+      }
+  }
+  &.l-checkout__payments__box--card {
+  }
+  
   &.l-checkout__payments__box--xl {
       width: 100%;
   &.l-checkout__payments__box--xl {
       width: 100%;
+      justify-content: center;
+      min-height: 160px;
+
       @include rwd($break-flow) {
           width: calc(67.4% - 20px);
       @include rwd($break-flow) {
           width: calc(67.4% - 20px);
-          width: calc(67.4% - 20px);
-          flex-direction: row;
-          & > div {
-              display: flex;
-              &:first-child {
-                  width: 50%;
+          padding-left: calc(33.7% - 10px);
+          position: relative;
+
+          h3 {
+              position: absolute;
+              left: 0;
+              top: 0;
+              padding-right: 50%;
+          }
+          
+          .l-checkout__payments__box__btn-wrp {
+              margin: 0;
+
+              p {
                   flex-wrap: wrap;
                   max-width: 340px;
                   margin-right: 20px;
               }
 
                   flex-wrap: wrap;
                   max-width: 340px;
                   margin-right: 20px;
               }
 
-              &:last-child {
-                  width: 49%;
+              button {
+                  position: absolute;
+                  bottom: 20px;
+                  left: 20px;
+                  width: calc(50% - 50px);
                   align-items: center;
                   justify-content: center;
               }
                   align-items: center;
                   justify-content: center;
               }
   }
 }
 
   }
 }
 
+
+
 //Input
 .l-checkout__input {
   display: flex;
 //Input
 .l-checkout__input {
   display: flex;
     span { color: #FF4C54; }
   }
   input, select, textarea {
     span { color: #FF4C54; }
   }
   input, select, textarea {
+      width: 100%;
     height: 56px;
     background: #FFFFFF;
     border: 1px solid #D5ECED;
     height: 56px;
     background: #FFFFFF;
     border: 1px solid #D5ECED;
   }
 
   button {
   }
 
   button {
-    height: 56px;
+    height: 40px;
     background: #083F4D;
     background: #083F4D;
+    border: none;
     border-radius: 3px;
     font-weight: 600;
     border-radius: 3px;
     font-weight: 600;
-    font-size: 20px;
+    font-size: 16px;
     line-height: 25px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     line-height: 25px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
-    margin-left: 32px;
     color: #FFFFFF;
     color: #FFFFFF;
-    width: 340px;
+
+    @include rwd($break-flow) {
+        height: 56px;
+        font-size: 20px;
+        width: 340px;
+        margin-left: 32px;
+    }
   }
 }
 
   }
 }
 
     }
   }
   &:nth-child(2) {
     }
   }
   &:nth-child(2) {
-    width: calc(100% - 340px);
+    width: calc(100% - 402px);
   }
   &.full {
     width: 100%;
   }
   &.full {
     width: 100%;
 }
 
 .l-checkout__form__row {
 }
 
 .l-checkout__form__row {
-  display: flex;
+    display: flex;
+    flex-direction: column;
+    gap: 20px;
   margin-bottom: 24px;
 
   margin-bottom: 24px;
 
+  @include rwd($break-flow) {
+      flex-direction: row;
+  }
+  
   &:nth-child(4) {
     .l-checkout__input {
       &:nth-child(1) { width: 172px; }
   &:nth-child(4) {
     .l-checkout__input {
       &:nth-child(1) { width: 172px; }
 
   &.full {
     flex-direction: column;
 
   &.full {
     flex-direction: column;
-
-    .l-checkout__input {
-      &:nth-child(1) {
-        padding-right: 0;
-      }
-      &:nth-child(2) {
-        padding-left: 0;
-      }
+    @include rwd($break-flow) {
+        flex-direction: column;
     }
   }
 
     }
   }
 
 
   .l-checkout__input {
     width: 100%;
 
   .l-checkout__input {
     width: 100%;
-    &:nth-child(1) {
-      padding-right: 10px;
-    }
-    &:nth-child(2) {
-      padding-left: 10px;
-    }
   }
 
   & > a {
   }
 
   & > a {
   }
 
   &.confirm {
   }
 
   &.confirm {
-    display: flex;
+      display: flex;
+      flex-direction: row;
     align-items: center;
     align-items: center;
-    justify-content: space-between;
+    justify-content: stretch;
     width: 100%;
     width: 100%;
+    gap: 50px;
 
 
+    @include rwd($break-flow) {
+        justify-content: space-between;
+    }
+    
     .l-checkout__input {
     .l-checkout__input {
-      width: auto;
+        flex-grow: 1;
+        @include rwd($break-flow) {
+            width: auto;
+            flex-grow: 0;
+        }
     }
   }
   .errorlist {
     }
   }
   .errorlist {
         }
         ~.payments-once {
             display: flex;
         }
         ~.payments-once {
             display: flex;
+
+            &.wide-spot-1 ~.l-checkout__amount {
+                @include rwd($break-flow) {
+                    margin-top: -110px;
+
+                    > div, > button {
+                        width: calc(33.333% - 20px);
+                    }
+                }
+            }
+            &.wide-spot-2 ~.l-checkout__amount {
+                @include rwd($break-flow) {
+                    flex-direction: column;
+                    margin-top: -182px;
+
+                    > div, > button {
+                        width: calc(33.333% - 20px);
+                    }
+                }
+            }
         }
     }
     &#switch-monthly:checked {
         }
     }
     &#switch-monthly:checked {
         }
         ~.payments-recurring {
             display: flex;
         }
         ~.payments-recurring {
             display: flex;
-        }
-    }
-}
 
 
+            &.wide-spot-1 ~.l-checkout__amount {
+                @include rwd($break-flow) {
+                    margin-top: -110px;
 
 
-.payments-recurring {
-    .l-checkout__payments__box {
-        width: 100%;
-        &.is-active {
-            background: white;
-            color: black;
-        }
-        @include rwd($break-flow) {
-            width: calc(33.333% - 20px);
-            //margin-right: 30px;
+                    > div, > button {
+                        width: calc(33.333% - 20px);
+                        margin-left: 24px;
+                    }
+                }
+            }
+            &.wide-spot-2 ~.l-checkout__amount {
+                @include rwd($break-flow) {
+                    flex-direction: column;
+                    margin-top: -182px;
+
+                    > div, > button {
+                        width: calc(33.333% - 20px);
+                    }
+                }
+            }
         }
     }
 }
         }
     }
 }