/*
 * Currently we're using two style sheets while WWW restyles from Backbone > React.
 * Eventually all the styles will live in components.css but until that day we'll hack
 * everything here.
 */

/* fix active-zone-selector being to far from the logo. The selector
 * still has bad css when using mobile or small screen view.
 */
.active-zone-selector__singlezone {
    margin-left: auto !important;
}

/* fix WordPress whole div touching the most top of the page */
.cf-layout__container {
    margin-top: 8px; /* new */      
}

/* fix the under attack button being too close to right */
.under-attack-button {
    margin-right: 2rem !important;
}

/* fix WordPress AdminPanel Settings */
#adminmenu .wp-submenu {
    margin-left: 0em; /* new */
}

/* Fix login Page */
#cf-login-page {
    max-width: 400px;
    margin: 0 auto;
}
#cf-login-page form {
    margin-bottom: 20px;
}

#cf-login-page h3 {
    text-align: center;
}

#cf-login-page .cf-form__fieldset_content {
    background-color: #FFF;
    border-color: #FFF;
}

#cf-login-page legend {
    display: none;
}

#cf-login-page .cf-layout__row {
    margin-top:15px;
}

#cf-login-page .cf-layout__column {
    text-align: center;
}

/* fixes signup and login page form label */
#cf-login-page .cf-form__label {
    float: left; /* new */
    font-size: 13px;
}

/* fix header aligning incorrect */
#header-global .cf-layout__column {
    height: 100%; /* new */
}


/* Fix black fill in Analytics */
.c3-chart {
    fill: transparent;
}

/* fix WordPress notification z-index being lower than
 * WordPress Admin Panel z-index level.
 */
.cf-notifications__global_container {
    z-index: 9999; /* new */
}

/* Decrease the size of footer message */
.cf-card__footer_message {
    font-size: 0.7rem;
}

/* fix Cpanel Plugin title */
span#pageHeading {
    display: block;
}

/* center the dot in radio button */
input[type="radio"]:checked:before {
    margin-top: 3px; /* new */
    margin-left: 4px; /* new */
    height: 6px; /* 7px */
    left: 0px; /* 3px */
    top: 0px; /* 7px */
    width: 6px; /* 7px */
}

/* change bg of body, wrapper */
body, .cloudflare-partners .wrapper {
    background-color: #ebebeb; /* new */
}

/* hide checkbox on cf-component-toggle */
.cloudflare-partners .cf-toggle input[type=checkbox] {
    display: none; /* block */
}

/* Adjust margins betweens cf-card divs. */
/* This can mess other section elements styling */
.cloudflare-partners section, .cloudflare-partners .section {
    margin-bottom: 1rem;
    margin-top: 1rem; 
}

/* center and change bg color of app nav */
.cloudflare-partners .apps-nav-container {
    padding: 0.66667rem 0;
    position: relative;
}
.cloudflare-partners .slider-nav-container {
    display: table;
    list-style: none;
    margin: 0;
    padding: 0;
    table-layout: fixed;
    width: auto; /* 100% */
    margin: 0 auto; /* new */
    margin-top: 0.3rem; /* new */
}

/* app nav performance text is hidden */
.cloudflare-partners .icon-item a {
    color: #333333;
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
    margin: 0 auto;
    overflow: visible; /* hidden */
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    padding-bottom: 0.26667em;
    position: relative;
}

/* center cf-component-toggle in cards */
label.cf-toggle {
    margin: 0 auto;
}

/* align checkbox/radios */
.cloudflare-partners .cf-radio__group, .cloudflare-partners .cf-checkbox__group {
    text-align: left; /* new */
}

/* White bg for analytics */
.cloudflare-partners section.cf-tabs {
    background-color: #FFF;
}

/* Fix Analytics Tabs overflow */
.cloudflare-partners .cf-tabs__group {
    margin-left: 0;
}

/* More space between radio/checkbox and text */

.cloudflare-partners input[type="radio"], .cloudflare-partners input[type="checkbox"] {
    height: 15px;
    line-height: normal;
    margin: 0px 5px 0;
    padding: 5px;
    position: relative;
    width: 15px;
    -moz-appearance: none;
    -webkit-appearance: none;
}

/* fix modal */
.cf-modal__actions {
    float: none; /* right */
}

/* hide input on <CloudToggle/> */
label.proxy input {
    display: none;
}

/* cf-component-select */
/**
 * React Select
 * ============
 * Created by Jed Watson and Joss Mackison for KeystoneJS, http://www.keystonejs.com/
 * https://twitter.com/jedwatson https://twitter.com/jossmackison https://twitter.com/keystonejs
 * MIT License: https://github.com/keystonejs/react-select
*/
.Select {
    position: relative;
}
.Select,
.Select div,
.Select input,
.Select span {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.Select.is-disabled > .Select-control {
    background-color: #f9f9f9;
}
.Select.is-disabled > .Select-control:hover {
    box-shadow: none;
}
.Select.is-disabled .Select-arrow-zone {
    cursor: default;
    pointer-events: none;
}
.Select-control {
    background-color: #fff;
    border-color: #d9d9d9 #ccc #b3b3b3;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #333;
    cursor: default;
    display: table;
    height: 36px;
    outline: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.Select-control:hover {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.is-searchable.is-open > .Select-control {
    cursor: text;
}
.is-open > .Select-control {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    background: #fff;
    border-color: #b3b3b3 #ccc #d9d9d9;
}
.is-open > .Select-control > .Select-arrow {
    border-color: transparent transparent #999;
    border-width: 0 5px 5px;
}
.is-searchable.is-focused:not(.is-open) > .Select-control {
    cursor: text;
}
.is-focused:not(.is-open) > .Select-control {
    border-color: #007eff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1);
}
.Select-placeholder,
:not(.Select--multi) > .Select-control .Select-value {
    bottom: 0;
    color: #000;
    left: 0;
    line-height: 34px;
    padding-left: 10px;
    padding-right: 10px;
    position: absolute;
    right: 0;
    top: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.has-value:not(.Select--multi) > .Select-control > .Select-value .Select-value-label,
.has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value .Select-value-label {
    color: #333;
}
.has-value:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label,
.has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label {
    cursor: pointer;
    text-decoration: none;
}
.has-value:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:hover,
.has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:hover,
.has-value:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:focus,
.has-value.is-pseudo-focused:not(.Select--multi) > .Select-control > .Select-value a.Select-value-label:focus {
    color: #007eff;
    outline: none;
    text-decoration: underline;
}
.Select-input {
    height: 34px;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: middle;
}
.Select-input > input {
    background: none transparent;
    border: 0 none;
    box-shadow: none;
    cursor: default;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    height: 34px;
    margin: 0;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
}
.is-focused .Select-input > input {
    cursor: text;
}
.has-value.is-pseudo-focused .Select-input {
    opacity: 0;
}
.Select-control:not(.is-searchable) > .Select-input {
    outline: none;
}
.Select-loading-zone {
    cursor: pointer;
    display: table-cell;
    position: relative;
    text-align: center;
    vertical-align: middle;
    width: 16px;
}
.Select-loading {
    -webkit-animation: Select-animation-spin 400ms infinite linear;
    -o-animation: Select-animation-spin 400ms infinite linear;
    animation: Select-animation-spin 400ms infinite linear;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-right-color: #333;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.Select-clear-zone {
    -webkit-animation: Select-animation-fadeIn 200ms;
    -o-animation: Select-animation-fadeIn 200ms;
    animation: Select-animation-fadeIn 200ms;
    color: #999;
    cursor: pointer;
    display: table-cell;
    position: relative;
    text-align: center;
    vertical-align: middle;
    width: 17px;
}
.Select-clear-zone:hover {
    color: #D0021B;
}
.Select-clear {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}
.Select--multi .Select-clear-zone {
    width: 17px;
}
.Select-arrow-zone {
    cursor: pointer;
    display: table-cell;
    position: relative;
    text-align: center;
    vertical-align: middle;
    width: 25px;
    padding-right: 5px;
}
.Select-arrow {
    border-color: #999 transparent transparent;
    border-style: solid;
    border-width: 5px 5px 2.5px;
    display: inline-block;
    height: 0;
    width: 0;
}
.is-open .Select-arrow,
.Select-arrow-zone:hover > .Select-arrow {
    border-top-color: #666;
}
@-webkit-keyframes Select-animation-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes Select-animation-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.Select-menu-outer {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top-color: #e6e6e6;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    margin-top: -1px;
    max-height: 200px;
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
}
.Select-menu {
    max-height: 198px;
    overflow-y: auto;
}
.Select-option {
    box-sizing: border-box;
    background-color: #fff;
    color: #666666;
    cursor: pointer;
    display: block;
    padding: 8px 10px;
}
.Select-option:last-child {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}
.Select-option.is-focused {
    background-color: rgba(0, 126, 255, 0.08);
    color: #333;
}
.Select-option.is-disabled {
    color: #cccccc;
    cursor: default;
}
.Select-noresults {
    box-sizing: border-box;
    color: #999999;
    cursor: default;
    display: block;
    padding: 8px 10px;
}
.Select--multi .Select-input {
    vertical-align: middle;
    margin-left: 10px;
    padding: 0;
}
.Select--multi.has-value .Select-input {
    margin-left: 5px;
}
.Select--multi .Select-value {
    background-color: rgba(0, 126, 255, 0.08);
    border-radius: 2px;
    border: 1px solid rgba(0, 126, 255, 0.24);
    color: #007eff;
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.4;
    margin-left: 5px;
    margin-top: 5px;
    vertical-align: top;
}
.Select--multi .Select-value-icon,
.Select--multi .Select-value-label {
    display: inline-block;
    vertical-align: middle;
}
.Select--multi .Select-value-label {
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
    cursor: default;
    padding: 2px 5px;
}
.Select--multi a.Select-value-label {
    color: #007eff;
    cursor: pointer;
    text-decoration: none;
}
.Select--multi a.Select-value-label:hover {
    text-decoration: underline;
}
.Select--multi .Select-value-icon {
    cursor: pointer;
    border-bottom-left-radius: 2px;
    border-top-left-radius: 2px;
    border-right: 1px solid rgba(0, 126, 255, 0.24);
    padding: 1px 5px 3px;
}
.Select--multi .Select-value-icon:hover,
.Select--multi .Select-value-icon:focus {
    background-color: rgba(0, 113, 230, 0.08);
    color: #0071e6;
}
.Select--multi .Select-value-icon:active {
    background-color: rgba(0, 126, 255, 0.24);
}
.Select--multi.is-disabled .Select-value {
    background-color: #fcfcfc;
    border: 1px solid #e3e3e3;
    color: #333;
}
.Select--multi.is-disabled .Select-value-icon {
    cursor: not-allowed;
    border-right: 1px solid #e3e3e3;
}
.Select--multi.is-disabled .Select-value-icon:hover,
.Select--multi.is-disabled .Select-value-icon:focus,
.Select--multi.is-disabled .Select-value-icon:active {
    background-color: #fcfcfc;
}
@keyframes Select-animation-spin {
    to {
        transform: rotate(1turn);
    }
}
@-webkit-keyframes Select-animation-spin {
    to {
        -webkit-transform: rotate(1turn);
    }
}

/* end cf-component-select */
