/**
 * Product list
 */

  /* Table layout */
    .spnet-products-table h2 {
      font-size: 1em;
    }

    .spnet-products-table tr {
      display: table-row;
    }


/**
 * Product details
 */

  .spnet-variations-grid {
    font-size: 0.875rem;
    width: auto;
  }

  .tab-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    margin-bottom: 2em;
  }

  .tab-video-wrapper iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }


/* Responsive tables */

  .spnet-responsive-table-active thead {
    display: none;
  }

  .spnet-responsive-table-active,
  .spnet-responsive-table-active tbody,
  .spnet-responsive-table-active th {
    display: block;
    width: 100%;
  }

  .spnet-responsive-table-active tr {
    display: table;
    width: 100%;
    padding-top: 4vh;
    padding-bottom: 4vh;
  }

  .spnet-responsive-table-active tr + tr {
    border-top: 1px solid #ccc;
  }

  .spnet-responsive-table-active [data-spnet_th] {
    display: table-row;
    width: 100%;
    text-align: left;
    padding: 0;
    line-height: initial;
    border: 0;
  }

  .spnet-responsive-table-active [data-spnet_th]::before,
  .spnet-responsive-table-active [data-spnet_th] .spnet-responsive-cell {
    padding-top: 1vh;
    padding-bottom: 1vh;
    display: table-cell;
  }

  .spnet-responsive-table-active [data-spnet_th]:empty {
    display: none;
  }
  .spnet-responsive-table-active [data-spnet_th]::before {
    content: attr(data-spnet_th);
    font-weight: bold;
    padding-right: 5vw;
    white-space: nowrap;
    width: 1vw;
    vertical-align: top;
  }


/* Quantity breaks table */

  .quantity-breaks {
    margin: 0;
    font-size: smaller;
    width: auto;
  }
  .quantity-breaks .quantity-break td {
    padding: 1em 0 0;
  }
  .quantity-breaks .quantity-break td + td {
    padding-left: 1.41575em;
  }

  .quantity-break-active td {
    font-weight: bold;
  }


/* Ordering grid */

  .spnet-variations-grid {
    display: table;
    margin-bottom: 1rem;
  }

  .spnet-variations-grid-head {
    display: table-header-group;
  }

  .spnet-variations-grid-body {
    display: table-row-group;
  }

  .spnet-variations-grid-row {
    display: table-row;
  }

  .spnet-variations-grid-cell-container {
    display: contents;
  }

  .spnet-variations-grid-cell {
    display: table-cell;
    padding: 0.3rem;
  }

  .spnet-variations-grid-head .spnet-variations-grid-heading-cell {
    text-align: center;
  }

  .spnet-variations-grid-heading-cell {
    display: table-cell;
    padding: 0.3rem;
    font-weight: bold;
  }

  .spnet-variations-grid.spnet-responsive-table-active {
    border-top: 1px solid #ddd;
  }

  .spnet-variations-grid.spnet-responsive-table-active .spnet-variations-grid-head {
    display: none;
  }

  .spnet-variations-grid.spnet-responsive-table-active .spnet-variations-grid-heading-cell {
    border-bottom: 1px solid #ddd;
  }

  .spnet-variations-grid.spnet-responsive-table-active .spnet-variations-grid-cell-container {
    display: table-cell;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
  }
  .spnet-variations-grid.spnet-responsive-table-active .spnet-variations-grid-cell {
    display: inline-block;
  }

  .spnet-variations-grid.spnet-responsive-table-active [data-label]::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    text-align: center;
  }

  /**
   * IE Only adjustments
   */

  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {

    .spnet-variations-grid.spnet-variations-grid {
      border-top: 1px solid #ddd;
    }

    .spnet-variations-grid .spnet-variations-grid-head.spnet-variations-grid-head {
      display: none;
    }

    .spnet-variations-grid .spnet-variations-grid-heading-cell.spnet-variations-grid-heading-cell {
      border-bottom: 1px solid #ddd;
      vertical-align: top;
    }

    .spnet-variations-grid .spnet-variations-grid-cell-container.spnet-variations-grid-cell-container {
      display: table-cell;
      border-bottom: 1px solid #ddd;
      padding: 0.5rem;
    }
    .spnet-variations-grid .spnet-variations-grid-cell.spnet-variations-grid-cell {
      display: inline-block;
      vertical-align: top;
    }

    .spnet-variations-grid.spnet-variations-grid [data-label]::before {
      content: attr(data-label);
      font-weight: bold;
      display: block;
      text-align: center;
    }


  }


/**
 * Financials/templates sections
 */

  .spnet-no-results {
    padding: 1.41575em;
  }

  /* Invoice type links */

    .storefront-full-width-content .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--financials a:before {
      content: "\f155";
    }

    .spnet-tabs {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      line-height: 4em;
      text-align: center;
      margin-bottom: 2vh;
    }

    .spnet-tabs a {
      flex: 1;
      background-color: #f0f0f0;
      margin: 0.5vw;
      padding: 0 1em;
      white-space: nowrap;
    }

    .spnet-tabs a.active {
      pointer-events: none
    }

    .spnet-tabs a.active,
    .spnet-tabs a:hover
    {
      font-weight: bold;
      color: #000;
    }

  /* Financials lists */

    .spnet-financials {
      font-size: 14px;
      width: 100%;
    }

    .spnet-financials a {
      display: block;
    }

    .spnet-financials-heading {
      text-align: left;
    }

    .spnet-financials-payment-heading label {
      font-weight: inherit;
    }

    .spnet-financials-currency-type-heading,
    .spnet-financials-currency-type-cell,
    .spnet-financials-float-type-heading,
    .spnet-financials-float-type-cell,
    .spnet-financials-heading-payment-type-cell,
    .spnet-financials-heading-payment-type-heading
    {
      text-align: right;
    }

    .spnet-financials-heading-pdf-type-heading,
    .spnet-financials-heading-pdf-type-cell {
      text-align: center;
    }

    .pdf-request-button {
      line-height: initial;
      margin: 0;
    }

    .spnet-financial-payment-amount-input {
      width: 6em;
      margin-left: 5px;
    }

    .spnet-financial-payment-amount-input::-webkit-outer-spin-button,
    .spnet-financial-payment-amount-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .spnet-financial-payment-amount-input {
      -moz-appearance: textfield;
    }

    .spnet-financials-payment-total-container {
      margin-top: 1rem;
      text-align: right;
    }

    .spnet-financials-payment-total,
    .spnet-financials-foreign-currency-total {
      margin: 1rem 0;
      font-size: large;
    }

    .spnet-financials-payment-message {
      color: #d00;
      font-size: medium;
    }



  /* Financials details */

    .spnet-financial-details {
      width: 100%;
      margin-bottom: 2em;
    }

    .spnet-financial-lines {
      width: 100%;
      font-size: 0.875em;
    }

    .spnet-financial-pdf-request-form {
      float: right;
    }

    .spnet-financial-details-pdf {
      float: right;
    }

    .spnet-financials-total-rows tr:first-child th,
    .spnet-financials-total-rows tr:first-child td
    {
      border-top-width: 4px;
    }


  /* Financials search */

    .spnet-financials-search {
      display: inline-block;
      position: relative;
      margin-bottom: 2vh;
    }

    .spnet-financials-search-clear-button {
      position: absolute;
      top: calc( 50% - 10px);
      right: 0.618047rem;
    }


  /* Financials sorting */

    .spnet-financials-sort-heading {
      position: relative;
      cursor: pointer;
    }

    .spnet-financials-sort-heading::before {
      content: "\f156";
      font-family: dashicons;
      float: right;
      height: 100%;
      margin-left: 1em;
      font-size: 16px;
    }
    .spnet-financials-sort-heading-ascending::before {
      content: "\f142";
    }
    .spnet-financials-sort-heading-descending::before {
      content: "\f140";
    }


  /* Templates */

    .woocommerce-MyAccount-content table h2 {
      font-size: inherit;
      font-weight: inherit;
    }

/**
 * Admin bar
 */

  /* Fix flatsome annoyance */

    .kint dt,
    .kint dl
    {
      text-transform: none;
    }

  /* Product details dump */
    .spnet-product-details-dump {
      overflow: auto;
      border-bottom: 1px solid #ccc;
    }

    .spnet-product-dump {
      padding-top: 2em;
      padding-bottom: 2em;
    }
    .spnet-product-dump .spnet-product-dump {
      margin-left: 2em;
    }

    .spnet-product-dump + .spnet-product-dump {
      border-top: 1px solid #ccc;
    }

    #debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump table {
      width: auto;
      margin-bottom: 0;
    }

    .spnet-product-details-dump th {
      font-weight: bold;
    }

    #debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump th,
    #debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump td {
      padding: 0 0.707875em;
      border: 1px solid #ccc;
    }

    #debug-menu-target-SPNet_Debug_Bar_Panel .spnet-product-details-dump table table {
      margin-bottom: 0;
    }

    .quantity-breaks-cell {
      padding: 0;
    }
    .quantity-breaks-cell table {
      width: 100%;
    }

    .spnet-debug-dump-special-prices .section_head {
      font-size: inherit;
    }

/**
 * Theme specific
 */

  /* Storefront */
  .spnet-no-ordering #site-header-cart,
  /* Flatsome */
  .spnet-no-ordering .cart-item,
  .spnet-no-ordering .header-nav .header-divider
  {
    display: none;
  }

