.cpbwc-top-bar {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cpbwc-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpbwc-container {
    width: 97%;
    margin: 0 auto;
}

.cpbwc-top-bar-left, 
.cpbwc-top-bar-center, 
.cpbwc-top-bar-right {
    display: inline-block
}

.cpbwc-top-bar-right .dashicons {
    vertical-align: text-top;
}

.cpbwc-top-bar-center img {
    display: block;
    width: 202px;
}

.cpbwc-advance-builder .button {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 5px;
}

.cpbwc-advance-builder .button-primary {
    background-color: #e40f0a;
    color: #ffffff;
}

.cpbwc-price-container {
    padding: 6px 10px;
    font-weight: 600;
    font-size: 20px;
    vertical-align: middle;
}

.cpbwc-price-container .dashicons {
    color: #7c7c7c;
    vertical-align: sub;
    font-size: 25px;
    margin-right: 8px;
}

.cpbwc-advance-container {
    display: flex;
    height: max-content;
}

.cpbwc-ts-container {
    display: contents;
}

.cpbwc-options-container, 
.cpbwc-canvas-container,
.cpbwc-tabs-container,
.cpbwc-sections-container {
    display: flex;
}

.cpbwc-options-container {
    flex: 0 0 25%;
    background-color: #f0f0f0;
}

.cpbwc-canvas-container {
    flex: 1;
    background-color: #ffffff;
    padding-top: 15px;
}

.cpbwc-tabs-container {
    flex: 0 0 15%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 0px 3px;
    border-right: 1px solid #e5e5e5;
}

.cpbwc-tab {
    color: #222222;
    text-align: center;
    font-size: 13px;
    padding: 10px 4px;
    margin-top: 8px;
    cursor: pointer;
}

.cpbwc-tab.active {
    background-color: #eeeeee;
    border-radius: 6px;
}

.cpbwc-sections-container {
    flex: 1;
    background-color: #ffffff;
    border-right: 1px solid #e5e5e5;
    overflow: scroll;
    height: 83vh;
}

.cpbwc-section {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cpbwc-advance-container,
    .cpbwc-ts-container {
        flex-direction: column;
    }
    .cpbwc-options-container, 
    .cpbwc-canvas-container,
    .cpbwc-tabs-container,
    .cpbwc-sections-container {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Advance Builder CSS */
.wrapper_canvas {
    width: 45%;
    margin: 0 auto;
    position: relative;
    background: #eeeeee;
    border-radius: 4px;
}

.amm_canvas{
    position:relative;
    z-index: 0;
    display: none;
    background: #eeeeee;
}
 .imageBoxDR,
 .boxDR{
 z-index: 2;
 background-color: rgb(0, 0, 0);
 /*RGBa with 0.6 opacity*/ 
background-color: rgba(0, 0, 0, 0);
 /*For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#00000000);
 /*For IE 8*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000, endColorstr=#00000000)";  
 
 }
 .virtual_textfill{
visibility: hidden;
 }

 .amm-color-picker{
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    margin: 2px 5px;
}
.amm-color-picker::-webkit-color-swatch-wrapper {
	padding: 0;
}
.amm-color-picker::-webkit-color-swatch {
	border: none;
}

 #boxDR0{
    
 }
 #boxDR1{
    bottom: 0;
 }

 .wrapper-memes-main{
    /*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between; 
 }

 .wrapper-memes-main .ui-resizable-ne,
 .wrapper-memes-main .ui-resizable-se,
 .wrapper-memes-main .ui-resizable-nw,
 .wrapper-memes-main .ui-resizable-sw{ 
    border:1px solid white;
     width: 15px;
     height: 15px;
   background-color: rgb(0, 0, 0);
 /*RGBa with 0.6 opacity*/ 
background-color: rgba(0, 0, 0, 0.6);
 /*For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
 /*For IE 8*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";  
 }
 .wrapper-memes-main .ui-resizable-se
 {
     margin-bottom: -6px;
     margin-right: -4px;
 }
 
 .wrapper-memes-preview{
    text-align: center;
    width: 48%;
    padding: 10px;
 }
 .wrapper-memes-operations{
    width: 48%;
    padding: 10px;
 }
  .wrapper-memes-operations .amm-text{
     width: 100%;
 }
 .wrapper-memes-operations .wrapper-text{
     margin-bottom: 10px;
     display: -webkit-box;   
      display: -ms-flexbox;    
      display: flex;
 }
 #wrapper_canvas_background{
    display: inline-block; 
    width: 100%;
 }
 #wrapper_canvas_background:hover .imageBoxDR,
 #wrapper_canvas_background:hover .boxDR{
     opacity: 1!important;
    
     
 }
 
 .wrapper-memes-preview{

 }
 .wrapper-memes-preview .imageBoxDR:hover,
 .wrapper-memes-preview .boxDR:hover{
     cursor:move;
 }
 .clear_both{clear:both;}
 
.amm-brushes-picker:hover, .picker:hover, .colorBox:hover {
box-shadow: 0 0 3px 1px #999;
}
.amm-brushes-picker,
.fontOps .picker {
display: inline-block;
height: 24px;
line-height: 24px;
}

.fontOps {
    float: left;
    width: 42%;
    height: 44px;
    max-height: 44px;
    padding: 2px;
    color: #333;
    background: #ccc;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
}

.amm-brushes-picker,
.picker {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    margin: 0 4px;
    cursor: pointer;
    box-shadow: 0 0 3px 1px #ccc;
    line-height: 24px;
}

.wrapper-text .amm-text{
    float:left;
    vertical-align: top;
    padding: 2px 8px;
    width: 58%;
    height: 44px;
    border-width: 2px;
    border-style: solid;
    resize: none;
    line-height: 2.5;
}

.fontOps .ow {
    color: #666;
    height: 32px;
    line-height: 16px;
    width: 44px;
    padding: 2px 5px;
    border-color: #fff;
    margin-left: 1px;
    border: 1px solid #ccc;
    margin: 2px 5px;
    text-align: center;
    /* -moz-appearance: textfield; */
}
.fontOps .ow::-webkit-outer-spin-button,
.fontOps .ow::-webkit-inner-spin-button {
  /* -webkit-appearance: none; */
  margin: 0;
}
 

.colorBox {
display: inline-block;
vertical-align: top;
width: 24px;
height: 24px;
margin: 5px;
cursor: pointer;
box-shadow: 0 0 3px 1px #ccc;
}
.colorPanelBrushes,
.colorPanel{
    width: 180px;
    height:114px;
    padding: 5px; 
}
.amm-brushes-picker{
    float: right;
}
.pickpop-brushes,
.pickpop{
    display: none;
    background: gray;
    position: absolute;
    z-index: 2;
 
}

.wrapperRenderPopupMoreOptions {
 width: 100%;
 padding: 20px;
 display: none;
 background: #ccc;
 position: absolute;
 z-index: 2;
 left: 0px!important;
}

#colorSelectorBrushes div {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    background: url(../../../libraries/colorpicker/images/select.png) center;
}

#colorSelectorBrushes {
    position: relative;
    width: 36px;
    height: 36px;
    background: url(../../../libraries/colorpicker/images/select.png);
}

#colorSelectorBrushes,
#colorSelector{
    cursor: pointer;
    margin: 5px;
}
.colorpickerbrushes,
.wrapper-memes-operations .colorpicker{
    display: none;
}
body {
    text-align:inherit!important;
     overflow:auto; 
}
 
.wrapperRenderPopupMoreOptions label{
    font-weight: 600;
    font-size: 14px;
    color: black;
    width: 90px;
}
.wrapperRenderPopupMoreOptions select {
 width: 75px;
 text-transform: capitalize;
}
.wrapperInputFontFamily{
    display: inline-block;
}
.wrapperInputFontSize{
 
display: inline-block;   
}
#amm-input-upload-image-meme-responsive,
.wrapper-memes-preview-operations .amm-addImage{
    display: none;
}
.wrapper-memes-preview-operations {
    margin: 10px 0;
    text-align: center;
}
.imageBoxDR.ForceHide,
.boxDR.ForceHide{
visibility:hidden;
}
.amm_canvas.MouseCrossHair:hover{
    cursor: crosshair;
    
}

#amm-stop-brushing, .amm-brushes-picker{
    float: right;
}
input#amm-clear-brush {
    float: left;
}
.wrapper-memes-preview-operations input {

padding: 3px;
}
.wrapper_select_image_amm{
    cursor: pointer;
}

.wrapper_thumbnail_meme{
    overflow: hidden;
    display: -webkit-box;
}
.stButton .stFb, .stButton .stTwbutton, .stButton .stMainServices{
    height: 22px!important;
}
.wrapper-popup-download-canvas{
    text-align: center;
}
.view-id-memes{
    margin-top: 10px;
}
.amm-popup-trigger{
    cursor:pointer;
}
.moreOption{
    text-decoration: underline;
    display: inline-block!important;
    width: 32px;
    background-position: center;
    height: 32px;
    background-size: auto;
    background-repeat: no-repeat;
    background-color: transparent!Important;
}
.delete-box-amm{
    position: absolute;
    margin-top: -29px;
    display: inline-block!important;
    width: 20px;
    background-position: center;
    height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent!Important;
    border: none;
    cursor: pointer;
    left:0;
    right:0;
    margin-left:auto;
    margin-right:auto;
}
.canvas_loading
{

 width: 100%;
height: 350px;
color: white;
display: flex;
justify-content: center;
align-items: center;
position: relative;
top: 0;
z-index: 10;
margin: 10px 0;
   /* Fallback for web browsers that doesn't support RGBa */
    background: rgb(0, 0, 0) transparent;
    /* RGBa with 0.6 opacity */
    background: rgba(0, 0, 0, 0.9);
    /* For IE 5.5 - 7*/
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000060, endColorstr=#99000060);
    /* For IE 8*/
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";

}
.canvas_loading img{
    margin-left: auto;
margin-right: auto;
/* text-align: center; */
display: inherit;
position: relative;
top: 120px;
}
.amm-text-boxes{
    margin: 10px 0;
}
/* .view-id-memes{
    display: none;
} */
.view-id-memes.view-display-id-block_1
{
    margin-bottom: 10px;
    overflow: auto;
     
}
.amm_canvas{
    width: 100%;
}


.wrapper-thumbnail-merge-images {
 -webkit-box-pack: justify;
 -ms-flex-pack: justify;
 justify-content: start;
 -webkit-box-align: center;
 -ms-flex-align: center;
 align-items: center;
 margin: 10px 1px;
 overflow: hidden;
 display: -webkit-box;
}

.wrapper-select-merge-image-amm{
    cursor: pointer;
}

 .wrapper-select-merge-image-amm img, .wrapper_select_image_amm img {
     display: inherit!important;
     width: 50px!important;
 }

.ui-resizable-se {
 cursor: se-resize;
 width: 9px;
 height: 9px;
 right: -5px;
 bottom: -5px;
}

.ui-resizable-sw {
    cursor: sw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    bottom: -5px;
}

.ui-resizable-ne {
    cursor: ne-resize;
    width: 9px;
    height: 9px;
    right: -5px;
    top: -5px;
}

.ui-resizable-nw {
    cursor: nw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    top: -5px;
}
.ui-resizable-handle {
    position: absolute;
    font-size: .1px;
    display: block;
}
.btn{
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    color: #333;
    background-color: #fff;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.ui-resizable-sw, 
.ui-resizable-ne {
    background: url(../images/top-right-arrow.png);
    background-size: cover;
    height: 15px;
    width: 15px;
}

.ui-resizable-nw,
.ui-resizable-se {
    background: url(../images/top-left-arrow.png);
    background-size: cover;
    height: 15px;
    width: 15px;
}

.wrapper_select_image_amm img {
 width: 50px!important;
}

input.upload.amm-addImage {
 display: none;
}

button#amm-preview-responsive {
 display: none;
}
.bottom-btns {
    text-align: center;
}
.form-generat-meme, .advanced-options-operations-form {
    display: inline-block;
}
.form-generat-meme {
    display: block;
}
input.InputShadow.EventChange, input.InputUpperCase.EventChange {
 margin-right: 5px;
}
.cpbwc-section-1 {
    display: flex;
}
.cpbwc-section-1, 
.cpbwc-section-2 {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-content: flex-start;
    padding-top: 5px;
}

.cpbwc-section-3 {
    width: -webkit-fill-available;
}

.wrapper_select_image_amm, 
.wrapper-select-merge-image-amm {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eeeeee;
    height: 100px;
    width: 100%;
    border-radius: 4px;
    position: relative;
}

.wrapper_select_image_amm img,
.wrapper-select-merge-image-amm img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}

.cpbwc-section-3,
.cpbwc-section-4,
.cpbwc-section-5,
.cpbwc-section-6 {
    padding: 5px;
}

.cpbwc-section-4,
.cpbwc-section-5,
.cpbwc-section-6 {
    width: 100%;
}

.advanced-options-operations-form {
    display: block;
}

.advanced-options-operations-form .add_textbox,
#amm-brushes,
.generate_meme,
.reset_meme {
    width: 100%;
    font-weight: 600;
}

.reset_meme {
    margin-top: 10px;
}

.cpbwc-section-4 .amm-text {
    display: block;
    width: 100%;
    border: 1px solid #ccc;
    border-top-left-radius: 4px;
    border-top-left-radius: 4px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.cpbwc-section-4 .fontOps {
    float: none;
    width: 100%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    justify-content: space-around;
}

.wrapper-amm-stop-brushes {
    margin-top: 10px;
}

.amm-color-picker,
.amm-color-picker {
    -webkit-appearance: none;
    padding: 0;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.amm-color-picker::-webkit-color-swatch,
.amm-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    padding: 0;
}
.amm-color-picker::-webkit-color-swatch-wrapper,
.amm-color-picker::-webkit-color-swatch-wrapper {
    border: none;
    border-radius: 4px;
    padding: 0;
}

.wrapper-text {
    margin-bottom: 5px;
}

.wrapperRenderPopupMoreOptions {
    position: fixed;
    bottom: 0;
    background: #eee;
}

.fontOps .ow {
    border-radius: 4px;
    background: #fff;
}

.InputFontSize, 
.InputFontFamily {
    background-color: #fff !important;
    border-radius: 4px;
    padding: 1px 3px !important;
    border: 1px solid #ccc !important;
}

.add-text-extra-label {
    margin-right: 20px;
}

.add-text-extra-label input {
    vertical-align: middle;
}

.cpbwc-uploads-container {
    background: #eeeeee;
    border: 2px dashed #4f4f4f;
    border-radius: 4px;
    float: left;
    width: 114px;
    height: 114px;
    position: relative;
    cursor: pointer;
}

.cpbwc-uploads-container:nth-child(3) {
    float: right;
}

.cpbwc-uploads-container .cpbwc-upload {
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    margin: auto;
    display: table;
    text-align: center;
}

.cpbwc-upload h5 {
    font-weight: 600;
    color: #6d6d6d;
    margin-top: 7px;
    font-size: 13px;
}

.cpbwc-additional-cost {
    position: absolute;
    right: 4px;
    top: 4px;
    font-size: 11px;
    background: #d5d5d5;
    border-radius: 3px;
    height: 16px;
    width: 37px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    color: #4f4f4f;
}

.cpbwc-notification {
    background: #eeeeee;
    width: 40%;
    margin: 0 auto;
    color: #777777;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    padding: 10px;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    opacity: 0.6;
    display: none;
}

.cpbwc-menu-text {
    display: block;
}

@media only screen and (max-width: 800px) {
     body{
        width: 100%;
     }

     .wrapper-memes-main{
        display: block;
     }

     .wrapper-memes-operations,
     .wrapper-memes-preview{
         width: 100%;
         padding: 5px;
     }

     .wrapperRenderPopupMoreOptions{
        margin-top: 0px!important;
        top: 50%;
        position: fixed;
        border: 1px solid grey;
        width: 90%;
        left: 5%!important;
     }
}

