/*--------------------------------------------------------------
WooCommerce Forms
--------------------------------------------------------------*/


.wp-block-woocommerce-checkout-order-summary-block{
  background-color: var(--bs-body-bg);
  border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
  border-radius: 8px;
  & > *:not(:first-child) {
    border-top: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
  }

  .wc-block-components-order-summary {
    .wc-block-components-order-summary-item__quantity{
      background: var(--bs-body-color);
      border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
      box-shadow: 0 0 0 2px var(--bs-body-color);
      color: var(--bs-body-bg);
    }
    img{
      border-radius: 8px;
    }
    .wc-block-components-order-summary-item__total-price {
      font-weight: 400;
      color: $wpstream-success;
    }
  }

  .wc-block-components-totals-item__value,
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__label{
    font-weight: 400;
    font-size: inherit!important;
  }

}

.wc-block-components-main .wc-block-components-form.wc-block-checkout__form{
  .wc-block-components-text-input input,
  .wc-block-components-text-input textarea{
    line-height: inherit;
    color: var(--bs-body-color);
    border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
    border-radius: 8px;
    background-color: var(--wpstream-eerie-black);
    padding: 25px 10px 10px 10px !important;

    &:focus{
      background-color: var(--wpstream-eerie-black);
      box-shadow: none;
      color: inherit;
    }
  }

  .wc-block-components-combobox{
    .wc-block-components-combobox-control{
      label.components-base-control__label{
        color: var(--bs-body-color);
      }
      input.components-combobox-control__input{
        line-height: inherit;
        color: var(--bs-body-color);
        border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
        border-radius: 8px;
        padding: 25px 10px 10px 10px !important;
        background-color: var(--wpstream-eerie-black);

        &:focus{
          border-bottom-left-radius: 0;
          border-bottom-right-radius: 0;
        }
      }

      .components-form-token-field__suggestions-list{
        background-color: var(--wpstream-eerie-black) !important;
        color: var(--bs-body-color) !important;
        border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
        border-radius:  8px !important;

        .components-form-token-field__suggestion{
          color: #f1f1f1 !important;
          &.is-selected, &:hover{
            background-color: #4e2ee5 !important;
            color: #f1f1f1 !important;
          }
        }
      }
    }
  }

  .wc-block-components-text-input label{
    color: var(--bs-body-color);
  }

  .wc-block-components-text-input.has-error label{
    color: $red;
  }

  .wc-block-components-validation-error{
    color: $red;
  }

  .wc-block-checkout__payment-method{
    .wc-block-components-radio-control-accordion-option{
      &:not(:last-child){
        margin-bottom: 24px;
      }
      .wc-block-components-radio-control__option{
        padding: 10px 20px;
        border-radius: 24px;
        transition: all 300ms ease;
        font-weight: 400;
        background: var(--add-to-cart-button-normal);
        color: $anti-flash-white;
        padding: 10px 20px;
        input{
          display: none;
        }
        &.wc-block-components-radio-control__option-checked, &:hover{
          background: var(--add-to-cart-button-hover)!important;
          color: $anti-flash-white;
        }
      }

      &.wc-block-components-radio-control-accordion-option--checked-option-highlighted{
        box-shadow: unset;
        border-radius: unset;
      }
    }
  }



  .wc-block-components-textarea{
    line-height: inherit;
    color: var(--bs-body-color);
    border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
    border-radius: 24px;
    background-color: var(--wpstream-eerie-black);
  }

  .wc-block-components-checkout-place-order-button {
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default));
    transition: all 300ms ease;
    font-weight: 400;
    background-color: transparent;
    color: var(--bs-body-color);

    &:hover {
      background-color: var(--secondary-white-color);
      border: 1px solid var(--secondary-white-color);
      color: var(--night-color);
    }
  }
}

// Reset form-row
.woocommerce form .form-row {
  input.input-text,
  textarea {
    line-height: inherit;
    color: var(--bs-body-color);
    border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default)) !important;
    border-radius: 24px;
    background-color: var(--wpstream-eerie-black);
  }
}

.woocommerce form .form-row {
  padding: 0;
  margin: 0 0 1rem;

  label {
    line-height: 1.5;
  }
}

// Account password
#account_password {
  background-position: right 2.25rem center;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
  top: 0.5em;
}
