/** date picker theme */
body #edittag {
    max-width: 1000px;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    color: #777620;
    border: 1px solid #dad55e;
    background: #fffa90;
}

.ui-state-checked {
    border: 1px solid #dad55e;
    background: #fffa90;
}

.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
    color: #777620;
}

.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
    color: #5f3f3f;
    border: 1px solid #f1a899;
    background: #fddfdf;
}

.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
    color: #5f3f3f;
}

.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
    color: #5f3f3f;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    font-weight: normal;
    color: #fff;
    border: 1px solid #003eff;
    background: #007fff;
}

.ui-icon-background,
.ui-state-active .ui-icon-background {
    border: #003eff;
    background-color: #fff;
}

.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
    text-decoration: none;
    color: #fff;
}

.ui-widget.ui-widget-content {
    border: 1px solid #c5c5c5;
}

.ui-widget-content {
    color: #333;
    border: 1px solid #ddd;
    background: #fff;
}

.ui-widget-content a {
    color: #333;
}

.ui-widget-header {
    font-weight: bold;
    color: #333;
    border: 1px solid #ddd;
    background: #e9e9e9;
}

.ui-widget-header a {
    color: #333;
}

.ui-datepicker {
    display: none;
    width: 17em;
    padding: .2em .2em 0;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: .2em 0;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    z-index: 10;
    top: 2px;
    width: 1.8em;
    height: 1.8em;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none;
}

.ui-datepicker .ui-datepicker-prev {
    right: auto;
    left: 0;
}

.ui-datepicker .ui-datepicker-next {
    right: 0;
    left: auto;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    color: #fff;
    background-color: #333;
}

.ui-datepicker .ui-datepicker-next-hover {
    right: 1px;
}

.ui-datepicker .ui-datepicker-prev:after,
.ui-datepicker .ui-datepicker-next:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 1.8em;
    height: 1.8em;
    text-align: center;
    pointer-events: none;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover {
    color: #fff;
    background-color: #333;
}

.ui-datepicker .ui-datepicker-prev:after {
    content: '<';
}

.ui-datepicker .ui-datepicker-next:after {
    content: '>';
}

.ui-datepicker .ui-datepicker-title {
    line-height: 1.8em;
    margin: 0 2.3em;
    text-align: center;
}

.ui-datepicker .ui-datepicker-title select {
    font-size: 1em;
    margin: 1px 0;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 45%;
}

.ui-datepicker table {
    font-size: .9em;
    width: 100%;
    margin: 0 0 .4em;
    border-collapse: collapse;
}

.ui-datepicker th {
    font-weight: bold;
    padding: .7em .3em;
    text-align: center;
    border: 0;
}

.ui-datepicker td {
    padding: 1px;
    border: 0;
}

.ui-datepicker td span,
.ui-datepicker td a {
    font-size: 15px;
    display: block;
    padding: .2em;
    text-align: center;
    text-decoration: none;
    background-color: #fafafa;
}

.ui-datepicker .ui-datepicker-buttonpane {
    margin: .7em 0 0 0;
    padding: 0 .2em;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background-image: none;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    float: right;
    overflow: visible;
    width: auto;
    margin: .5em .2em .4em;
    padding: .2em .6em .3em .6em;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
    float: left;
}

/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi {
    width: auto;
}

.ui-datepicker-multi .ui-datepicker-group {
    float: left;
}

.ui-datepicker-multi .ui-datepicker-group table {
    width: 95%;
    margin: 0 auto .4em;
}

.ui-datepicker-multi-2 .ui-datepicker-group {
    width: 50%;
}

.ui-datepicker-multi-3 .ui-datepicker-group {
    width: 33.3%;
}

.ui-datepicker-multi-4 .ui-datepicker-group {
    width: 25%;
}

.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
    border-left-width: 0;
}

.ui-datepicker-multi .ui-datepicker-buttonpane {
    clear: left;
}

.ui-datepicker-row-break {
    font-size: 0;
    clear: both;
    width: 100%;
}

/* RTL support */
.ui-datepicker-rtl {
    direction: rtl;
}

.ui-datepicker-rtl .ui-datepicker-prev {
    right: 2px;
    left: auto;
}

.ui-datepicker-rtl .ui-datepicker-next {
    right: auto;
    left: 2px;
}

.ui-datepicker-rtl .ui-datepicker-prev:hover {
    right: 1px;
    left: auto;
}

.ui-datepicker-rtl .ui-datepicker-next:hover {
    right: auto;
    left: 1px;
}

.ui-datepicker-rtl .ui-datepicker-buttonpane {
    clear: right;
}

.ui-datepicker-rtl .ui-datepicker-buttonpane button {
    float: left;
}

.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
.ui-datepicker-rtl .ui-datepicker-group {
    float: right;
}

.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
    border-right-width: 0;
    border-left-width: 1px;
}

/* Icons */
.ui-datepicker .ui-icon {
    top: .3em;
    left: .5em;
    display: block;
    overflow: hidden;
    text-indent: -99999px;
    background-repeat: no-repeat;
}

/** main style */
[id^='rb_meta'] > .inside {
    max-width: 1400px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.rb-meta-wrapper, .rb-meta-wrapper *,
.rb-meta-wrapper *:before,
.rb-meta-wrapper *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

[id$='rb_meta_'], [id$='rb_meta_'] h2,
.rb-meta-wrapper, .rb-meta-panel-header h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

.rb-meta-panel-header p {
    font-size: 12px;
    margin-top: 7px;
    margin-bottom: 0;
    color: #aaa;
}

[id^='rb_meta_'] > .postbox-header > h2 {
    max-width: 1400px;
    margin-right: auto !important;
    margin-left: auto !important;
}

body #edittag {
    max-width: 1400px;
}

.rb-meta-wrapper {
    display: flex;
    overflow: hidden;
    flex-flow: row nowrap;
    min-height: 600px;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    border: 2px solid #000;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .01);
}

.rb-meta-tab-header {
    position: relative;
    z-index: 100;
    display: flex;
    flex-flow: column nowrap;
    flex-shrink: 0;
    width: 260px;
    padding: 0 10px;
    gap: 1px;
}

.rb-category-info {
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0 30px 0;
}

.rb-meta-tab-header:after {
    position: absolute;
    top: -20px;
    right: 0;
    bottom: -20px;
    display: block;
    width: 1px;
    content: '';
    background-color: #eee;
}

.rb-tab-title {
    display: block;
    width: 100%;
    padding: 0 20px;
    text-decoration: none !important;
    border-radius: 3px;
    outline: none !important;
    box-shadow: none !important;
}

.rb-tab-title:last-child {
    border-bottom: none;
}

.rb-tab-title.is-active {
    opacity: 1 !important;
    color: #000;
    background-color: #68e58d !important;
}

.rb-tab-title:not(.is-active):hover {
    color: #000;
    background-color: #afffb8 !important;
}

.rb-tab-title h3 {
    font-family: inherit !important;
    font-size: 13px;
    line-height: 36px;
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
    margin: 0;
    white-space: nowrap;
    color: #000;
}

.rb-tab-title h3:before {
    font-size: 1.25em;
    display: flex;
    align-items: center;
    width: auto;
    margin-right: 7px;
    -webkit-transition: none;
    transition: none;
}

.rb-meta-tab {
    display: none;
    padding-bottom: 100px;
    background-color: #fff;
}

.rb-meta-tab.is-active {
    display: block;
}

.rb-meta-tab-content {
    display: flex;
    flex-flow: column nowrap;
    flex-grow: 1;
    padding: 0 20px;
}

.rb-meta {
    display: flex;
    display: -webkit-flex;
    align-items: flex-start;
    flex-flow: column nowrap;
    flex-grow: 1;
    padding: 20px 30px;
    gap: 10px;
}

.rb-meta .select2-container {
    min-width: 100%;
}

.rb-meta:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.rb-meta-label,
.rb-meta-title label {
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
}

.rb-meta-desc {
    font-size: 13px;
    display: block;
    overflow: hidden;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    color: #555;
}

.rb-meta-wrapper input[type='text'] {
    font-size: 14px;
    line-height: 42px;
    display: block;
    min-width: 200px;
    padding: 0 15px;
}

.rb-meta-wrapper textarea {
    font-size: 14px !important;
    display: block;
    width: 100%;
    padding: 10px 15px;
}

.rb-meta-content {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
}

.rb-meta-content input,
.rb-meta-content select {
    position: relative;
    z-index: 100;
}

.rb-meta-content textarea {
    position: relative;
    z-index: 100;
}

.tab-description {
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    display: block;
    margin-top: 15px;
    margin-right: 2%;
    margin-left: 2%;
    padding: 12px 12px 12px 20px;
    border-left: 5px solid #f0cb42;
    border-radius: 3px;
    background: #d8b16014;
}

/* image */
.meta-preview {
    display: block;
}

.meta-preview .thumbnail {
    display: inline-block;
    margin: 0 10px 10px 0;
    pointer-events: none;
}

.meta-preview img {
    display: block;
    width: 70px;
    height: auto;
}

.rb-meta-button {
    position: relative;
    display: inline-block;
}

.rb-checkbox {
    line-height: 0;
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

.rb-checkbox img {
    z-index: -1;
    width: 50px;
    height: auto;
    pointer-events: none;
    border: 3px solid #eee;
    border-radius: 5px;
}

.rb-image-select.big img {
    width: 70px;
}

.rb-checkbox.is-active img {
    border-color: #524cff;
}

.rb-checkbox input[type='radio'] {
    z-index: 999;
}

.rb-meta-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    text-indent: -9999px;
    opacity: 0 !important;
    border-radius: 0;
}

.rb-image-select .rb-boxes {
    display: flex;
    flex-flow: row wrap;
    padding-top: 7px;
    gap: 10px;
}

.rb-image-select input {
    position: absolute;
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.rb-image-select .rb-meta-info {
    margin-top: 20px;
}

select.rb-meta-select {
    width: 100%;
    padding: 5px 12px;
}

.input-small input[type='text'],
.input-small textarea {
    min-width: auto;
    max-width: 150px;
}

.thumbnail.file img {
    display: inline-block;
    max-width: 50px;
    height: auto;
    margin-right: 10px;
}

.thumbnail .file-name {
    font-weight: 700;
    line-height: 30px;
    display: inline-block;
    margin-left: 7px;
    vertical-align: top;
}

div#rb-tab-rb-meta-none-tab {
    margin-left: 0;
}

.rb-meta-none-tab .rb-meta-tab-header {
    display: none;
}

.rb-meta-none-tab .rb-meta-tab,
.rb-meta-none-tab.rb-meta-wrapper {
    min-height: auto;
}

[id*='rb_meta_'] > h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: 16px !important;
    color: #fff !important;
    border-top: none;
    border-bottom: none;
    border-left: 10px solid #9a9dcc;
    background-color: #3b414c;
}

[id*='rb_meta_'] p {
    font-family: inherit !important;
}

.rb-meta-wrapper.context-side {
    margin: 0 !important;
    padding-top: 0;
    border: none !important;
    background: none;
}

.rb-meta-wrapper.context-side .rb-meta-title {
    display: block;
    width: 100%;
}

.rb-meta-wrapper.context-side .rb-meta-tab {
    border: none !important;
}

.rb-meta-wrapper.context-side .rb-meta:first-child {
    padding-top: 0;
}

.rb-meta-wrapper.context-side .rb-meta:last-child {
    border-bottom: none;
}

.rb-meta-wrapper.context-side p.rb-meta-desc {
    margin-top: 0;
}

.select-title {
    font-size: 10px;
    line-height: 1;
    display: block;
    max-width: 70px;
    padding-top: 5px;
    text-align: center;
}

.rb-meta-panel-header {
    margin: 0;
    padding: 20px;
}

.rb-meta-panel-header h3 {
    font-family: inherit;
    margin: 0;
    color: #fff;
}

.rb-group-trigger, .rb-button {
    display: inline-block;
    margin-top: 5px;
    padding: 7px 10px;
    text-decoration: none;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    outline: none;
    background-color: #78d098;
}

a.button.rb-meta-button {
    display: inline-flex;
    width: max-content;
    margin-bottom: 5px;
    color: #fff !important;
    border: none;
    background: #78d098;
}

.rb-meta-button + .info {
    font-size: 11px;
    font-style: italic;
    margin-top: 5px;
}

#openai-generate-content {
    font-weight: 700;
    padding: 12px 20px;
}

input.button.rb-meta-button {
    color: #fff !important;
    border: none;
    background: #78d098;
}

input.button.rb-meta-button.rb-clear-file {
    background-color: #bbb;
}

a.button.rb-meta-button:hover,
a.button.rb-meta-button:focus,
input.button.rb-meta-button:hover,
input.button.rb-meta-button:focus {
    background: #599b71;
}

.group-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-flow: row wrap;
    width: 100%;
    margin-bottom: 10px;
    padding: 15px 20px 10px;
    cursor: move;
    border: 1px solid #eee;
    border-radius: 5px;
    gap: 10px;
}

.rb-group-delete {
    z-index: 10;
    display: inline-flex;
    width: auto !important;
    padding: 5px 15px;
    color: #ff7e7e;
    border: 1px solid;
    border-radius: 5px;
}

body.rtl .rb-group-delete {
    margin-right: auto;
    margin-left: 0;
}

.group-item-title {
    font-size: .9em;
    display: block;
    margin-bottom: 5px;
}

.group-item > * {
    width: 100%;
}

.small-item .group-item > *:not(.rb-group-delete) {
    width: calc(50% - 10px);
}

.group-item input[type='text'] {
    width: 100%;
    min-width: 200px;
}

.rb-group-trigger:hover, .rb-button:hover {
    background-color: #599b71;
}

.group-holder {
    width: 100%;
    max-width: 760px;
    counter-reset: repeat-index;
}

.group-item:before {
    font-size: 12px;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    padding: 5px;
    content: counter(repeat-index);
    counter-increment: repeat-index;
    color: #fff;
    border-radius: 5px 0 5px;
    background-color: #333f4d;
}

.rb-meta-info {
    font-size: 13px;
    font-style: italic;
    margin-top: 12px;
}

.rb-copied-popup {
    position: fixed;
    z-index: 200;
    bottom: 20px;
    left: calc(50% - 120px);
    display: inline-block;
    width: 240px;
    padding: 10px;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 10px #0001;
}

body.rtl .group-item:before {
    border-radius: 0 5px 5px;
}

@media (max-width: 1400px) {
    .rb-meta-wrapper,
    .rb-meta-panel-header {
        margin-right: 0;
        margin-left: 0;
    }

    .rb-meta-tab-header {
        width: 190px;
    }

    .rb-tab-title h3 {
        font-size: 12px;
    }
}

.mce-shortcode-label {
    pointer-events: none;
    background-color: #437dcc !important;
}

.mce-shortcode-label .mce-text {
    text-transform: uppercase;
    color: #fff !important;
}

.rb-date-content > input {
    float: left;
    min-width: 0 !important;
    max-width: 150px;
}

.is-hidden {
    display: none;
}

.rb-meta.type-info {
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    display: inline-block;
    min-width: 260px;
    margin-top: 0;
    padding: 0 10px;
    color: #fff !important;
    border-bottom: none;
    border-left: 5px solid #524cff;
    border-left: 7px solid #0070b4;
    border-radius: 3px;
    background: #489fff !important;
    gap: 0;
}

.rb-meta.type-info:not(:first-child ) {
    margin-top: 30px;
}

.rb-copy-content,
textarea.rb-copy-content {
    font-size: 14px;
    padding: 25px;
    color: #000;
    border: none;
    border-radius: 7px;
    background: #f2f2f2;
}

#openai-prompt-info {
    font-family: 'Courier New', Courier, monospace;
}

.rb-meta-copy-btn {
    font-size: 11px;
    position: absolute;
    z-index: 9999;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    padding: 3px 12px;
    -webkit-transition: all .2s;
    transition: all .2s;
    opacity: 0;
    color: #fff;
    border-radius: 7px;
    background-color: #000;
    gap: 2px;
}

.rb-copy-wrap:hover .rb-meta-copy-btn {
    opacity: 1;
}

.rb-meta-copy-btn:hover {
    color: #fff;
    background-color: #524cff;
}

.rb-meta-copy-btn i {
    font-size: 14px;
    width: auto;
    height: auto;
}

.rb-openai-inner {
    margin-right: -20px;
    margin-left: -20px;
}

.openai-generate-wrap {
    line-height: 1;
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.openai-generate-wrap p {
    color: #f00;
}

.is-disable {
    pointer-events: none !important;
}

.rb-loading {
    display: inline-flex;
    margin-left: 10px;
}

.rb-loading i {
    -webkit-animation: rb-loading 2s linear infinite;
    animation: rb-loading 2s linear infinite;
    text-align: center;
    color: #49ac7e;
}

.rb-button:disabled, .rb-button.disabled {
    cursor: not-allowed;
    opacity: .5 !important;
}

@-webkit-keyframes rb-loading {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rb-loading {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rb-openai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rb-openai-setting-link {
    margin: 0 3px;
    padding: 5px 12px;
    -webkit-transition: all .3s;
    transition: all .3s;
    border: 1px solid #eee;
    border-radius: 10px;
}

.rb-openai-setting-link:hover {
    color: #fff;
    background: #599b71;
}

/* rtl  */
body.rtl .rb-meta-wrapper {
    border-right: none;
}

body.rtl .rb-meta-tab-header {
    float: right;
}

body.rtl .rb-meta-tab {
    border-right: 1px solid #f7f7f7;
    border-left: none;
}

body.rtl .rb-meta-title {
    padding-right: 0;
}

body.rtl .thumbnail.file img {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .thumbnail .file-name {
    margin-right: 7px;
    margin-left: 0;
}

body.rtl div#rb-tab-rb-meta-none-tab {
    margin-right: 0;
}

body.rtl [id*='rb_meta_'] > h2 {
    border-right: 10px solid #9a9dcc;
    border-left: none;
}

body.rtl .rb-tab-title h3:before {
    margin-right: 0;
    margin-left: 7px;
}

body.rtl .group-item:before {
    right: 0;
    left: auto;
}

body.rtl .rb-date-content > input {
    float: right;
}

@media (max-width: 1024px) {
    .rb-meta-wrapper {
        flex-flow: column nowrap;
    }

    .rb-meta-tab-header {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        flex-flow: row nowrap;
        width: 100%;
        padding-bottom: 5px;
        white-space: nowrap;
    }

    .rb-meta-tab-header:after {
        display: none;
    }

    .rb-tab-title {
        padding-top: 5px;
        padding-bottom: 5px;
        border-right: 1px solid rgba(255, 255, 255, .1);
    }

    .small-item .group-item > *:not(.rb-group-delete) {
        width: 100%;
    }
}