@import "./../../theme/constants.scss";

.paymentMethod {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  box-sizing: border-box;
  padding-left: 30px;
  padding-right: 30px;
  line-height: 19px;
  font-size: 16px;
  cursor: pointer;
  font-family: "Avenir";
  overflow: hidden;

  @media screen and (max-width: $break-small) {
    height: 58px;
    margin: 0;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }

  .radioContainer {
    line-height: 19px;
  }

  label {
    cursor: pointer;
  }

  i {
    position: relative;
    margin-right: 14px;
    padding: 1px;
    box-sizing: content-box;
  }

  :global(.cashier-payments-widget-rtl) & i {
    margin-left: 14px;
    margin-right: 0;
  }

  input[type="radio"] {
    position: absolute;
    width: 16px;
    height: 16px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
  }
  input[type="radio"] + i:before {
    display: inline-block;
    width: 16px;
    height: 16px;
    content: " ";
    vertical-align: top;
    background: transparent;
    border-radius: 9px;
    border: solid 1px #676969;
  }
  input[type="radio"]:checked + i:after {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    content: " ";
    width: 8px;
    height: 8px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #338ffc;
  }

}

.paymentMethodInput {
  z-index: 1;
}

.icon {
  @media screen and (max-width: $break-small) {
    width: 100px;
    position: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      position: unset;
    }
  }
}

:focus {
  outline: none;
}

//:focus,
//:global(.wixSdkShowFocus) ~ :focus,
//:focus ~ :global(.wixSdkShowFocus) {
//	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 1px 2px #3899EC;
//	outline: none;
//}
//
//:focus:global(.wixSdkHideFocus) {
//	box-shadow: none;
//}
