Checkout style
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / layout / _checkout.scss
index b4423dd..779324a 100644 (file)
   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);
   }
 
   &.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;
     }
   }
 
+  &.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%;
+      justify-content: center;
+      min-height: 160px;
+
       @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;
               }
 
-              &:last-child {
-                  width: 49%;
+              button {
+                  position: absolute;
+                  bottom: 20px;
+                  left: 20px;
+                  width: calc(50% - 50px);
                   align-items: center;
                   justify-content: center;
               }
         }
     }
 }
-
-
-.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;
-        }
-    }
-}