/* TOC - ADF Styles...
    
    0. Designation Select
    1. Designation Search (Typeahead)
    2. General
    3. Form Group
    4. Button Group
    5. Gift Summary
    6. Gift Options / Billing Info
    7. Custom Input (Checkboxes)
    8. Recurring, Pledge, and Tribute Options
    9. Matching Gift Search
    10. Media
    
*/



/* =========================================================================================
0. Designation Select
========================================================================================= */

#fundList {
    margin-bottom: 1.3rem;
}

.des-block,
.des-area {
    border-bottom: 1px dotted #ccc;
}

.des-block.expanded {
    border-bottom: none;
}

.des-group,
.des-select {
    display: none;
}

.des-cat {
    background-color: #fff;
    color: #73000a;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem 3rem .5rem 1rem;
    position: relative;
    transition: background-color 200ms ease-in;
}

.des-subcat {
    color: #73000a;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem 3rem .5rem 1rem;
    position: relative;
    transition: background-color 200ms ease-in;
}

.des-cat::after,
.des-subcat::after {
    background: url("https://donate.sc.edu/image/expand_sprite.svg") 0 -466px no-repeat;
    content: "";
    display: block;
    height: 25px;
    margin: 6px 10px 0 0;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 25px;
}

.des-cat.expanded::after,
.des-subcat.expanded::after {
    background: url("https://donate.sc.edu/image/expand_sprite.svg") 0 -545px no-repeat;
}

.des-cat:hover,
.des-subcat:hover,
.des-cat.expanded,
.des-subcat.expanded {
    background-color: #ececec;
    transition: all 200ms ease-in;
}

.des-subcat {
    padding-left: 2.5rem;
}

.des-subcat:last-child {
    border-bottom: none;
}

.des-select .checkbox:not(:last-child) {
    border-bottom: 1px dotted #eee;
}

.des-cat:focus {
    outline-style: dotted;
    outline-width: thin;
}



/* =========================================================================================
    1. Designation Search (Typeahead)
    ========================================================================================= */

#desSearch {
    padding-right: 3rem;
}

label[for="desSearch"]~svg {
    bottom: 11px;
    color: #000;
    position: absolute;
    right: 15px;
}

html[class*="-ms-"] label[for="desSearch"]~svg {
    bottom: 17px;
}

.twitter-typeahead {
    width: 100%;
}

.twitter-typeahead .tt-hint {
    color: #949494;
}

.tt-menu {
    background-color: #ebecec;
    border: 1px solid #d7d7d7;
    border-top: none;
    max-height: 50vh;
    overflow: auto;
    text-align: left;
    top: 37px !important;
    width: 100%;
}

.tt-menu .no-match {
    background-color: #ebecec;
    font-size: .9rem;
    line-height: 1.2;
    padding: .5rem .65rem;
}

.tt-suggestion {
    background-color: #ebecec;
    border-bottom: 1px solid #d7d7d7;
    cursor: pointer;
    line-height: 1.2;
    padding: .5rem .65rem;
}

.tt-suggestion:last-child {
    border-bottom: none;
}

.tt-cursor,
.tt-suggestion:hover {
    color: #fff;
    background-color: #73000a;
}

.tt-hierarchy {
    font-size: .7rem;
    margin-bottom: .5rem;
}

.tt-label {
    margin-bottom: .5rem;
    font-size: 1.1rem;
}

.tt-keyword {
    background-color: lightgray;
    border-radius: 5vh;
    padding: .2rem .35rem .05rem .35rem;
    margin: .1rem .25rem;
    white-space: pre-wrap;
}

.tt-keywords {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: .7rem;
    align-items: center;
    justify-content: flex-start;
}

.tt-suggestion:hover .tt-keyword {
    color: black;
    background-color: #ececec;
}

.tt-vseSubCat {
    background-color: #CC2E40;
    color: white;
}

.tt-vseCat {
    background-color: #466A9F;
    color: white;
}

.tt-repCode1 {
    background-color: #1F414D;
    color: white;
}

.tt-repCode2 {
    background-color: #65780B;
    color: white;
}

.tt-college {
    background-color: #73000a;
    color: white;
}

.tt-dept {
    background-color: #A49137;
    color: white;
}

.tt-site {
    background-color: #FFF2E3;
    color: black;
}


/* =========================================================================================
    2. General
    ========================================================================================= */

/* field labels */

.adfFormLabel {
    font-size: .8rem;
    font-weight: 700;
}

p.note {
    font-size: .9rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.3;
}


/* placeholder styles */

input.placeholder,
textarea.placeholder,
input:disabled {
    color: #949494 !important;
}

::-webkit-inner-spin-button,
::-webkit-clear-button {
    -webkit-appearance: none;
    appearance: none;
}

::-webkit-calendar-picker-indicator {
    background-color: #fff;
    color: #49595e;
    opacity: 1;
}

::placeholder {
    color: #949494;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #949494;
    opacity: 1;
}

:-moz-placeholder {
    color: #949494;
    opacity: 1;
}

::-moz-placeholder {
    color: #949494;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #949494 !important;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #949494 !important;
    opacity: 1;
}


/* validation markers */

.marker::before {
    color: #ab0520;
    content: "*";
    left: 1px;
    position: relative;
    top: 1px;
}


/* validation */

#adfError {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: .125rem;
    display: none;
    padding: .5rem .6rem;
    margin-bottom: 1rem;
}

#adfError svg {
    color: #721c24;
    display: block;
    position: absolute;
    top: .75rem;
}

#adfError p {
    color: #721c24;
    font-size: .8rem;
    margin-bottom: 0;
    margin-left: 1.5rem;
    vertical-align: top;
}

.has-error .form-control.invalid {
    box-shadow: none;
    border-color: #ab0520 !important;
}

.form-control:invalid {
    box-shadow: none;
}


/* hidden fields */

*.hidden {
    display: none;
}


/* force relative positioning */

.relative {
    position: relative !important;
}


/* edit mode overrides */

form[action*="pagedesign"] {
    min-height: auto;
    overflow-y: hidden;
}


/* bbcheckout overrides */

#bbcheckout-iframe-wrapper.processing {
    display: block !important;
    opacity: 1 !important;
}



/* =========================================================================================
    3. Form Group
    ========================================================================================= */

.form-group {
    margin-bottom: 1rem;
    position: relative;
}


/* character counter */

.char-counter {
    font-size: .8rem;
    margin-bottom: 0;
    padding-top: .2rem;
    position: relative;
    text-align: right;
}

.char-counter span {
    color: #000;
    font-weight: 700;
}



/* =========================================================================================
    4. Button Group
    ========================================================================================= */

.button-group {
    display: block;
    border: 1px solid #9baaa7;
    border-radius: .125rem;
    font-size: 0;
    padding: .5rem .25rem;
    vertical-align: top;
}

.button-group .btn:nth-last-child(n+2):nth-last-child(-n+2):first-child,
.button-group .btn:nth-last-child(n+2):nth-last-child(-n+2):first-child~.btn {
    width: 50% !important;
}

.ADFBtnGrp {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
}

.ADFBtn {
    flex: 1 1 auto;
    margin: 1rem 1rem 0 0;
}

.button-group .btn {
    background-color: #fff;
    border-left: .25rem solid #fff;
    border-right: .25rem solid #fff;
    border-radius: .3rem;
    cursor: pointer;
    display: inline-block;
    font-size: .883rem;
    padding: .25rem;
    position: relative;
    text-align: center;
    width: 25%;
}

.button-group .btn:hover {
    background-color: #ebecec;
}

.button-group .btn.active {
    background-color: #73000a;
    color: #fff;
}

.button-group .btn input {
    opacity: 0;
    position: absolute;
}



/* =========================================================================================
    5. Gift Summary
    ========================================================================================= */

.fund-card {
    border-radius: .125rem;
    box-shadow: 0 3px 0 0 #d7d7d7;
    margin-bottom: 1.5rem;
}

.fund-card-header {
    background-color: #64666b;
    border: 1px solid #64666b;
    padding: .5rem 1rem;
}

.fund-card-header p {
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    margin-bottom: 0;
}

.fund-card-block {
    background-color: #ebecec;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #d7d7d7;
    border-right: 1px solid #d7d7d7;
    padding: .5rem 1rem;
}

.fund-card-block .relative:last-child {
    padding-left: 1rem;
}

.fund-card-block .symbol {
    left: 0;
    position: absolute;
    top: 0;
}

.fund-card-block input {
    height: 29px;
    padding: .2rem .65rem;
}

.fund-card-block p {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 0;
}

.fund-card-block p.min-amount {
    color: #ab0520;
    font-size: .8rem;
}

.fund-card-block .fund-note {
    color: #721c24;
    display: block;
    font-size: .8rem;
    font-weight: 300;
}

.fund-card-footer {
    background-color: #ebecec;
    border-left: 1px solid #d7d7d7;
    border-right: 1px solid #d7d7d7;
    padding: .65rem 1rem;
}

.fund-card-footer .button {
    font-size: .6875rem;
    margin: 0;
    padding: .3rem .6rem;
}

.total-amount {
    text-align: right;
}


/* Gift Amount */

.amounts {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem
}

.amount-button {
    font-size: 1rem;
    flex: 1 1 auto;
    margin: 1rem 1rem 0 0;
}

.amount-button.active {
    background-color: #000;
    color: #fff;
}

#otherAmount {
    display: none;
}



/* =========================================================================================
    6. Gift Options / Billing Info
    ========================================================================================= */

#giftOptions div[id$="Section"] {
    border: 1px solid #ebecec;
    border-radius: .125rem;
    padding: 1rem;
}

#giftOptions .checkbox label,
#billingInfo .checkbox label {
    padding: 12px 0 12px 1.5rem;
}

#giftOptions .checkbox label::before,
#billingInfo .checkbox label::before {
    left: 0;
    top: 12px;
}

#giftOptions .checkbox label::after,
#billingInfo .checkbox label::after {
    left: 3px;
    top: 17px;
}

#billingInfo .row {
    margin-bottom: 1rem;
}



/* =========================================================================================
    7. Custom Input (Checkboxes)
    ========================================================================================= */

.checkbox {
    cursor: pointer;
    position: relative;
    width: auto;
}

.checkbox.focus {
    outline-style: dotted;
    outline-width: thin;
}

.checkbox input {
    opacity: 0;
    position: absolute;
}

.checkbox label {
    cursor: pointer;
    font-size: .8rem;
    display: block;
    line-height: 1.3;
    padding: .5rem .5rem .5rem 4rem;
}

.checkbox label::before {
    background: #fff;
    border-radius: .125rem;
    content: "";
    border: 1px solid #a3a3a3;
    cursor: pointer;
    height: 16px;
    left: 40px;
    position: absolute;
    top: 8px;
    width: 16px;
}

.checkbox label::after {
    background: transparent;
    border: 2px solid #000;
    border-right: none;
    border-top: none;
    content: "";
    height: 5px;
    left: 43px;
    opacity: 0;
    position: absolute;
    top: 13px;
    transform: rotate(-45deg);
    width: 10px;
}

.checkbox:hover label::after {
    opacity: .25;
    transition: all 100ms ease-in-out;
}

.checkbox input[type="checkbox"]:checked+label::after {
    opacity: 1;
}



/* =========================================================================================
    8. Recurring, Pledge, and Tribute Options
    ========================================================================================= */

/* vertical spacing */

#recurringGiftSection select,
#pledgeGiftSection select {
    margin-bottom: 1rem;
}

#giftOptions #acknowledgeeSection {
    border-top-color: #fff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 0;
    position: relative;
    top: -1px;
}

#tributeType {
    margin-bottom: 1rem;
}

#honoreeSection .checkbox {
    margin-top: 1rem;
}


/* info alert */

.info-alert {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: .125rem;
    display: none;
    padding: .5rem .6rem;
    margin-top: 1rem;
    position: relative;
}

.info-alert svg {
    color: #0c5460;
    display: block;
    position: absolute;
    top: .6rem;
}

.info-alert p {
    color: #0c5460;
    font-size: .8rem;
    margin-bottom: 0;
    margin-left: 1.5rem;
    vertical-align: top;
}



/* =========================================================================================
    9. Matching Gift Search
    ========================================================================================= */

#matchingGiftName {
    padding-right: 3rem;
}

#matchingGiftName+button {
    background-color: transparent;
    color: #000;
    line-height: 0;
    margin: 0;
    padding: 11px 15px;
    position: absolute;
    right: 1rem;
    top: 42px;
}

#matchingGiftSearchResults ol:empty {
    display: none;
}



/* =========================================================================================
    10. Media
    ========================================================================================= */

@media only screen and
/*!YUI Compressor */
(max-width:800px) {
    .margin-mobile {
        margin-bottom: 1rem !important;
    }

    p.fund-name {
        margin-bottom: .5rem;
    }
}