/**
 * Custom Style for Block Repeater Control
 *
 * @package Ogma News
 */
.ogma-news-block {
    background-color: #ffffff;
    margin-bottom: 15px;
}

.ogma-news-block .block-content-wrap {
    display: none;
}

.ogma-news-block .block-header {
    display: flex;
    border: none;
    align-items: center;
    border-radius: 2px;
    background: #f5f7f9;
    padding-left: 20px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.08);
}

.ogma-news-block .block-header .block-header-title {
    flex: 1 1 80%;
    padding: 0;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.ogma-news-block .block-header .block-header-icon {
    flex: 1 1 10%;
    text-align: center;
}

.ogma-news-block .block-content-wrap {
    padding: 15px;
}

.blocks-repeater-control-wrap input, .blocks-repeater-control-wrap select {
    border-radius: 0;
}

.blocks-repeater-control-wrap .block-name-list, .blocks-repeater-control-wrap .block-name-list .ogma-news-block {
    display: none;
}

.ogma-news-block.open .block-content-wrap {
    display: block;
}

/** Block Header **/
.block-header.content-trigger:hover {
    cursor: pointer;
}

.block-header.content-trigger .block-header-title:hover {
    cursor: all-scroll;
}

/** Repeater block remove button show/hide CSS **/

/*.blocks-repeater-control-wrap .news-featured-block-wrap .remove-block,
.blocks-repeater-control-wrap .ad-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-block-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-list-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-carousel-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-grid-block-wrap .remove-block {
  display: none !important;
}

.blocks-repeater-control-wrap .news-featured-block-wrap~.news-featured-block-wrap .remove-block,
.blocks-repeater-control-wrap .ad-block-wrap~.ad-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-block-block-wrap~.news-block-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-list-block-wrap~.news-list-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-carousel-block-wrap~.news-carousel-block-wrap .remove-block,
.blocks-repeater-control-wrap .news-grid-block-wrap~.news-grid-block-wrap .remove-block {
  display: inline-block !important;
}*/

/** Select field **/
.customize-text-field label, .customize-select-field label, .customize-number-field label, .customize-radio-image-field label, .customize-multicheckbox-field>label {
    color: #3B3B3B;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    padding-bottom: 5px;
    line-height: 16px;
    width: 165px;
    margin-right: 10px;
}

.radio-image-single {
    padding: 2px;
    border: 1px solid #e1e1e1;
}

.customize-radio-image-field label {
    padding-bottom: 0;
    width: 95px;
}

.customize-text-field p.description, .customize-select-field p.description, .customize-number-field p.description, .customize-radio-image-field p.description {
    font-size: 13px;
    font-style: italic;
    margin: 0 0 10px;
}

.customize-select-field, .customize-number-field, .customize-radio-image-field {
    margin-bottom: 15px;
    margin-top: 15px;
}

/*** Checkbox field **/
.customize-checkbox-field label {
    display: flex;
    align-items: center;
    font-weight: 500;
    padding-bottom: 10px;
}

.customize-checkbox-field input {
    order: 2;
}

.customize-checkbox-field p {
    flex: 1 1 80%;
    order: 1;
    font-size: 14px;
}

/** Action button **/
.block-content-wrap .action-buttons {
    text-align: right;
}

.block-content-wrap .action-buttons .close-block {
    background: #4ABBD5;
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

.block-content-wrap .action-buttons:hover {
    cursor: pointer;
}

.block-content-wrap .action-buttons .close-block {
    color: inherit;
    display: inline-block;
}

.block-content-wrap .action-buttons .remove-block {
    display: inline-block;
    border-left: 1px solid #b89393;
    padding-left: 4px;
    color: red;
    margin-top: 3px;
}

.blocks-repeater-control-wrap .block-header input.block-repeater-control-field {
    display: none;
}

.customize-radio-image-field p {
    margin: 0.5em;
}

.ogma-news-block.ogma-news-hide .block-header {
    border: 1px dashed #aaa;
    color: #aaa;
}

.ogma-news-block.ogma-news-hide .block-header .block-header-title {
    color: #aaa;
}

.lbl-tooltip {
    position: absolute;
    display: block;
    top: -40px;
    background: #333;
    color: #fff;
    padding: 6px 0;
    font-size: 10px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    left: 50%;
    width: 80px;
    text-align: center;
    margin-left: -40px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    pointer-events: none;
}

.customize-radio-image-field label.radio-image-single:hover .lbl-tooltip {
    opacity: 1;
    visibility: visible;
    top: -35px;
}

.lbl-tooltip::before {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    margin-left: -2px;
}

/** Adding Blocks **/
ul.block-name-list {
    display: block;
    background-color: rgb(255, 255, 255);
    margin: 15px 7px;
    box-sizing: border-box;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px dotted #2271b1;
}

ul.block-name-list li {
    font-size: 17px;
    font-weight: 500;
    border: 1px solid #857a7a;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
    border-radius: 3px;
}

ul.block-name-list li:hover {
    cursor: pointer;
    opacity: 0.9;
}

ul.block-name-list li:hover:after {
    content: 'Add';
    position: absolute;
    right: 0;
    bottom: 10px;
    font-size: 14px;
    background-color: #2271b1;
    color: #fff;
    padding: 4px 5px 4.5px 8px;
    border-radius: 15px 0 0 15px;
    vertical-align: middle;
    line-height: 13px;
}

/** Clone and add new block **/
.button.add-new-block .dashicons {
    display: inline-block;
    position: relative;
    left: -2px;
    top: 0px;
    font: 400 18px/1 dashicons;
    vertical-align: middle;
}

.button.clone-block:before {
    content: "\f515";
    display: inline-block;
    position: relative;
    left: -2px;
    top: 0px;
    font: 400 18px/1 dashicons;
    vertical-align: middle;
}

.button.add-new-block, .button.clone-block {
    margin: 0;
    background: #4abbd5;
    color: #fff;
    border-color: #4abbd5;
}

.button.add-new-block:hover, .button.clone-block:hover, .block-content-wrap .action-buttons .close-block:hover {
    background: #38aac4;
    color: #fff;
    border-color: #38aac4;
}

.radio-image-single img {
    width: 100%;
}

.radio-image-single {
    position: relative;
}

.radio-image-single.selected::after {
    content: "\f12a";
    display: inline-block;
    position: absolute;
    right: -10px;
    bottom: -10px;
    font: 900 25px/1 dashicons;
    vertical-align: middle;
    color: #4ABBD5;
}

/** Multicheckbox Control **/
.customize-multicheckbox-field .multicheckbox-content {
    border: 1px solid #c3c4c7;
    padding: 8px 10px;
    min-height: 200px;
    overflow-y: scroll;
}

.customize-multicheckbox-field .multicheckbox-content .multicheckbox-single-item {
    padding: 5px;
}

/* Social icon **/
#customize-control-site_ogma_news_social_icons .social-repeater-general-control-icon .customize-control-title {
    font-size: 18px;
    font-weight: 500;
}

#customize-control-site_ogma_news_social_icons .customize-control-title:after {
    display: none;
}

#customize-control-site_ogma_news_social_icons .customizer-repeater-box-content-hidden span.description {
    padding: 5px 0;
    font-size: 14px;
}

#customize-control-site_ogma_news_social_icons .icp-container .input-group-addon {
    position: relative;
    height: 20px;
    display: block;
    font-size: 25px;
}

#customize-control-site_ogma_news_social_icons .customizer-repeater-checkbox-control {
    margin-bottom: 0 !important;
}

#customize-control-site_ogma_news_social_icons span.customize-control-title {
    display: inline;
    font-weight: 400;
    font-size: 14px;
}

/*---- toggle field --*/
.block-repeater-toggle {
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 1px dashed #e1e1e1;
    padding-bottom: 10px;
}

.block-repeater-toggle .toggle-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: row;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: start;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.block-repeater-toggle .toggle-wrapper .toggle-title {
    flex: 1 1 80%;
}

.block-repeater-toggle .toggle-wrapper input[type=checkbox] {
    display: none;
}

.block-repeater-toggle .toggle-wrapper label {
    background-color: #555d66;
    border-radius: 14px;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    outline: none;
    position: relative;
    right: 0px;
    top: 2px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 34px;
}

.block-repeater-toggle .toggle-wrapper label::after, .block-repeater-toggle .toggle-wrapper label::before {
    content: "";
    display: block;
    position: absolute;
}

.block-repeater-toggle .toggle-wrapper label::after {
    border: 2px solid #555d66;
    border-radius: 50%;
    box-sizing: border-box;
    height: 12px;
    left: 4px;
    top: 4px;
    -webkit-transition: background 0.2s ease, -webkit-transform 0.2s ease;
    transition: background 0.2s ease, -webkit-transform 0.2s ease;
    transition: transform 0.2s ease, background 0.2s ease;
    transition: transform 0.2s ease, background 0.2s ease, -webkit-transform 0.2s ease;
    width: 12px;
}

.block-repeater-toggle .toggle-wrapper label::before {
    background-color: #eee;
    border-radius: 60px;
    bottom: 2px;
    left: 2px;
    right: 2px;
    top: 2px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.block-repeater-toggle .toggle-wrapper input[type=checkbox]:checked+label {
    background-color: #4ABBD5;
}

.block-repeater-toggle .toggle-wrapper input[type=checkbox]:checked+label::after {
    background-color: #4ABBD5;
    border: 2px solid #fff;
    -webkit-transform: translateX(14px);
    -ms-transform: translateX(14px);
    transform: translateX(14px);
}

.block-repeater-toggle .toggle-wrapper input[type=checkbox]:checked+label::before {
    background-color: #4ABBD5;
}

.block-repeater-toggle:hover .toggle-wrapper label::before {
    background-color: #d9dcdf;
}

.ogma-news-block .block-header .block-settings, .ogma-news-block .block-header .block-header-toggle {
    background: #fff;
    padding: 12px 12px;
    border: 1px solid #e1e1e1;
    margin-left: 6px;
    border-top: none;
    border-bottom: none;
    margin: 0;
    border-right: none;
    font-size: 20px;
}

.ogma-news-block .block-header .block-settings:hover, .ogma-news-block .block-header .block-header-toggle:hover {
    color: #4ABBD5;
}

.ogma-news-block.ad-block-wrap .customize-radio-image-field .radio-image-single {
    border: 1px solid #e1e1e1;
    padding: 2px;
}

.ogma-news-block.ad-block-wrap .customize-upload-image-field {
    border: 1px dashed #bfbfbf;
    padding: 15px 15px;
}

.ogma-news-block.ad-block-wrap .customize-upload-image-field>label, .ogma-news-block.ad-block-wrap .customize-url-field>label {
    text-align: center;
    display: block;
    color: #212121;
    font-weight: 600;
}

.ogma-news-block.ad-block-wrap .customize-upload-image-field .placeholder {
    text-align: center;
    margin: 10px 0;
}

.ogma-news-block.ad-block-wrap .customize-url-field {
    margin-top: 20px;
}

.ogma-news-block.ad-block-wrap .customize-url-field>label {
    text-align: left;
    margin-bottom: 5px;
}

.ogma-news-block.ad-block-wrap .customize-toggle-field {
    margin-top: 12px;
}

.field-group-wrapper {
    display: none;
}

.group-toggle-wrapper {
    position: relative;
    margin-top: 15px;
}

.field-group-wrapper {
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    width: 80%;
    z-index: 99;
    padding: 5px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.block-query-group {
    display: flex;
    align-items: center;
}

.block-query-group>label {
    font-weight: 600;
    color: #3B3B3B;
    font-size: 14px;
}

.block-query-group .group-trigger {
    margin-left: auto;
    border: 2px solid #4ABBD5;
    color: #4ABBD5;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 100%;
    cursor: pointer;
}

.block-query-group .group-trigger:hover {
    border-color: #4ABBD5;
    background: #4ABBD5;
    color: #fff;
}

.field-group-wrapper .select2-container {
    display: block;
    margin-top: 10px;
}

.field-group-wrapper::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: -0.5em;
    top: 2px;
    right: -8px;
    box-sizing: border-box;
    border: 8px solid #333;
    border-color: transparent transparent #fff #fff;
    transform-origin: 0 0;
    transform: rotate(135deg);
    box-shadow: -3px 3px 3px 0 rgba(0, 0, 0, 0.1);
}
