/* ----- V2 styles ----- */
/* The V2 styles get injected conditionally and quite late in the page build so we
want to avoid a flash of V1 styled content by adding some styles here. */
.giving-form--v2 .view-container,
.giving-form--v2 #give {
  opacity: 0;
}

.page--mopView .form--giving {
  display: none !important;
}

.page--mopView .view-container .view-container {
  background-color: #fff !important;
}

/* Main Nav */
.main-navigation .item {
  position: relative;
}

.main-navigation .item a {
  padding-left: 50px;
}

.main-navigation .contains-no-menu-link {
  padding-left: 50px;
}

.main-navigation .item i {
  position: absolute;
  top: 14px;
  left: 15px;
  font-size: 24px;
  color: #333;
  min-width: 22px;
  text-align: center;
  opacity: .3;
}

.popup-container {
  background: rgba(44, 62, 81, 0.601961);
}

.popup-container.active .popup {
  border-radius: 3px;
  padding: 4px;
  background-color: #fff;
}

.popup-head {
  padding-bottom: 0;
  border-bottom: none;
  padding-top: 5px;
}

.popup-container.active .popup .popup-title {
  font-size: 22px;
  margin: 4px 0;
}

.popup-buttons .button.button-positive,
.popup-buttons .button.button-default,
.popup-buttons .button.button-positive.activated {
  background-color: #3a4c60;
  border-color: #3a4c60;
  border-radius: 3px;
  color: #fff;
  box-shadow: none;
  margin: 12px 0 0;
  opacity: 1;
  font-weight: bold;
  margin-top: 4px !important;
}

.popup-buttons .button.button-default,
.popup-buttons .button.button-default.activated {
  background-color: #fff;
  color: #3a4c60;
  border: 1px solid #3a4c60;
  margin-right: 12px;
}

/* Apple pay buttons */
.button.button-apple-pay,
.button.activated.button-apple-pay {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.pane,
.view {
  background-color: #f9f9f9;
}

.giving-selection-wrapper {
  min-height: 275px;
}

.square-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 20pt;
  font-size: 20px
}

.square-box .icon {
  font-size: 32px
}

.square-box:before {
  content: "";
  display: block;
  padding-top: 60%;
}

.square-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: white;
  font-size: 15px;
  font-weight: bold;
  line-height: 20px;
}

.square-content div {
  display: table;
  width: 100%;
  height: 100%;
}

.square-content span {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  color: white
}

.simple-fields {
  border-top: 1px solid #eee;
}

.api-message {
  white-space: normal !important;
}

.home-screen-tabs {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #26af5f;
}

.square-box:before {
  padding-top: 80%;
}

.square-box .icon {
  font-size: 28px;
}

.square-content span {
  font-size: 13px;
  font-weight: normal;
}

.row.square-buttons {
  width: 50%;
  float: left;
  margin: 0;
  padding: 5px 0 0 0;
}

.row.square-buttons .col-50 {
  padding: 8px;
}

.bar-balanced .button.button-icon.ion-home:before {
  font-size: 25px;
}

.card,
.list-inset {
  background-color: transparent;
}

.page-loader {
  margin-top: 50px;
}

.home-authenticated-view .spinner.spinner-balanced,
.initial-login-view .spinner.spinner-balanced,
.pin-login-view .spinner.spinner-balanced {
  stroke: #fff;
  fill: #fff;
}

.spinner.spinner-balanced svg {
  width: 60px;
  height: 60px;
}

.list .item:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.list .item:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.item.rounded-top {
  border-top-left-radius: 3px !important;
  border-top-right-radius: 3px !important;
}

.item.rounded-bottom {
  border-bottom-left-radius: 3px !important;
  border-bottom-right-radius: 3px !important;
}

.item.straight-top {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.item.straight-bottom {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.item.item-transparent.home-loading-wrapper {
  padding-top: 70px;
}

#pinForm {
  text-align: center;
}

#pinMessage,
#pinReset,
.pinLogout,
#pinLogoutLink {
  color: #fff;
}

#pinMessage,
#pinReset {
  display: block;
  padding: 30px 0;
}

#pinMessage {
  font-size: 24px;
  margin-top: 30px;
}

#pinReset,
#pinLogout {
  font-size: 17px;
}

#pinActual {
  background-color: #2c3e51;
  /* display: block; */
  color: #fff;
  border: none;
  font-size: 80px;
  padding: 0 12px;
  /* line-height: 20px; */
  height: 100px;
  margin: 0 auto;
  width: 280px;
  text-align: center;
  border-radius: 3px;
  -webkit-text-security: disc;
}

.no-decoration {
  text-decoration: none;
}

form input.no-decoration::-webkit-inner-spin-button,
form input.no-decoration::-webkit-outer-spin-button,
#pinForm input[type=tel]::-webkit-inner-spin-button,
#pinForm input[type=tel]::-webkit-outer-spin-button,
#pinForm input[type=number]::-webkit-inner-spin-button,
#pinForm input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

.nav-bar-block .title {
  /*background-image: url(../img/header_logo.png);*/
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 70px;
  margin: 0;
  padding: 0;
  height: 44px;
}

.bar.bar-balanced,
.bar-balanced .button,
.tabs-balanced>.tabs,
.toggle.toggle-balanced input:checked+.track {
  background-color: #26af5f;
  border-color: #28a54c;
}

.checkbox input:checked:before,
.checkbox input:checked+.checkbox-icon:before {
  background-color: #26af5f;
  border-color: #28a54c;
}

.bar.bar-balanced {
  /*outline: 2px solid #158a48;*/
  background-image: none;
  border: none;
  outline: none;
}

.bar-balanced .buttons-left .button.button-icon,
.bar-balanced .button.back-button {
  padding-left: 6px;
  padding-right: 12px;
}

.bar-balanced .button.back-button .icon:before {
  font-size: 25px;
  line-height: 34px;
}

.login {
  height: 90px;
  background-image: url(../img/front_header.png);
  background-size: 250px;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #26af5f;
  border: none;
  /*background-size: contain;*/
  margin: 0 0 0 0;
  padding: 0;
}

.group .pull-left {
  float: left;
}

.group .pull-right {
  float: right;
}

.group:after {
  content: "";
  display: table;
  clear: both;
}

a {
  color: #444;
}

.no-border {
  border: none;
}

.no-border-top {
  border-top: none;
  margin-top: -2px;
}

.no-border-right {
  border-right: none;
}

.no-border-bottom {
  border-bottom: none;
}

.no-border-left {
  border-left: none;
}

.no-padding {
  padding: 0;
}

.no-padding-top {
  padding-top: 0;
}

.no-padding-right {
  padding-right: 0;
}

.no-padding-bottom {
  padding-bottom: 0;
}

.no-padding-left {
  padding-left: 0;
}

.no-margin-bottom {
  margin-bottom: 0;
}

.no-margin-top {
  margin-top: 0;
}

.sm-margin-top {
  margin-top: 8px;
}

.sm-margin-bottom {
  margin-bottom: 8px;
}

.sm-padding-bottom {
  padding-bottom: 10px;
}

.sm-padding-top {
  padding-top: 10px;
}

.giving-form-view .item-input.double-field-item {
  padding-left: 0;
}

.double-field-item input {
  padding-left: 16px;
}

.double-field-item input:last-child {
  border-left: 1px solid #aaa;
}

.emphasize {
  background-color: #EEE;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: bold;
  color: #3a4c60;
  margin-bottom: 20px;
}

h3.view-title,
h3:first-child {
  margin-top: 10px;
  margin-bottom: 10px;
}

.item-input input::-webkit-input-placeholder {
  color: #999;
}

.item-input input:-moz-placeholder {
  color: #999;
}

.item-input input::-moz-placeholder {
  color: #999;
}

.item-input input:-ms-input-placeholder {
  color: #999;
}

.positive,
a.positive {
  color: #3a4c60;
  font-weight: bold;
}

.error-msg,
a.error-msg,
a.positive.error-msg {
  color: #c52824;
}

.balanced-bg {
  background-color: #26af5f;
}

.square-box {
  border-radius: 3px;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  font-size: 17px;
  line-height: 20px;
  color: #444;
}

.display-message {
  font-size: 17px;
}


/* Home logged in view */

.home-authenticated-view {
  background-color: #26af5f;
  color: #fff;
}


/* Pin login view */

.pin-login-view {
  background-color: #3a4c60;
  /*background-image: url('../img/front-bg.png');*/
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 70px;
  color: #fff;
}


/* Initial login view */

.initial-login-view {
  background-color: #26af5f;
  background-image: url('../img/front-bg.png');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 70px;
}

.initial-login-view .item-input,
.initial-login-view .item-input {
  box-shadow: none;
}

div>.item-input:first-child {
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.padding-bottom .item.last-item {
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.initial-login-view form .item {
  background-color: transparent;
  color: #fff;
  border-color: #189d4f;
  box-shadow: none;
}

.rounded {
  border-radius: 3px;
  margin-bottom: 8px;
}

.home-authenticated-view .item {
  background-color: #189d4f;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.home-authenticated-view .item.item-select:after {
  content: none;
}

.initial-login-view .input-label,
.home-authenticated-view .input-label {
  color: #fff;
  opacity: .7;
  font-weight: bold;
  width: 30%;
}

.initial-login-view form .item:first-child,
.home-authenticated-view .item:first-child {
  border-top: none;
}

.home-authenticated-view .placeholder-icon:last-child {
  padding-right: 15px;
  color: #fff;
}

.initial-login-view form input,
.home-authenticated-view input {
  color: #fff;
  font-size: 17px;
}

.initial-login-view input::-webkit-input-placeholder,
.home-authenticated-view input::-webkit-input-placeholder {
  color: #fff;
  line-height: 24px;
}

.initial-login-view input:-moz-placeholder,
.home-authenticated-view input:-moz-placeholder {
  color: #fff;
  line-height: 24px;
}

.initial-login-view input::-moz-placeholder,
.home-authenticated-view input::-moz-placeholder {
  color: #fff;
  line-height: 24px;
}

.initial-login-view input:-ms-input-placeholder,
.home-authenticated-view input:-ms-input-placeholder {
  color: #fff;
  line-height: 24px;
}

.initial-login-view .button,
.button-sec {
  background-color: #fff;
  border-color: #fff;
  border-radius: 3px;
  line-height: 45px;
  color: #076d34;
  font-weight: bold;
  box-shadow: 2px 2px 0 1px #158a48;
  margin: 10px 0 15px;
  width: 100%;
}

.initial-login-view .button.activated,
.button-sec.activated {
  box-shadow: none;
  margin-left: 2px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.initial-login-view .button.activated {
  margin-bottom: 13px;
}

.white-text {
  color: #fff !important;
}

.button.active,
.button.activated {
  border: none;
  background-color: #fff;
}

.button.button-positive {
  background-color: #3a4c60;
  border-color: #3a4c60;
  border-radius: 3px;
  color: #fff;
  /*box-shadow: 0 0 30px 5px rgba(0,0,0,.1) inset;*/
  box-shadow: 2px 2px 0 1px #2c3e51;
  margin: 12px 0 0;
  opacity: 1;
  font-weight: bold;
}

.button.button-positive.active,
.button.button-positive.activated {
  background-color: #3a4c60;
  border-color: #3a4c60;
  box-shadow: none;
  margin-top: 14px !important;
  margin-bottom: -2px;
  margin-left: 2px;
  margin-right: -4px;
}

.button.button-positive.disabled,
.button.button-positive[disabled] {
  opacity: .4;
}

.custom-giving-wrapper {
  margin-top: 12px;
}

html input[disabled] {
  background-color: transparent;
}

.item-no-border {
  border-bottom: none;
}

.internal-form-view .item.item-plain,
.internal-form-view .item.item-plain:first-child {
  border: none;
  background-color: transparent;
  box-shadow: none;
}

.internal-form-view .item.item-no-inner-shadow {
  box-shadow: none !important;
  border-radius: 3px;
}

.item.item-transparent {
  background: transparent;
  border: none;
  color: #fff;
  margin: 0;
  padding: 0;
}

.item-centered {
  text-align: center;
}

.church-callout i {
  font-size: 75px;
}

.internal-form-view .item.item-divider {
  background-color: #eee;
}

.internal-form-view .item.item-white-btn {
  /*box-shadow: 2px 2px 0 1px #ddd!important;*/
}


/* Create account view */

.internal-form-view {
  background-color: #f9f9f9;
  /*background-color: #26af5f;*/
  /*background-color: #fff;*/
}

.internal-form-view .padding-bottom {
  padding-bottom: 18px;
}

.internal-form-view .item {
  border-color: #aaa;
  background-color: #fff;
  /*box-shadow: 3px 0 0 0 #f3f3f3 inset;*/
}

.internal-form-view .simple-fields .item {
  background-color: transparent;
  box-shadow: none;
  color: #fff;
  border-color: #189d4f;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.internal-form-view .item:first-child,
.internal-form-view .item.first-child {
  /* Depth */
  /*border-color: #aaa;
  background-color: #fff;
  box-shadow: 1px 1px 0 0 #f3f3f3 inset;*/
  /* Flat UI */
  /*box-shadow: 2px 2px 0 1px #f3f3f3 inset;*/
}

.internal-form-view .simple-fields .item.first-child {
  box-shadow: none;
}

.input-wrapper-item {
  box-shadow: 2px 2px 0 1px #f3f3f3 inset;
  border-radius: 3px;
  border-color: #aaa;
  background-color: #fff;
}

.input-wrapper-item i {
  font-size: 23px;
}

.input-wrapper-item .placeholder-icon:first-child {
  padding-right: 10px;
  padding-top: 3px;
}

.balanced,
a.balanced {
  color: #158a48;
}

.initial-login-view .scroll-content,
.internal-form-view .scroll-content {
  top: 44px;
}


/* Home view */

.church-found-wrapper {
  display: block;
}

.church-found-wrapper>.list {}

.toggle input:checked+.track {
  border-color: #26af5f;
  background-color: #26af5f;
}

.button.button-balanced,
.button.button-balanced.activated {
  border-color: #26af5f;
  background-color: #26af5f;
  font-weight: bold;
}

.button.button-assertive,
.button.button-assertive.activated {
  border-color: #a61d1d;
  background-color: #a61d1d;
  font-weight: bold;
}

.button.button-assertive .icon,
.button.button-balanced .icon {
  min-width: 25px;
}

.giving-history-view .list .icon {
  margin-right: 8px;
  color: #158a48;
}

.giving-history-item {
  padding: 16px 0 0 0;
}

.top-rounded {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.recurring-giving-view .list .item h3,
.remove-recurring-view .item h3 {
  white-space: normal;
  margin-top: 0;
  font-size: 18px;
}

.recurring-giving-view .item-button-right>.button {
  top: 15px;
}

.clear {
  clear: both;
}

.add-card-view .input-label {
  color: #999;
}

.add-gift-btn {
  display: inline-block;
  padding: 0 0 18px 0;
  cursor: pointer;
}

.remove-gift-btn {
  display: block;
  padding: 4px 0 6px 0;
  cursor: pointer;
  float: right;
}

.g-recaptcha {
  margin-bottom: 1rem;
}

.gift-loop-wrapper .gift-wrapper:first-child .remove-gift-btn {
  display: none;
}

.give-form-submit-btn i.icon {
  font-size: 14px;
}

.button.button-positive.give-form-submit-btn-one-time {
  margin-top: 6px;
}

.giving-page-church-info-wrapper {
  font-size: 14px;
  text-align: center;
  padding: 8px;
  color: #444;
}

.giving-page-church-info-wrapper h3 {
  margin: 0 0 4px 0;
}

.giving-form-view .item-input {
  padding: 4px 0 3px 16px;
}

.padding-top-mini {
  padding-top: 5px;
}

.padding-bottom-mini {
  padding-bottom: 5px;
}

.more-padding-bottom {
  padding-bottom: 30px;
}

.giving-form-view .item {
  margin: -2px;
}

.giving-form-view .icon {
  margin-right: 4px;
}

.giving-form-view .item .icon {
  margin-right: 6px;
}

.giving-form-view a {
  text-decoration: none;
}

.menu-tell-a-friend-item {
  padding: 0;
}

.menu-tell-a-friend-item a {
  padding: 16px;
  display: block;
}

.item-toggle.switch-item {
  padding-top: 14px;
  padding-bottom: 14px;
  pointer-events: auto;
}

.item-toggle.switch-item .toggle {
  top: 8px;
}

.item-select {
  cursor: pointer;
}

.item-select:hover {
  opacity: .8;
}

.item-select select {
  direction: ltr;
  height: 100%;
  /* For Edge */
}

.modal {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 240px;
  width: 100%;
}

.opaque-message {
  background-color: rgba(255, 255, 255, .2);
  padding: 8px;
  border-radius: 3px;
}

.warning-text {
  padding: 0 0 5px 0;
  color: #666;
  display: inline-block;
}

.bar .button.button-clear.button-login {
  margin-right: 6px;
}

.bar .button.button-icon.button-login:before {
  font-size: 20px;
  margin-right: 4px;
}

.nav-bar-block,
.bar {
  background-color: inherit !important;
  /*transition: background-color 300ms;*/
}

.tabs-balanced>.tabs {
  transition: background-color 300ms;
  background-image: none;
}

.bar-balanced .button.button-clear {
  font-size: 13px;
}

.bar-balanced .button.button-clear.button-login-close {
  margin-left: 6px;
  margin-top: 4px;
}

.bar-balanced .button.button-clear.button-login-close:before {
  margin-right: 4px;
}

.or-sep {
  color: #666;
  padding: 12px 0 12px;
}

.center {
  text-align: center;
  display: block;
}

.fade.ng-hide-add {
  /* remember to add this */
  display: block !important;
  opacity: 1;
}

.fade.ng-hide-remove {
  -webkit-transition: 0.2s linear all;
  transition: 0.2s linear all;
  /* remember to add this */
  display: block !important;
  opacity: 1;
}

.fade.ng-hide {
  opacity: 0;
}

.check-demo-wrapper {
  max-height: 120px;
}

.check-demo {
  padding: 0 20px 0;
  max-width: 100%;
}

.check-demo img {
  max-width: 250px;
}

.bar.bar-balanced .title {
  left: 0 !important;
  right: 0 !important;
}

.church-logo-wrapper {
  text-align: center;
}

.church-logo-wrapper img {
  max-width: 120px;
  max-height: 30px;
  width: auto;
  border-radius: 3px;
  vertical-align: middle;
  margin-top: -3px;
}

.bar-balanced.theme-lighter .button.button-clear {
  color: #222;
}

.theme-lighter .tabs a {
  color: #222;
}

/* Platform updates */
.platform-browser .scroll-content {
  margin-bottom: 50px;
  overflow-y: auto;
}

.platform-browser.platform-ios .scroll-content,
.platform-browser.platform-android .scroll-content {
  margin-bottom: -1px;
}

.platform-browser .no-bottom-tabs .scroll-content {
  margin-bottom: -1px;
}

.always-half {
  width: 50%;
  float: left;
}

.always-half .error-msg {
  margin-right: 0;
}

.clearfix {
  overflow: hidden;
}

.item-select-padding-squish {
  padding-top: 5px;
  padding-bottom: 4px;
}

.item-checkbox-bare {
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
  display: inline-block;
  background-color: transparent !important;
}

.item-checkbox-info {
  display: inline-block;
  vertical-align: top;
  font-size: 18px;
  color: #3a4c60;
  margin: 14px 0 0;
  cursor: pointer;
}

.item-circle-info {
  font-size: 18px;
  color: #3a4c60;
  margin-left: 14px;
  cursor: pointer;
}

.item-checkbox-elca-opt-in .item-content {
  white-space: normal;
}

/* One click give */
.quick-give-summary {
  text-align: center;
  font-weight: bold;
  background-color: #189d4f;
  padding: 8px;
  border-radius: 3px;
  margin: -10px 10px 20px 10px;
}

/* Popover css */
.one-time-popover {
  margin-top: -130px;
}

.one-time-popover .popover-arrow {
  top: auto;
  bottom: -17px;
}

.one-time-popover.platform-ios .popover-arrow:after {
  top: -12px;
}

.gift-aid-popover {
  margin-top: -130px;
}

.gift-aid-popover .popover-arrow {
  top: auto;
  bottom: -17px;
}

.gift-aid-popover.platform-ios .popover-arrow:after {
  top: -12px;
}

.popover {
  border-radius: 3px !important;
  background-color: #3a4c60 !important;
  color: #fff;
}

.popover-arrow:after {
  background-color: #3a4c60 !important;
}

.platform-browser .popover .scroll-content {
  margin-bottom: 2px;
}

ion-popover-view.fit {
  height: auto;
  padding: 8px;
  margin-bottom: 10px;
}

ion-popover-view.fit ion-content {
  position: relative;
}

.hod-conf-agreement,
.hs-conf-agreement,
.elca-agreement {
  padding: 20px 10px 10px;
  color: #444;
}

.japan-bottom-text {
  padding: 20px 10px 10px;
  color: #444;
  text-align: center;
}

.powered-by {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
}

.powered-by p {
  margin: 0;
  color: #fff;
}

.powered-by a {
  text-decoration: underline;
  color: #fff;
}

#loginFormFull .powered-by a,
#loginFormFull .powered-by p {
  color: #fff;
}



/* We're transforming letters in postal codes to upper case in Angular so let's
make the UI match */
#myOneTimeGiftForm input[name='postal'] {
  text-transform: uppercase;
}

#myOneTimeGiftForm input[name='postal']::placeholder {
  text-transform: none;
}

#myOneTimeGiftForm input[name='postal']::-ms-input-placeholder {
  text-transform: none;
}

/* Option for outside select labels (too big to fit in one line) */
.select-outside-label {
  font-size: 14px;
  padding: 15px 8px 5px 8px;
}

/* Stripe elements */
#card-element {
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 13px 16px 13px 16px;
  margin-bottom: 18px;
}

.card-type-toggle .form-row label {
  width: 100%;
  text-align: center;
  padding-top: 0;
  padding-bottom: 18px;
}

@media (min-width: 520px) {
  .card-type-toggle .form-row {
    display: flex;
  }

  .card-type-toggle .form-row label {
    width: 50%;
  }
}

.card-type-toggle .form-row label:first-child {
  margin-right: 15px;
}

.card-type-toggle .form-row label .radio-content {
  position: relative;
}

.card-type-toggle .form-row label .radio-content .radio-icon {
  left: 20px;
  right: auto;
  bottom: 0;
  top: 18px;
  padding: 0;
  height: 20px;
  width: 20px;
  font-size: 18px;
  visibility: visible;
  background-color: #fff;
  border-radius: 3px;
}

.card-type-toggle .form-row label .radio-content .radio-icon::before {
  top: -3px;
  position: relative;
  visibility: hidden;
}

.item-radio input:checked+.radio-content .radio-icon::before {
  visibility: visible;
}

.card-type-toggle .form-row label .radio-content .item-content {
  padding-right: inherit;
  background-color: #526a85;
  border-radius: 3px;
  color: #fff;
}

.card-type-toggle .form-row label .radio-content .item-content span:not(:first-child):not(:last-child)::after {
  content: '/ ';
}

.card-type-toggle .form-row label .radio-content:hover .item-content,
.card-type-toggle .form-row label .radio-content:focus .item-content,
.card-type-toggle .form-row label .radio-content:active .item-content {
  background-color: #293644;
}

.item-radio input:checked+.radio-content .item-content {
  background-color: #3a4c60;
}

/*.longer-select .item-select select {
  max-width: 50%;
}*/

/* Bigger than mobile */
@media (min-width: 520px) {
  .square-box:before {
    padding-top: 80%;
  }

  .square-box .icon {
    font-size: 42px;
  }

  .square-content span {
    font-size: 14px;
  }

  .row.square-buttons {
    width: 50%;
    float: left;
    margin: 0;
  }

  .one-time-popover {
    margin-top: -110px;
  }

  .gift-aid-popover {
    margin-top: -170px;
  }
}

/* Updates for iPad */
@media (min-width: 720px) {
  .bar-balanced .button.button-clear {
    font-size: 17px;
  }

  .church-logo-wrapper img {
    max-width: 150px;
  }

  .view-container {
    background-color: #3a4c60;
  }

  .pane,
  .view {
    max-width: 720px;
    margin: 0 auto 0;
    border-radius: 3px;
  }

  .view {
    height: 96%;
    margin-top: 1%;
  }

  .modal-backdrop {
    height: 96%;
    margin-top: 1%;
  }
}

/* Respond things on pages that have lots of form fields, etc */
@media (min-width: 599px) {
  .respond-half {
    width: 50%;
    float: left;
  }

  .respond-third {
    width: 33%;
    float: left;
  }

  .respond-third.last {
    width: 34%;
  }

  .respond-half .item.straight-bottom,
  .respond-third .item.straight-bottom {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }

  .respond-half .item.rounded-top,
  .respond-third .item.rounded-top {
    border-bottom-left-radius: 3px !important;
    border-top-left-radius: 3px !important;
  }

  .respond-half .item.straight-top,
  .respond-third .item.straight-top {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
  }

  .respond-half .item.rounded-bottom,
  .respond-third .item.rounded-bottom {
    border-bottom-right-radius: 3px !important;
    border-top-right-radius: 3px !important;
  }

  .respond-half .error-msg,
  .respond-third .error-msg {
    margin-right: 0;
  }

  .respond-half .item.desktop-top-right-rounded,
  .respond-third .item.desktop-top-right-rounded {
    border-top-right-radius: 3px !important;
  }

  .respond-half .item.desktop-top-right-straight,
  .respond-third .item.desktop-top-right-straight {
    border-top-right-radius: 0px !important;
  }

  .respond-half .item.desktop-bottom-left-straight,
  .respond-third .item.desktop-bottom-left-straight {
    border-bottom-left-radius: 0px !important;
  }

  .respond-half .item.desktop-bottom-left-rounded,
  .respond-third .item.desktop-bottom-left-rounded {
    border-bottom-left-radius: 3px !important;
  }
}

/* IE related css */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
  .tabs-balanced>.tabs {
    display: table;
  }

  .tab-item {
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    display: table-cell;
  }

  .item-select select {
    top: 12px;
  }
}

/* Cater for seperate first and last names */
.email-names-phone {
  display: flex;
}

.email-names-phone>div {
  flex-grow: 1;
  /* Neded for IE11 */
  flex-basis: 100%;
  /* Needed for Edge 17 */
  min-width: 0;
}

.email-names-phone .last label.item {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.account-details {
  margin-bottom: 20px;
  overflow: visible;
}

/**
*
* give_new overrides
*
*/

.giving-form--v2 .form--giving__credit-card,
.giving-form--v2 .form--giving__address.form-wrapper {
  padding-top: 14px;
  padding-top: 1rem;
}

.giving-form--v2 .form--giving__give-types + div + div > .form--giving__credit-card {
  padding-top: 0;
}

.giving-form--v2 .form--giving__cover-fees #item-checkbox-info-cover-fees-btn {
  margin-left: 0.6rem;
}

.giving-form--v2 select {
  text-rendering: auto;
}
