:root {
    --spp-main-tab-bg: #000;
    --spp-main-tab-color: #fff;
}
.chabok-spp-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}
.chabok-support-content {
    display: none;
}
.chabok-support-content.chabok-spp-active {
    display: block;
}
.chabok-support-tab-panel {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    overflow: auto;
    width: 100%;
    position: relative;
}
.chabok-spp-search-ticket {
    padding: 9px 20px;
    margin-right: -10px;
    border-radius: 10px 0 0 10px;
    font-size: 13px;
    transform: unset !important;
}

.spp-search {
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.chabok-support-tab {
    padding:10px;
    cursor: pointer;
    transition: all 300ms;
    margin-right: 10px;
    margin-left: 0;
    min-width: max-content;
}
.rtl .chabok-support-tab {
    margin-left: 10px;
    margin-right: 0;
}
.chabok-support-tab:hover {
    background:var(--spp-main-tab-bg);
    opacity: 0.6;
    color:var(--spp-main-tab-color);
    transition: all 300ms;
}
.chabok-support-tab.chabok-spp-active {
    background: var(--spp-main-tab-bg);
    color: var(--spp-main-tab-color);
}
.chabok-support-tab-panel {
    border-radius: 10px;
    margin-bottom: 25px;
}
.chabok-spp-container {
    width: 100%;
    overflow: hidden;
    padding: 0;
}
.chabok-spp-field {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}
.chabok-spp-flex .chabok-spp-field:first-child {
    padding-left: 15px;
}
.chabok-spp-flex .chabok-spp-field:last-child {
    padding-right: 15px;
}
.chabok-spp-field label {
    display: block;
}
.chabok-spp-field input {
    width: 100%;
    padding:10px;
}
.chabok-spp-field select {
    width: 100%;
    padding:10px;
}
.chabok-spp-add-attachment,
.chabok-spp-add-new-field {
    cursor: pointer;
}
.chabok-field-disabled {
    display:none;
}
.chabok-spp-add-attachment:hover,
.chabok-spp-add-new-field:hover {
    color:blue;
}
.chabok-spp-attachment-field label {
    font-size: 12px;
}
.spp-remove-this {
    width: 25px;
    height: 25px;
    position: absolute;
    background-color: #fff;
    border:1px solid #000;
    background-image: url('../img/remove-icon.png');
    background-position: center;
    background-size: cover;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    right: auto;
    border-radius: 100px;
    cursor: pointer;
    opacity: 0.6;
}
.spp-paginate-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.spp-paginate-container a,
.spp-paginate-container span {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    padding:0px 10px;
    margin:0 4px;
    border-radius: 10px;
}
.spp-paginate-container span.spp-page-current {
    background:rgb(0, 47, 255);
    color:#fff;
}
.chabok-spp-loader {
    background-image: url('../img/ajax-loader.gif');
    width: 100px;
    height: 100px;
    margin:20px auto;
    background-repeat: no-repeat;
    background-position: center;
}
.spp-remove-this:hover {
   opacity: 1;
}
.spp-file-url {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}
.spp-file-url a {
    width: 103px;
    overflow: hidden;
    display: inline-block;
    margin: 0 7px;
    background: #eee;
    padding: 0 10px;
    border-radius: 11px;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    height: 25px;
}
.chabok-spp-show-attachment {
    display: flex;
    align-items: center;
    color:#555;
}
.chabok-spp-send-btn {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: end;
    margin: 20px 0;

}
.chabok-spp-field.spp-field-error .spp-error-help {
    color: red;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 0;
}
.chabok-spp-field.spp-field-error input,
.chabok-spp-field.spp-field-error textarea,
.chabok-spp-field.spp-field-error select {
    border-color: red;
}
.chabok-spp-msg.chabok-spp-success {
    background: #c0ffc0;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.chabok-spp-msg.chabok-spp-error {
    background: #ffc0c0;
    padding: 10px;
    color:#000;
    border-radius: 10px;
    margin-bottom: 20px;
}
.chabok-spp-submit-btn.chabok-spp-loading-btn {
    position: relative;
}
.chabok-spp-submit-btn.chabok-spp-loading-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin:auto;
    left: auto;
    background: #fff;
    border-radius: 100px;
    border: 1px solid black;
    animation: spp-blink 900ms infinite;
}
@keyframes spp-blink {
    from {opacity: 0;}
    to {opacity: 1;}    
}

.chabok-spp-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 10px;
    background: #f3f3f3;
    margin-bottom: 11px;
    cursor: pointer;
    position: relative;
    color:#000;
}
.chabok-spp-ticket-row:hover {
    background:#eee;
}
.chabok-spp-ticket-id {
    width: 5%;
    text-align: center;
}
.chabok-spp-ticket-title {
    width: 45%;
}
.chabok-spp-ticket-department {
    width: 10%;
}
.chabok-spp-ticket-status,
.chabok-spp-ticket-priority {
    width: 10%;
}
.chabok-spp-ticket-update {
    width: 20%;
}
.chabok-spp-ticket-priority span,
.chabok-spp-ticket-details small {
    padding: 0 7px;
    font-size: 12px;
    border-radius: 10px;
}
.chabok-spp-ticket-details small {
    background-color: #000;
    color:#fff;
    padding:0 10px;
}
.chabok-spp-ticket-priority.spp-medium span,
.spp-medium small {
    background: #f78e2c;
    color:#fff;
}
.chabok-spp-ticket-priority.spp-low span,
.spp-low small {
    background: #f7d22c;
    color:#444;
}
.chabok-spp-ticket-priority.spp-normal span,
.spp-normal small {
    background: #2c2ff7;
    color:#fff;
}
.chabok-spp-ticket-priority.spp-high span,
.spp-high small {
    background: #f72c2c;
    color:#fff;
}
.chabok-spp-ticket-block-content {
    background: #f3f3ff;
    margin-bottom: 20px;
    border-radius: 10px;
}

.spp-infouser {
    position: relative;
}
.spp-infouser::before {
    content: '';
    width: 7px;
    height: 7px;
    display: inline-block;
    background: #fff;
    border-radius: 25px;
}
.spp-infouser:hover span {
    visibility: visible;
}
.spp-infouser span::before {
    content: 'توسط حساب کاربری - ';
}
.spp-infouser span {
    position: absolute;
    visibility: hidden;
    background: #fff;
    padding: 10px;
    top: -38px;
    width: 114px;
    min-width: max-content;
    border-radius: 10px;
    border: 1px solid #ccc;
}
.chabok-spp-flex.chabok-spp-blk-head {
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    color:#fff;
    background: #0746a0;
    border-radius: 10px 10px 0 0;
}
.chabok-spp-content {
    padding:10px;
}
.chabok-spp-show-attachment {
    padding:10px;
}
.chabok-spp-ticket-head {
    background: #f7f7f7;
    color:#666;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
}
.chabok-spp-ticket-head .chabok-spp-ticket-details {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;

}

.chabok-spp-content ul li {
    list-style: disc;
}
.chabok-spp-content ul {
    margin-right: 2em;
}
.spp-small-place::placeholder {
    font-size: 9px;
}
.spp-small-place {
    border-color: #ccc;
}
.chabok-spp-ticket-title span.short-titile {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 80%;
}
.chabok-spp-tf {
    align-items: center;
}
.rtl .chabok-spp-tf h4 {
    margin-left: 5px;
    color: #0746a0;
    font-size: 17px;
}
.chabok-spp-close-container {
        padding: 10px;
        background: #ffffb0;
        border-radius: 10px;
}
.spp-print {
    width: 23px;
    height: 23px;
    background: url('../img/print-icon.png');
    float: left;
    background-size: 100%;
    margin: 0 10px;
    cursor: pointer;
  }

.print-area {
    display: block;
    flex-wrap: wrap;
    width: 100%;
    font-family: 'iransans';

}
.print-area .chabok-spp-flex {
    width: 100%;
}
.print-area .chabok-spp-show-attachment {
    display: none;
}

.print-area .chabok-spp-flex.chabok-spp-blk-head {
    padding:0;
}
.print-area i.spp-print {
    display: none;
}
.spp-infouser.spp-infohide {
    display: none;
}
.spp-unread-badge {
    display: block;background: blue;color: #fff;font-size: 10px;text-align: center;border-radius: 10px 0 10px 10px;
    position: absolute;left: 9px;top: -5px;min-width: max-content;width: 40px;
}
.spp-total-unread-badge {
    position: absolute;
    top: -16px;
    background: #e82b2b;
    line-height: normal;
    font-size: 14px;
    padding: 0 10px;
    border-radius: 14px 15px 0;
    left: -12px;
}

@media screen and (max-width:600px) {
    .spp-search {
        display: none;
    }
}





/* ==========================================
   Chabok Support Panel
========================================== */

.support_bs{
    --primary:#0746A0;
    --primary-light:#EEF5FF;
    --border:#E8EDF5;
    --text:#28303F;
    --muted:#7B8798;
    --bg:#F6F9FC;
    --radius:18px;
}

/* Tabs */

.chabok-support-tab-panel{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.chabok-support-tab{

    cursor:pointer;
    padding:12px 20px;

    border-radius:14px;

    background:#fff;

    border:1px solid var(--border);

    color:var(--muted);

    transition:.25s;

    font-weight:500;

}

.chabok-support-tab:hover{

    color:var(--primary);
    background:var(--primary-light);

}

.chabok-spp-active{
    color:#fff;
    border-color:var(--primary);
}
.chabok-spp-form input[type="file"] {
  padding: 10px;
}
/* Search */

.spp-search{

    margin-inline-start:auto;

}

.chabok-spp-search-form{

    display:flex;
    gap:10px;

}

.chabok-spp-search-form input{

    width:260px;
    border: 1px solid #e8edf5;
  border-radius: 11px;
  padding: 10px;

}

/* Form */

.chabok-spp-form{

    background:#fff;

    border:1px solid var(--border);

    border-radius:22px;

    padding:30px;

}

.chabok-spp-field{

    margin-bottom:24px;

}

.chabok-spp-field label{

    display:block;

    margin-bottom:8px;

    color:var(--text);

    font-weight:600;

    font-size:14px;

}

/* Inputs */

.chabok-spp-form input[type=text],
.chabok-spp-form input[type=file],
.chabok-spp-form select,
.chabok-spp-form textarea{

    width:100%;

    height:48px;

    border:1px solid var(--border);

    border-radius:14px;

    padding:0 16px;

    transition:.25s;

}

.chabok-spp-form textarea{

    min-height:150px;
    padding:15px;

}

.chabok-spp-form input:focus,
.chabok-spp-form select:focus,
.chabok-spp-form textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(7,70,160,.08);

}

/* Two Columns */

.chabok-spp-flex{

    display:flex;
    gap:20px;

}

.chabok-spp-flex>.chabok-spp-field{

    flex:1;

}

/* Editor */

.wp-editor-container,
.mce-tinymce{

    border-radius:14px !important;
    overflow:hidden;

    border-color:var(--border)!important;

}

/* Attachment */

.need-attachment{

    margin:25px 0 15px;

}

.chabok-spp-add-attachment{

    display:inline-flex;

    align-items:center;

    gap:8px;

    cursor:pointer;

    padding:11px 18px;

    border-radius:12px;

    background:var(--primary-light);

    color:var(--primary);

    transition:.25s;

    font-weight:600;

}

.chabok-spp-add-attachment:hover{

    background:var(--primary);
    color:#fff;

}

.chabok-spp-attachment-field{

    margin-top:15px;

    padding:20px;

    border:1px dashed #C8D6EA;

    border-radius:16px;

}

.chabok-spp-add-new-field{

    display:inline-block;

    margin-top:15px;

    color:var(--primary);

    cursor:pointer;

    font-weight:600;

}

/* Buttons */

.chabok-spp-send-btn{

    margin-top:30px;

}

.chabok-spp-submit-btn,
.chabok-spp-search-ticket{

    height:48px;

    padding:0 26px;

    border:none;

    border-radius:14px;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    transition:.25s;

    font:inherit;
    font-weight:600;

}

.chabok-spp-submit-btn:hover,
.chabok-spp-search-ticket:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 24px rgba(7,70,160,.18);

}

/* Messages */

.chabok-spp-msg{

    margin-bottom:20px;

}

.chabok-spp-close-container{

    background:#FFF7E8;

    color:#8B6A12;

    border:1px solid #F2DFB2;

    border-radius:14px;

    padding:18px;

    margin-bottom:20px;

}

/* Disabled */

.chabok-field-disabled{

    opacity:.65;

}

/* Responsive */

@media(max-width:768px){

    .chabok-support-tab-panel{

        flex-direction:column;
        align-items:stretch;

    }

    .spp-search{

        margin:0;

    }

    .chabok-spp-search-form{

        flex-direction:column;

    }

    .chabok-spp-search-form input{

        width:100%;

    }

    .chabok-spp-flex{

        flex-direction:column;

        gap:0;

    }

}





.spp-print {
    display: none !important;
}


/* Thread */

.chabok-spp-thread-list{

    display:flex;

    flex-direction:column;

    gap:22px;

}

/* Message */

.chabok-spp-ticket-block-content{

    background:#fff;

    border:1px solid #E8EDF5;

    border-radius:12px;

    position:relative;


}

.chabok-spp-ticket-block-content:hover{

    border-color:#D5E4FA;

}

/* Header */

.chabok-spp-blk-head{

    justify-content:space-between;

    align-items:center;

    padding-bottom:16px;



}

.chabok-spp-user{

    display:flex;

    align-items:center;

    gap:12px;

    font-weight:600;

    color:#27303D;

}

.chabok-spp-flex.chabok-spp-tf {
  margin-bottom: 17px;
}

.chabok-spp-user>span{

   
    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:15px;

    font-weight:bold;

}

.chabok-spp-time{

    display:flex;

    align-items:center;

    gap:12px;

    color:#fff;

    font-size:13px;

}

/* Content */

.chabok-spp-content{

    color:#495568;

    line-height:2.2;

    font-size:15px;

}

.chabok-spp-content>*:last-child{

    margin-bottom:0;

}

/* Print */

.spp-print{

    width:40px;

    height:40px;

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    background:#F5F8FC;

    color:#6F7A8A;

    transition:.25s;

}

.spp-print::before{

    font-family:"Font Awesome 7 Pro";
    font-weight:900;
    content:"\f02f";

}

.spp-print:hover{

    background:#0746A0;

    color:#fff;

}

/* Replies */

.chabok-spp-ticket-block-content.admin{

    border-inline-start:4px solid #0746A0;

}

.chabok-spp-ticket-block-content.user{

    border-inline-start:4px solid #2EAF6D;

}