/**
 * Colors and extras
 *
 * @package    Onix template
 * @author     Alejandro Caballero - lava.caballero@gmail.com
 */

/* References */

.ref-color0 { color: var(--ref-color0); } /* Normal text */
.ref-color1 { color: var(--ref-color1); } /* Headings */
.ref-color2 { color: var(--ref-color2); } /* Links on dark backgrounds, bold in headings */
.ref-color3 { color: var(--ref-color3); } /* Links on light backgrounds */
.ref-color4 { color: var(--ref-color4); } /* Buttons, post rating stars, big highlight characters, lines */
.ref-color5 { color: var(--ref-color5); } /* Content frames, sidebars */
.ref-color6 { color: var(--ref-color6); } /* Footer bullets */

/* Base style overrides */

h1, h2, h3, h4, h5 { color: white; }

.ui-widget-content h1,
.ui-widget-content h2,
.ui-widget-content h3,
.ui-widget-content h4,
.ui-widget-content h5 { color: var(--ref-color1); }

a, a:link, .pseudo_link { text-decoration: none; } 
a:link,            .pseudo_link                            { color: var(--ref-color2); }
a:visited,         .pseudo_link:visited                    { color: var(--ref-color2); }
a:active, a:hover, .pseudo_link:active, .pseudo_link:hover { color: var(--ref-color2); text-decoration: underline; }

a.disabled, .pseudo_link.disabled { text-decoration: none; }

.nav_table tr td .pseudo_link code ,
.nav_table tr td .pseudo_link code a ,
.nav_table tr td code.pseudo_link  ,
.nav_table tr td code .pseudo_link { color: black; }

a.framed_content, a.framed_content:hover, a.framed_content:active,
.pseudo_link.framed_content, .pseudo_link.framed_content:hover,
a.buttonized:link, a.buttonized:hover, a.buttonized:active { color: black; text-decoration: none; }

.framed_content a, .framed_content a:hover, .framed_content a:active,
.framed_content .pseudo_link, .framed_content .pseudo_link:hover,
.buttonized a:link, .buttonized a:hover, .buttonized a:active { color: black; }

.framed_content a:hover, .framed_content a:active,
.framed_content .pseudo_link:hover,
.buttonized a:hover, .buttonized a:active { text-decoration: underline; }

#header { color: white; background: black; }
#footer { color: white; background: black url('v2/footer-girl.jpg') bottom right no-repeat;
          background-size: contain; }
@media all and (max-width: 720px) {
    #footer {
        background-image:    var(--black-pixel-50), url('v2/footer-girl.jpg');
        background-repeat:   no-repeat, no-repeat;
        background-position: top left, 75% bottom;
        background-size:     100% 100%, auto 450px;
    }
}

#header a, #header .pseudo_link { color: var(--ref-color2); }
#footer a, #footer .pseudo_link { color: var(--ref-color2); }
#footer a:hover, #footer .pseudo_link:hover { color: white; text-decoration: none; }
#footer a:active, #footer .pseudo_link:active { color: white; }

#header #menu_holder          { display: flex; flex-wrap: nowrap; align-items: stretch; align-content: stretch;
                                padding-top: 10px; padding-bottom: 20px; }
#header #__main_menu_logo img { height: 70px; margin-left: 10px; margin-top: 5px; }

#header .menu                 { padding-top: 24px; margin-left: 10px; margin-right: 10px; flex-grow: 1;
                                text-align: center; }
#header .menu > *             { vertical-align: top; }

@media all and (max-width: 700px) {
    #header #__main_menu_logo img { height: 60px; margin-left: 20px; }
    #header #menu_holder          { padding-top: 5px; padding-bottom: 10px; }
    #header .menu                 { padding-top: 20px; }
}

#header .main_menu_item               { padding-left: 20px; padding-right: 20px; }
#header #main_menu_trigger            { padding-left: 20px; padding-right: 0; }
#header .main_menu_item               ,
#header .main_menu_item:link          { color: var(--ref-color2);         background-color: black; }
#header .main_menu_item:hover         { color: white;                     background-color: black; }
#header .main_menu_item.current       { color: var(--ref-color2-lighter); background-color: black; }
#header .main_menu_item.current:hover { color: yellow;                    background-color: black; }

#header .main_menu_item.highlighted               ,
#header .main_menu_item.highlighted:link          { color: white;                     background-color: var(--ref-color2); text-shadow: 0 0 1px black; }
#header .main_menu_item.highlighted:hover         { color: yellow;                    background-color: var(--ref-color2); text-shadow: 0 0 1px black; }
#header .main_menu_item.highlighted.current       { color: var(--ref-color2-lighter); background-color: var(--ref-color2); text-shadow: 0 0 1px black; }
#header .main_menu_item.highlighted.current:hover { color: yellow;                    background-color: var(--ref-color2); text-shadow: 0 0 1px black; }

#header .main_menu_item.alerted               { color: maroon; background-color: yellow; }
#header .main_menu_item.alerted:link          { color: maroon; }
#header .main_menu_item.alerted:hover         { color: red;    }
#header .main_menu_item.alerted.current       { color: red;    }
#header .main_menu_item.alerted.current:hover { color: red;    }

#header .main_menu_item.alerted       .fa.fa-border { border-color: maroon; }
#header .main_menu_item.alerted:hover .fa.fa-border { border-color: red;    }

#header .main_menu_item.submenu_visible              { color: var(--ref-color2-lighter); background-color: black; }
#header .main_menu_item.submenu_visible:hover        { color: yellow;                    background-color: black; }

#header .main_menu_item#main_menu_trigger            { color: var(--ref-color2); }
#header .main_menu_item#main_menu_trigger:hover      { color: white; }

#main_menu_trigger.open, #main_menu_trigger.open:hover { color: white; background-color: transparent; }

.dropdown_menu                               { color: white; background: linear-gradient(black, black) padding-box, var(--ref-border-gradient) border-box;
                                               border: 2px solid transparent;
                                               border-radius: 10px; box-shadow: 0 6px 12px black; }
.dropdown_menu .main_menu_item               ,
.dropdown_menu .main_menu_item:link          { color: var(--ref-color2);         background-color: black; }
.dropdown_menu .main_menu_item:hover         { color: white;                     background-color: var(--ref-gray); }
.dropdown_menu .main_menu_item.current       { color: var(--ref-color2-lighter); background-color: black; }
.dropdown_menu .main_menu_item.current:hover { color: yellow;                    background-color: black; }

.dropdown_menu .main_menu_item.highlighted               ,
.dropdown_menu .main_menu_item.highlighted:link          { color: white;                     background-color: var(--ref-color2); text-shadow: 0 0 1px black; }
.dropdown_menu .main_menu_item.highlighted:hover         { color: yellow;                    background-color: var(--ref-color2); text-shadow: 0 0 1px black; }
.dropdown_menu .main_menu_item.highlighted.current       { color: var(--ref-color2-lighter); background-color: var(--ref-color2); text-shadow: 0 0 1px black; }
.dropdown_menu .main_menu_item.highlighted.current:hover { color: yellow;                    background-color: var(--ref-color2); text-shadow: 0 0 1px black; }

.dropdown_menu .main_menu_item:first-child { border-top-left-radius:    10px; border-top-right-radius:    10px; }
.dropdown_menu .main_menu_item:last-child  { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }

.framed_content                 { border: 2px solid whitesmoke; background-color: #fafafa; color: black; }
.framed_content.state_disabled  { background-color: silver;  border-color: #a7a7a7;  color: #585858; }
.framed_content.state_warning   { background-color: #FFF8CF; border-color: #eadc8d; color: black;   }
.framed_content.state_ko        { background-color: #F6E5E4; border-color: #d7b6b3; color: black;   }
.framed_content.state_ok        { background-color: #DFFFDF; border-color: #aeecae; color: black;   }
.framed_content.state_highlight { background-color: #fff1a0; border-color: #f1e393; color: black;   }
.framed_content.state_active    { background-color: var(--ref-color2);         border-color: var(--ref-color2-darker); color: black;  }
.framed_content.state_hover     { background-color: var(--ref-color2-lighter); border-color: var(--ref-color2);        color: yellow; }

.framed_content.state_hover:hover { background-color: var(--ref-color2);         border-color: var(--ref-color2-darker); color: black;  }
.framed_radios label:hover        { background-color: var(--ref-color2);         border-color: var(--ref-color2-darker); color: black;  }

section > h1 { color: black; background-color: var(--ref-color2); border: 2px solid var(--ref-color2-darker); }
section > h2 { color: black; background-color: var(--ref-color2); border: 2px solid var(--ref-color2-darker); }
section > h3 { color: black; background-color: var(--ref-color2); border: 2px solid var(--ref-color2-darker); }

section > h1 a, section > h1 .pseudo_link, section > h1 .pseudo_link:hover { color: white; }
section > h2 a, section > h2 .pseudo_link, section > h2 .pseudo_link:hover { color: white; }
section > h3 a, section > h3 .pseudo_link, section > h3 .pseudo_link:hover { color: white; }

.table_wrapper.scrolling { border-left: 2px dotted var(--ref-color2); border-right: 2px dotted var(--ref-color2); }

/* Base admin overrides */

#admin_menu { color: white; background-color: var(--ref-color2-darker); }

#admin_menu .admin_bar_title { color: white; }

#admin_menu .item       { color: white; }
#admin_menu .item:hover { color: white; background-color: var(--ref-color2); }

#admin_menu .item.current       { color: dimgrey; background-color: white; }
#admin_menu .item.current:hover { color: dimgrey; background-color: #e7e7e7; }

#admin_menu_trigger.open { color: var(--ref-color2-darker); background-color: white; }

body.admin h1 { color: black; background-color: var(--ref-color2); border-color: var(--ref-color2); border-radius: 5px; }
body.admin h2 { color: black; background-color: var(--ref-color2); border-color: var(--ref-color2); border-radius: 5px; }
body.admin h3 { color: black; background-color: var(--ref-color2); border-color: var(--ref-color2); border-radius: 5px; }

/* Normal links in admin headings */

body.admin h1 a, body.admin h1 .pseudo_link { color: black; }
body.admin h2 a, body.admin h2 .pseudo_link { color: black; }
body.admin h3 a, body.admin h3 .pseudo_link { color: black; }

body.admin h1 a:hover, body.admin h1 .pseudo_link:hover { color: yellow; }
body.admin h2 a:hover, body.admin h2 .pseudo_link:hover { color: yellow; }
body.admin h3 a:hover, body.admin h3 .pseudo_link:hover { color: yellow; }

/* Framed content links in admin headings */

body.admin h1 a.framed_content,       body.admin h1 .pseudo_link.framed_content,       body.admin h1 button       { color: var(--ref-color2-darker); background: white; border-color: var(--ref-color2-darker); }
body.admin h2 a.framed_content,       body.admin h2 .pseudo_link.framed_content,       body.admin h2 button       { color: var(--ref-color2-darker); background: white; border-color: var(--ref-color2-darker); }
body.admin h3 a.framed_content,       body.admin h3 .pseudo_link.framed_content,       body.admin h3 button       { color: var(--ref-color2-darker); background: white; border-color: var(--ref-color2-darker); }

body.admin h1 a.framed_content:hover, body.admin h1 .pseudo_link.framed_content:hover, body.admin h1 button:hover { color: black; }
body.admin h2 a.framed_content:hover, body.admin h2 .pseudo_link.framed_content:hover, body.admin h2 button:hover { color: black; }
body.admin h3 a.framed_content:hover, body.admin h3 .pseudo_link.framed_content:hover, body.admin h3 button:hover { color: black; }

body.admin h1 a.framed_content.state_active, body.admin h1 .pseudo_link.framed_content.state_active { background-color: var(--ref-color2-lighter); border-color: var(--ref-color2-darker); color: black; }
body.admin h2 a.framed_content.state_active, body.admin h2 .pseudo_link.framed_content.state_active { background-color: var(--ref-color2-lighter); border-color: var(--ref-color2-darker); color: black; }
body.admin h3 a.framed_content.state_active, body.admin h3 .pseudo_link.framed_content.state_active { background-color: var(--ref-color2-lighter); border-color: var(--ref-color2-darker); color: black; }

body.admin h1 a.framed_content.state_active:hover, body.admin h1 .pseudo_link.framed_content.state_active:hover { background-color: var(--ref-color2-darker); border-color: var(--ref-color2-darker); color: white; }
body.admin h2 a.framed_content.state_active:hover, body.admin h2 .pseudo_link.framed_content.state_active:hover { background-color: var(--ref-color2-darker); border-color: var(--ref-color2-darker); color: white; }
body.admin h3 a.framed_content.state_active:hover, body.admin h3 .pseudo_link.framed_content.state_active:hover { background-color: var(--ref-color2-darker); border-color: var(--ref-color2-darker); color: white; }

hr          { border-style: solid; border-color: var(--ref-color2); opacity: 0.33;  }
#footer hr  { border-style: solid; border-color: white; opacity: 0.33; }
#footer .bullet { color: var(--ref-color2); margin-left: 10px; }
#footer h1, #footer h2, #footer h3 { color: white; font-size: 14pt; font-weight: bold; margin-top: 0; }

@media all and (max-width: 720px) {
    #footer h1, #footer h2, #footer h3 { margin-top: 20px; }
}

/* Responsiveness */

@media all and (max-width: 480px) {
    #header #menu_holder      { text-align: center; flex-wrap: wrap; }
    #header #__main_menu_logo { /* width: 100%; text-align: center; */ }
    #header .menu             { /* width: 100%; padding-top: 10px; margin-left: 0; margin-right: 0; */ }
}

@media all and (min-width: 1280px) { #header #menu_holder, #footer .custom_placed { padding-left: 80px; padding-right: 80px; } }

body.admin #header, body.admin #content_wrapper, body.admin #footer { padding-left: 0; padding-right: 0; }

/* Buttons */

.buttonized                   { display: inline-block; padding: 10px 20px; margin: 10px; font-size: 0.8em;
                                border: 1px solid; border-radius: 10px; text-decoration: none; }
.buttonized                   { color: black;             border-color: var(--ref-color2); background-color: var(--ref-color2); }
.buttonized.inverted          { color: var(--ref-color2); border-color: var(--ref-color2); background-color: black; }
.buttonized.highlighted       { color: white;   border-color: var(--ref-color2); background-color: var(--ref-color2); }
.buttonized.dark              { color: white;   border-color: white;   background-color: var(--ref-gray); }
a.buttonized:hover            ,
.pseudo_link.buttonized:hover { color: var(--ref-color2); border-color: var(--ref-color2); background-color: white; text-decoration: none; }

button, input[type="button"], input[type="reset"] {
    font-size: 0.8em; font-weight: bold;
    border: 1px solid var(--ref-color2); border-radius: 3px;
    color: black; background-color: var(--ref-color2);
}

a.framed_content, .framed_content.pseudo_link { border-radius: 3px; }

body.admin button, body.admin input[type="button"], body.admin input[type="reset"] {
    font-weight: normal;
}

td button, td input[type="button"], td input[type="reset"] ,
th button, th input[type="button"], th input[type="reset"] ,
h1 button, h1 input[type="button"], h1 input[type="reset"] ,
h2 button, h2 input[type="button"], h2 input[type="reset"] ,
h3 button, h3 input[type="button"], h3 input[type="reset"] {
    font-weight: normal;
}

body.admin h1 button, body.admin h1 input[type="button"], body.admin h1 input[type="reset"] ,
body.admin h2 button, body.admin h2 input[type="button"], body.admin h2 input[type="reset"] ,
body.admin h3 button, body.admin h3 input[type="button"], body.admin h3 input[type="reset"] {
    font-weight: normal;
}

button:hover,  input[type="button"]:hover,  input[type="reset"]:hover  ,
button:active, input[type="button"]:active, input[type="reset"]:active {
    color: var(--ref-color2);
    background-color: white;
}

button[disabled], input[type="button"][disabled], input[type="reset"][disabled],
.buttonized[disabled], .buttonized.disabled {
    filter: grayscale(100); color: white; opacity: 0.5; pointer-events: none;
}

/* Other additions */

.meta_section .post_ratings_container          .stars i          { color: var(--ref-color2); text-shadow: none; }
.meta_section .post_ratings_container          .stars i.hovered  { color: var(--ref-color2-lighter); }
.meta_section .post_ratings_container.inactive .stars i          { color: var(--ref-color2); }

body.home #content, body.main #content, body.admin #content { padding-left: 20px; padding-right: 20px; }
#content_wrapper { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; }
@media all and (max-width: 480px) {
    #content_wrapper { display: block; }
    body.home #content, body.main #content, body.admin #content { padding: 5px 5px 0 5px; }
}

body.admin #content_wrapper { display: block; }
body.popup #content_wrapper { display: block; }

#right_sidebar .widget[data-type="search"] .content              { padding: 0 !important; }
#right_sidebar .widget[data-type="search"] .sidebar_search       { padding: 0 !important; }

#right_sidebar .widget[data-type="login"] .content {
    color: white; background-color: #696969; border-radius: 4px; padding: 10px;
}

#right_sidebar .widget[data-type="login"] .content a,
#right_sidebar .widget[data-type="login"] .content .pseudo_link { color: var(--ref-color2) }

.ellipsified { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#content.no_left_sidebar.no_right_sidebar { width: calc(100% - 3px); }
/*.disabled { pointer-events: none; }*/

#user_profile_tabs .tab.current { color: white; background-color: var(--ref-color4); }

#triklet_conversation .messages .contents .text blockquote { color: black; background-color: whitesmoke; border-left: 5px solid gray; }
#triklet_conversation .messages .panel.internal            { color: black; }

/* Shop styles copied from the AOC template */

.products_scroller_container { background-color: black; }

.product_box                    { color: white; background-color: black; box-shadow: 0 0 20px silver; }
.product_box:hover              { background-color: #131313; }
.product_box.featured           { background-color: #291d07; }
.product_box.featured:hover     { background-color: #443107; }

.product_box .thumbnail { height: 360px; background-color: black; background-size: contain; }

.products_scroller .product_box .thumbnail { height: 332px; }

#shops_list .product_box .thumbnail { height: 220px; background-size: contain; }

.product_box .title        { font-size: 1.4em; }
/*.product_box .category     { display: none; }*/
.product_box .product_meta { color: white; }
.product_box .price        { color: white; font-size: 1.2em; line-height: normal; }

.product_box .actions .action.add_to_wishlist       { color: skyblue; }
.product_box .actions .action.add_to_wishlist:hover { color: lightcyan; background-color: navy; }

.product_box .actions .action.add_to_cart           { color: green; }
.product_box .actions .action.add_to_cart:hover     { color: lightgreen; }

.product_box a:link    { color: var(--ref-color2) !important; }
.product_box a:visited { color: var(--ref-color2) !important; }
.product_box a:hover   { color: var(--ref-color2) !important; }

#product_info .main_section { align-items: center; }

/*#product_info .title_section .main_category { display: none; }*/

#product_info .main_section .product_media .media_box             { background: transparent; border: none;
                                                                    width: 100%; height: 100%; max-height: unset;
                                                                    position: relative; overflow: visible; }
#product_info .main_section .product_media .media_item            { position: relative; left: 0; top: 0;
                                                                    margin-left: 50%;
                                                                    -webkit-transform: translateX(-50%);
                                                                    -ms-transform:     translateX(-50%);
                                                                    transform:         translateX(-50%);
                                                                    border-radius: 10px; }
#product_info .main_section .product_media .media_item.horizontal { width:  100%; max-width: 300px; height: unset; }
#product_info .main_section .product_media .media_item.vertical   { width:  100%; max-width: 300px; height: unset; }

#product_info .main_section .basic_details                    { text-align: left; }
#product_info .main_section .basic_details .onix_price        ,
#product_info .main_section .basic_details .price             ,
#product_info .main_section .basic_details .add_buttons       ,
#product_info .main_section .basic_details .available         { text-align: left; }
#product_info .main_section .basic_details .short_description { font-size: 1.2em; line-height: normal;
                                                                text-align: left; }

#product_info .main_section .basic_details .onix_price        ,
#product_info .main_section .basic_details .price             { font-size: 1.3em; line-height: normal; }

#product_info .main_section .basic_details .add_buttons button { margin-left: 0; padding: 5px 10px; }

#product_info .full_details_section .long_description { font-size: 1.2em; line-height: normal; }

button.add_to_wishlist { font-size: 1.2em; }

body[data-page-tag="bardcommerce_orders"] h1 { display: none; }
body[data-page-tag="bardcommerce_orders"] .history_orders .order_details h3 .framed_content.state_ok { display: none; }
body[data-page-tag="bardcommerce_orders"] .order_products .order_product_item img                { height: 6em; }
body[data-page-tag="bardcommerce_orders"] .order_products .order_product_item                    { clear: both; height: 6.1em; }
body[data-page-tag="bardcommerce_orders"] .order_products .order_product_item .line:nth-child(2) { padding-top: 1.6em; }

body[data-page-tag="bardcommerce_orders"] .orders_listing hr      { opacity: 0; }
body[data-page-tag="bardcommerce_orders"] .orders_listing button  { font-size: 1.1em; padding: 4px 8px; margin: 5px; }

body[data-page-tag="bardcommerce_orders"] .invoice_data button { line-height: 24px; }
