/* sections and their spacings */
fieldset legend {
    padding-top: 30px;
    border-bottom: 0;
}
.donation-section .donation-person legend:first-of-type,  .product-section legend:first-of-type {
    padding-top: 15px;
}
#checkoutForm .contact-details legend {
    clear: both;
}

/**
 begin SECTION COUNTER
*/
body {
    counter-reset: sectionCounter;
}

fieldset legend:before {
    content: counter(sectionCounter) ". ";
    counter-increment: sectionCounter;
}
fieldset legend:before {
    content: counter(sectionCounter);
    counter-increment: sectionCounter;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    line-height: 19px;
    font-size: 12px;
    vertical-align: middle;
    text-align: center;
    font-family: Arial, sans-serif;
    color: currentColor;
    border-radius: 100%;
    margin-right: 5px;
    margin-bottom: 3px;
    font-weight: bold;
}
/**
 end SECTION COUNTER
*/

/**
 begin GOAL METER
*/
.donation-meter {
    margin-top: -3px;
}

.donation-meter .meter-bar-row {
    border: 1px solid #e0e0e0;
    background: #fafafa;
    height: 21px;
    position: relative;
    margin-top: 5px;
    margin-bottom: 10px;
}

.donation-meter .meter-title-row .meter-current-amount {
    font-size: 1.33em;
    margin-right: 0.05em;
} @media (max-width: 320px) { .donation-meter .meter-title-row .meter-current-amount {
    font-size: 13px;
    font-size: calc(12px - -0.1em);
    margin-right: 0;
    }}

.donation-meter .meter-current-amount {
    /* color is set by the look & feel profile */
}

@media (min-width: 767px) { .donation-meter .meter-title-row .meter-total-amount {
    font-size: inherit;
}}

.donation-meter .meter-bar-current {
    height: 100%;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    position: relative;
    /* color is set by the look & feel profile */
}

.donation-meter .meter-current-percentage {
    position: absolute;
    left: calc(100% - -7px);
    font-size: 13px;
    line-height: 19px;
    /* color is set by the look & feel profile */
}
/* place the percentage information inside of the colored bar when e threshold (50%) is reached */
.donation-meter .meter-bar-current[data-meter-middle="1"] .meter-current-percentage {
    color: #FFFFFF;
    left: auto;
    right: 5px;
}
/**
 end GOAL METER
*/

.donation-count {
    border: 1px solid #ccc;
    padding: 10px;
    margin-right: 10px;
    margin-bottom: 10px;

    position: relative;
    display: inline-block;

    flex-basis: 100px;
    max-width: 250px;
    min-height: 100px;
    text-align: center;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 1;
}

.donation-count:not(.active):not(:hover) {
    background: #FFFFFF;
}

.donation-currency {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    margin-top: 7px;
    margin-left: 8px;
}
.donation-value {
    text-align: center;
    position: relative;
    font-size: 43px;
    cursor: pointer;
    line-height: 45px;
}
.donation-count.donation-count-custom {
    cursor: text;
}

.custom-donation-input {
    width: 180px !important;
}

.donation-count .app-comp-amount-field {
    background: transparent;
    font-size: 20px;
    text-align: center;
    width: 100%;
}

.donation-count.active .app-comp-amount-field, .donation-count:hover .app-comp-amount-field {
    background: transparent;
    border-color: transparent;
    border-bottom-color: #FFFFFF;
    color: #FFFFFF !important;
    outline: none;
}

.multi-currency-in {
    font-size: 12px;
}
.donation-amount {
    display: flex;
    align-items: center;
}
.donation-amount .psp-radio {
    background: #fafafa;
    align-items: center;
    display: flex;
    height: 100%;
}
.donation-value input {
    width: 100%;
    height: 35px;
    line-height: 35px;
    border: 1px solid #ccc;
    padding: 5px;
    margin: 5px;
}
.donation-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}
.donation-supportval {
    background-color: #fafafa;
    margin: 0;
    width: 130px;
    border-right: 1px solid #e0e0e0;
}

.donation-supportval .spacer-vertical,
.donation-amount .spacer-vertical {
    width: 1px;
    height: 100%;
    background: #e0e0e0;
    margin-top: 0;
    margin-right: 10px;
    margin-bottom: 0;
}

/* radio button*/
.donation-section .donation-area label.psp-radio {
    margin: 0px 0 10px;
}

.donation-section .donation-area label.psp-radio + label {
    margin-top: 10px;
}

.donation-section .donation-area label.psp-radio .outer {
    margin-top: 0px;
    margin-bottom: -2px;
    margin-left: 0px;
    float: none;
    display: inline-block;
}
.donation-section .psp-radio input {
    position: absolute;
}

.donation-supportval .psp-radio,
.donation-amount .psp-radio,
.donation-area .psp-radio {
    margin-bottom: 0;
    padding: 0;
    width: auto;
    float: none;
}

.donation-left {
    display: flex;
    align-items: center;
    height: 100%;
}
.donation-supportval span,
.donation-amount span {
    font-size: 10px;
    margin-right: 4px;
    vertical-align: super;
    margin-bottom: 0.7em;
}
.donation-content {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    display: flex;
}
.donation-support {
    width: 80%;
}
.donation-support p {
    margin: 0;
    padding: 12px 15px;
}
.donation-area {
    display: flex;
    align-items: center;
}

.donation-content.donation-price:hover .inner {
    background-color: #99cc33;
    opacity: 0.5;
    transform: scale(0.5);
}

/* donation selection with description */
.donation-content.with-description {
    align-items: unset;
    outline: none;
    transition: box-shadow 300ms ease;
    overflow: hidden;
    min-height: 45px;
}

.donation-content.with-description:hover, .donation-content.with-description.with-custom-amount:hover {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.donation-supportval label.psp-radio {
    line-height: 1;
}
.donation-supportval label.psp-radio  .outer {
    margin-top: 0px;
    margin-bottom: 0px;
}

/*select purpose*/
.donation-area.donation-purpose-custom-option {
    display: flex;
    align-items: flex-start;
}
.donation-area input[name="customDonationPurpose"] {
    margin-left: 5px;
    margin-top: -2px;
    max-width: 50%;
    font-size: inherit;
    flex-grow: 1;
}

.donation-bases {
    display: inline-block;
    margin-top: 5px;
}
.donation-bases button {
    margin-bottom: 5px;
}

.donation-area input,
.donation-amount input {
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    outline: none;
}
#my-donation .donation-area:last-child {
    margin-bottom: 15px;
}

.donation-areainput.form-group .input-group .form-control {
    border: 0;
}
ul.donation-multi-currency {
    top: 46px;
    left: 148px;
}

button.donation-multi-currency:focus {
    box-shadow: none !important;
}
button.donation-multi-currency {
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    font-size: 12px;
    width: 40px;
    padding: 0px 15px 0px 0;
    margin-left: -2px;
    height: 15px;
    vertical-align: initial;
}
.payment-details:first-child {
    position: relative;
}
.donation-value {
    display: flex;
    justify-content: center;
}
#subscription-tooltip {
    margin-bottom: 10px;
}

.donation-person .custom-price {
  width: 100%;
  display: inline-block;
}
.donation-person .custom-price input {
  width: 80%;
  float: left;
  line-height: 30px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background-clip: initial;
}
.donation-person .custom-price .fixed-currency {
  width: 20%;
  float: left;
  height: 46px;
  line-height: 32px;
  background: #fafafa;
}

.donation-bases button.active {
    z-index: 0 !important;
}

@media (max-width: 768px) {
    .donation-content.with-description > * {
        flex-grow: 1;
        flex-basis: 100%;
        width: 100% !important;
    }
    legend {
        padding-left: 30px;
    }

    fieldset legend:before {
        margin-left: -30px;
    }
    .btn-group-lg > .btn {
        font-size: 14px;
        padding: 10px;
    }
    .donation-person .custom-price input {
      width: 70%;
    }
    .donation-person .custom-price .fixed-currency {
      width: 30%;
    }
}
@media (min-width: 767px) {
    .donation-value b {
        font-size: 32px;
    }
    .donation-supportval b {
        font-size: 18px;
        padding-right: 5px;
    }
}

@media (max-width: 320px) {
    .donation-person .custom-price input {
      width: 55%;
    }
    .donation-person .custom-price .fixed-currency {
      width: 45%;
    }
}
/* appview only */
#nano-wrapper #header {
    padding-bottom: 0;
    border-bottom: 0;
}
#nano-wrapper #header-right,
#nano-wrapper main > footer {
    display: none;
}


/* stuff that could be useful for shop pages too but is only relevant for donation pages by now */
label {
    font-weight: normal;
}
.app-text-small {
    font-size: 13px;
    font-size: calc(0.8em - -0.1em); /* workaround for https://github.com/yui/yuicompressor/issues/59 */
}
.app-text-light {
    opacity: 0.8;
}
.donation-bases {
    display: inline-block;
    margin-top: 15px;
}

.donation-section .custom-price .fixed-currency.input-group-addon {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}