/*--------------------
    WOOCOMMERCE
--------------------*/
.section-banner {
  & + {
    .woocommerce,
    .woocommerce-breadcrumb,
    .vikinger-woocommerce-page-title,
    .vikinger-wc-content {
      margin-top: 64px;
    }
  }
}

.vikinger-wc-content {
  &.vikinger-wc-content-with-sidebar {
    display: grid;
    grid-template-areas: "sidebar body";
    gap: 16px;
    grid-template-columns: $col-3 $col-9;
  
    .vikinger-wc-sidebar {
      grid-area: sidebar;
    }
  
    .vikinger-wc-body {
      grid-area: body;
    }
  }
}

.grid {
  .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }
}

.logged-in {
  .header-cart {
    .action-list {
      padding-right: 0;
  
      &::before {
        display: none;
      }
    }
  }
}

.header-cart {
  & + {
    #header-notifications {
      .action-list {
        padding-left: 0;

        &::after {
          display: none;
        }
      }
    }

    .button {
      margin-left: 32px;
    }
  }
}

.pswp {
  z-index: 10001;
}

.pswp__bg {
  background-color: rgba(21, 21, 31, .96);
}

.pswp__caption {
  display: flex;
  align-items: center;
}

.pswp__counter,
.pswp__caption__center {
  color: $white;
  font-size: $fs-14;
  font-weight: $weight-bold;
}

.pswp__caption__center {
  padding: 0;
  text-align: center;
}

.select2-container {
  .select2-dropdown {
    background-color: var(--color-box-background);
    border-color: var(--color-border);
  }

  .select2-search--dropdown {
    .select2-search__field {
      height: 48px;
      padding: 0 18px;
      border: 1px solid var(--color-border);
      font-size: $fs-14;
    }
  }

  .select2-results {
    color: var(--color-text);
    font-size: $fs-14;
    font-weight: $weight-bold;

    .select2-results__option {
      &.select2-results__option--highlighted,
      &[data-selected="true"] {
        color: $white;
        background-color: var(--color-secondary);
      }
    }
  }
}

.vikinger-woocommerce-page-title {
  margin-bottom: 32px;
  font-size: 2em;
}

.woocommerce {
  .header-cart {
    & + {
      #header-notifications {
        .action-list {
          padding-left: 0;
  
          &::after {
            display: none;
          }
        }
      }
  
      .button {
        margin-left: 32px;
      }
    }
  }

  .section-header {
    margin: 0 0 28px;
  }

  .woocommerce-breadcrumb {
    color: var(--color-text-alt-2);
    font-size: $fs-14;
    font-weight: $weight-bold;

    a {
      color: var(--color-text);
    }

    .woocommerce-breadcrumb-separator {
      margin: 0 10px;
      color: var(--color-primary);
    }
  }

  .woocommerce-result-count {
    margin-top: 17px;
    color: var(--color-text-alt);
    font-size: $fs-14;
    font-weight: $weight-medium;
  }

  .return-to-shop {
    .button {
      display: inline-block;
      padding: 0 32px;
      background-color: var(--color-primary);
      line-height: 48px;
      box-shadow: var(--color-primary-shadow);
  
      &:hover {
        background-color: var(--color-primary-hover);
      }
    }
  }

  span.onsale {
    display: flex;
    align-items: center;
    height: 32px;
    min-height: auto;
    min-width: auto;
    padding: 0 16px;
    border-radius: 200px;
    background-color: var(--color-primary);
    color: $white;
    font-size: $fs-12;
    font-weight: $weight-bold;
    text-transform: uppercase;
  }

  .price {
    color: var(--color-text);
    font-weight: $weight-bold;

    .woocommerce-Price-currencySymbol {
      color: var(--color-primary);
    }

    // sale price
    ins {
      text-decoration: none;
    }
  }

  .vikinger-wc-categories {
    color: var(--color-text);
    font-size: $fs-12;
    font-weight: $weight-bold;
    line-height: (16 / 12) * 1em;

    a {
      color: var(--color-text);
      font-weight: $weight-bold;

      &:hover {
        color: var(--color-primary);
      }
    }

    &::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: 6px;
      border-radius: 50%;
      border: 2px solid var(--color-primary);
    }
  }

  .star-rating {
    width: 6.74em;
    margin: 0;
    font-size: 12px;
    letter-spacing: 4px;

    &::before {
      color: var(--color-border);
    }

    span {
      color: #ffe00d;
    }
  }

  button.button,
  a.button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    border-radius: 10px;
    padding: 0;
    background-color: $color-button-background;
    color: $white;
    font-size: $fs-14;
    font-weight: $weight-bold;
    box-shadow: $color-button-shadow;

    &.loading {
      padding: 0 32px;
      pointer-events: none;

      &::after {
        margin-left: 6px;
        position: static;
      }
    }

    &:hover {
      color: $white;
      background-color: $color-button-background-hover;
    }

    &.small {
      height: 40px;
      font-size: $fs-12;
      line-height: 40px;
    }

    &.alt,
    &.alt.disabled,
    &.primary {
      background-color: var(--color-primary);
      box-shadow: var(--color-primary-shadow);
  
      &:hover {
        background-color: var(--color-primary-hover);
  
        .loader-spinner {
          &:after {
            background-color: var(--color-primary-hover);
          }
        }
      }
  
      .loader-spinner {
        &:after {
          background-color: var(--color-primary);
        }
      }
    }

    &.alt.disabled {
      pointer-events: none;
    }
  
    &.secondary {
      background-color: var(--color-secondary);
      box-shadow: var(--color-secondary-shadow);
  
      &:hover {
        background-color: var(--color-secondary-hover);
  
        .loader-spinner {
          &:after {
            background-color: var(--color-secondary-hover);
          }
        }
      }
  
      .loader-spinner {
        &:after {
          background-color: var(--color-secondary);
        }
      }
    }
  }

  button.button {
    &[type="submit"] {
      background-color: var(--color-primary);
      box-shadow: var(--color-primary-shadow);
  
      &:hover {
        background-color: var(--color-primary-hover);
      }
    }
  }

  div.quantity {
    float: none;
    width: 100%;
    margin: 0;

    .qty {
      width: 100%;
      text-align: left;
    }
  }

  ul.products {
    margin: 0;

    &.columns-4 {
      display: grid;
      grid-template-columns: 100%;
      grid-gap: 16px;
      justify-content: flex-start;
      align-items: stretch;
      grid-template-columns: repeat(auto-fit, $col-3-px);

      &::before,
      &::after {
        content: '';
        display: none;
      }

      li.product {
        float: none;
        width: auto;
        margin: 0;
      }
    }
    
    li.product {
      padding-bottom: 28px;
      border-radius: 12px;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);
      position: relative;

      a {
        img {
          margin: 0;
          border-top-left-radius: 12px;
          border-top-right-radius: 12px;
        }
      }

      .vikinger-wc-product-info {
        padding: 28px 28px 0;
        position: relative;
      }

      .vikinger-wc-categories {
        margin-top: 6px;
      }

      .onsale {
        margin: 0;
        top: 10px;
        left: -6px;
        right: auto;
      }

      .woocommerce-loop-product__title {
        padding: 0;
      }

      .price {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 32px;
        padding: 0 14px;
        border-radius: 12px;
        background-color: var(--color-box-over-box-light-background);
        box-shadow: var(--color-overbox-shadow);
        color: var(--color-text);
        font-size: $fs-14;
        font-weight: $weight-bold;
        text-align: center;
        position: absolute;
        top: -14px;
        right: 14px;

        .woocommerce-Price-currencySymbol {
          color: var(--color-primary);
        }

        // before sale price
        del {
          margin-right: 4px;
        }
      }

      .star-rating {
        width: 6.9em;
        margin: 28px 0 0;
        font-size: 8px;
        letter-spacing: 3px;
      }

      &:hover {
        .vikinger-woocommerce-product-actions {
          .button,
          .added_to_cart {
            transform: translate(0, 0);
            opacity: 1;
            visibility: visible;
          }
        }
      }

      .vikinger-woocommerce-product-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 284px;
        padding: 0 64px;
        position: absolute;
        top: 0;
        left: 0;
        overflow: hidden;

        .button,
        .added_to_cart {
          width: 100%;
          margin-bottom: 12px;
          opacity: 0;
          visibility: hidden;
          transform: translate(-100%, 0);
          transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out, opacity .3s ease-in-out, visibility .3s ease-in-out, transform .3s ease-in-out;

          &:last-child {
            margin-bottom: 0;
          }
        }

        .button,
        .added_to_cart {
          &:nth-child(2) {
            transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out, opacity .3s ease-in-out, visibility .3s ease-in-out, transform .3s ease-in-out .1s;
          }

          &:nth-child(3) {
            transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out, opacity .3s ease-in-out, visibility .3s ease-in-out, transform .3s ease-in-out .2s;
          }
        }
      }

      .button {
        margin-top: 0;
        background-color: var(--color-secondary);
        box-shadow: var(--color-secondary-shadow);

        &:hover {
          background-color: var(--color-secondary-hover);

          .loader-spinner {
            &:after {
              background-color: var(--color-secondary-hover);
            }
          }
        }

        &.ajax_add_to_cart {
          background-color: var(--color-primary);
          box-shadow: var(--color-primary-shadow);

          &:hover {
            background-color: var(--color-primary-hover);

            .loader-spinner {
              &:after {
                background-color: var(--color-primary-hover);
              }
            }
          }
        }
      }

      .added_to_cart {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 48px;
        border-radius: 10px;
        padding: 0;
        background-color: $color-button-background;
        color: $white;
        font-size: $fs-14;
        font-weight: $weight-bold;
        box-shadow: $color-button-shadow;

        &.loading {
          pointer-events: none;
        }

        &:hover {
          color: $white;
          background-color: $color-button-background-hover;
        }
      }
    }
  }

  nav.woocommerce-pagination {
    margin-top: 32px;
    
    ul {
      border: none;
      border-radius: 12px;
      box-shadow: var(--color-overbox-shadow);

      li {
        background-color: var(--color-box-background);
        border: none;
        color: var(--color-text);
        font-size: $fs-14;
        position: relative;

        &:first-child {
          border-top-left-radius: 12px;
          border-bottom-left-radius: 12px;
        }
        
        &:last-child {
          border-top-right-radius: 12px;
          border-bottom-right-radius: 12px;
        }

        & + {
          li {
            &::before {
              content: '';
              width: 1px;
              height: 20px;
              background-color: var(--color-divider);
              position: absolute;
              top: 20px;
              left: 0;
            }
          }
        }

        span,
        a {
          display: block;
          padding: 0 24px;
          font-weight: $weight-bold;
          line-height: 60px;
        }

        span { 
          &.current {
            background-color: var(--color-box-background);
            color: var(--color-primary-dark);
          }
        }

        a {
          transition: color .2s ease-in-out;

          &:hover,
          &:focus {
            background-color: var(--color-box-background);
            color: var(--color-primary-dark);
          }
        }
      }
    }
  }

  div.product {
    margin-top: 32px;

    p.stock {
      margin: 16px 0;
      color: #00c7d9;
      font-size: $fs-14;
      font-weight: $weight-bold;

      &.out-of-stock {
        color: #fd4350;
      }

      & + {
        form.cart {
          margin-top: 16px;
        }
      }
    }

    .onsale {
      margin: 0;
      top: 10px;
      left: -6px;
      right: auto;
    }

    div.images,
    div.summary {
      width: (584 / 1184) * 100%;
    }

    div.images {
      .woocommerce-product-gallery__wrapper,
      .flex-viewport,
      .flex-control-thumbs {
        border-radius: 12px;
        background-color: var(--color-box-background);
        box-shadow: var(--color-box-shadow);
      }

      .woocommerce-product-gallery__image {
        border-radius: 12px;
      }

      .flex-viewport {
        .woocommerce-product-gallery__image {
          border-radius: 0;
        }
      }

      .flex-control-thumbs {
        display: grid;
        grid-template-columns: repeat(auto-fit, 48px);
        grid-gap: 28px;
        justify-content: center;
        padding: 26px;
        margin-top: 16px;

        li {
          width: 100%;

          img {
            border: 4px solid transparent;
            border-radius: 12px;

            &.flex-active {
              border-color: var(--color-primary);
            }
          }
        }
      }
    }

    div.summary {
      display: flex;
      flex-direction: column;
      padding: 32px 48px;
      border-radius: 12px;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);

      .product_title {
        font-size: $fs-32;
      }

      .woocommerce-product-rating {
        order: -1;
        display: flex;
        align-items: center;
        margin-bottom: 14px;
        
        & + {
          .price {
            margin-top: 28px;
          }
        }

        .star-rating {
          margin: 0;
        }

        .woocommerce-review-link {
          margin-left: 12px;
          font-size: $fs-14;
          font-weight: $weight-medium;
        }
      }

      .vikinger-wc-categories {
        margin-top: 8px;
        font-size: $fs-14;

        & + {
          .price {
            margin-top: 28px;
          }
        }
      }

      .price {
        color: var(--color-text);
        font-size: $fs-32;
        font-weight: $weight-bold;

        .woocommerce-Price-currencySymbol {
          color: var(--color-primary);
        }
      }

      .woocommerce-product-details__short-description {
        margin-top: 28px;

        p {
          font-size: $fs-14;
          font-weight: $weight-medium;
          line-height: (24 / 14) * 1em;
        }
      }

      .product_meta {
        .sku_wrapper,
        .posted_in,
        .tagged_as {
          margin-bottom: 12px;
          display: block;
          color: var(--color-text);
          font-size: $fs-14;
          font-weight: $weight-bold;
          line-height: (20 / 14) * 1em;
          text-transform: uppercase;

          &:last-child {
            margin-bottom: 0;
          }

          span, a {
            font-weight: $weight-medium;
            text-transform: none;
          }
        }
      }
    }

    form.cart {
      margin-top: 32px;

      &.variations_form {
        margin-top: 0;
      }

      .variations {
        td {
          width: 100%;
          display: block;
          clear: both;
          margin: 24px 0 14px;

          &:last-child {
            margin-bottom: 0;
          }

          &.label {
            padding: 0;

            & + {
              td {
                &.value {
                  margin-top: 0;
                }
              }
            }
          }
        }

        label {
          font-size: $fs-12;
          text-transform: uppercase;
        }

        select {
          min-width: auto;
          display: block;
          margin: 0;
        }

        .reset_variations {
          margin-top: 12px;
          display: inline-block;
          font-size: $fs-14;
          font-weight: $weight-bold;
        }
      }

      .woocommerce-variation-description {
        p {
          font-size: $fs-14;
          font-weight: $weight-medium;
          line-height: (24 / 14) * 1em;
        }
      }

      .woocommerce-variation-availability {
        margin-bottom: 32px;
      }

      .vk-form-counter {
        width: 200px;
      }

      .button {
        width: auto;
        margin-top: 40px;
        padding: 0 64px;
      }
    }

    .woocommerce-tabs {
      border-radius: 12px;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);

      ul.tabs {
        display: flex;
        flex-wrap: nowrap;
        padding: 0;
        margin: 0;

        &::before {
          content: '';
          display: none;
        }

        li {
          display: block;
          width: 100%;
          height: 66px;
          margin: 0;
          padding: 0;
          border: none;
          border-radius: 0;
          background-color: var(--color-box-background-alt);
          border-right: 1px solid var(--color-border);
          border-bottom: 1px solid var(--color-border);

          &::before,
          &::after {
            content: '';
            display: none;
          }

          &:first-child {
            border-top-left-radius: 12px;
          }

          &:last-child {
            border-right: none;
            border-top-right-radius: 12px;
          }

          &.active {
            border-bottom: none;
            background-color: var(--color-box-background);

            a {
              color: var(--color-text);
            }
          }

          a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            padding: 0 16px;
            color: var(--color-text-alt);
            font-size: $fs-14;
            font-weight: $weight-bold;
            text-align: center;

            &:hover {
              color: var(--color-text);
            }
          }
        }
      }

      .panel {
        margin-bottom: 64px;
        padding: 56px 48px;

        & > {
          * {
            &:first-child {
              margin-top: 0;
            }
          }

          h1, h2, h3,
          h4, h5, h6 {
            margin: 48px 0 0;
          }

          p, pre,
          hr, blockquote,
          ul, ol,
          table.shop_attributes {
            margin: 32px 0 0;
          }

          p {
            font-size: $fs-14;
            font-weight: $weight-medium;
            line-height: (24 / 14) * 1em;
          }

          pre {
            padding: 32px 28px;
            border: 1px solid var(--color-border);
            color: var(--color-text);
            line-height: 2em;
            overflow: auto;
          }

          hr {
            width: 100%;
            height: 1px;
            background-color: var(--color-divider);
          }

          blockquote {
            padding: 0 16px;
            font-weight: $weight-medium;
            line-height: (34 / 22) * 1em;
            font-style: italic;

            p {
              font-size: $fs-16;
              font-weight: $weight-medium;
              line-height: (34 / 22) * 1em;
            }

            cite {
              margin-top: 16px;
              display: block;
              font-size: $fs-16;
            }
          }

          ul, ol {
            padding-left: 20px;
      
            ul, ol {
              padding-left: 0;
              margin: 18px;
            }
        
            li {
              margin-bottom: 16px;
              display: list-item;
              color: var(--color-text);
              font-size: $fs-16;
              font-weight: $weight-medium;
        
              &:last-child {
                margin-bottom: 0;
              }
            }
          }
      
          ul {
            list-style: disc;
      
            ul {
              list-style: circle;
            }
      
            ol {
              list-style: lower-alpha;
            }
          }
      
          ol {
            list-style: decimal;
      
            ul {
              list-style: circle;
            }
      
            ol {
              list-style: lower-alpha;
            }
          }

          table.shop_attributes {
            border: none;

            tr {
              &:nth-child(even) {
                th,
                td {
                  background-color: transparent;
                }
              }
            }

            th, td {
              padding: 8px 0;
              border: none;
              font-size: $fs-14;
            }

            th {
              color: var(--color-text-alt);
              font-weight: $weight-medium;
              text-align: left;
            }

            td {
              color: var(--color-text);
              font-weight: $weight-bold;
              font-style: normal;
            }
          }
        }
      }
    }
  }

  section.related {
    h2 {
      margin-bottom: 32px;
    }
  }

  #reviews {
    #comments {
      .woocommerce-noreviews {
        margin-top: 8px;
        font-size: $fs-14;
        font-weight: $weight-medium;
        line-height: (24 / 14) * 1em;
      }

      ol.commentlist {
        margin: 32px 0 0;

        li {
          .comment_container {
            display: flex;
            flex-wrap: nowrap;
          }

          .comment-review-avatar {
            flex-shrink: 0;
            margin-right: 12px;
          }

          .comment-text {
            width: 100%;
            margin: 0;
            padding: 0;
            border: none;

            p.meta {
              color: var(--color-text);
              font-size: $fs-14;
              font-weight: $weight-medium;
              margin: 2px 0 0;

              .woocommerce-review__author {
                color: var(--color-text);
              }

              .woocommerce-review__dash,
              .woocommerce-review__published-date {
                color: var(--color-text-alt);
                font-weight: $weight-medium;
              }
            }

            .description {
              p {
                margin-top: 12px;
                font-size: $fs-14;
                font-weight: $weight-medium;
                line-height: (24 / 14) * 1em;

                &:first-child {
                  margin-top: 8px;
                }
              }
            }
          }
        }
      }
    }
  }

  #review_form {
    #respond {
      .comment-reply-title {
        display: block;
        margin: 32px 0 12px;
        color: var(--color-text);
        font-size: $fs-24;
        font-weight: $weight-bold;
      }

      .comment-form-rating {
        .stars {
          margin-bottom: 32px;
          font-size: 14px;

          a {
            color: #ffe00d;
          }
        }
      }

      .comment-notes {
        margin: 16px 0;
        font-size: $fs-14;
        font-weight: $weight-medium;
        line-height: (24 / 14) * 1em;

        .required {
          color: var(--color-secondary);
          font-weight: $weight-bold;
        }
      }

      .comment-form-cookies-consent {
        display: flex;
        margin-top: 12px;

        label {
          display: inline-block;
          margin: 0 0 0 6px;
        }
      }

      label {
        margin-bottom: 16px;
        font-size: $fs-14;
        font-weight: $weight-bold;

        .required {
          color: var(--color-secondary);
        }
      }

      .comment-form-comment {
        textarea {
          min-height: 120px;
        }
      }

      .form-submit {
        margin: 40px 0 0;

        input[type="submit"] {
          display: flex;
          justify-content: center;
          align-items: center;
          height: 48px;
          border-radius: 10px;
          padding: 0 28px;
          background-color: var(--color-primary);
          color: $white;
          font-size: $fs-14;
          font-weight: $weight-bold;
          text-align: center;
          line-height: 48px;
          cursor: pointer;
          transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
          box-shadow: var(--color-primary-shadow);

          &:hover {
            background-color: var(--color-primary-hover);
          }
        }
      }
    }
  }

  form {
    &.login {
      padding: 32px 28px;
      border-radius: 12px;
      border: none;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);
    }

    h3 {
      margin-bottom: 28px;
      font-size: $fs-16;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="search"] {
      height: 48px;
      font-size: $fs-14;
    }

    textarea {
      padding: 14px 18px;
      font-size: $fs-14;
    }

    .form-row {
      textarea {
        height: 160px;
      }
    }

    fieldset {
      margin-top: 28px;

      legend {
        margin-bottom: 16px;
        color: var(--color-text);
        font-size: $fs-16;
        font-weight: $weight-bold;
      }
    }

    .show-password-input {
      &::after {
        margin-top: 7px;
        color: var(--color-secondary);
      }
    }

    .select2-container {
      .select2-selection--single {
        display: flex;
        align-items: center;
        height: 48px;
        margin: 0;
        background-color: transparent;
        border: 1px solid var(--color-border);
        border-radius: 12px;

        .select2-selection__placeholder,
        .select2-selection__rendered {
          color: var(--color-text);
        }

        .select2-selection__rendered {
          padding: 0 40px 0 20px;
          font-size: $fs-14;
          font-weight: $weight-bold;
          line-height: 1em;
        }

        .select2-selection__arrow {
          height: 100%;
          margin-right: 14px;

          b {
            border-color: var(--color-icon-highlighted) transparent;
          }
        }
      }
    }
    
    .form-row {
      padding: 0;
      margin: 0 0 28px 0;

      &:last-child {
        margin-bottom: 0;
      }

      label {
        margin-bottom: 12px;
        line-height: 1em;
      }

      .required {
        color: var(--color-secondary);
      }

      .woocommerce-password-strength,
      .woocommerce-password-hint {
        margin-top: 8px;
        font-size: $fs-14;
        line-height: (24 / 14) * 1em;
      }

      .woocommerce-password-strength {
        color: #3e3f5e;
        font-weight: $weight-bold;
      }

      .woocommerce-password-hint {
        color: var(--color-text);
        font-weight: $weight-medium;
      }
    }

    .button {
      margin-top: 28px;
    }
  }

  .woocommerce-MyAccount-content {
    & > {
      form,
      p {
        padding: 18px 28px;
        border-radius: 12px;
        background-color: var(--color-box-background);
        box-shadow: var(--color-box-shadow);

        & + * {
          margin-top: 16px;
        }
      }

      form {
        padding: 32px 28px;
      }
    }

    p {
      mark {
        background-color: transparent;
        color: var(--color-text);
        font-weight: $weight-bold;
      }
    }

    .woocommerce-notices-wrapper {
      &:first-child {
        .woocommerce-error,
        .woocommerce-message,
        .woocommerce-Message {
          margin-top: 0;
        }
      }
    }

    .woocommerce-Addresses {
      display: flex;
      flex-wrap: nowrap;

      .woocommerce-Address {
        float: none;
        width: 100%;
        margin: 0 16px 0 0;
        padding: 32px 28px;
        border-radius: 12px;
        background-color: var(--color-box-background);
        box-shadow: var(--color-box-shadow);

        .woocommerce-Address-title {
          h3 {
            font-size: $fs-16;
          }

          .edit {
            color: var(--color-primary);
            font-size: $fs-14;
            font-weight: $weight-bold;
          }
        }

        &:nth-child(2n+2) {
          margin-right: 0;
        }
      }
    }

    p {
      font-size: $fs-14;
      font-weight: $weight-medium;
      line-height: (24 / 14) * 1em;
    }
  }

  .woocommerce-notice,
  .woocommerce-info,
  .woocommerce-error,
  .woocommerce-message,
  .woocommerce-Message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    margin: 32px 0;
    padding: 20px 28px;
    border-radius: 12px;
    border: none;
    border: 2px solid #00c7d9;
    background-color: var(--color-box-background);
    position: relative;
    color: var(--color-text);
    font-size: $fs-14;
    font-weight: $weight-medium;
    box-shadow: var(--color-box-shadow);

    &.woocommerce-message--info,
    &.woocommerce-Message--info {
      border: 2px solid #615dfa;

      .button {
        background-color: var(--color-secondary);
        box-shadow: var(--color-secondary-shadow);

        &:hover {
          background-color: var(--color-secondary-hover);
        }
      }
    }

    &::before,
    &::after {
      display: none;
    }

    a,
    .button {
      order: 2;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 40px;
      padding: 0 32px;
      border-radius: 10px;
      background-color: var(--color-primary);
      color: $white;
      font-size: $fs-14;
      font-weight: $weight-bold;
      box-shadow: var(--color-primary-shadow);
      transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;

      &:hover {
        background-color: var(--color-primary-hover);
      }
    }
  }

  .woocommerce-error {
    display: block;
    border: 2px solid #fd4350;

    li {
      margin-bottom: 12px;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .woocommerce-order-downloads,
  .woocommerce-order-details,
  .woocommerce-customer-details {
    margin: 16px 0 0;
    padding: 32px 28px 0;
    border-radius: 12px;
    background-color: var(--color-box-background);
    box-shadow: var(--color-box-shadow);

    & > {
      h2 {
        margin-bottom: 16px;
        font-size: $fs-16;
      }

      table {
        &.woocommerce-table,
        &.shop_table {
          padding: 0;
          border-radius: 0;
          border: none;
          background-color: transparent;
          box-shadow: none;
        }
      }
    }

    .order-again {
      .button {
        margin-top: 16px;
        background-color: var(--color-secondary);
        box-shadow: var(--color-secondary-shadow);

        &:hover {
          background-color: var(--color-secondary-hover);
        }
      }
    }
  }

  .woocommerce-order-downloads {
    padding-top: 18px;

    & > {
      h2 {
        margin-top: 14px;
      }
    }
  }

  .woocommerce-order-details,
  .woocommerce-customer-details {
    padding-bottom: 32px;
  }

  .woocommerce-customer-details {
    address {
      border: none;
      padding: 0;
    }
  }

  address {
    margin-top: 28px;
    color: var(--color-text);
    font-size: $fs-14;
    font-weight: $weight-medium;
    font-style: normal;
    line-height: (24 / 14) * 1em;

    p {
      line-height: (24 / 14) * 1em;
    }
  }

  table {
    &.woocommerce-table,
    &.shop_table {
      padding: 18px 28px 0;
      border-radius: 12px;
      border: none;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);
      color: var(--color-text);

      th, td {
        height: auto;
        padding: 12px 0;
        font-weight: $weight-bold;

        &.product-quantity {
          padding: 12px 32px;
        }

        &.product-name {
          a {
            color: var(--color-text);

            &:hover {
              color: var(--color-primary);
            }
          }
        }
      }

      th {
        font-size: $fs-12;
        text-transform: uppercase;
      }

      td {
        border-top: 1px solid var(--color-divider);
        font-size: $fs-14;

        a {
          color: var(--color-primary);
        }

        .button {
          display: inline-block;
          height: 40px;
          padding: 0 32px;
          background-color: var(--color-secondary);
          color: $white;
          font-size: $fs-14;
          line-height: 40px;
          box-shadow: var(--color-secondary-shadow);

          &:hover {
            background-color: var(--color-secondary-hover);
          }
        }
      }

      tfoot {
        th, td {
          border-top: none;
        }

        th {
          font-size: $fs-14;
          text-transform: none;
        }
      }
    }

    &.woocommerce-table--order-details {
      thead {
        tr {
          &:first-child {
            th {
              border-bottom: 1px solid var(--color-divider);
            }
          }
        }
      }

      td {
        border-top: none;
      }
    }

    &.cart {
      padding-bottom: 32px;
      
      td {
        &.actions {
          padding: 28px 0 0;
          overflow: hidden;

          .coupon {
            float: left;
            display: flex;
            flex-wrap: nowrap;

            & + {
              .button {
                float: right;
                width: auto;
                height: 48px;
                margin: 0;
                padding: 0 32px;
                background-color: var(--color-primary);
                color: $white;
                box-shadow: var(--color-primary-shadow);

                &:hover {
                  background-color: var(--color-primary-hover);
                }
              }
            }

            .input-text {
              min-width: 240px;
              margin: 0 12px 0 0;
              padding: 0 18px;
              border: 1px solid var(--color-border);
            }

            .button {
              margin: 0;
              height: 48px;
            }
          }
        }
      }
    }
  }

  &.shop_table {
    margin: 0;
    border: none;
    border-radius: 12px;

    td {
      border-top: 1px solid var(--color-divider);
    }
  }

  .cart-collaterals {
    margin-top: 32px;

    .cart_totals {
      padding: 32px 28px;
      border-radius: 12px;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);

      h2 {
        margin-bottom: 16px;
        font-size: $fs-16;
      }

      table {
        tr {
          th, td {
            border-top: none;
          }

          th {
            font-size: $fs-14;
            text-transform: none;
          }
        }

        &.shop_table {
          border-radius: 0;
          background-color: transparent;
          box-shadow: none;
        }
      }
    }
  }

  a {
    &.remove {
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--color-icon) !important;
      border: 2px solid var(--color-icon);
      font-size: 20px;
      opacity: .4;
      transition: color .2s ease-in-out, border-color .2s ease-in-out, opacity .2s ease-in-out;

      &:hover {
        color: var(--color-icon-highlighted) !important;
        border-color: var(--color-icon-highlighted);
        background-color: transparent;
        opacity: 1;
      }
    }
  }

  .woocommerce-mini-cart {
    .woocommerce-mini-cart-item {
      min-height: 84px;
      padding: 12px 68px 12px 98px;
      position: relative;
  
      a {
        display: block;
        font-size: $fs-14;
        font-weight: $weight-bold;
      }
  
      img {
        float: none;
        width: 60px;
        height: 60px;
        margin: 0;
        border-radius: 12px;
        position: absolute;
        top: 12px;
        left: 28px;
      }
  
      .quantity {
        color: var(--color-text);
        font-size: $fs-14;
        font-weight: $weight-bold;
      }
  
      .remove_from_cart_button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 1em;
        height: 1em;
        border-radius: 100%;
        border: 2px solid var(--color-icon);
        color: var(--color-icon);
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        position: absolute;
        top: 16px;
        right: 28px;
        opacity: .4;
        transition: color .2s ease-in-out, border-color .2s ease-in-out, opacity .2s ease-in-out;

        &:hover {
          color: var(--color-icon-highlighted) !important;
          border-color: var(--color-icon-highlighted);
          background-color: transparent;
          opacity: 1;
        }
      }
    }
  }

  form {
    &.checkout_coupon {
      padding: 32px 28px;
      border-radius: 12px;
      border: none;
      background-color: var(--color-box-background);
      box-shadow: var(--color-box-shadow);

      & > {
        p {
          font-size: $fs-14;
          font-weight: $weight-medium;
          line-height: (24 / 14) * 1em;
        }

        .form-row {
          margin: 12px 0 0;

          &.form-row-last {
            float: left;
          }

          .button {
            width: auto;
            padding: 0 32px;
            margin: 0 0 0 12px;
          }
        }
      }
    }
  }

  .woocommerce-checkout {
    #customer_details {
      & > * {
        padding: 32px 28px;
        border-radius: 12px;
        background-color: var(--color-box-background);
        box-shadow: var(--color-box-shadow);
      }

      label {
        margin-bottom: 12px;
        font-size: $fs-14;
        font-weight: $weight-medium;
      }
    }

    #order_review_heading {
      margin-top: 32px;
    }

    #payment {
      background-color: transparent;
      border-radius: 0;

      ul.payment_methods {
        margin: 32px 0;
        padding: 0;
        border-bottom: none;

        li.wc_payment_method {
          margin-bottom: 12px;

          &:last-child {
            margin-bottom: 0;
          }

          label, input {
            cursor: pointer;
          }

          label {
            display: inline-block;
            font-size: $fs-14;
            font-weight: $weight-medium;
          }

          input {
            margin-right: 6px;
            position: relative;
            top: 2px;
          }
        }
      }

      div.payment_box {
        padding: 32px 28px;
        border-radius: 12px;
        background-color: var(--color-box-background);
        box-shadow: var(--color-box-shadow);

        &::before {
          border-bottom-color: var(--color-box-background);
        }

        p {
          font-size: $fs-14;
          font-weight: $weight-medium;
        }
      }

      div.form-row {
        padding: 0;
        margin-top: 32px;

        .woocommerce-privacy-policy-text {
          p {
            font-size: $fs-14;
            font-weight: $weight-medium;
            line-height: (24 / 14) * 1em;
          }
        }
      }
    }

    table {
      &.woocommerce-checkout-review-order-table {
        thead {
          th {
            border-bottom: 1px solid var(--color-divider);
          }
        }

        tfoot {
          tr {
            &:first-child {
              th, td {
                border-top: 1px solid var(--color-divider);
              }
            }
          }
        }

        td {
          border-top: none;
        }
      }
    }
  }

  ul.order_details {
    padding: 32px 28px;
    border-radius: 12px;
    background-color: var(--color-box-background);
    box-shadow: var(--color-box-shadow);
    margin: 32px 0;
    color: var(--color-text);
  }
}

.woocommerce-mini-cart__empty-message {
  margin-top: 20px;
  padding: 0 28px;
  color: var(--color-text-alt-2);
  font-size: $fs-11;
  font-weight: $weight-bold;
  text-transform: uppercase;
  text-align: center;
}

.woocommerce-mini-cart {
  .woocommerce-mini-cart-item {
    min-height: 84px;
    padding: 12px 68px 12px 98px;
    position: relative;

    a {
      display: block;
      font-size: $fs-14;
      font-weight: $weight-bold;
    }

    img {
      float: none;
      width: 60px;
      height: 60px;
      margin: 0;
      border-radius: 12px;
      position: absolute;
      top: 12px;
      left: 28px;
    }

    .quantity {
      color: var(--color-text);
      font-size: $fs-14;
      font-weight: $weight-bold;
    }

    .remove_from_cart_button {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 1em;
      height: 1em;
      border-radius: 100%;
      border: 2px solid var(--color-icon);
      color: var(--color-icon);
      font-size: 20px;
      font-weight: 700;
      line-height: 1;
      text-align: center;
      position: absolute;
      top: 16px;
      right: 28px;
      opacity: .4;
      transition: color .2s ease-in-out, border-color .2s ease-in-out, opacity .2s ease-in-out;

      &:hover {
        color: var(--color-icon-highlighted) !important;
        border-color: var(--color-icon-highlighted);
        background-color: transparent;
        opacity: 1;
      }
    }
  }
}

.woocommerce-cart {
  table {
    &.cart {
      .product-thumbnail {
        a {
          display: block;
        }

        img {
          width: 60px;
          border-radius: 12px;
        }
      }
    }
  }

  .wc-proceed-to-checkout {
    padding: 0;

    a {
      &.checkout-button {
        display: flex;
        margin: 12px 0 0;
        padding: 0 18px;
        font-size: $fs-14;
      }
    }
  }
}

/*--------------------
    MEDIA QUERIES 
--------------------*/
@media screen and (max-width: 1365px) {
  .woocommerce {
    ul.products {
      &.columns-4 {
        justify-content: center;
      }
    }

    .section-header {
      margin: 60px 0 28px;
    }
  }

  .section-banner {
    & + {
      .vikinger-wc-content {
        margin-top: 32px;
      }
    }
  }

  .vikinger-wc-content {
    &.vikinger-wc-content-with-sidebar {
      grid-template-areas: "sidebar"
                            "body";
      grid-template-columns: 100%;

      .vikinger-wc-sidebar {
        margin-bottom: 32px;
      }
    }
  }
}

@media screen and (max-width: 960px) {
  .woocommerce {
    .header {
      .header-actions {
        &.search-bar {
          form {
            input {
              height: 100%;
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .woocommerce {
    div.product {
      div.images,
      div.summary {
        width: 100%;
      }
    }

    .woocommerce-MyAccount-content {
      .woocommerce-Addresses {
        display: block;
  
        .woocommerce-Address {
          margin: 0 0 16px 0;

          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }

    table {
      &.shop_table {
        tr {
          border-top: 1px solid var(--color-divider);

          &:nth-child(2n) {
            td {
              background-color: transparent;
            }
          }

          &.order-total,
          &:first-child {
            border-top: none;
          }
        }

        td {
          border-top: none;

          &.product-quantity {
            display: flex;
            align-items: center;
            padding: 12px 0;

            div.quantity {
              .qty {
                width: auto;
              }
            }
          }

          &.actions {
            .coupon {
              display: block;
              width: 100%;
              padding-bottom: 0;
              float: none;

              .input-text {
                float: none;
                width: 100%;
                margin-bottom: 12px;

                & + {
                  .button {
                    float: none;
                    width: 100%;
                  }
                }
              }

              & + {
                .button {
                  width: 100%;
                  float: none;
                  margin-top: 12px;
                }
              }
            }
          }
        }
      }
    }

    form {
      &.checkout_coupon {
        & > {
          .form-row {
            float: none;
            width: 100%;
  
            .button {
              width: 100%;
              margin: 0;
            }
          }
        }
      }
    }
  }
}