.dram-coin-credit-header {
  background-color: var(--color-light-grey);
  padding: 35px 50px;
  margin-bottom: 30px;
}

.dram-coin-credit-header p {
  margin: 0;
}

.dram-coin-credit-total {
  font-size: 42px;
}

.dram-coin-credit-total img {
  vertical-align: baseline;
}

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

.gd-table .tr {
  display: table-row;
}

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

.gd-table .th {
  background-color: var(--color-black);
  color: #ffffff;
  text-transform: uppercase;
}

.gd-trailing-buttons {
  margin-top: 20px;
  text-align: right;
}

.gd-button {
  background-color: #c29e58;
  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;
}

.gd-button:hover {
  background-color: #1A1A1A;
}

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

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

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

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

.gdrl-closer:hover {
  color: #c29e58;
}

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

.gdrl-loading i {
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  font-size: 80px;
  color: #c29e58;
}

.gdrl-content {
  text-align: center;
}

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

.gd-success-message {
  display: none;
}

.gd-success-message h2 {
  color: #c29e58;
  font-size: 52px;
  margin-top: 20px;
  font-weight: 600;
  line-height: 1em;
}

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

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

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

.gdrl-content table th {
  width: 170px;
}

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

#dram-coin_allocate_amount_input {
  border-radius: 0;
  border: none;
  width: 100%;
  font-size: 18px;
  color: #000;
  outline: none;
  -moz-appearance: textfield;
}

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

.dram-coin-allocate-button,
.remove-dram-coin-update-order-button {
  background-color: #1A1A1A;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 18px;
  padding: 8px 20px 7px;
  display: block;
  cursor: pointer;
  transition: all 0.35s ease 0s;
  text-align: center;
}
.remove-dram-coin-update-order-button {
    margin-bottom: 20px;
}

.dram-coin-allocate-button:hover,
.remove-dram-coin-update-order-button:hover {
  background-color: #c29e58;
}

.dram-coin-otp-error-box p,
.dram-coin-cart-error-box p,
.pre-display-dram-coin-box p,
.post-display-dram-coin-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-dram-coin-box p,
.post-display-dram-coin-box p {
  color: #000000;
  border: 2px dashed #c29e58;
}

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

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

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

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

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

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

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

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

.use-dram-coin-wrapper input[type="radio"] + label::after,
.use-dram-coin-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-dram-coin-wrapper input[type="radio"]:checked + label::before,
.use-dram-coin-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-dram-coin-amount-wrapper > div {
  position: relative;
}

.use-dram-coin-custom-input-wrapper {
  position: static;
}

.use-dram-coin-custom-input-wrapper::before {
  content: "DramCoin";
  font-size: 14px;
  left: 16px;
  position: absolute;
  top: 3px;
}

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

.use-dram-coin-custom-input-wrapper input {
  border: none;
  -moz-appearance: textfield;
  font-size: 14px;
  border-radius: 0;
  outline: none;
  padding-left: 90px !important;
  width: 215px;
}

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

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

.apply-dram-coin-update-order-button:hover {
  background-color: #1A1A1A;
}

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

.dram-coin-history-reference:hover {
  color: #c29e58;
}

.dram-coin-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;
}

.dram-coin-history-reference:hover .reference-note {
  opacity: 1;
}

.dram-coin-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;
}

.gd-table .tr[data-direction="in"] .td:last-child {
  color: #1A1A1A;
}

.dram-coin-overview,
.dram-coin-history {
  display: none;
}

.dram-coin-history.load-open {
  display: block !important;
}

.dram-coin-account-tabs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.dram-coin-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;
}

.dram-coin-account-tabs li:hover,
.dram-coin-account-tabs li.active {
  background-color: #c29e58;
  border-color: #c29e58;
  color: #fff;
}

.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: none !important;
}

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

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

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

.dram-coin-formrow {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

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

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

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

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

.dram-coin-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;
}

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

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

.gd-allocate-button,
.gd-viewhistory {
  text-align: center;
  background-color: #65be6d;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0;
  padding: 2px;
  cursor: pointer;
  transition: 0.35s ease all;
}

.gd-allocate-button:hover,
.gd-viewhistory:hover {
  background-color: #c29e58;
}

.dram-coin-tabbed-content {
  overflow: hidden;
}

.gd-unlink img {
  position: relative;
  top: 5px;
}

.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: #ffffff;
  padding: 5px 15px;
  font-size: 14px;
}

body .edit-account #birthday_field {
  display: block;
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--color-dark-grey);
  outline: none;
  padding: 5px 15px;
  font-size: 14px;
}

#use-dram-coin-all,
#use-dram-coin-custom,
#use-dram-coin-all + label,
#use-dram-coin-custom + label {
  display: none;
}

@media (max-width: 639px) {
  .dram-coin-account-tabs li {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .dram-coin-formrow label {
    width: 100%;
    height: auto;
    padding: 3px;
  }
  .dram-coin-formrow input {
    width: 100%;
    padding: 3px !important;
    text-align: center;
  }
  .gdrl-content table th,
  .gdrl-content table td {
    width: auto;
    display: block;
    text-align: center;
  }
  .otp-group > input {
    height: 50px;
    font-size: 28px;
  }
  .gd-table {
    font-size: 12px;
  }
  /*.gd-table {
    display: flex;
    flex-wrap: wrap;
  }
  .gd-table .tr:first-child {
    width: 127px;
    display: block;
    font-size: 13px;
  }
  .gd-table .tr:last-child {
    display: block;
    width: calc(100% - 127px);
    font-size: 13px;
  }
  .gd-table .td {
    display: block;
    padding: 8px 10px;
    height: 37px;
  }*/
  .gd-allocate-button,
  .gd-viewhistory {
    position: relative;
    top: -3px;
  }
  .gd-unlink img {
    top: -2px;
  }
}
