/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


/* TAB CSS */

.wma-order-tabs ul {
    margin: 0;
    padding: 0 0 1em 0;
    font-weight: bold;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.wma-order-tabs ul li {
    background: #eee;
    padding: 0;
    display: inline-block;
    list-style: none;
}

.wma-order-tabs ul li a {
    padding: 0.5em 1em;
    text-decoration: none;
    display: block;
}

.wma-order-tabs ul li a:hover,
.wma-order-tabs ul li a.active {
    background: #444;
    color: #eee;
}

.wma-order-item {
    margin-bottom: 2px;
}

.wma-order-item::before {
    cursor: pointer;
    font-weight: bold;
    background: #eee;
    padding: 0.5em;
    display: block;
}

.wma-order-item.active::before {
    background: #444;
    color: #eee;
}

.wma-order-item.active .wma-order-item-content {
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.woocommerce table.wma-order-table tbody tr td {
    padding: 20px 0 20px 20px;
}

.woocommerce table.wma-order-table tbody tr td:first-child {
    padding: 20px 0;
}

.woocommerce table.wma-order-table tbody tr td a.button {
    min-width: unset;
    padding: 10px;
    font-size: 12px;
    font-weight: 400;
}

.woocommerce table.wma-order-table tbody tr td a.button.disabled {
    cursor: none;
    pointer-events: none;
    opacity: 1;
    background-color: #444;
    border-color: #444;
    color: #FFF;
}

.woocommerce table.wma-order-table tbody tr td.wma-orders-table__cell-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media all and (min-width: 800px) {
    .wma-order-item.active .wma-order-item-content {
        padding-top: 0;
    }
}

.wma-order-tabbed-content .wma-order-item .wma-order-item-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.wma-order-tabbed-content .wma-order-item.active .wma-order-item-content {
    opacity: 1;
    visibility: visible;
    height: auto;
}

.wma-order-tabbed-content .wma-order-item.active .wma-order-item-content .pagination-wrap {
    margin-top: 50px;
}

.wma-order-tabbed-content .wma-order-item.active .wma-order-item-content .pagination-wrap>ul.pagination>li>a:hover,
.wma-order-tabbed-content .wma-order-item.active .wma-order-item-content .pagination-wrap>ul.pagination>li.active>a {
    background-color: var(--ts-btn-bg);
    border-color: var(--ts-btn-border);
    color: var(--ts-btn-color);
}

@media all and (min-width: 800px) {
    .wma-order-tabbed-content .wma-order-tabs {
        display: block;
    }
    .wma-order-tabbed-content .wma-order-tabs li {
        display: inline-block;
    }
    .wma-order-tabbed-content .wma-order-tabs li a {
        display: block;
    }
    .wma-order-tabbed-content .wma-order-item {
        min-height: 0;
    }
    .wma-order-tabbed-content .wma-order-item::before {
        display: none;
    }
}

.crm-reply-wrap {
    margin-bottom: 20px;
    border: 1px solid var(--ts-primary-color);
    padding: 20px;
    border-radius: 20px;
}

.crm-reply-wrap .reply-item {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    padding: 5px 0;
}

.crm-reply-wrap .reply-item label {
    word-break: keep-all;
    width: 115px;
    display: block;
    font-size: 1em;
    font-weight: 700;
}

.crm-reply-wrap .reply-item .reply-body {
    font-size: 1.4em;
    width: 90%;
}


/* FORM CSS */

.wma-order-crm-form-wrap form,
.wma-order-crm-form-wrap .view-form {
    background: #f7f7f7;
    /* margin: 3em 15em; */
    padding-top: 30px;
}

.wma-order-crm-form-wrap .contentConponent {
    padding: 10px 15px 15px 15px;
}

.wma-order-crm-form-wrap .lastConponent {
    padding: 10px 15px 15px 15px;
    margin: 0px 0px 0px 10px;
}

.wma-order-crm-form-wrap label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0px;
}

.wma-order-crm-form-wrap input {
    height: 37px;
    width: 325px;
    border: none;
    padding: 0px 11px;
    border-radius: 5px;
}

.wma-order-crm-form-wrap select {
    width: 200px;
    height: 32px;
    padding: 0px 11px;
    border-color: rgb(217, 217, 217);
    border-radius: 5px;
}

.wma-order-crm-form-wrap textarea {
    width: 100%;
    max-width: 479px;
    height: 74px;
    border: none;
    resize: none;
    padding: 4px 11px;
    border-radius: 5px;
}

.wma-order-crm-form-wrap input,
.wma-order-crm-form-wrap textarea:focus {
    outline: none;
}

.wma-order-crm-form-wrap .submit {
    background: #FE5C15;
    color: #FFFFFF;
    height: 37px;
    width: 325px;
    border: none;
    padding: 0px 11px;
    border-radius: 5px;
}

.wma-order-crm-form-wrap .lastConponentContent {
    padding: 15px 0px 15px 0px;
    background: white;
}

.wma-order-crm-form-wrap .lastConponentRow {
    padding: 5px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.wma-order-crm-form-wrap .radio-button {
    background: white;
    border: 1px solid grey;
    border-radius: 5px;
    height: 29px;
    width: 120px;
    align-self: center;
    color: #000000;
    padding: 0;
}

.wma-order-crm-form-wrap .selected {
    background: rgb(250, 109, 48);
    color: #FFFFFF;
    border: none;
}

.wma-order-crm-form-wrap p {
    margin: 0px;
}

.woocommerce-MyAccount-content .wma-order-crm-form-wrap p a {
    color: rgb(250, 109, 48);
    text-decoration: underline;
}

.wma-order-crm-form-wrap .tnC {
    height: 16px;
    width: 16px;
    /* margin: 0px auto; */
}

.wma-order-crm-form-wrap .checked {
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
}

.wma-order-crm-form-wrap .tnCContent {
    align-self: center;
}

.wma-order-crm-form-wrap p.tnCContent {
    margin-left: 15px;
}

.wma-order-crm-form-wrap .lastCWarning {
    color: red;
    display: none;
}

.wma-order-crm-form-wrap em {
    font-size: 11px;
    font-weight: 400;
}

.wma-order-crm-form-wrap .tick::after {
    content: ":";
}

.contentConponent.paragraph {
    line-height: 2.5;
}

.contentConponent.service-term .checked {
    height: auto;
    width: auto;
    display: flex;
    justify-content: start;
    gap: 20px;
    text-align: left;
    align-items: center;
}

.contentConponent.service-term .checked .tnCContent {
    align-self: center;
    display: block;
    margin: 0;
    line-height: 2;
}

@media screen and (max-width: 885px) {
    .wma-order-crm-form-wrap form {
        background: #f7f7f7;
        margin: 3em 10em;
    }
}

@media screen and (max-width: 768px) {
    .wma-order-crm-form-wrap .contentConponent {
        background: #FFFFFF;
        padding: 15px 15px 15px 15px;
        margin: 0px 0px 10px 0px;
    }
    .wma-order-crm-form-wrap label {
        display: block;
        font-size: 14px;
        font-weight: bold;
        padding: 0;
        margin-bottom: 10px;
    }
    .wma-order-crm-form-wrap form {
        background: #f7f7f7;
        margin: 0px;
    }
    .wma-order-crm-form-wrap input {
        height: 37px;
        width: 100%;
        max-width: 325px;
        border: none;
        border-bottom: 2px solid rgb(239, 238, 238);
        padding: 0px 11px;
        border-radius: 0px;
        margin: 0;
    }
    .wma-order-crm-form-wrap textarea {
        width: 100%;
        max-width: 479px;
        height: 74px;
        border: none;
        border-bottom: 2px solid rgb(239, 238, 238);
        resize: none;
        padding: 4px 11px;
        border-radius: 0px;
    }
    .wma-order-crm-form-wrap .lastConponentRow {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 15px;
        align-items: center;
    }
    .wma-order-crm-form-wrap .radio-button {
        background: white;
        border: 1px solid grey;
        border-radius: 5px;
        align-self: center;
        color: #000000;
        padding: 0;
        width: auto;
        height: auto;
        font-size: 10px;
        padding: 5px 3px;
    }
    .wma-order-crm-form-wrap .radio-button.selected {
        background: rgb(250, 109, 48);
        color: #FFFFFF;
        border: none;
    }
    .woocommerce .wma-order-item-content table.wma-order-table tbody tr,
    .woocommerce-page .wma-order-item-content table.wma-order-table tbody tr {
        padding: 15px;
    }
    .woocommerce table.wma-order-table tbody tr td {
        padding: 20px 0;
    }
    .woocommerce table.wma-order-table tbody tr {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--ts-btn-border);
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 390px) {
    .wma-order-crm-form-wrap .tick {
        writing-mode: horizontal-tb;
        margin: 0;
        font-size: 12px;
    }
    .wma-order-crm-form-wrap .tick::after {
        content: "";
    }
    .wma-order-crm-form-wrap .submit {
        width: 100%;
    }
}


/* VIEW LAYOUT */

.view-form .contentConponent {
    display: flex;
    align-items: center;
    /* flex-wrap: wrap; */
    gap: 20px;
}

.view-form .contentConponent.align-top {
    align-items: flex-start;
}

.view-form .contentConponent.paragraph {
    display: block;
}

.view-form .contentConponent label {
    width: 32%;
}

.view-form .contentConponent label p {
    margin-top: 10px;
}

.view-form .contentConponent label p em {
    font-size: 0.75em;
}

.view-form .contentConponent .data-wrap {
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.5;
}

.view-form .lastConponentRow {
    padding: 0;
    padding-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .view-form .contentConponent label {
        width: 42%;
    }
    .view-form .contentConponent label {
        font-size: 12px;
    }
    .view-form .contentConponent .data-wrap {
        font-size: 14px;
    }
    .view-form .lastConponentRow label {
        font-size: 13px;
        writing-mode: horizontal-tb;
    }
    .view-form .lastConponentRow .radio-button {
        width: auto;
        font-size: 10px;
        height: auto;
        padding: 5px 10px;
    }
}


/* OVERLAY AND LOADER */

body.overlay-active::before {
    content: '';
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: 650;
}


/* AJAX LOADER */

#ajax-loader {
    border: 16px solid #f3f3f3;
    /* Light grey */
    border-top: 16px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#ajax-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}


/* FORM RESULT POPUP */

.wma-form-result {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    /* visibility: hidden;
    opacity: 0; */
    z-index: 999;
    visibility: visible;
    opacity: 1;
    display: none;
}

.wma-form-result.show {
    /* visibility: visible;
    opacity: 1; */
    display: block;
}

.wma-form-result-popup {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wma-form-result-popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.wma-form-result-popup .content {
    overflow: auto;
    text-align: center;
}

.wma-form-result-popup .content h3 {
    font-size: 1.5em;
}

@media screen and (max-width: 700px) {
    .wma-form-result-popup {
        width: 70%;
    }
}


/*
 * Filter style
 * @since 2.0.0
*/

.wma-order-tabbed-content {
    position: relative;
}

.wma-filter-wrap {
    /* padding-bottom: 50px; */
}

.wma-filter-wrap .wma-filter-btn-wrap a {
    background-image: url('./../images/filter-icon.svg');
    width: 30px;
    height: 30px;
    display: block;
    background-size: cover;
}

.wma-filter-wrap .wma-filter-btn-wrap {
    position: absolute;
    top: 0px;
    right: 0;
}

.wma-filter-form-wrap {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
}

.wma-filter-form-wrap.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding-bottom: 50px;
}

.wma-filter-form-wrap .form-inner {
    display: flex;
    gap: 20px;
}

.wma-filter-form-wrap .form-inner .form-item {
    width: 25%;
}

.wma-filter-form-wrap .form-inner .form-item .input-wrap>input {
    border: 1px solid #000;
    padding: 6px 26px;
}

#wma-crm-unused-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#wma-crm-unused-popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#processing .validStartDate,
#processing .validEndDate,
#completed .validStartDate,
#completed .validEndDate {
    display: none;
}

#unused .submissionTime,
#expired .submissionTime {
    display: none;
}

@media screen and (max-width: 768px) {
    .wma-filter-form-wrap .form-inner {
        flex-wrap: wrap;
    }
    .wma-filter-form-wrap .form-inner .form-item {
        width: 100%;
    }
}