section#site-content {
  width: 100%;
}

.aip_form_fieldset {
  border: none !important;
}

li.aip_hierarchy_child_link {
  font-weight: 700;
  line-height: 1.2em;
  text-transform: lowercase;
  font-family: "Euclid Circular Bold", sans-serif;
  font-size: 15px;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
  background: #fff;
  border: none;
  box-shadow: inset 0 0 0 4px #002554;
  border-radius: 5px;
  min-height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 150px;
  padding: 10px 1em;
  width: 35%;
  padding: 0.5em;
}

li.aip_hierarchy_child_link img {
  display: none;
}

li.aip_hierarchy_child_link a {
  display: inline-flex;
  align-items: center; /* Vertically centre the arrow and text */
  gap: 10px; /* Space between arrow and text */
  text-decoration: none;
  color: inherit;
}
a#childNodeNumber_0::before,
a#childNodeNumber_1::before {
  width: 20px;
  height: 20px;
  margin-right: 2px;
}

/* For Rent */
a#childNodeNumber_0::before {
  content: "";
  display: inline-block;
  background: #002554;
  mask: url(../images/Pay_rent_credit-card_blue.png) center / contain no-repeat;
  -webkit-mask: url(../images/Pay_rent_credit-card_blue.png) center / contain
    no-repeat;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  vertical-align: middle;
}

/* For Invoices */
a#childNodeNumber_1::before {
  content: "";
  display: inline-block;
  background: #002554;
  mask: url(../images/invoice-blue.png) center / contain no-repeat;
  -webkit-mask: url(../images/invoice-blue.png) center / contain no-repeat;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  vertical-align: middle;
}

input[type="submit"] {
  padding: 7px 1.5em !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  font-family: "Euclid Circular Bold";
  background-color: #002554;
  border-color: #002554;
  position: relative;
  display: inline-block;
  text-align: center;
  text-transform: lowercase;
  min-width: 192px;
  outline: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  box-shadow: inset 0 0 0 4px #002554;
  min-height: 5rem;
  color: #fff;
}

input[type="submit"]:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 37, 84, 0);
  background: linear-gradient(
    90deg,
    rgba(113, 119, 153, 1) 0%,
    rgba(0, 37, 84, 1) 100%
  );
  color: #fff !important;
}

#aip_cancel_link,
#aip_help_link {
  font-weight: 700;
  font-family: "Euclid Circular Bold", sans-serif;
  text-transform: lowercase;
  font-size: 15px;
  padding: 5px 10px;
  cursor: pointer;
}

#aip_cancel_link:hover,
#aip_help_link:hover {
  text-decoration: underline;
}

dt.aip_payment_for {
  width: 6.2em !important;
}

div.aip_payment_for {
  font-weight: 700;
  font-family: "Euclid Circular Bold", sans-serif;
  font-size: 15px;
}

#wallet_management_container {
  display: none !important;
}

div.aip_form {
  background: #f7f7f7;
  padding: 2.5em 1.5em;
  border-radius: 10px;
  font-family: "Euclid Circular Bold", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  -webkit-font-smoothing: antialised;
  margin: 0;
  padding: 0;
  color: #002554;
  margin: 0 auto;
}

fieldset.aip_form_fieldset {
  background: #f7f7f7;
  padding: 2.5em 1.5em;
  border-radius: 10px;
}

label {
  margin: 10px 0 8px;
  display: inline-block;
  vertical-align: top;
  font-size: 15px;
  line-height: 17px;
  color: #002554;
  font-family: "Euclid Circular Bold", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.aip_label_style {
  width: auto !important;
}

div.aip_form_elements_fieldset {
  position: relative;
  padding-top: 108px;
  padding-bottom: 108px;
  overflow: visible; /* Allow ::before to extend beyond */
}
#site-content > div {
  width: 100%;
}

/* Mobile styling */
@media (max-width: 768px) {
  input[type="submit"] {
    width: 95%;
  }
  section#site-content {
    padding: 0px !important;
  }
  table th,
  table td {
    padding: 1px !important;
    font-size: 14px;
    display: none;
  }
  li.aip_hierarchy_child_link {
    display: flex;
    width: 100%;
    margin-bottom: 0.5em;
  }
}

@media only screen and (max-width: 992px) {
  #site-content > div {
    width: 100%;
  }
  #continue,
  #reset {
    margin-bottom: 1em;
  }
}

#site-content > h1 {
  margin-left: 1em;
}

#aip_itemSelectionList > li.aip_item_selection_heading {
  display: none !important;
}

#aip_form_id > div.aip_text_data.aip_is_text_data.aip_is_text_data_2 {
  margin-bottom: -2em !important;
}
li.aip_hierarchy_child_link:hover,
li.aip_hierarchy_child_link a:hover {
  background-color: #002554;
  color: white;
}
a#childNodeNumber_1:hover::before {
  mask: url(../images/invoice-white.png) center / contain no-repeat;
  -webkit-mask: url(../images/invoice-white.png) center / contain no-repeat;
  background: white;
}
a#childNodeNumber_0:hover::before {
  mask: url(../images/Pay_rent_credit-card_white.png) center / contain no-repeat;
  -webkit-mask: url(../images/Pay_rent_credit-card_white.png) center / contain
    no-repeat;
  background: white;
}
.aip_hierarchy_child_link_1:hover a#childNodeNumber_1::before {
  mask: url(../images/invoice-white.png) center / contain no-repeat;
  -webkit-mask: url(../images/invoice-white.png) center / contain no-repeat;
  background: white;
}

.aip_hierarchy_child_link_0:hover a#childNodeNumber_0::before {
  mask: url(../images/Pay_rent_credit-card_white.png) center / contain no-repeat;
  -webkit-mask: url(../images/Pay_rent_credit-card_white.png) center / contain
    no-repeat;
  background: white;
}

div.aip_form_elements_fieldset::before {
  content: "";
  background-color: #f7f7f7;
  position: absolute;
  z-index: 1;
  display: block;
  bottom: calc(100% - 2px);
  width: calc(100% + 0.6px);
  max-width: 100%;
  transform: translateX(-50%) rotate(180deg);
  -webkit-mask: url(../images/hero-wave.svg) top / contain no-repeat;
  mask: url(../images/hero-wave.svg) top / contain no-repeat;
  background-size: cover;
  background-position: center top;
  height: 110px;
  top: 0;
  left: 50%;
}

div.aip_form_elements_fieldset::after {
  content: "";
  z-index: -1;
  position: absolute;
  display: block;
  bottom: 100%;
  left: 50%;
  width: 130%;
  max-width: 150%;
  padding-bottom: 25%;
  background: url(../images/hero-wave-glow.png) center / contain no-repeat;
  transform: translateX(-50%) translateY(50%);
  margin-bottom: -7em;
}

div.aip_form_elements_fieldset,
div.aip_form {
  position: relative;
}

div.aip_form::before {
  content: "";
  background-color: #f7f7f7;
  position: absolute;
  z-index: 1;
  display: block;
  top: calc(100% - 2px);
  width: calc(100% + 0.6px);
  max-width: 100%;
  height: 100px;
  transform: translateX(-50%) rotate(0deg);
  -webkit-mask: url(../images/hero-wave.svg) top / contain no-repeat;
  mask: url(../images/hero-wave.svg) top / contain no-repeat;
  left: 50%;
}

div.aip_form::after {
  content: "";
  z-index: -1;
  position: absolute;
  display: block;
  top: 100%;
  left: 50%;
  width: 130%;
  max-width: 150%;
  padding-bottom: 25%;
  background: url(../images/hero-wave-glow.png) center / contain no-repeat;
  transform: translateX(-50%) translateY(-50%);
}

legend {
  display: none;
  width: 100%;
  padding: 0;
  margin-bottom: 22px;
  font-size: 24px;
  line-height: inherit;
  color: #333333;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
}

.aip_table,
.aip_pa_table,
.aip_receipt_table,
dl.aip_pa_payment,
dl.aip_receipt_payment .aip_table th,
.aip_pa_table th,
.aip_receipt_table th,
.aip_table > tbody > tr > td,
.aip_pa_table > tbody > tr > td,
.aip_receipt_table > tbody > tr > td,
dl.aip_pa_payment dt,
dl.aip_pa_payment dd,
dl.aip_receipt_payment dt,
dl.aip_receipt_payment dd {
  border: none !important;
  font-family: "Euclid Circular Bold", sans-serif;
}

table {
  margin-top: 0 !important;
  border-spacing: 0;
}

@media screen and (max-width: 600px) {
  table tbody,
  table tr {
    display: block !important;
  }
}

.aip_table th,
.aip_pa_table th,
.aip_receipt_table th,
.scp_purchase_details th {
  background-color: transparent !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.78947rem;
  color: #002554 !important;
  border: none;
  vertical-align: top;
  /* width: auto !important; */
}

.aip_table > tbody > tr > td,
.aip_pa_table > tbody > tr > td,
.aip_receipt_table > tbody > tr > td,
.scp_purchase_details > tbody > tr > td {
  background-color: transparent !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.78947rem;
  color: #535353 !important;
  padding: 0.5em 0.2em;
  vertical-align: top;
}

@media screen and (max-width: 600px) {
  .aip_cart_edit_link,
  .aip_cart_remove_link {
    padding-right: 0 !important;
    color: #002554 !important;
    text-align: right !important;
  }
}

.aip_table,
.aip_pa_table,
.aip_receipt_table,
dl.aip_pa_payment,
dl.aip_receipt_payment .aip_table th,
.aip_pa_table th,
.aip_receipt_table th,
.aip_table > tbody > tr > td,
.aip_pa_table > tbody > tr > td,
.aip_receipt_table > tbody > tr > td,
dl.aip_pa_payment dt,
dl.aip_pa_payment dd,
dl.aip_receipt_payment dt,
dl.aip_receipt_payment dd {
  border: none !important;
}
@media screen and (max-width: 600px) {
  .aip_cart_separator {
    display: none !important;
    visibility: hidden;
    padding: 0;
    margin: 0;
    height: 0;
  }
}

@media screen and (max-width: 600px) {
  table td {
    display: block !important;
    width: 100% !important;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_header.aip_cart_header_left:first-child::before,
  .aip_cart_left:first-child::before,
  .aip_pa_value.aip_pa_value_left:first-child::before,
  .scp_purchase_details_body.scp_purchase_details_body_1::before {
    content: "Payment for:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554 !important;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_left:nth-child(2)::before,
  .aip_pa_value.aip_pa_value_left:nth-child(2)::before,
  .scp_purchase_details_body.scp_purchase_details_body_2::before {
    content: "Tenancy reference/invoice number:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_left:nth-child(3)::before,
  .aip_pa_value.aip_pa_value_left:nth-child(3)::before,
  .scp_purchase_details_body.scp_purchase_details_body_3::before {
    content: "Name:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_left:nth-child(4)::before,
  .aip_cart_right::before,
  .scp_purchase_details_body.scp_purchase_details_body_4::before,
  .aip_pa_value::before {
    content: "Amount:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
}

@media screen and (max-width: 600px) {
  table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }

  .aip_cart_header.aip_cart_header_right,
  .aip_cart_right,
  .aip_cart_total,
  .aip_cart_amount,
  .scp_purchase_details_head_4,
  .scp_amount {
    text-align: left !important;
  }

  .aip_cart_total {
    font-weight: 700 !important;
    text-align: right !important;
  }

  #scp_purchase_details_total > tr > td.scp_purchase_details_total {
    padding-right: 10px;
    font-weight: 700 !important;
  }
}

@media screen and (max-width: 600px) {
  #AIPForm
    > fieldset
    > div.aip_table_container
    > table
    > tbody
    > tr:nth-child(1) {
    display: none !important;
  }
  .aip_cart_header.aip_cart_header_right,
  .aip_cart_right,
  .aip_cart_total,
  .aip_cart_amount,
  .scp_purchase_details_head_4,
  .scp_amount {
    text-align: left !important;
  }
}

@media (max-width: 768px) {
  input[type="submit"] {
    width: 95%;
    margin-bottom: 1em;
  }
}

#aip_cart_edit_link,
#aip_cart_remove_link {
  font-weight: 700;
  font-family: "Euclid Circular Bold", sans-serif;
  color: #002554 !important;
}

input[type="submit"] {
  margin-top: 1em;
}

@media screen and (min-device-width: 1px) and (max-device-width: 480px),
  screen and (min-width: 1px) and (max-width: 480px),
  (-webkit-min-device-pixel-ratio: 2),
  (min-resolution: 192dpi) {
  .scp_text_input,
  .scp_select_select {
    max-width: 23em !important;
  }
}

.pf-container
  .scp_framework
  #scp_confirmationPage_container
  table.scp_purchase_details {
  border: none;
  margin-top: 15px;
  width: 100%;
}

#scp_purchase_details_total > tr > td.scp_purchase_details_total {
  padding-right: 10px;
  font-weight: 700 !important;
}

table {
  margin-top: 0 !important;
  border-spacing: 0;
}

@media screen and (max-width: 600px) {
  table tbody,
  table tr {
    display: block !important;
  }
}

.aip_table th,
.aip_pa_table th,
.aip_receipt_table th,
.scp_purchase_details th {
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.78947rem;
  color: #002554 !important;
  border: none;
  vertical-align: top;
  /* width: auto !important; */
}

.aip_table > tbody > tr > td,
.aip_pa_table > tbody > tr > td,
.aip_receipt_table > tbody > tr > td,
.scp_purchase_details > tbody > tr > td {
  /* background-color: transparent; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.78947rem;
  color: #535353 !important;
  padding: 0.5em 0.2em;
  vertical-align: top;
}

.scp_purchase_details_col_class {
  width: 100% !important;
}

@media screen and (max-width: 600px) {
  tfoot#scp_purchase_details_total.scp_purchase_details_total {
    float: none;
  }
}

@media screen and (max-width: 600px) {
  table tbody,
  table tr {
    display: block !important;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_header.aip_cart_header_left:first-child::before,
  .aip_cart_left:first-child::before,
  .aip_pa_value.aip_pa_value_left:first-child::before,
  .scp_purchase_details_body.scp_purchase_details_body_1::before {
    content: "Payment for:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_left:nth-child(2)::before,
  .aip_pa_value.aip_pa_value_left:nth-child(2)::before,
  .scp_purchase_details_body.scp_purchase_details_body_2::before {
    content: "Tenancy reference/invoice number:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_left:nth-child(3)::before,
  .aip_pa_value.aip_pa_value_left:nth-child(3)::before,
  .scp_purchase_details_body.scp_purchase_details_body_3::before {
    content: "Name:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
}

@media screen and (max-width: 600px) {
  .aip_cart_left:nth-child(4)::before,
  .aip_cart_right::before,
  .scp_purchase_details_body.scp_purchase_details_body_4::before,
  .aip_pa_value::before {
    content: "Amount:";
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
  .aip_hr {
    border: 0.5pt solid #002554 !important;
    border-radius: 4px;
    background-color: #002554 !important;
    height: 0.5pt !important;
  }
  table tbody {
    border-top: none !important;
  }
}

@media screen and (max-width: 600px) {
  table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    float: left;
    color: #002554;
  }
  #aip_cart_edit_link,
  #aip_cart_remove_link {
    margin-top: 0.5em;
  }
  #AIPForm > fieldset,
  #site-content > h1 {
    padding: 0 20px !important;
  }
  .aip_pa_summary_label_right,
  .aip_pa_table > tbody > tr > td {
    text-align: left !important;
  }
}

.aip_cart_header_left,
.aip_cart_header_right {
  color: #002554 !important;
}

#AIPForm > fieldset,
#site-content > h1 {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 60px;
}

#AIPForm {
  margin-bottom: 1em;
}
#AIPForm > fieldset {
  padding-top: 2.5em;
}

@media screen and (min-device-width: 1px) and (max-device-width: 480px),
  screen and (min-width: 1px) and (max-width: 480px),
  (min-resolution: 192dpi) {
  .aip_control_style,
  .aip_payment_for {
    clear: none !important;
  }
}
@media screen and (max-width: 768px) {
  /* ========================================
     CART TABLE (aip_table) - TOTAL ROW
     ======================================== */

  .aip_cart_total,
  .aip_cart_amount {
    display: inline-block !important;
    width: auto !important;
  }

  .aip_cart_total {
    font-weight: bold;
    font-size: 1.1rem;
  }

  .aip_cart_amount {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
  }

  /* ========================================
     PAYMENT ACCEPTED TABLE (aip_pa_table) - TOTAL ROW
     ======================================== */

  .aip_pa_summary_label,
  .aip_pa_summary_value {
    display: inline-block !important;
    width: auto !important;
  }

  .aip_pa_summary_label {
    font-weight: bold !important;
  }

  .aip_pa_summary_value {
    font-weight: bold !important;
    color: #000 !important;
  }
}
