﻿.control-label {
    color: #4d4d4d;
    font-weight: 500;
}

#main.giving, #main.onlineReg {
    overflow:hidden;
}

#main div.form-group select.form-control:not(.input-sm) {
    height: 40px !important;
}

#main .form-control:not(.input-sm) {
    font-size: 16px;
    padding: 8px 12px;
    height: 40px;
}

#main .btn:not(.btn-sm):not(.btn-lg) {
    font-size: 16px;
}

#main .btn-primary {
    background-color: #003f72;
}

#main a:not(.btn):not(.dropdown-item),
#main .btn-link {
    color: #003f72;
}

#main .gift {
    position: relative;
}

#main button.close {
    position: absolute;
    right: 15px;
    top: 13px;
    z-index: 99;
}

#main .text-bold {
    font-weight: bold;
}

#main .give-type .btn,
#main .payment-type .btn {
    padding: 8px 30px;
}

.form-group small.text-danger {
    display: none;
}

.form-group.has-error small.text-danger {
    display: block;
}

/* editables */
.editableform .editable-date.well {
    background: transparent;
    border: none;
    box-shadow: none;
}

.editlink, .datepicker {
    padding: 3px 2px;
    cursor: pointer;
}

#main .editable-click, #main a.editable-click, #main a.editable-click:hover {
    border-color: #003f72;
}

/* popovers */
.popover-body {
    padding: 5px 8px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
}
.popover-body a {
    color: #003f72;
    text-decoration: none;
}
.popover.bs-popover-bottom .arrow {
    top: -10px;
}

/* radio input */
.tp-radio {
    margin: 0;
}

.tp-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tp-radio .switch {
    position: absolute;
    top: 8px;
    left: calc(50% - 5px);
    height: 20px;
    width: 20px;
    border: 2px solid #4d4d4d;
    border-radius: 100%;
}

.tp-radio:hover input ~ .switch,
.tp-radio input:checked ~ .switch {
    border-color: #003f72;
}

.tp-radio .switch:after {
    content: "";
    position: absolute;
    display: none;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: #003f72;
}

.tp-radio input:checked ~ .switch:after {
    display: block;
}

/* checkbox input */
.tp-checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
    padding-left: 30px;
    margin: 0 0 20px;
}

.tp-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tp-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
}

.tp-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.tp-checkbox input:checked ~ .checkmark {
    background-color: #003f72;
}

.tp-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.tp-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* material text input */
.tp-input {
    position: relative;
    margin-top: 10px;
}

.tp-input .control-label {
    color: #8e8e8e;
    font-weight: 500;
    position: absolute;
    top: 10px;
    left: 13px;
    pointer-events: none;
    transition: .4s cubic-bezier(.25,.8,.25,1);
    transition-duration: .3s;
    font-size: 16px;
    line-height: 20px;
}

.tp-input.filled .control-label,
.tp-input.focus .control-label {
    pointer-events: auto;
    top: -20px;
    left: 4px;
    opacity: 1;
    font-size: 12px;
    color: #4d4d4d;
}

.tp-input.focus .control-label {
    color: #003f72;
}

/* payments */
.payment-list {
    margin: 0 -20px;
}

.payment-list .payment-name span {
    display: inline-block;
}
.payment-list .list-group {
    margin-bottom: 0;
}

.payment-list .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 10px 20px;
    min-height: 52px;
    cursor: pointer;
}

.payment-list .list-group-item:last-child {
    border-bottom: 0;
}

.payment-list .new-payment-method {
    margin: 0 25px 25px;
}
.modal-dialog .payment-list {
    margin: 0 0;
}

.new-payment-method,
.edit-payment-method {
    max-height: 1200px;
}

.payment-type-selection {
    line-height: 2.75em;
    text-align: center;
    margin-bottom: 15px;
}

.payment-type-selection > .btn {
    border-color: #333;
    height: 40px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.apple-pay-container,
.google-pay-container {
    display: inline-block;
    height: 40px;
    margin-bottom: 10px;
    margin-right: 10px;
    vertical-align: middle;
}

.apple-pay-container {
    margin-right: 13px;
    margin-bottom: 15px;
}

.google-pay-container > div {
    height: 40px;
}

.google-pay-container.active > div > button.hover,
.google-pay-container.active > div > button {
    background-color: #bcf;
}

.apple-pay-button,
apple-pay-button {
    --apple-pay-button-border-color: #333;
    --apple-pay-button-border-radius: 4px;
    --apple-pay-button-padding: 2px 0;
    --apple-pay-button-width: 140px;
    --apple-pay-button-height: 38px;
    --apple-pay-button-style: white-outline;
}

/* card icons */
.card-input {
    position: relative;
}
#svgIncludes {
    display: none;
}
.card-icon {
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    width: 45px;
    height: 30px;
    top: 6px;
    right: 5px;
}

.payment-list .payment-name .card-icon {
    position: initial;
    margin-right: 10px;
}
.pledge-summary td,
.recurring-management td {
    padding: 2px 5px;
    vertical-align: middle;
}

tr.success > td {
    background-color: #dff0d8;
}
tr.warning > td {
    background-color: #f2dede;
}

.sweet-alert {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

select.inline-edit {
    appearance: none;
    text-indent: 1px;
    text-overflow: '';
    background-color: transparent;
    border-style: none;
    border-bottom: 1px #339 dashed;
    color: #339;
}

select.inline-edit > option {
    color: #333;
}

/* mobile overrides */
@media (max-width: 576px) {
    #main .give-type .btn, #main .payment-type .btn {
        padding: 8px 10px;
    }

    .panel-body {
        padding: 15px 0;
    }

    .gift.recurring .frequency-select .btn {
        height: 62px;
    }

    .payment-type {
        margin: 0 -15px;
    }

    .payment-list .list-group-item {
        min-height: 80px;
    }

    .payment-list .edit-payment-method {
        margin-top: 45px;
    }

    #main .btn:not(.btn-sm):not(.btn-lg) {
        font-size: 14px;
    }

    .new-payment-method .row.well,
    .edit-payment-method .row.well {
        background-color: #fff;
        border-width: 0;
        box-shadow: none;
        padding: 0;
    }

    .apple-pay-button,
    apple-pay-button {
        --apple-pay-button-width: 100%;
    }

    .google-pay-container > div,
    .google-pay-container > div > button {
        width: 100%;
    }

    .payment-type-selection > .btn {
        margin-right: 0;
        width: 100%;
    }

    .apple-pay-container,
    .google-pay-container {
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .actions-row > :last-child {
        margin-top: 15px;
    }
}
@media (max-width: 990px) {
    .tp-input.form-group {
        margin-bottom: 25px;
    }

    .pledge-summary .table-responsive,
    .recurring-management .table-responsive {
        border: 0;
    }
}
