/**
 * ParishPages plugin for Craft CMS
 *
 * Powers ParishPages Craft websites.
 *
 * @author    Piccirilli Dorsey, Inc.
 * @copyright Copyright (c) 2017 Piccirilli Dorsey, Inc.
 * @link      http://picdorsey.com
 * @package   ParishPages
 * @since     1.10.0
 */

/* ----- Page Title ----- */

.t-parishpages__page-title {
    max-width: 350px;
}

.t-parishpages__logo {
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.t-parishpages__version {
    position: relative;

    margin: 0 auto;
    display: block;

    color: #B9BFC6;
    font-size: 12px;
    text-align: right;
}

.t-parishpages__icon-group {
    margin-bottom: 45px;
}

.t-parishpages__icon-group:last-child {
    margin-bottom: 0;
}

/* ----- Tools ----- */

.t-parishpages__prompt {
    text-align: center;
}

.t-parishpages__prompt__notice {
    display: block;
    width: 100%;
    padding: 10px 8px;
    margin-bottom: 24px;

    color: #29323D;
    font-size: 14px;
    font-weight: bold;

    background-color: #EF9A9A;
    border: 1px solid #F44336;
    box-sizing: border-box;
}

.t-parishpages__prompt__data {
    min-width: 400px;
}

.t-parishpages__prompt__message {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
}

.t-parishpages__prompt__actions {
    margin-top: 24px;
    text-align: center;
}

.t-parishpages__prompt__actions__action {
    display: inline-block;
    padding: 0 15px;
}

.t-parishpages__prompt__actions__input {
    display: block;
    margin: 0 auto 20px auto;
}

.t-parishpages__prompt__actions__input:last-child {
    margin-bottom: 0;
}

.t-parishpages__prompt__exception {
    display: inline-block;
    margin-top: 25px;
    background: rgb(17, 17, 17);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 16px;
    line-height: 22px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    text-align: left;

    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    border: 0;
}

.t-parishpages__prompt__more {
    display: none;
    margin-top: 24px;
    text-align: left;
}

.t-parishpages__prompt__more.visible {
    display: block;
}

.status-label:before {
    content: '';

    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;

    border: 1px solid transparent;
    border-radius: 100%;
}

.status-label.yes:before {
    background-color: #4caf50;
}

.status-label.no:before {
    background-color: #f1c40e;
}

/* ----- Misc ----- */

 #footer ul li:nth-child(3),
 #alerts,
 [href*="admin/updates"],
 [href*="admin/sproutreports/datasources"] {
     display: none !important;
 }

 #fields-scripts {
     background: rgb(17, 17, 17);
     color: rgba(255, 255, 255, 0.8);
     font-size: 14px;
     padding: 16px;
     line-height: 22px;
     font-family: Menlo, Monaco, Consolas, "Courier New", monospace;

     outline: none;
     box-sizing: border-box;
     box-shadow: none;
     border: 0;
 }

.refresh-facebook-btn {
    position: relative;
    padding-right: 12px;

    transition: padding-right 125ms ease-in-out;
}

.refresh-facebook-btn img {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);

    display: block;
    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition: opacity 125ms ease-in-out;
}

.refresh-facebook-btn.loading {
    padding-right: 38px;
}

.refresh-facebook-btn.loading img {
    visibility: visible;
    opacity: 1;
}

/*#nav-parishpages {
    display: none;
}*/

[data-saveshortcut-redirect*="calendar/"] #fields-details-field,
[data-saveshortcut-redirect*="calendar/"] #tabs ul li:nth-child(2),
[data-saveshortcut-redirect*="entries/homepage/{id}-{slug}"] #settings #enabled-field,
.alert-info {
    display: none !important;
}

/* ----- Redactor ----- */

.redactor-dropdown .redactor-dropdown-button span {
    width: 90%;
    overflow: hidden;
}

.redactor-dropdown .redactor-dropdown-button span span {
    display: block;
    padding: 1rem 1.5rem;

    color: #fff;
    font-size: 1rem;
    line-height: 1;

    background-color: #333F4D;
    border-radius: 0;
}

.redactor-dropdown .redactor-dropdown-button:hover span span {
    color: #fff !important;
}

html body .redactor-editor .c-button-inline {
    padding: 0 !important;
}

html body .redactor-editor .c-button-inline a {
    display: inline-block;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1;

    text-transform: uppercase;
    background-color: #333F4D;
    border: 1px solid transparent;

    transition: background-color 125ms ease-in-out,
                color 125ms ease-in-out,
                border 125ms ease-in-out;
}

html body .redactor-editor .c-button-inline a:hover {
    color: #333F4D;

    background-color: transparent;
    border: 1px solid #333F4D;

    text-decoration: none;
}
