/* Updated SVG */
.page-header::after {
  background-image: url("./../images/page-header-border-2023.svg") !important;
}


/* Style the email and password field groups. */
@media (min-width: 576px) {
  .gform_wrapper .ginput_container_email,
  .gform_wrapper .ginput_container_password {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }
}

/* Style the password input fields. */
.gform_wrapper input[type="password"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-width: 1px;
  background-color: #fff;
  border-color: #22292f;
  border-radius: 0;
  resize: none;
  width: 100%;
  padding: .75rem;
}

.gform_wrapper.gf_login_form,
.gf_login_links {
  max-width: 360px;
}

.gform_wrapper.gf_login_form .gfield_checkbox input {
  position: relative !important;
  width: auto;
}

.gform_wrapper.gf_login_form .ginput_container .ginput_container_checkbox .gfield_checkbox .gchoice {
  display: flex;
}

/* Original styles hide labels, show the labels on our login form. */
.gf_login_form label {
  border: 0;
  clip: unset;
  height: unset;
  margin: unset;
  overflow: unset;
  padding: unset;
  position: relative;
  width: unset;
}

/* Style tables (only when used with ACF Forms). */
.acf-form .acf-repeater .acf-row-handle.order,
.acf-form .acf-repeater .acf-row-handle.remove {
  background: white;
}

/* Default button styles for ACF forms. */
input.acf-button {
  display: inline-block;
  border-width: 0;
  border-radius: 9999px;
  text-transform: capitalize;
  border-color: #3292be;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  cursor: pointer;
  transition: 0.3s ease-out;
  background-color: #3292be;
  color: #fff;
}

a.acf-repeater-add-row.acf-button {
  color: #c14013;
}

/* ACF Form inputs and participants repeater miles field */
.acf-field.acf-field-repeater .acf-input .acf-table .acf-input {
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 3px;
}

.acf-field.acf-field-repeater .acf-input .acf-table .acf-input input {
  border: #7e8993 solid 1px;
  border-radius: 3px;
}

.acf-field.acf-field-repeater .acf-input .acf-table .acf-field.acf-field-number {
  border-right: 0;
}

.acf-field.acf-field-repeater .acf-input .acf-table .acf-input-append {
  float: right;
  border-left-width: 0;
  border-radius: 0 3px 3px 0;
}

.acf-field.acf-field-repeater .acf-table > tbody > tr > td {
  border: 0;
}


.gform_wrapper label {
  border: unset !important;
  clip: unset !important;
  height: unset !important;
  margin: unset !important;
  overflow: unset !important;
  padding: unset !important;
  position: unset !important;
  width: unset !important;
}

.gfield_repeater_buttons button {
  display: inline-block;
  border-width: 0;
  border-radius: 0;
  text-transform: capitalize;
  border-color: #bbbbbb;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  cursor: pointer;
  transition: 0.3s ease-out;
  background-color: #bbbbbb;
  color: #fff;
}

.gfield_repeater_item {
  display: flex;
}

.ginput_container.ginput_container_email {
  display: flex;
}

.gfield--type-honeypot {
  display: none !important;
}

.mileage-tracker-user-profile {
  display: flex;
}

@media (max-width: 576px) {
  .mileage-tracker-user-profile {
    flex-direction: column;
  }
}

.mt-user-information {
  margin-bottom: 40px;
  padding-right: 100px;
}

.mt-entry-form {
  border: 1px solid #edeff2;
  border-radius: 3px;
  padding: 16px 20px;
}

.mt-entry-form .gfield_label {
  font-size: .85em;
  font-weight: 300;
  letter-spacing: .1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mt-entry-form .ginput_container_select select,
.mt-entry-form input[type="text"] {
  border-color: #c1c1c1 !important;
}

table.ui-datepicker-calendar a {
  color: #238568;
}

table.ui-datepicker-calendar a:hover {
  color: #c14013;
}

.mt-entry-support {
  margin-top: 20px;
  margin-bottom: 20px;
}

.mt-user__name {
  color: #424b61;
  font-weight: 300;
  font-size: 1.6rem;
  margin-bottom: 0px;
}

.mt-user__logout-link {
  display: block;
  margin-bottom: 16px;
}

.mt-user__address {
  border: 1px solid #edeff2;
  border-radius: 3px;
  padding: 16px 20px;
}

.mt-user__address-title,
.mt-user__phone-title,
.mt-entry-form-title {
  font-size: .85em;
  letter-spacing: .1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mt-entry-form-title {
  font-size: 1rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

.mt-user__phone-title {
  margin-top: 16px;
}

.mt-rider:not(:first-child) {
  border-top: 1px solid #edeff2;
  padding-top: 40px;
}

.mt-rider__details {
  font-size: 1.1em;
  gap: 8px;
}

.mt-rider__title {
  font-size: .85em;
  letter-spacing: .1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mt-rider__mileage details {
  transition: all 0.3s ease;
}

.mt-rider__mileage summary {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .125);
}

.mt-rider__mileage summary h4 {
  padding: 0;
  margin: 0;
}

.mt-rider__mileage summary:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.mt-rider__mileage summary::-webkit-details-marker,
.mt-rider__mileage summary::marker  {
  display: none;
  content: "";
}

.mt-rider__mileage summary:before {
  content: '';
  border-width: .4rem;
  border-style: solid;
  border-color: transparent transparent transparent #212529;
  position: absolute;
  top: 1.3rem;
  right: 20px;
  transform: rotate(0);
  transform-origin: .2rem 50%;
  transition: .25s transform ease;
}

.mt-rider__mileage[open] summary:before {
  border-color: transparent transparent transparent #0c63e4;
  transform: rotate(90deg);
}

/* .mt-rider__mileage:not([open]) {
    summary {
      color: #212529;
      background-color: white;
    }
  } */

.mt-rider__mileage summary {
  padding-bottom: 12px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.mt-rider__mileage table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  display: table;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

.mt-rider__mileage table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

.mt-rider__mileage table thead tr {
  background-color: #edffff;
  border: 1px solid #ddd;
  padding: .35em;
}

.mt-rider__mileage table tr {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: .35em;
}

.mt-rider__mileage table tr:last-child {
  font-weight: bold;
  background-color: #edffff;
}

.mt-rider__mileage table th,
.mt-rider__mileage table td {
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;
  /* text-align: center; */
}

.mt-rider__mileage table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media screen and (max-width: 576px) {

  .mt-rider__mileage table td {
    font-size: 1em;
  }

  .mt-user-information {
    padding-right: 0;
  }
}
