@CHARSET "UTF-8";

/**
 * Declare globally the vars that we use for: selectable, selectable fields, cart fields (.product-field-wrapper)
 * Just make a change here and will affect all the relevant style declarations
 */
.cf4all_wrapper, .dep_cf4all_wrapper, .cf4all_customvalues_wrapper, .product-field-wrapper {
    --margin-between-buttons: 0.4em;
    --button-background-color: #f4f4f4;
    --button-text-color: #555555;
    --button-border-color: #474949;
    --button-border-radius: 3px;
    --small-color-button-width:2em;
    --medium-color-button-width:2.5em;
    --notify-message-text-color: #ff0000;
    --tooltip-background-color: #ffffff;
    --tooltip-text-color: #000000;
    --tooltip-border-color: #ccc;
}

.cf4all_buttons input[type=radio],
.cf4all_buttons input[type=checkbox],
.cf4all_color_buttons input[type=radio],
.cf4all_color_buttons input[type=checkbox] {
    /*Some templates override that, hence is set to !important*/
    display: none !important;
}

/*This code is the same for buttons and color buttons*/
.cf4all_button {
    background-image: none !important;
    box-sizing: border-box;
    min-height: 1em;
    line-height: 1em;
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid var(--button-border-color);
    border-radius: var(--button-border-radius);
    margin-inline-end: var(--margin-between-buttons);
    margin-top: var(--margin-between-buttons);
}

.cf4all_button:hover {
    box-shadow: 0 0 1px 1px #bbb;
}

/*For non-colored buttons*/
.cf4all_no_color_btn {
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    padding: 0.5em 0.8em;
}

/* Active buttons */
.cf4all_buttons input[type="radio"]:checked + label,
.cf4all_buttons input[type="checkbox"]:checked + label,
.cf4all_color_buttons input[type="radio"]:checked + label,
.cf4all_color_buttons input[type="checkbox"]:checked + label {
    border: 2px solid var(--button-border-color) !important;
    box-shadow: 0 0 4px rgba(10, 10, 10, 0.5);
}

/* Disabled buttons */
.cf4all_buttons input[type="radio"]:disabled + label,
.cf4all_buttons input[type="checkbox"]:disabled + label,
.cf4all_color_buttons input[type="radio"]:disabled + label,
.cf4all_color_buttons input[type="checkbox"]:disabled + label {
    opacity: 0.5;
}

.cf4all_wrapper input[type="radio"], .dep_cf4all_wrapper input[type="radio"], .cf4all_wrapper input[type="checkbox"], .dep_cf4all_wrapper input[type="checkbox"] {
    position: static !important;
}

.cf4all_wrapper .radio.inline, .cf4all_wrapper .checkbox.inline, .dep_cf4all_wrapper .radio.inline, .dep_cf4all_wrapper .checkbox.inline {
    display: inline-block;
    min-height: 20px;
    vertical-align: middle;
}

.cf4all_color_btn {
    display: inline-block;
}

/*static*/
.inline-control-group {
    display: inline-block;
}

/*Colors are included within the color wrapper*/
.cf4all_inner_value {
    min-height: 2em;
    float: left;
}

.cf4all_color_btn_small {
    /* Do not set an exact width as this may not be enough for the inner-colors (multi-colored buttons) */
    min-width: var(--small-color-button-width);
    overflow: hidden;
}

.cf4all_color_btn_medium {
    width: var(--medium-color-button-width);
    overflow: hidden;
}

.cf4all_error_msg {
    color: var(--notify-message-text-color);
    clear: both;
    width: 100%;
}

/*
 These are the static buttons (static in product or in the cart page)
*/
.cf4all_customvalues_wrapper .cf4all_color_btn, .product-field-wrapper .cf4all_color_btn{
    border: 1px solid var(--button-border-color);
    margin-inline-end: var(--margin-between-buttons);
}

/*Tooltip*/
.cf4AllTip_inner {
    z-index: 1000;
    display: block;
    position: absolute;
    background: var(--tooltip-background-color);
    border: 1px solid var(--tooltip-border-color);
    padding: 0.5em;
    color: var(--tooltip-text-color);
}

.cf4all_color_btn_medium .cf4AllTip_inner {
    margin-top: 30px;
}

.cf4all_no_color_btn .cf4AllTip_inner {
    margin-top: 1em;
}

/* Style incompatible values */
.cf4all_incompatible {
    display: none !important;
}

.cf4all_incompatible + label {
    display: none !important;
}
