/* Descriptive elements */
#preference-descriptions { display: none; }

/* Ensure form elements use the right fonts */
div.form-device .ui-widget {
    font-family: "Source Sans Pro", Arial, sans-serif; }

/* Some form containers are erroneously given the "ui-front" class by UWA scripts */
div.form-device dd.ui-front {
    z-index: auto; }

/* Dropdown menus need some adjustments */
div.form-device span.ui-selectmenu-button {
    background-color: white;
    color: initial;
    border: 2px solid #dbdbdb; }
    div.form-device span.ui-selectmenu-button span.ui-icon {
        display: none; }
    div.form-device span.ui-selectmenu-button:before {
        top: -2px;
        right: -2px;
        color: #464646; }
    div.form-device span.ui-selectmenu-button:hover {
        background-color: white;
        border-color: #8188b3; }
    div.form-device span.ui-selectmenu-button:focus {
        border-color: #4753a5; }
div.form-device ul.ui-menu {
    padding: 0;
    border-color: #8188b3; }
    div.form-device ul.ui-menu li.ui-menu-item {
        padding: 0; }
        div.form-device ul.ui-menu li.ui-menu-item .ui-menu-item-wrapper {
            margin: 0;
            padding: 3px 6px; }
        div.form-device ul.ui-menu li.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
            border: 0; }

/* Leading dollar sign for currency fields */
div.form-device .type-currency {
    position: relative; }
    div.form-device .type-currency:before {
        content: "$";
        position: absolute;
        line-height: 40px;
        left: 10px;
        top: 0; }
    div.form-device dd.type-currency:before {
        left: 16px;
        top: 12px; }
        div.form-device .type-currency input[type="text"] {
            padding-left: 16px; }

/* Help button for credit card security codes */
div.form-device a.csc-help-button {
    display: block;
    position: absolute;
    top: 12px;
    right: 0;
    width: 50px;
    height: 40px;
    line-height: 40px;
    background-color: #27348b;
    float: right;
    box-sizing: border-box;
    text-decoration: none; }
    div.form-device a.csc-help-button:hover {
        background-color: #4753a5; }
    div.form-device a.csc-help-button:before {
        display: block;
        content: "\f128";
        font-family: "FontAwesome";
        color: white;
        text-align: center;
        vertical-align: middle; }

/* Donation amount picker */
div.form-device dl:not(.columns) dd.donation-amount-picker ul li {
    float: left;
    margin-bottom: 1px;
    width: 25%; }
    div.form-device dl:not(.columns) dd.donation-amount-picker ul li label.radio {
        padding: 16px;
        line-height: 20px;
        margin: 0 0 0 1px;
        text-align: center;
        background-color: #ececec; }
        div.form-device dl:not(.columns) dd.donation-amount-picker ul li label.radio:before,
        div.form-device dl:not(.columns) dd.donation-amount-picker ul li label.radio:after {
            content: none; }
    div.form-device dl:not(.columns) dd.donation-amount-picker ul li:first-child label.radio {
        margin-left: 0; }
    div.form-device dl:not(.columns) dd.donation-amount-picker ul li label.radio.checked {
        background-color: #27348b;
        color: white; }
div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount {
    width: 100%; }
    div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount label.radio {
        margin: 0; }
        div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount label.radio:after {
            content: " amount";
            position: static;
            display: inline; }
    div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount label.radio.checked {
        width: 25%;
        text-align: right;
        padding-right: 0;
        float: left; }
        div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount label.radio.checked:after {
            content: ":"; }
    div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount div.other-amount {
        display: none;
        width: 75%;
        float: left;
        padding: 6px;
        background-color: #27348b; }
        div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount div.other-amount:before {
            top: 6px;
            left: 16px; }
        div.form-device dl:not(.columns) dd.donation-amount-picker ul li.other-amount label.radio.checked + div.other-amount {
            display: block; }

/* Remove "Edit" links from address and email address options */
div.form-device a[id$=_EditLink] {
    display: none; }

/* Display credit card expiry selectors on a single line */
div.form-device .credit-card-expiry span.ui-selectmenu-button {
    width: 50% !important;
    display: inline-block;
    margin: 0; }

/* Datepicker trigger buttons */
div.form-device button.ui-datepicker-trigger {
    display: block;
    position: absolute;
    top: 12px;
    right: 0;
    width: 50px;
    min-width: 50px;
    height: 40px;
    line-height: 40px;
    margin: 0;
    padding: 0;
    background-color: #27348b;
    color: white;
    box-sizing: border-box; }
    div.form-device button.ui-datepicker-trigger:after {
        font-family: FontAwesome;
        padding: 0;
        content: "\f073"; }
    div.form-device button.ui-datepicker-trigger:hover:after,
    div.form-device button.ui-datepicker-trigger:focus:after {
        margin: 0; }

/* Form section headings */
.form-first-section-heading {
    margin-top: -12px; }
.form-hidden-section-heading {
    display: none; }

/* Form errors */
.form-errors {
    color: red; }