.fourbucks-credit-header,
.fourwaysrewards-credit-header {
  background-color: #f5f5f5;
  padding: 35px 50px;
  margin-bottom: 30px;
}

.fourbucks-credit-header p,
.fourwaysrewards-credit-header p {
  margin: 0;
}

.fourbucks-credit-total,
.fourwaysrewards-credit-total {
  font-size: 42px;
}

.fourbucks-credit-total img,
.fourwaysrewards-credit-total img {
  vertical-align: baseline;
}

.fb-table,
.fwr-table {
  display: table;
  width: 100%;
  border: 1px solid #ccc;
  border-collapse: collapse;
}

.fb-table .tr,
.fwr-table .tr {
  display: table-row;
}

.fb-table .td,
.fwr-table .td {
  display: table-cell;
  border: 1px solid #cccccc;
  border-collapse: collapse;
  padding: 5px 10px;
}

.fb-table .th,
.fwr-table .th {
  background-color: #54565b;
  color: #ffffff;
  text-transform: uppercase;
}

.fb-table .tr[data-direction="in"] .td:last-child,
.fwr-table .tr[data-direction="in"] .td:last-child {
  color: #65be6e;
}

.fb-trailing-buttons,
.fwr-trailing-buttons {
  margin-top: 20px;
  text-align: right;
}

.fb-button,
.blue-button {
  background-color: #00adef;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  padding: 7px 30px 5px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.35s ease 0s;
}

.fb-button:hover,
.blue-button:hover {
  background-color: #65be6e;
}

.fourbucks-lightbox,
.fourwaysrewards-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
}

.fbrl-overlay,
.fwrl-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fbrl-container,
.fwrl-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 25px 30px;
  max-width: 650px;
  width: 90%;
}

.fbrl-closer,
.fwrl-closer {
  position: absolute;
  top: 9px;
  right: 15px;
  font-size: 18px;
  cursor: pointer;
  color: #55565b;
  transition: all 0.35s ease 0s;
  z-index: 1;
}

.fbrl-closer:hover,
.fwrl-closer:hover {
  color: #00adef;
}

.fbrl-loading,
.fwrl-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: none;
}

.fbrl-loading i,
.fwrl-loading i {
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  font-size: 80px;
  color: #00adef;
}

.fbrl-content,
.fwrl-content {
  text-align: center;
}

.fbrl-content h2,
.fwrl-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 36px;
  font-weight: 400;
}

.fb-success-message,
.fwr-success-message {
  display: none;
}

.fb-success-message h2,
.fwr-success-message h2 {
  color: #00adef;
  font-size: 52px;
  margin-top: 20px;
  font-weight: 600;
  line-height: 1em;
}

.fb-success-message p,
.fwr-success-message p {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0;
}

.fbrl-content table,
.fwrl-content table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  text-align: left;
}

.fbrl-content table th,
.fbrl-content table td,
.fwrl-content table th,
.fwrl-content table td {
  border: 1px solid #ccc;
  padding: 10px 20px;
  font-size: 15px;
}

.fbrl-content table th,
.fwrl-content table th {
  width: 170px;
}

.fourbucks-allocate-amount-wrapper,
.fourbucks_staff_allocate_amount_input_wrapper {
  border-bottom: 2px solid #55565b;
  background-color: #ffffff;
  margin-top: 10px;
  margin-bottom: 10px;
}

#fourbucks_allocate_amount_input,
#fourbucks_staff_allocate_amount_input {
  border: 0;
  width: 100%;
  font-size: 18px;
  color: #000;
  outline: none;
  -moz-appearance: textfield;
}

#fourbucks_allocate_amount_input::-webkit-outer-spin-button,
#fourbucks_allocate_amount_input::-webkit-inner-spin-button,
#fourbucks_staff_allocate_amount_input::-webkit-outer-spin-button,
#fourbucks_staff_allocate_amount_input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fourbucks-allocate-button,
.fourbucks_staff_allocate_button,
.remove-fourbucks-update-order-button {
  background-color: #65be6e;
  color: #ffffff;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 18px;
  padding: 8px 20px 7px;
  display: block;
  cursor: pointer;
  transition: all 0.35s ease 0s;
  text-align: center;
}

.fourbucks-allocate-button:hover,
.fourbucks_staff_allocate_button:hover,
.remove-fourbucks-update-order-button:hover {
  background-color: #00adef;
}

.remove-fourbucks-update-order-button {
  margin-bottom: 20px;
}

.otp-error-box p,
.fourbucks-otp-error-box p,
.cart-allocate-error-box p,
.pre-display-box p,
.pre-display-fourbucks-box p,
.post-display-box p,
.post-display-fourbucks-box p,
.fourwaysrewards-existingstaffacount-error-box p {
  color: #973333;
  font-style: italic;
  border: 2px solid #973333;
  padding: 10px 20px;
  margin: 10px;
  background-color: #fafafa;
  line-height: 1.2em;
}

.pre-display-box p,
.pre-display-fourbucks-box p,
.post-display-box p,
.post-display-fourbucks-box p {
  color: #000000;
  border: 2px dashed #00adef;
}

.fourbucks-table {
  border: 1px solid #cccccc;
  border-collapse: collapse;
}

.fourbucks-table th,
.fourbucks-table td {
  border: 1px solid #cccccc;
  padding: 5px 10px;
  text-align: left;
}

.fourbucks-table th {
  text-align: center;
  width: 150px;
}

.use-fourbucks-wrapper {
  position: relative;
  padding: 5px 0;
}

.use-fourbucks-amount-wrapper {
  display: none;
  padding-left: 20px;
  padding-top: 10px;
}

#use-fourbucks:checked ~ .use-fourbucks-amount-wrapper {
  display: block;
}

.use-fourbucks-wrapper input[type="radio"],
.use-fourbucks-wrapper input[type="checkbox"] {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  visibility: hidden;
}

.use-fourbucks-wrapper input[type="radio"] + label,
.use-fourbucks-wrapper input[type="checkbox"] + label {
  position: relative;
  padding-left: 20px;
  display: block;
}

.use-fourbucks-wrapper input[type="radio"] + label::after,
.use-fourbucks-wrapper input[type="checkbox"] + label::after {
  position: absolute;
  top: calc(50% - 8px);
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #57585d;
  content: "";
  border-radius: 100%;
}

.use-fourbucks-wrapper input[type="radio"]:checked + label::before,
.use-fourbucks-wrapper input[type="checkbox"]:checked + label::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: #57585d;
  top: calc(50% - 5px);
  left: 3px;
  border-radius: 100%;
}

.use-fourbucks-amount-wrapper > div {
  position: relative;
}

.use-fourbucks-radio-custom-input-wrapper,
.use-fourbucks-custom-input-wrapper {
  position: static;
  border: 1px solid #cccccc;
  border-radius: 0;
  display: none;
}

.use-fourbucks-radio-custom-input-wrapper::before,
.use-fourbucks-custom-input-wrapper::before {
  content: "fb";
  font-size: 14px;
  left: 16px;
  position: absolute;
  top: 3px;
}

#use-fourbucks-radio-custom:checked ~ .use-fourbucks-radio-custom-input-wrapper,
#use-fourbucks-custom:checked ~ .use-fourbucks-custom-input-wrapper {
  display: block;
}

.use-fourbucks-radio-custom-input-wrapper input,
.use-fourbucks-custom-input-wrapper input {
  border: 0;
  -moz-appearance: textfield;
  font-size: 14px;
  padding-left: 35px !important;
  width: 150px;
  outline: none;
}

.use-fourbucks-radio-custom-input-wrapper input::-webkit-outer-spin-button,
.use-fourbucks-radio-custom-input-wrapper input::-webkit-inner-spin-button,
.use-fourbucks-custom-input-wrapper input::-webkit-outer-spin-button,
.use-fourbucks-custom-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.apply-fourbucks-update-order-button {
  background-color: #00adef;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 100px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.35s ease 0s;
  margin-bottom: 50px;
}

.apply-fourbucks-update-order-button:hover {
  background-color: #65be6e;
}

.history-reference,
.fourbucks-history-reference {
  position: relative;
  cursor: pointer;
  color: #54565b;
}

.history-reference:hover,
.fourbucks-history-reference:hover {
  color: #00adef;
}

.history-reference .reference-note,
.fourbucks-history-reference .reference-note {
  position: absolute;
  background-color: #e4e4e4;
  z-index: 1;
  font-size: 12px;
  line-height: 1.2em;
  display: block;
  bottom: calc(100% + 10px);
  padding: 5px 10px;
  min-width: 270px;
  pointer-events: none;
  transition: all 0.2s ease 0s;
  opacity: 0;
}

.history-reference:hover .reference-note,
.fourbucks-history-reference:hover .reference-note {
  opacity: 1;
}

.history-reference .reference-note::before,
.fourbucks-history-reference .reference-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  border-top: 10px solid #e4e4e4;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  color: #54565b;
}

.fourbucks-account-tabs,
.fourwaysrewards-account-tabs {
  margin-top: 0;
}

.fourbucks-account-tabs ul,
.fourwaysrewards-account-tabs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.fourbucks-account-tabs li,
.fourwaysrewards-account-tabs li {
  border: 2px solid #54565b;
  display: inline-block;
  margin-left: 10px;
  margin-top: 15px;
  text-transform: uppercase;
  padding: 3px 20px 2px;
  cursor: pointer;
  transition: all 0.35s ease 0s;
  background-color: #fff;
  color: #54565b;
}

.fourbucks-account-tabs li:hover,
.fourbucks-account-tabs li.active,
.fourwaysrewards-account-tabs li:hover,
.fourwaysrewards-account-tabs li.active {
  background-color: #00adef;
  border-color: #00adef;
  color: #fff;
}

.fourbucks-overview,
.fourbucks-history,
.fourwaysrewards-overview,
.fourwaysrewards-history {
  display: none;
}

.fourbucks-history.load-open,
.fourwaysrewards-history.load-open {
  display: block !important;
}

.fourbucks-tabbed-content,
.fourwaysrewards-history .fourways-tabbed-content,
.fourways-tabbed-content {
  overflow: hidden;
}

.otp-form {
  margin-bottom: 30px;
}

.otp-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.otp-group > input {
  width: calc(16% - 10px);
  height: 80px;
  font-size: 42px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 0;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

.otp-group > input:focus {
  background-color: #eee;
  outline: 0 !important;
}

.otp-resend-text {
  margin-top: 10px;
  margin-bottom: 0;
}

.otp-resend-text span {
  color: #65be6e;
  border-bottom: 1px solid;
  cursor: pointer;
}

.otp-resend-text span:hover {
  color: #00adef;
}

.fourbucks-formrow,
.fwr-formrow {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.fourbucks-formrow label,
.fwr-formrow label {
  display: block;
  width: 130px;
  background-color: #55565b;
  color: #ffffff;
  height: 35px;
  font-size: 14px;
  padding-top: 7px;
}

.fourbucks-formrow input,
.fwr-formrow input {
  width: calc(100% - 130px);
  border-radius: 0 !important;
  border: 1px solid #55565b !important;
  font-size: 14px;
  padding-left: 10px !important;
  outline: none;
}

.fourbucks-submitnewaccount,
.fourbucks-submitexistingaccount,
.fourwaysrewards-submitnewaccount,
.fourwaysrewards-submitexistingaccount {
  display: block;
  width: 100%;
  border: 0;
  font-size: 15px;
  padding: 10px 10px;
  margin-top: 10px;
  cursor: pointer;
}

.fourbucks-flyout,
.fourbucks-flyout {
  position: fixed;
  z-index: 99999;
  background-color: #54565b;
  color: #fff;
  right: 0;
  top: 40px;
  padding: 10px 10px 10px 20px;
}

.fourbucks-flyout::after {
  content: "";
  position: absolute;
  left: -11px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  background-image: url(/wp-content/themes/fourways/images/fourbucks.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.fourbucks-flyout p {
  margin: 0;
  font-size: 14px;
}

.fourbucks-flyout p:first-child {
  font-weight: 600;
}

.reflinkgen {
  background-color: #f7f7f7;
  padding: 30px 30px 10px 30px;
}

.reflinkgen h3::before {
  content: '';
  display: inline-block;
  height: 20px;
  width: 20px;
  background-image: url(/wp-content/themes/fourways/images/fourbucks.png);
  margin-right: 7px;
  background-size: contain;
  vertical-align: sub;
}

.reflinkgen pre {
  font-size: 14px;
}

body .edit-account label[for="birthday_field"] {
  display: block;
  background-color: var(--color-green);
  color: var(--color-white);
  padding: 5px 15px;
  font-size: 14px;
}

body .edit-account #birthday_field {
  display: block;
  width: 100%;
  border-radius: 0;
  border: none;
  outline: none;
  padding: 10px 15px;
  font-size: 15px;
  color: var(--color-grey);
  margin-bottom: 15px;
}

#use-fourbucks-radio-all,
#use-fourbucks-radio-custom,
#use-fourbucks-radio-all + label,
#use-fourbucks-radio-custom + label,
#use-fourbucks-all,
#use-fourbucks-custom,
#use-fourbucks-all + label,
#use-fourbucks-custom + label {
  display: none;
}

@media (max-width: 639px) {
  .fourbucks-account-tabs li,
  .fourwaysrewards-account-tabs li {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .fourbucks-formrow label,
  .fwr-formrow label {
    width: 100%;
    height: auto;
    padding: 3px;
  }
  .fourbucks-formrow input,
  .fwr-formrow input {
    width: 100%;
    padding: 3px !important;
    text-align: center;
  }
  .fbrl-content table th,
  .fbrl-content table td,
  .fwrl-content table th,
  .fwrl-content table td {
    width: auto;
    display: block;
    text-align: center;
  }
  .otp-group > input {
    height: 50px;
    font-size: 28px;
  }
  .fb-table {
    font-size: 12px;
  }
}
