@import '../../core/src/style/variables';
@import '../../core/src/style/mixins';

.bom-outerwrapper {
  padding: 15px;
  position: relative;
  .cart-promo-wrapper {
    position: relative;
    a {
      img {
        position: absolute;
        right: 0;
        top: 0;
      }
    }
  }
}

.feedback-link {
  float: right;
}

h1 {
  color: $black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 250%;
  margin: 0.5em 0 0.25em;
}

h2 {
  margin: 0.5em 0;
  font-size: 22px;
}

hr {
  background-color: $black;
  height: 3px;
  margin: 2em 0 1.5em;
}

.bom-login-register {
  button {
    margin-bottom: 1em;
    width: 135px;
  }

  &-link {
    color: $black;
    text-decoration: none;
    display: block;

    .BomIcon--link-arrow {
      font-size: 11px;
      margin-left: 4px;
    }
  }
}

.bom-home-cards {
  h2 {
    text-transform: uppercase;
  }
  .bom-card-container {
    wpt-card {
      &:hover {
        cursor: pointer;
      }
      h3 {
        margin: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 2.2rem;
      }
      ul {
        font-size: 12px;
        padding: 0;
        margin: 0;
        list-style: none;
        li {
          display: flex;
          span {
            flex: 1;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
          }
        }
      }

      wpt-card-actions button {
        margin-right: 5px;
      }
    }
  }
}

.bom-home-cards-search {
  width: 487px;
  position: relative;
  margin-bottom: 1em;

  input {
    width: 100%;
    color: $black;
    border: 1px solid $grey;
    margin-bottom: 1em;
    margin-left: 2px;   // To ensure visual focus from the left
    padding: 6px 34px 6px 10px;
  }

  .search-btn {
    color: $middarkgrey;
    position: absolute;
    top: 1px;
    padding:0;
    background: none;
    border: none;
    cursor: pointer;
    wpt-icon {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .mag-glass-search-btn {
    font-size: 18px;
    right: 0;
  }

  .clear-search-btn {
    font-size: 12px;
    right: 25px;
  }
}

.wpt-card {
  height: 240px;
  @include col($col-narrow, $gutter-m);

  @media (min-width: $wide-breakpoint) {
    // reset 4 column display
    &:nth-child(#{$col-narrow}n) {
      margin-right: $gutter-m;
      float: left;
    }
    &:nth-child(#{$col-narrow}n + 1) {
      clear: none;
    }

    @include col($col-wide, $gutter);
  }
  @media (max-width: $phablet-breakpoint) {
    width: 50%;
    clear: none;

    @include col($col-narrow, 0);
    @include col($col-wide, 0);

    &:nth-child(#{$col-narrow}n) {
      margin-right: 0;
      float: left;
    }
    &:nth-child(5n + 1) {
      clear: none;
    }
  }

  &-header > button {
    font-size: inherit; 
    padding: 0; 
    width:100%;
  }
}
iframe {
  display: none;
  visibility: hidden;
}
