* {
    -webkit-box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
}

body {
    font: message-box;
    min-height: 425px; /* This value needs to be kept in sync with ExtensionsViewController.h. */
    min-width: 668px;
    padding: 0;
    margin: 0;
    cursor: default;
    -webkit-user-select: none;
    overflow: hidden;
}

body.platform-windows {
    background-color: ThreeDFace;
    color: WindowText;
}

body.platform-mac {
    background-color: transparent;
    color: black;
}

body.collapsed {
    min-height: 105px; /* This value needs to be kept in sync with ExtensionsViewController.h. */
}

body.collapsed #sidebar, body.collapsed #contentView {
    display: none;
}

#mainContainer {
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

#header {
    position: absolute;
    left: 22px;
    top: 12px;
    right: 20px;
    height: 35px;
}

#footer {
    position: absolute;
    left: 20px;
    bottom: 15px;
    right: 20px;
    height: 23px;
    text-align: right;
}

#explanation {
    position: absolute;
    left: 0;
    top: 0;
    right: 165px;
}

#master-switch {
    position: absolute;
    right: 0;
    top: 6px;
}

#get-more {
    vertical-align: middle;
}

body.platform-mac #get-more {
    font-size: 13px;
    padding-left: 11px;
    padding-right: 11px;
    margin: 0 3px;
}

#help {
    -webkit-appearance: none;
    background-color: transparent;
    background-image: url(HelpButton.png);
    border: none;
    width: 25px;
    height: 24px;
    padding: 0;
    margin: 1px -2px 0 -2px;
    vertical-align: middle;
}

#help:active {
    background-image: url(HelpButtonPressed.png);
}

.container {
    position: absolute;
    overflow: hidden;
    top: 56px;
    bottom: 48px;
    border: 1px solid rgb(190, 190, 190);
    border-top-color: rgb(142, 142, 142);
}

.container:focus {
    outline: none;
}

#sidebar {
    background-color: white;
    background-image: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(0.49999, white), color-stop(0.5, rgb(247, 247, 247)), to(rgb(247, 247, 247)));
    -webkit-background-size: auto 72px;
    left: 20px;
    width: 158px;
    position: absolute;
}

#extensionInfo, #updates {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

#extensionList {
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 30px;
}

#contentView {
    left: 184px;
    right: 20px;
    background-color: white;
}

#extensionList .item {
    display: block;
    position: relative;
    height: 36px;
    padding-left: 41px;
    padding-right: 8px;
    font-size: 11px;
    line-height: 36px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar .selected {
    color: white;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, 0.33) 0 1px 0;
    -webkit-box-shadow: inset rgb(145, 160, 192) 0 1px 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(162, 177, 207)), to(rgb(120, 138, 177)));
}

#sidebar:focus .selected {
    -webkit-box-shadow: inset rgb(68, 128, 200) 0 1px 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(92, 147, 213)), to(rgb(21, 83, 170)));
}

#icon {
    width: 48px;
    height: 48px;
    position: absolute;
    left: 14px;
    top: 14px;
    -webkit-box-reflect: below -4px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.7, transparent), to(rgba(0, 0, 0, 0.3)));
}

#extensionList .item .icon {
    position: absolute;
    width: 32px;
    height: 32px;
    left: 4px;
    top: 2px;
}

.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 31px;
    border-top: 1px solid rgb(190, 190, 190);
    background-color: white;
}

#contentView .header {
    position: relative;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    min-height: 107px;
    border-bottom: 1px solid rgb(214, 214, 214);
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(247, 247, 247)), to(rgb(252, 252, 252)));
}

body.platform-windows #contentView button {
    height: 21px;
}

body.platform-mac #contentView button {
    padding-left: 14px;
    padding-right: 14px;
    -webkit-appearance: none;
    -webkit-border-radius: 9px;
    border: 1px solid rgb(130, 130, 130);
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(251, 251, 251)), to(rgb(223, 223, 223)));
    -webkit-box-shadow: rgb(230, 230, 230) 0 1px 0;
    text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
    line-height: 11px;
    height: 18px;
    outline-offset: -2px;
}

body.platform-mac #contentView button:active {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(186, 186, 186)), to(rgb(210, 210, 210)));
    -webkit-box-shadow: rgb(230, 230, 230) 0 1px 0, inset rgb(150, 150, 150) 0 1px 2px;
}

#title-bar {
    position: absolute;
    left: 74px;
    right: 14px;
    top: 14px;
    color: rgb(64, 64, 64);
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#author {
    color: rgb(167, 167, 167);
    font-size: 10px;
    font-weight: normal;
}

#author a:link, #author a:visited {
    color: inherit;
}

#author a:active {
    color: rgb(64, 64, 64);
}

#description {
    display: -webkit-inline-box;
    overflow: hidden;
    position: absolute;
    left: 74px;
    right: 14px;
    top: 37px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#enableCheckbox {
    position: absolute;
    top: 75px;
    left: 70px;
    right: 150px;
    padding-left: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#uninstallButton {
    position: absolute;
    top: 75px;
    right: 11px;
}

#settings, #available-updates-container {
    position: relative;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 15px;
}

#settings.empty, #available-updates-placeholder {
    font-size: 16px;
    color: rgb(214, 214, 214);
    font-weight: bold;
    text-align: center;
    line-height: 150px;
}

input[type="checkbox"], input[type="radio"] {
    margin-left: 0;
    margin-right: 0.75ex;
}

#install-updates-automatically-countdown {
    float: right;
    color: gray;
    margin-top: 2px;
}

.hidden {
    display: none !important;
}

.slider-switch .slider {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 21px;
    -webkit-border-radius: 3px;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(56, 56, 56)), to(rgb(111, 111, 111)));
    -webkit-box-shadow: rgba(255, 255, 255, 0.8) 0 1px 0;
    overflow: hidden;
    vertical-align: middle;
    outline: none;
}

.slider-switch .background {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 62px;
    height: 19px;
    -webkit-border-radius: 2px;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(132, 132, 132)), to(rgb(168, 168, 168)));
    -webkit-box-shadow: inset rgba(0, 0, 0, 0.333) 0 1px 2px;
}

.slider-switch .thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 27px;
    height: 19px;
    -webkit-border-radius: 2px;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(251, 251, 251)), to(rgb(225, 225, 225)));
    -webkit-box-shadow: rgba(0, 0, 0, 0.85) 0 0 3px;
    -webkit-transition: left 250ms ease; /* Keep this value in sync with the updateMasterSwitch function in ExtensionsView.js. */
}

.slider-switch.disable-animation .thumb {
    -webkit-transition: none;
}

.slider-switch.on .thumb {
    left: 36px;
}

.slider-switch .thumb:active {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(223, 223, 223)), to(rgb(244, 244, 244)));
}

.slider-switch label {
    font-size: 13px;
    font-weight: bold;
    color: rgb(60, 60, 60);
    text-shadow: rgba(255, 255, 255, 0.8) 0 1px 0;
    vertical-align: middle;
}

.slider-switch .off-label {
    margin-right: 5px;
}

.slider-switch .on-label {
    margin-left: 5px;
}

#updates-item {
    line-height: 31px;
    padding-left: 41px;
}

#updates-item img {
    position: absolute;
    left: 8px;
    top: 2px;
}

#updates-count-bubble {
    position: absolute;
    bottom: 8px;
    right: 4px;
    height: 14px;
    width: 20px;
    background-color: rgb(131, 148, 189);
    -webkit-border-radius: 7px;
    padding-top: 2px;
    text-align: center;
    vertical-align: middle;
    color: white;
    font-family: Helvetica;
    font-size: 11px;
    font-weight: bold;
    line-height: 11px;
}

body.platform-windows #updates-count-bubble {
    padding-top: 1px;
}

.selected > #updates-count-bubble {
    background-color: white;
    color: rgb(136, 153, 189);
}

:focus .selected > #updates-count-bubble {
    color: rgb(48, 108, 187);
}

#updates > .header {
    padding: 0 13px 13px;
    font-size: 11px;
}

#updates > .header > h1 {
    font-size: 13px;
    margin-top: 11px;
    margin-bottom: 0;
}

#updates > .header > p {
    font-size: 11px;
    margin-top: 8px;
    margin-bottom: 14px;
    min-height: 26px;
}

#updates > .header > button {
    position: absolute;
    right: 11px;
    font-size: 12px;
}

body.platform-mac #updates > .header > button {
    padding-left: 10px;
    padding-right: 10px;
}

/* The spacing of extensions within #available-updates-container is:
 * 32px space - 188px extension - 22px space - 188px extension - 32px space
 * We accomplish this by giving each extension a left margin of 32px and a right margin of -10px.
 * That takes care of the leading 32px space and the inner 22px space. The trailing 32px is to the
 * right of the rightmost .available-update element. (When a vertical scrollbar is present it
 * consumes some of this trailing 32px.)
 */

#available-updates-container {
    padding: 21px 0;
}

.available-update {
    display: inline-block;
    width: 188px;
    margin-left: 32px;
    margin-right: -10px;
    margin-bottom: 35px;
}

.available-update > * {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.available-update > h2 {
    margin: 0;
    font-size: 11px;
}

.available-update > div {
    margin: 1px 0;
    font-size: 11px;
    color: gray;
}

.available-update > button {
    margin-left: 1px;
    margin-top: 6px;
}

body.platform-mac .available-update > button {
    height: 16px !important;
    padding: 1px 13px 3px 13px;
}

.available-update > img {
    float: left;
    width: 64px;
    margin-right: 5px;
}
