/*
    Name: Albany;
    Branch version: 1.80.14;
    Front, back or both: Front;
    Description: RiverLea subtheme/stream for Green Party of Ontario, for JMA by NW
*/

:root {
  --grey: #eeeeee;
  --green: #53b000;
  --black: #000;
  --white: #fff;
  --crm-version: "Albany, v" var(--crm-release);
  --crm-font: "AvenirNext LT Pro", "Helvetica", "Arial", sans-serif;
  --crm-page-padding: 0;
  --crm-btn-radius: 2rem;
  --crm-c-grey: #f4f5f5;
  --crm-c-green: #2f772f;
  --crm-c-green-light: #bddfaa;
  --crm-c-green-dark: #286528;
  --crm-c-blue-light: #52c1db;
  --crm-c-blue-dark: #0085ae;
  --crm-c-yellow: #f7e16d;
  --crm-c-amber: #f7e16d;
  --crm-c-red-dark: red;
  --crm-c-darkest: #202020;
  --crm-c-primary: var(--crm-c-green);
  --crm-c-primary-hover: var(--crm-c-green-dark);
  --crm-c-background: var(--crm-c-grey);
  --crm-wizard-margin: 10px;
  --crm-wizard-width: 100%;
  --crm-wizard-border: 0;
  --crm-wizard-height: 50px;
  --crm-wizard-radius: 2rem;
  --crm-wizard-bg: var(--crm-c-green);
  --crm-wizard-active-bg-color: var(--crm-c-green-light);
  --crm-wizard-active-color: var(--crm-c-green-dark);
  --crm-wizard-angle: 15px;
  --crm-btn-padding-block: 0.75rem;
  --crm-btn-padding-inline: 1.75rem;
  --crm-btn-height: 45px;
  --crm-btn-width: 7.75rem;
  --crm-input-label-weight: 700;
  --crm-input-border-color: rgba(0, 0, 0, 0.2);
  --crm-input-box-shadow: none;
  --crm-f-input-radius: 0;
  --crm-f-input-padding: 6px 10px;
  --crm-f-input-font-size: 1rem;
  --crm-c-focus: rgba(0, 0, 0, 0.4);
  --crm-f-form-focus-bg: var(--crm-c-green-light);
  --crm-f-fieldset-bg: #fff;
  --crm-f-fieldset-margin: 1rem 0;
  --crm-f-legend-margin: 0;
  /*--crm-f-legend-align: left;*/
  --crm-f-legend-size: 2rem;
  --crm-f-form-padding: 0.75rem 1.25rem; /* try reducing padding because of thank you page fields */
  /*--crm-f-fieldset-padding: 0; try removing due to thank you page dark headers */
  --crm-f-legend-padding: 2rem 1rem 1.5rem;
  --crm-wizard-box-shadow: none;

  /* CiviCRM 6.x variable name mappings */
  --crm-primary-color: var(--crm-c-green);
  --crm-primary-hover-color: var(--crm-c-green-dark);
  --crm-primary-text-color: #fff;
  --crm-primary-hover-text-color: #fff;
  --crm-primary-ink-color: var(--crm-c-green-dark);
  --crm-wizard-bg-color: var(--crm-c-green);
  --crm-wizard-active-bg-color: var(--crm-c-green-light);
  --crm-wizard-active-color: #464354;
  --crm-btn-success-bg-color: var(--crm-c-green-dark);
  --crm-btn-info-bg-color: var(--crm-c-green);
  /* --crm-f-form-layout: block;
  --crm-f-label-width: 100%;*/
  --crm-f-label-align: left;
}

/* Thank you: pad dark headers on thank you page */
.crm-container.crm-public .header-dark {
  padding: var(--crm-m1) var(--crm-f-fieldset-padding);
  margin-top: var(--crm-btn-padding-block);
}
/* Thank you: removing padding from profile section */
.CRM_Contribute_Form_Contribution_ThankYou
  .crm-profile-view.crm-profile-view.crm-profile-view,
.CRM_Contribute_Form_Contribution_ThankYou
  .crm-profile-view.crm-profile-view.crm-profile-view
  .crm-profile {
  margin: unset;
  padding: unset;
}
/* Thank you: hide profile header */
.CRM_Contribute_Form_Contribution_ThankYou
  .crm-profile-view.crm-profile-view.crm-profile-view
  legend {
  display: none;
}

.gift-type-select.gift-type-select > div {
  width: calc(50% - 1rem);
}

.gift-type-select.gift-type-select:after {
  content: unset;
}

.crm-container {
  font-family: "AvenirNext LT Pro", "Helvetica", "Arial", sans-serif;
}

/* Wizard - can be remvoed after 5.81  */
.crm-wizard-nav {
  --crm-text-color: #fff;
}

/* CiviCRM 6.x: Darker text on active (light green) wizard step */
.crm-container.crm-container ul.wizard-bar > li.active {
  color: var(--crm-c-green-dark);
}

div.crm-wizard > ul.crm-wizard-nav.wizard-bar {
  margin: unset !important;
}
.crm-container.crm-container ul.wizard-bar > li::before {
  right: -10px;
}
.crm-container.crm-container ul.wizard-bar > li::after {
  right: -12px;
}
.crm-container.crm-container ul.wizard-bar > li:not(:first-child) {
  padding: unset !important; /* overwrite existing !important */
}
ul.wizard-bar.wizard-bar.wizard-bar {
  display: flex;
  text-align: center;
}
@media only screen and (max-width: 600px) {
  ul.wizard-bar.wizard-bar.wizard-bar {
    width: 100%;
  }
}
.crm-container.crm-container ul.wizard-bar li {
  width: calc(100% / 3);
  margin: 0;
}

/* Civi */
/**  Buttons **/
.crm-container button {
  font-weight: 700;
}

.crm-container button:focus {
  box-shadow: 0 0 0 0.25rem rgba(78, 139, 78, 0.5);
}

.crm-container button#nextTab {
  margin-left: auto;
}

.crm-container button:hover {
  background: var(--crm-c-primary-hover);
}

/** Form **/
.crm-container.crm-public fieldset > legend {
  padding: var(--crm-f-legend-padding);
  color: var(--crm-c-darkest);
  text-transform: uppercase;
}

.crm-container .label {
  display: block;
  color: #545454;
  margin-bottom: var(--crm-m2);
}

.crm-container .messages.help:empty {
  display: none;
}

.crm-container fieldset legend::after {
  content: "";
  width: 95%;
  max-width: 120px;
  height: 0.5rem;
  background-color: #f7e16d;
  display: block;
  position: relative;
  bottom: 3px;
  left: -1rem;
  top: 0.5rem;
}

/* Toggles */
.contribution_amount-section,
.other_amount-section {
  background: var(--crm-c-green-light);
}

/* CiviCRM 6.x: Force sections to use column layout */
.contribution_amount-section,
.membership_amount-section {
  display: flex;
  flex-direction: column;
}

.other_amount-section > .label,
.contribution_amount-section > .label,
.membership_amount-section > .label {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--crm-c-green-dark);
}

/* CiviCRM 6.x: Ensure labels are above buttons, not to the left */
.contribution_amount-section > .label,
.membership_amount-section > .label {
  width: 100%;
  display: block;
}

.gift-type-select,
.membership_amount-content,
.contribution_amount-content,
.one_time_donation_amount-content,
.monthly_donation_amount-content,
.lump_sum_donation-content,
.monthly_donation-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.gift-type-select,
.one_time_donation_amount-content,
.monthly_donation_amount-content,
.lump_sum_donation-content,
.monthly_donation-content {
  justify-content: space-around;
}

.membership_amount-content,
.contribution_amount-content {
  justify-content: space-between;
}

.price-set-row.price-set-row .price-set-option-content input {
  display: none;
}

/* .price-set-row.price-set-row {
  display: inherit;
  width: inherit;
} */

.price-set-row.price-set-row.price-set-row.price-set-row label {
  min-width: var(--crm-btn-width);
  text-align: center;
  margin: 0;
}

.membership_amount-content.membership_amount-content .price-set-row {
  min-width: calc(100% / 3 - 1rem);
}

/* .contribution_amount-content.contribution_amount-content .price-set-row,
.lump_sum_donation-content.lump_sum_donation-content .price-set-row,
.one_time_donation_amount-content.one_time_donation_amount-content .price-set-row,
.monthly_donation_amount-content.monthly_donation_amount-content .price-set-row {
  min-width: calc(100% / 3 - 1rem) !important;
  max-width: calc(100% / 3 - 1rem) !important;
} */

.crm-container.crm-container .gift-type-select label,
body.page-civicrm-contribute .price-set-row label,
.price-set-row.price-set-row.price-set-row label {
  display: block;
  padding: var(--crm-btn-padding-block) var(--crm-btn-padding-inline);
  border: 0;
  box-shadow: none;
  border-radius: var(--crm-btn-radius);
  margin: 0;
  color: var(--crm-c-text);
  background-color: var(--crm-c-grey);
  text-wrap: balance;
  font-variant: none;
}

.contribution_amount-content.contribution_amount-content .price-set-row label {
  background-color: #fff;
}

.gift-type-select {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
}

.price-set-row.price-set-row:has(input:checked) label,
.crm-container.crm-container .gift-type-select .selected label {
  background-color: var(--crm-c-yellow);
}

.form-tab-section {
  margin-top: 1rem;
}

label.crm-inline-error.alert-danger {
  margin: 0.5rem;
  background-color: unset;
}

body.page-civicrm-contribute
  #crm-container.crm-public
  .price-set-row
  .price-set-option-content
  input,
body.civicrm-iframe-page
  #crm-container.crm-public
  .price-set-row
  .price-set-option-content
  input {
  display: none;
}

.CRM_Contribute_Form_Contribution_Main
  .recaptcha-section
  .form-layout-compressed {
  border: unset;
}

.CRM_Contribute_Form_Contribution_Main
  .recaptcha-section
  .form-layout-compressed
  tr {
  border: unset;
}

@media only screen and (max-width: 600px) {
  body.civicrm-iframe-page {
    width: 100%;
  }

  .crm-container.crm-public fieldset > legend {
    padding: unset;
    padding-bottom: var(--crm-btn-padding-inline);
  }
}

@media only screen and (max-width: 450px) {
  .crm-container.crm-public fieldset > legend {
    padding: unset;
    margin: unset;
    padding-bottom: var(--crm-btn-padding-inline);
  }
}

#payment_information .credit_card_info-section input,
#payment_information .credit_card_info-section select {
  min-width: unset;
  width: unset;
}

/* centre align items */
.page-civicrm-contribute-transact .region-content {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.crm-block > div.messages {
  margin-top: 10px;
}

.cf-turnstile-civicrm {
  margin-top: 15px;
}

.crm-wizard-buttons #prevTab {
  margin-left: 5px;
}
.crm-wizard-buttons #nextTab {
  margin-right: 5px;
}

#priceset > .crm-section {
  display: flex;
  flex-direction: column;
}

#priceset > .crm-section .price-set-row.lump_sum_donation-row7,
#priceset > .crm-section .price-set-row.monthly_donation-row7 {
  display: none;
}

#priceset > div.crm-section.crm-price-field-id-735 > div.content,
#priceset > div.crm-section.crm-price-field-id-733 > div.content {
  margin: 1rem 1rem 0 1rem;
}

.crm-container.crm-container .gift-type-select .selected label,
.crm-container.crm-container .gift-type-select label,
.gift-type-select label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#priceset > div.crm-section.crm-price-field-id-736 > div.label {
  width: fit-content;
}

#payment_information
  > fieldset.billing_mode-group.credit_card_info-group
  > div
  > div.crm-section.credit_card_exp_date-section,
#payment_information
  > fieldset.billing_mode-group.credit_card_info-group
  > div
  > div.crm-section.credit_card_exp_date-section
  > div.label {
  width: fit-content;
}

.crm-container.crm-public .crm-section .crm-multiple-checkbox-radio-options {
  clear: left;
}

.crm-public-form-item.crm-section.additional_participants-section {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.crm-section.billing_name_address-section
  > .crm-section.crm-section.crm-section,
.crm-profile-id-81 .crm-section.form-item.form-item.form-item,
.crm-profile-id-93 .crm-section.form-item.form-item.form-item {
  grid-template-columns: unset;
  padding-bottom: 0;
}

.crm-contribution-main-form-block
  .crm-public-form-item.crm-section.is_recur-section {
  grid-template-columns: unset;
}
.crm-contribution-main-form-block
  .crm-public-form-item.crm-section.is_recur-section
  > .label {
  display: none;
}

.crm-container.crm-public .crm-section #pricesetTotal {
  display: none;
}

.contribution_amount-section > .label.label.label.label {
  width: 100%;
  padding-bottom: 1rem;
}

.crm-section.crm-section.crm-section.contribution_amount-section,
.crm-section.crm-section.crm-section.other_amount-section {
  padding: 1rem;
}

#pricelabel {
  width: 100%;
}

.crm-container.crm-public .crm-profile-id-92 .crm-section.crm-section .label {
  width: 100%;
}
.crm-container.crm-public .crm-profile-id-92 .crm-section.crm-section {
  grid-template-columns: unset;
}
