/* Table with designs */
.adfw-table {
    text-align: center;
}
table.adfw-table td {
    width:30%;
    position: relative;
    display: inline-block;
    margin: 15px 10px 15px 0;
}

table.adfw-table td img {
    max-width: 100%;
    opacity: 0.4;
    transition: opacity 0.4s ease-out;
}

table.adfw-table td img.current-design:hover {
    opacity: 0.75;
}

table.adfw-table td img.current-design, 
table.adfw-table td:hover img {
    opacity: 1;
}

.adfw-hover-template {
    opacity: 0;
    width: 130px;
    height: 80px;
    position: absolute;
    margin-left: -50px;
    top: 50%;
    left: 50%;
    transition: opacity 0.4s ease-out;
    z-index: 1;
}

table.adfw-table td:hover .adfw-hover-template {
    opacity: 1;
}

.current-template {
    top: 0;
    right: 0;
    z-index: 1;
    width: 155px;
    height: 50px;
    background: #229e69;
    text-align: center;
    cursor: pointer;
    border-radius: 0 0 0 10px;
    position: absolute;
    margin: 15px 10px 0 0;
    cursor: default;
}

.current-template p {
    color: #fff;
    padding-top: 9px;
    font-weight: 600;
    font-size: 1.15em !important;
}

.adfw-template-preview {
    float: left;
    width: 50%;
    height: 50px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #38acff;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background 0.4s ease-out;
    border-radius: 10px 0 0 10px;
}

.adfw-template-preview:hover {
    background: #fff;
}

.adfw-template-preview:hover:before {
    background: url('../img/eye-hover.png') no-repeat;
    background-size: contain;
    filter: none;
}

.adfw-template-preview:before {
    content: "";
    float: none;
    display: inline-block;
    width: 33px;
    height: 34px;
    margin-top: 7px;
    background: url('../img/eye.png') no-repeat;
    filter: invert(1);
    background-size: contain;
    vertical-align: 50%;
}

.adfw-template-select {
    float: left;
    width: 50%;
    height: 50px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #38acff;
    text-align: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px 0 rgba(79, 97, 225, .2);
    -webkit-box-shadow: 0 0 20px 0 rgba(79, 97, 225, .2);
    -o-box-shadow: 0 0 20px 0 rgba(79, 97, 225, .2);
    -moz-box-shadow: 0 0 20px 0 rgba(79, 97, 225, .2);
    border-radius: 0 10px 10px 0;
}

.adfw-template-select:hover {
    background: #fff;
}

.adfw-template-select:before {
    content: "";
    float: none;
    display: inline-block;
    width: 33px;
    height: 34px;
    margin-top: 7px;
    background: url('../img/check.png') no-repeat;
    filter: invert(1);
    background-size: contain;
    vertical-align: 50%;
}

.adfw-template-select:hover:before {
    background: url('../img/check-hover.png') no-repeat;
    background-size: contain;
    filter: none;
}






/* Customize the ThickBox overlay for template confirmation */
#TB_overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
}

/* Customize the ThickBox window */
#TB_window {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 0;
    max-height: 250px;
}

/* Customize the header */
#TB_title {
    background: #007cba;
    border-radius: 8px 8px 0 0;
    color: #fff;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#TB_title_text {
    margin: 0;
}

/* Customize the close button */
#TB_closeWindowButton {
    background: #ff0000;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#TB_closeWindowButton:hover {
    background: #cc0000;
}

/* Customize the modal content */
#TB_ajaxContent {
    padding: 20px;
    font-size: 16px;
    color: #333;
}

#TB_ajaxContent p {
    font-size: 1.1em;
}

/* Style buttons inside the modal */
#TB_ajaxContent .button {
    background: #007cba;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin-right: 10px;
    cursor: pointer;
    font-size: 1.1em;
}

#TB_ajaxContent .button:hover {
    background: #005a9e;
}

#TB_ajaxContent .button-secondary {
    background: #555;
}

#TB_ajaxContent .button-secondary:hover {
    background: #333;
}

#TB_ajaxWindowTitle {
    color: #000;
}


/* Loader for template confirmation */
.loader-adfw {
    width: 150px;
    height: 150px;
    margin: 15px auto 0;
    display: block;
    background-image: url("../img/loader-adfw.gif");
    background-size: contain;
    background-repeat: no-repeat;
}