@import "base/_fonts-givewp.css";

:root {
  --givewp-magenta: #ff0080;
  --givewp-coral: #ff6f4b;
  --givewp-purple: #612dff;
  --givewp-lime: #c4ff00;
  --givewp-black: #000;
  --givewp-white: #fff;
  --givewp-slate: #6f8191;
  --givewp-steel: #3c4854;
  --givewp-lightgray: #f3f3f3;
  --givewp-btn-primary-radius: 100px;
  --givewp-btn-primary-padding: 12px 18px;
  --givewp-btn-primary-border-width: 2px;
  --givewp-field-padding: 12px 16px;
  --givewp-field-border-width: 1px;
  --givewp-field-border-radius: 25px;
  --givewp-field-error-color: var(--givewp-magenta);
  --givewp-field-color: var(--givewp-black);
  --givewp-field-placeholder: var(--givewp-slate);
  --givewp-field-border-color: var(--givewp-lightgray);
  --givewp-field-background: var(--givewp-lightgray);
  --givewp-field-background-hover: var(--givewp-white);
  --givewp-field-border-hover: var(--givewp-magenta);
  --givewp-field-background-focus: var(--givewp-white);
  --givewp-field-border-focus: var(--givewp-magenta);
  --givewp-spacing-xs: 10px;
  --givewp-spacing-sm: 20px;
  --givewp-spacing-md: 30px;
}


/* Page template syles - template-donations.blade.php */
/* ---------------------------------------------------------------------- */
.donationsform__outer {
  background-color: var(--givewp-lightgray);
}

.donationsform__wrapper {
  margin-top: -20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

@media (min-width: 700px) {
  .donationsform__wrapper {
    margin-top: -100px;
    gap: 30px
  }
}

/* Typography  */
/* ---------------------------------------------------------------------- */
body.give-form-templates {
  font-family: Silka, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--givewp-steel) !important;
}

.choose-amount .give-donation-levels-wrap .give-donation-level-btn > .currency {
  font-size: inherit !important;
}

.give-donation-summary-section {
  font-family: Silka, sans-serif !important;
}

.give-form-navigator > .title,
.payment .heading {
  color: var(--givewp-black) !important;
}

.give-donation-summary-section,
.payment .subheading,
.give-stripe-becs-mandate-acceptance-text,
.give-stripe-sepa-mandate-acceptance-text,
.give-form-templates p {
  color: var(--givewp-steel) !important;
}

.give-donation-summary-table-wrapper table tr:nth-of-type(2) td div {
  font-weight: bold;
  color: var(--givewp-purple);
}

/* Buttons */
/* ---------------------------------------------------------------------- */
.give-btn {
  justify-content: center;
  align-items: center;
  padding: var(--givewp-btn-primary-padding) !important;
  border-radius: var(--givewp-btn-primary-radius) !important;
  font-family: Silka, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 130% !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background-color 240ms ease-out;
}

.give-btn:focus {
  box-shadow: none !important;
}

.give-donation-level-btn {
  color: var(--givewp-white) !important;
}

.advance-btn {
  background: var(--givewp-lime) !important;
  color: var(--givewp-black) !important;
  border: none !important;
}
.advance-btn:hover {
  background: var(--givewp-purple) !important;
  color: var(--givewp-white) !important;
  border: none !important;
  filter: none !important;
}


/* Donation amount information */
/* ---------------------------------------------------------------------- */
.donation-amount__wrapper {
  margin: 0;
}

.js-donation-amount__item {
  display: none;
  gap: var(--givewp-spacing-sm);
  padding: var(--givewp-spacing-sm);
  margin: var(--givewp-spacing-md);
  margin-bottom: 0;
  background-color: var(--givewp-lightgray);
}

.js-donation-amount__item.is-active {
  display: flex;
}
.donation-amount__content {
  flex: 1;
}
.donation-amount__amount {
  font-size: 36px;
  color: var(--givewp-coral);
  font-weight: 700;
  margin: auto;
  width: 100px;
  text-align: center;
}
.donation-amount__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.donation-amount__description {
  font-size: 16px;
  margin: 0;
}


/* Layout and General */
/* ---------------------------------------------------------------------- */
.give-form-wrap {
  border-radius: 0;
}

.choose-amount .give-donation-levels-wrap .give-donation-level-btn > .currency.currency--before {
  margin: 0 !important;
}

form[id*="give-form"] .give-donation-amount.form-row-wide {
  /* Set this width manually, the custom form fields addon messes with the width of this box */
  width: 200px;
}

/* Regulator Footer */
/* ---------------------------------------------------------------------- */
.donation-footer__wrapper {
  text-align: center;
  padding-top: var(--givewp-spacing-md);
}
.regulator-logo {
  display: inline-block;
  width: 117px;
  height: 36px;
  background: url('../images/logo-fundraising-regulator.png') no-repeat center center;
  background-size: contain;
}
.registration-info {
  font-size: 12px;
  max-width: 400px;
  padding: 0 var(--givewp-spacing-xs);
  margin: 0 auto;
  color: var(--givewp-slate);
}


/* Forms */
/* ---------------------------------------------------------------------- */
#give-recurring-form .form-row input[type="email"],
#give-recurring-form .form-row input[type="password"],
#give-recurring-form .form-row input[type="tel"],
#give-recurring-form .form-row input[type="text"],
#give-recurring-form .form-row input[type="url"],
#give-recurring-form .form-row textarea,
.give-input-field-wrapper,
.give-square-cc-fields,
.give-stripe-cc-field,
.give-stripe-single-cc-field-wrap,
form.give-form .form-row input[type="email"],
form.give-form .form-row input[type="password"],
form.give-form .form-row input[type="tel"],
form.give-form .form-row input[type="text"],
form.give-form .form-row input[type="url"],
form.give-form .form-row textarea,
form[id*="give-form"] .form-row input[type="email"],
form[id*="give-form"] .form-row input[type="email"].required,
form[id*="give-form"] .form-row input[type="password"],
form[id*="give-form"] .form-row input[type="password"].required,
form[id*="give-form"] .form-row input[type="tel"],
form[id*="give-form"] .form-row input[type="tel"].required,
form[id*="give-form"] .form-row input[type="text"],
form[id*="give-form"] .form-row input[type="text"].required,
form[id*="give-form"] .form-row input[type="url"],
form[id*="give-form"] .form-row input[type="url"].required,
form[id*="give-form"] .form-row textarea,
form[id*="give-form"] .form-row textarea.required {
  font-family: Silka, sans-serif !important;
  font-size: inherit !important;
  display: block !important;
  border-radius: var(--givewp-field-border-radius) !important;
  padding: var(--givewp-field-padding) !important;
  appearance: none !important;
  border: solid var(--givewp-field-border-width) var(--givewp-field-border-color) !important;
  background: var(--givewp-field-background) !important;
  color: var(--givewp-field-color) !important;
  box-shadow: none !important;
}

.give-square-cc-fields:focus,
.give-stripe-cc-field:focus,
.give-stripe-single-cc-field-wrap:focus,
form[id*="give-form"] .form-row textarea:focus,
form[id*="give-form"] .form-row textarea.required:focus,
form[id*="give-form"] .form-row input:focus,
form[id*="give-form"] .form-row input.required:focus,
#give-recurring-form .form-row textarea:focus,
#give-recurring-form .form-row textarea.required:focus,
#give-recurring-form .form-row input:focus,
#give-recurring-form .form-row input.required:focus,
form.give-form .form-row textarea:focus,
form.give-form .form-row textarea.required:focus,
form.give-form .form-row input:focus,
form.give-form .form-row input.required:focus,
#give-recurring-form .form-row select:focus,
form.give-form .form-row select:focus,
.form-row select.required:focus,
#give-recurring-form .form-row select.required:focus,
form.give-form .form-row select.required:focus,
.give-select:focus,
.give-input-field-wrapper.has-focus,
[data-field-type="checkbox"] label:focus-within::before,
[data-field-type="radio"] label:focus-within::before,
.give-square-cc-fields:hover,
.give-stripe-cc-field:hover,
.give-stripe-single-cc-field-wrap:hover,
form[id*="give-form"] .form-row textarea:hover,
form[id*="give-form"] .form-row textarea.required:hover,
form[id*="give-form"] .form-row input:hover,
form[id*="give-form"] .form-row input.required:hover,
#give-recurring-form .form-row textarea:hover,
#give-recurring-form .form-row textarea.required:hover,
#give-recurring-form .form-row input:hover,
#give-recurring-form .form-row input.required:hover,
form.give-form .form-row textarea:hover,
form.give-form .form-row textarea.required:hover,
form.give-form .form-row input:hover,
form.give-form .form-row input.required:hover,
.form-row select,
#give-recurring-form .form-row select:hover,
form.give-form .form-row select:hover,
.form-row select.required:hover,
#give-recurring-form .form-row select.required:hover,
form.give-form .form-row select.required:hover,
.give-input:hover,
.give-select:hover {
  border-color: var(--givewp-field-border-hover) !important;
  background: var(--givewp-field-background-hover) !important;
  outline: none !important;
}
