/**
 * Defaults
 * Generic classes, resets, etc.
 */

/** Parent element, containing elements */
#scms-cc-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
    width: 100vw;
    text-align: left;
    box-shadow: 0 8px 6px 7px rgba(0, 0, 0, 0.5);
    color: #a6a6a6;
    background-color: #232323;
}

.cb-content-row {
    max-width: 1360px;
    margin: 0 auto;
}

#scms-cc-cookie-bar .cb-content-container {
    padding: 30px 15px 27px;
    font-size: 16px;
}

/** Button layout */
#scms-cc-cookie-bar .cb-button {
    display: inline-block;
    position: relative;
    margin-bottom: 3px;
    padding: 6px 14px;
    text-decoration: none;
    text-align: left;
    background-color: #898989;
    background-repeat: repeat-x;
    border: 2px solid #898989;
    -webkit-transition: 0.1s linear all;
    transition: 0.1s linear all;
    overflow: visible; /** Fixes width bug in IE7 and down */
    line-height: 1.2;
}

#scms-cc-cookie-bar .cb-button-primary,
#scms-cc-cookie-bar .cb-button-primary:hover,
#scms-cc-cookie-bar .cb-button-primary:visited {
    text-decoration: none;
    color: #fff;
    border-color: #ff003c;
    background-color: #ff003c;
    background-repeat: repeat-x;
    border-radius: 1.5em;
    font-weight: bold;
    display: block;
    text-align: center;
}

#scms-cc-cookie-bar .cb-button-tertiary,
#scms-cc-cookie-bar .cb-button-tertiary:hover,
#scms-cc-cookie-bar .cb-button-tertiary:visited {
    display: none;
}

#scms-cc-cookie-bar .cb-button:hover {
    background-position: 0 -15px;
}

/**
 * Content & grid settings
 * Generic classes related to bar-content & -grid
 */

/** Content row */
#scms-cc-cookie-bar.cb-open .cb-content-row {
    margin-bottom: 1em;
    padding: 0 0 1em;
}

#scms-cc-cookie-bar.cb-open .cb-content-row-2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/** Content holder */
#scms-cc-cookie-bar .cb-content {
    position: relative;
    width: 100%;
}

#scms-cc-cookie-bar .cb-content-left {
    flex: 0 55%;
    /** Prevent double margin bug in IE6 */
}

#scms-cc-cookie-bar.cb-open .cb-content-left {
    width: 80%;
}

#scms-cc-cookie-bar .cb-content-right {
    flex: 0 40%;
}

/** Content row headings */
#scms-cc-cookie-bar h2 {
    position: absolute;
    left:  -999em;
}

#scms-cc-cookie-bar h3,
#scms-cc-cookie-bar label {color: #fff;font-weight: 700;}

/** Cookie bar content layout */
#scms-cc-cookie-bar p {
    margin: 0 0 3px;
    text-indent: 0;
}


#scms-cc-cookie-bar a,
#scms-cc-cookie-bar a:hover,
#scms-cc-cookie-bar a:visited,
#scms-cc-cookie-bar a:focus {
    color: #fff;
}

#scms-cc-cookie-bar a:hover {
    text-decoration: underline;
}

#scms-cc-cookie-bar strong {
    display: inline;
    font-weight: bold;
    color: #fff;
}

@media all and (max-width: 740px) {
    #scms-cc-cookie-bar h2 {
        position: static;
        width: auto;
        text-align: left;
        color: #fff;
        padding: 0;
    }

    #scms-cc-cookie-bar .cb-inner-content {
        padding: 0;
    }

    #scms-cc-cookie-bar .cb-content-right {
        margin: 1em 0 0 0;
    }
}

@media all and (max-width: 500px) {
    #scms-cc-cookie-bar {
        position: absolute;
        top: 0;
        bottom: auto;
        border-top: 0;
    }

    #scms-cc-cookie-bar p,
    #scms-cc-cookie-bar strong {
        font-size: .8em;
    }

    .scms-cookie-control .cb-button {
        margin-bottom: 5px;
        padding: 8px 14px;
    }
}

/**
 * .cb-buttons
 * Button container in notice row
 */

#scms-cc-cookie-bar .cb-buttons .cb-inner-content {
    padding: 0;
    text-align: center;
}

#scms-cc-cookie-bar.cb-open .cb-buttons {
    display: none;
}

div.cb-buttons a,
div.cb-buttons button {
    text-decoration: underline
}

/**
 * .cb-cookie-settings
 * Second row which contains actual cookie settings
 */

/** Toggle cookie settings visibility */
#scms-cc-cookie-bar .cb-content-row-2 {
    display: none;
}

#scms-cc-cookie-bar.cb-open .cb-content-row-2 {
    display: block;
}

/** Form */
#scms-cc-cookie-bar.cb-open .cb-content-row-2 fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

/** Settings form */
#scms-cc-cookie-bar .cb-cookie-settings ol {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

#scms-cc-cookie-bar .cb-cookie-settings li {
    position: relative;
    float: left;
    width: calc(33.33% - 10px);
    min-height: 100px;
    margin: 0 10px 10px 0;
    padding: 10px 10px 10px 10px;
    box-shadow: -1px 0 0 0 #626262;
}

@media all and (max-width: 910px) {
    #scms-cc-cookie-bar .cb-cookie-settings ol {
        display: block;
    }

    #scms-cc-cookie-bar .cb-cookie-settings li {
        clear: left;
        width: 100%;
        margin-right: 0;
        padding-right: 50px;
    }
}

#scms-cc-cookie-bar.cb-js .cb-cookie-settings li {
    cursor: pointer;
}

#scms-cc-cookie-bar.cb-js .cb-cookie-settings .cb-cookies-always-on,
#scms-cc-cookie-bar.cb-js .cb-cookie-settings .cb-cookies-always-on label,
#scms-cc-cookie-bar.cb-js .cb-cookie-settings .cb-cookies-always-on .cb-onoffswitch {
    cursor: default;
}

/** Checkboxes */
#scms-cc-cookie-bar .cb-onoffswitch-checkbox {
    width: auto;
    height: auto;
    margin-top: -2px;
    padding: 0;
    vertical-align: middle;
}

/** On / off switches */
#scms-cc-cookie-bar .cb-onoffswitch {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 55px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: none;
}

#scms-cc-cookie-bar .cb-onoffswitch-wrapper {
    overflow: hidden;
    border: 2px solid #fff;
}

#scms-cc-cookie-bar .cb-onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    -webkit-transition: margin 0.3s ease-in 0s;
    transition: margin 0.3s ease-in 0s;
}

#scms-cc-cookie-bar .cb-onoffswitch-inner span {
    display: block;
    float: left;
    width: 50%;
    height: 20px;
    padding: 0;
    font-size: 12px;
    color: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#scms-cc-cookie-bar .cb-onoffswitch-inner .cb-onoffswitch-active {
    padding-right: 17px;
    text-align: center;
    background-color: #3d8830;
    color: #fff;
}

#scms-cc-cookie-bar .cb-onoffswitch-inner .cb-onoffswitch-inactive {
    padding-left: 17px;
    background-color: #eee;
    color: #777;
    text-align: center;
    text-shadow: 1px 1px 1px #fff;
}

#scms-cc-cookie-bar .cb-onoffswitch-switch {
    display: block;
    position: absolute;
    top: 6px;
    right: 34px;
    width: 10px;
    height: 10px;
    margin: 0;
    background: #ccc;
    border: 2px solid #999;
    border-radius: 15px;
    -webkit-transition: all 0.3s ease-in 0s;
    transition: all 0.3s ease-in 0s;
}

#scms-cc-cookie-bar .cb-cookies-enabled .cb-onoffswitch-inner {
    margin-left: 0;
}

#scms-cc-cookie-bar .cb-cookies-enabled .cb-onoffswitch-switch {
    right: 6px;
}

.cb-buttonLink {
    padding: 1em 1em 0 0;
    border: 0;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: none;
    display: inline-block;
    margin: auto;
}