/*
	popup.css
	Copyright © 2009 - 2013  WOT Services Oy <info@mywot.com>

	This file is part of WOT.

	WOT is free software: you can redistribute it and/or modify it
	under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	WOT is distributed in the hope that it will be useful, but WITHOUT
	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
	or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
	License for more details.

	You should have received a copy of the GNU General Public License
	along with WOT. If not, see <http://www.gnu.org/licenses/>.
*/

.wot-popup-layer {
    position: absolute;
    top: -9999px;
    z-index: 2147483647;
    max-width: 395px;
    margin: 0;
    padding: 0;
    border: 1px solid #e4e4e4 !important;
    font-family: Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    -moz-user-select: none;
    box-shadow: 4px 4px 6px rgba(189, 189, 189, 0.65);
    background-color: white;
}

#wot-logo {
    background: url("chrome://wot/skin/fusion/logo.png") top left no-repeat;
    margin: 0;
    text-align: right;
    color: #A5A4A4;
    font-size: 11px;
    padding: 5px 5px;
    background-position: 6px 6px;
    background-size: 11%;
}

.wot-ratings {
    display: block;
    margin: 0;
    padding: 0 5px 0;
    background-color: #F9F9F9;
    height: 97px;
    border-top: 1px solid #D9D9D9;
    border-bottom: 1px solid #D9D9D9;
}

#wot-hostname {
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 6px 0;
    overflow: hidden;
    font-weight: bold;
    color: #454545;
}

.wot-stack {
    display: table-cell;
    height: 50px;
    min-width: 110px;
}

.wot-stack-left {
    padding-left: 12px;
}

.wot-stack-right {
    padding: 0 15px;
}

.wot-header {
    color: #454545;
    display: block;
    font-size: 12px;
    font-weight: normal;
    line-height: 14px;
    margin: 0;
    overflow: hidden;
    padding: 0 0 7px 0;
    text-align: left;
    white-space: nowrap;
}

.wot-rep {
    background-image: url("chrome://wot/skin/b/donuts_150.png");
    background-repeat: no-repeat;
    background-position: 0 -165px;
    background-size: 35px 198px;
    height: 33px;
    width: 35px;
    margin-left: -4px;
    margin-top: 7px;
    padding: 0;
    float: left;
}

.wot-popup-layer-accessible .wot-rep {
    background-image: url("chrome://wot/skin/b/accessible/donuts_150.png");
}

.wot-rep[reputation="r1"] {
    background-position: 0 -132px;
}

.wot-rep[reputation="r2"] {
    background-position: 0 -99px;
}

.wot-rep[reputation="r3"] {
    background-position: 0 -66px;
}

.wot-rep[reputation="r4"] {
    background-position: 0 -33px;
}

.wot-rep[reputation="r5"] {
    background-position: 0 0;
}

.wot-rating-confidence {
    position: absolute;
    margin-top: 14px;
    margin-left: 40px;
    width: 44px;
}

.confidence-dot {
    border: 1px solid #676767;
    border-radius: 50%/50%;
    width: 4px;
    height: 4px;
    margin-right: 2px;
    display: inline-block;
}

.wot-rating-confidence[confidence="c1"] .confidence-dot-1 {
    background-color: #676767;
}

.wot-rating-confidence[confidence="c2"] .confidence-dot-1,
.wot-rating-confidence[confidence="c2"] .confidence-dot-2 {
    background-color: #676767;
}

.wot-rating-confidence[confidence="c3"] .confidence-dot-1,
.wot-rating-confidence[confidence="c3"] .confidence-dot-2,
.wot-rating-confidence[confidence="c3"] .confidence-dot-3 {
    background-color: #676767;
}

.wot-rating-confidence[confidence="c4"] .confidence-dot-1,
.wot-rating-confidence[confidence="c4"] .confidence-dot-2,
.wot-rating-confidence[confidence="c4"] .confidence-dot-3,
.wot-rating-confidence[confidence="c4"] .confidence-dot-4 {
    background-color: #676767;
}

.wot-rating-confidence[confidence="c5"] .confidence-dot-1,
.wot-rating-confidence[confidence="c5"] .confidence-dot-2,
.wot-rating-confidence[confidence="c5"] .confidence-dot-3,
.wot-rating-confidence[confidence="c5"] .confidence-dot-4,
.wot-rating-confidence[confidence="c5"] .confidence-dot-5 {
    background-color: #676767;
}

.wot-popup-layer .rating-legend-wrapper {
    /*position: absolute;*/
    background: url("chrome://wot/skin/b/bubl_speech_c_150.png")  top left repeat-x;
    background-size: 1px 24px;
    height: 24px;
    margin: 1px 0 auto 14px;
    float: left;
    position: relative;

    display: none; /* don't show bubble speeches for now until we have their new styles */
}

.wot-popup-layer .rating-legend-wrapper:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 17px;
    margin-left: -17px;
    background: url("chrome://wot/skin/b/bubl_speech_l_150.png") top left no-repeat;
    background-size: 17px 24px;
}

.wot-popup-layer .rating-legend-wrapper:after {
    position: absolute;
    content: "";
    height: 24px;
    width: 17px;
    right: -17px;
    background: url("chrome://wot/skin/b/bubl_speech_r_150.png") top left no-repeat;
    background-size: 10px 24px;
    top: 0px;
}

.wot-popup-layer .rating-legend {
    position: relative;
    height: 24px;
    min-width: 48px;
    margin: -2px 0 0;
    padding: 7px 4px 0 0;
    color: #454545;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

#wot-categories {
    /* Block of categories */
    clear: both;
}

#wot-cat-text {
    /* This element is for optional text when no categories are identified */
    font-size: 11px;
    color: #3073C5;
    padding: 6px 5px;
    text-align: center;
    display: none;
}

#wot-cat-text:hover {
    text-decoration: underline;
}

#wot-cat-list {
    /* List of categories */
    display: none;
    padding: 0 10px 0 40px !important;
    margin: 6px 0 !important;
}

.wot-popup-layer .cat-item {
    font-size: 9pt;
    color: silver;
    list-style: none !important;
    padding: 0.2em 0 !important;
}

.wot-popup-layer .cat-item:before {
    width: 1em;
    height: 1em;
    border: 1px solid #C0C0C0;
    background-color: #C0C0C0;
    border-radius: 50%;
    content: "";
    position: absolute;
    margin-left: -1.65em;
    margin-top: 0;
}

.c-neutral.cat-item:before {
    background-color: #707070;
    background: -moz-radial-gradient(center, ellipse cover, #9e9c9c 0%,#707070 100%); /* Chrome10+,Safari5.1+ */
    border-color: #7d7d7d;
}

.wot-popup-layer-accessible .c-neutral.cat-item:before {
    background-color: #707070;
    background: -moz-radial-gradient(center, ellipse cover, #9B9898 0%, #7E7E7E 100%);
    border-color: #707070;
}

.c-questionable.cat-item:before {
    background-color: #ffd100;
    background: -moz-radial-gradient(center, ellipse cover, #f8df68 0%,#f6cd0e 100%); /* Chrome10+,Safari5.1+ */
    border-color: #f6cd0e;
}

.wot-popup-layer-accessible .c-questionable.cat-item:before {
    background-color: #F6CD0E;
    background: -moz-radial-gradient(center, ellipse cover, #FEE68A 0%, #F5CC33 100%);
    border-color: #F6CD0E;
}

.c-negative.cat-item:before {
    background-color: #f66d3f;
    background: -moz-radial-gradient(center, ellipse cover, #fca080 0%,#f77448 100%); /* Chrome10+,Safari5.1+ */
    border-color: #f66d3f;
}

.wot-popup-layer-accessible .c-negative.cat-item:before {
    background-color: #1F1F1F;
    background: -moz-radial-gradient(center, ellipse cover,#939393 0%, #1F1F1F 100%);
    border-color: #1F1F1F;
}

.c-positive.cat-item:before {
    background-color: #68c800;
    background: -moz-radial-gradient(center, ellipse cover, #83d561 0%,#6dc14a 100%); /* Chrome10+,Safari5.1+ */
    border-color: #6dc14a;
}

.wot-popup-layer-accessible .c-positive.cat-item:before {
    background-color: #B8B8B8;
    background: -moz-radial-gradient(center, ellipse cover, #FDFDFD 0%, #F7F7F7 100%);
    border-color: #B8B8B8;
}

/* reset styles */
.wot-popup-layer .c0,
.wot-popup-layer .c1,
.wot-popup-layer .c2,
.wot-popup-layer .c3,
.wot-popup-layer .c4,
.wot-popup-layer .c5 {
    height: auto;
}

.wot-popup-layer .c0 {
    font-size: 11px !important;
    color: #a7a7a7 !important;
}

.wot-popup-layer .c0.cat-item:before {
    width: 4px !important;
    height: 4px !important;
    margin-left: -19px !important;
    margin-top: 4px !important;
}

.wot-popup-layer .c1 {
    font-size: 12px;
    color: #a7a7a7;
}

.wot-popup-layer .c1.cat-item:before {
    width: 6px;
    height: 6px;
    margin-left: -20px;
    margin-top: 3px;
}

.wot-popup-layer .c2,
.wot-popup-layer .c3 {
    font-size: 12px;
    color: #646464;
}

.wot-popup-layer .c2.cat-item:before,
.wot-popup-layer .c3.cat-item:before {
    width: 7px;
    height: 7px;
    margin-left: -19px;
    margin-top: 1px;
}

.wot-popup-layer .c4,
.wot-popup-layer .c5 {
    font-size: 12px;
    color: #5c5c5c;
    font-weight: bold;
}

.wot-popup-layer .c4.cat-item:before,
.wot-popup-layer .c5.cat-item:before {
    width: 8px;
    height: 8px;
    margin-left: -20px;
    margin-top: 2px;
}

/* small hints about user's ratings on the popup */

.wot-corners-wrapper {
    position: relative;
}

.wot-pp-tr,
.wot-pp-cs {
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    left: 0;
    border: 4px solid transparent;
}

.wot-pp-cs {
    right: 0;
    left: auto;
    margin-left: auto;
    bottom: 0;
}

.wot-pp-tr[r="r1"] {
    border-left-color: #fd0000;
    border-bottom-color: #fd0000;
}

.wot-pp-cs[r="r1"] {
    border-right-color: #fd0000;
    border-bottom-color: #fd0000;
}

.wot-pp-tr[r="r2"] {
    border-left-color: #ff9f75;
    border-bottom-color: #ff9f75;
}

.wot-pp-cs[r="r2"] {
    border-right-color: #ff9f75;
    border-bottom-color: #ff9f75;
}

.wot-pp-tr[r="r3"] {
    border-left-color: #ffd100;
    border-bottom-color: #ffd100;
}

.wot-pp-cs[r="r3"] {
    border-right-color: #ffd100;
    border-bottom-color: #ffd100;
}

.wot-pp-tr[r="r4"] {
    border-left-color: #a7df21;
    border-bottom-color: #a7df21;
}

.wot-pp-cs[r="r4"] {
    border-right-color: #a7df21;
    border-bottom-color: #a7df21;
}

.wot-pp-tr[r="r5"] {
    border-left-color: #68c800;
    border-bottom-color: #68c800;
}

.wot-pp-cs[r="r5"] {
    border-right-color: #68c800;
    border-bottom-color: #68c800;
}
