/* ThankQ CRM — Gravity Forms styles (ported from Release theme, theme-agnostic) */

body .gform_wrapper.gravity-theme .gf-hide {
  display: none !important;
}

.gf-readonly input,
.gf-readonly select {
  box-shadow: none !important;
  border: 0 !important;
  user-select: none;
  cursor: not-allowed;
  background: #f5f5f5;
  font-weight: 700;
}

.gf-readonly input:focus-visible,
.gf-readonly select:focus-visible {
  outline: none !important;
}

.gf-readonly .name_prefix_select {
  display: none;
}

.gf-readonly .name_first {
  padding-left: 0 !important;
}

.gfield_checkbox input,
.gfield_radio input {
  width: 1.1em;
  height: 1.1em;
}

.thankq-giftaid {
  border: 1px solid #e0e0e0 !important;
  padding: 1rem !important;
  position: relative;
  padding-right: 150px !important;
}

.thankq-giftaid input {
  vertical-align: top !important;
}

.thankq-giftaid::after {
  content: "";
  background-image: url("../img/giftaid.svg");
  background-size: contain;
  width: 125px;
  height: 55px;
  position: absolute;
  top: 0;
  right: 1rem;
  background-repeat: no-repeat;
  background-position: top;
}

.donation-other .ginput_container {
  position: relative;
  display: flex;
  align-items: center;
}

.donation-other .ginput_container::before {
  content: "£";
  padding: 0 0.75rem;
  font-weight: bold;
  font-size: 1.3em;
  background: #f5f5f5;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.donation-other .ginput_container input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.radio-grid .gfield_radio {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  margin: -5px;
}

.radio-grid .gchoice {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding: 5px;
  margin: 0;
  position: relative;
}

@media (min-width: 600px) {
  .radio-grid .gchoice {
    width: 50%;
  }
}

.radio-grid .gchoice label {
  font-size: 1.25em !important;
  padding: 0.75em 1em;
  width: 100%;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid #478c99;
  display: flex;
  height: 100%;
  align-items: center;
  line-height: 1.2;
}

.radio-grid .gchoice input {
  position: absolute;
  top: -100% !important;
}

.radio-grid .gchoice:hover label,
.radio-grid .gchoice input:checked ~ label {
  background: #478c99;
  color: #fff;
  font-weight: bold;
}

.gf-fauxhide,
.gf-fauxhide * {
  height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

.callout {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #478c99;
  background: #f7f8fa;
}

.callout.success {
  border-left-color: #2e7d32;
}

.callout.error {
  border-left-color: #c62828;
}

.callout.warning {
  border-left-color: #f9a825;
}

.callout.secondary {
  border-left-color: #5c6bc0;
}

.callout.donation-summary {
  font-size: 1.05rem;
}

table.table-dashboard {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

table.table-dashboard th,
table.table-dashboard td {
  padding: 0.75em 0.8em;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: left;
}

table.table-dashboard th {
  border-bottom-color: #bdbdbd;
  font-weight: 700;
}

td.row-number {
  text-align: right;
}

.hide-below-md {
  display: none;
}

@media (min-width: 900px) {
  .hide-below-md {
    display: table-cell;
  }
}

@media (max-width: 767px) {
  .thankq-giftaid {
    padding: 1rem 1rem 5.5rem 1rem !important;
  }

  .thankq-giftaid::after {
    top: calc(100% - 4rem);
    right: calc(50% - 3rem);
  }
}
