@font-face {
  font-family: 'Vazirmatn';
  src: url('../../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal; 
  font-display: swap;
}
/****lang=fa-IR******
********************/
.regular-text.wsom-license-token-input, select {
    min-height: 30px !important;
    background: #fff !important;
    border: 1px solid #aaa !important;
    border-radius: 4px !important;
    font-family: 'Vazirmatn' !important;
    padding: 5px 20px !important;
}
input {
    border-radius: 4px !important;
}
.tbl-settingso input.small-text.ta-c  {
    background: #fff !important;
    border: 1px solid #aaa !important;
    max-width: 50px;
    padding: 7px !important;
}
p {
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}
h1 {
    margin: 0 !important;
}
.button-primary {
    padding: 5px 15px !important;
    border: none !important;
    border-radius: 4px !important;
    line-height: 25px !important;
}
table.tbl-settingso {
    margin: 30px 0 !important;
    border: none !important;
}
table.tbl-settingso tr, table.tbl-settingso tr td, table.tbl-settingso tr th {
    background: none !important;
}
table.tbl-settingso tr td {
    padding: 0 10px 25px 0;
}
.wsom-content .button, .rtl .wsom-content h1, .rtl .wsom-content h2, .rtl .wsom-content h3, .rtl .wsom-content p {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Noto Sans Arabic", Arial, sans-serif;
}
.rtl .wrap.wsom-content {
    margin-right: 2px !important;
    margin-left: 20px !important;
}
.rtl .wsom-content.general-settings table td, .rtl .wsom-content p.description, .rtl .wsom-content .wsom-license-notice, .rtl .wsom-content h1, .rtl .wsom-content h2, .rtl .wsom-content h3, .rtl .wsom-content .wsom-filter-bar, .wsom-content .ta-r {
    text-align: right !important;
}
.rtl .wsom-content .wsom-payment-summary, .rtl .wsom-content .wsom-report-summary {
    justify-content: start !important;
}
.rtl .wsom-content.general-settings table th {
    text-align: left !important;
    vertical-align: top;
}
.rtl .wsom-content .wsom-export-box {
    justify-content: end !important;
}
small {
    direction: rtl;
}
.wsom-content small {
    font-size: 12px;
}
.wsom-content .woocommerce-Price-amount.amount {
    font-size: 14.6px;
}
.wsom-content .woocommerce-Price-currencySymbol {
    font-size: 75%;
}
/********Global****/
.wsom-content table tr:hover td {
    background-color: #d6eef7 !important;
}
.wsom-content.general-settings table tr:hover td {
    background-color: unset !important;
}
.wrap.wsom-content {
    margin: 40px 20px 20px 2px !important;
}
.ta-l {
    text-align: left !important;
}
.ta-r {
    text-align: right !important;
}
.ta-c {
    text-align: center !important;
}
.tablenav {
    height: unset !important;
}
input[type=text]:focus {
    border-color: #fff !important;
    box-shadow: 0 0 1px 1px #f1f1f1 !important;
}
[class^="wsom-"], .wsom-content, .datepicker-plot-area.datepicker-persian {
    font-family: 'Vazirmatn';
    font-weight: 400;
}

.wsom-title-with-version {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wsom-plugin-version {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef6f8;
    color: #4b6972;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    direction: ltr;
}

/********List Tables****/
.wsom-content table tr td, .wsom-content table thead tr th, .wsom-content table tfoot tr th {
    text-align: center;
}
.wsom-content table thead tr th {
    background-color: lightgrey;
}
.wsom-content td.column-paid_date, .wsom-content td.column-transaction_id {
    direction: ltr;
    font-family: 'Lucida Console';
}
/********Customize DatePicker****/
.datepicker-plot-area.datepicker-persian {
    width: 300px;
    border: none;
    border-radius: 10px;
    background-color: #fff;
    padding: 10px 12px;
}
.datepicker-plot-area .datepicker-day-view .table-days td {
    font-size: 13.4px;
    border-bottom: 1px solid #ddd;
    padding: 5px 2px;
}
.datepicker-plot-area .datepicker-day-view .table-days td span, .datepicker-plot-area .datepicker-month-view .month-item {
    /*background-color: #f3f3f3;*/
    border-radius: 5px;
}
.datepicker-plot-area .datepicker-month-view .month-item {
    width: 31.333333%;
    margin: 6px 2px 0;
    float: right;
    height: 35px;
    line-height: 35px;
}
.datepicker-plot-area .datepicker-month-view .month-item:hover, .datepicker-plot-area .datepicker-day-view .table-days td span:hover {
    background-color: #367ab5 !important;
}
.datepicker-plot-area .datepicker-day-view .table-days td.selected span, .datepicker-plot-area .datepicker-month-view .month-item.selected {
    background-color: #1f588a !important;
}
.wsom-payment-breakdown {
    display: grid !important;
    grid-auto-flow: column;
    align-content: space-between;
    justify-content: space-evenly;
    grid-gap: 10px;
    margin: 10px auto;
    border:1px solid #ddd;
    background: #fff;
    font-weight: 500;
    padding: 10px 25px;
    font-size: 14px;
}
.wsom-payment-summary, .wsom-content .wsom-report-summary{
    margin:12px 0;
    padding:12px;
    font-size: 14.2px;
    border:1px solid #ddd;
    background:#fff;
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    justify-content: end;
}
.wsom-content .wsom-tip-helper {
    vertical-align:middle;
    margin-right:6px;
    opacity:.7;
}
.wsom-content .wsom-report-summary {
    margin-bottom: -13px;
}
/********Pagination****/
.wsom-inline-pagination .button {
    padding: 0px;
    line-height: 22px;
    border: 0;
    min-height: 22px;
    margin: 0 5px;
    vertical-align: text-bottom;
}
.wsom-content .tablenav.bottom .tablenav-pages {
    float: unset;
    margin: 0;
    direction: ltr;
    text-align: center;
}
/********FilterBar & Forms****/
.wsom-filter-bar .wsom-date {
    width: 141px;
    text-align: center;
    font-family: inherit;
    background-color: #f6f7f7;
    border: 1px solid #2271b1;
    font-size: 13px;
    color: #2271b1;
    caret-color: transparent !important;
}
.wsom-filter-bar .wsom-date::placeholder {
    color: #2271b1;
}
.wsom-filter-bar .wsom-date:hover::placeholder, .wsom-filter-bar .wsom-date:focus::placeholder {
    color: #fff;
}
.wsom-filter-bar .wsom-date:hover, .wsom-filter-bar .wsom-date:focus {
    cursor: pointer;
    border-width: 1px;
    border-color: #367ab5;
    background-color: #367ab5;
    color: #f3f3f3 !important;
}
.wsom-filter-bar, form.wsom-form, .wsom-content p.description {
    direction: rtl;
    text-align: left;
}
.wsom-filter-bar .wsom-pick-dates, .wsom-filter-bar .wsom-presets {
    display: inline-block;
    vertical-align: middle;
}
.wsom-filter-bar .wsom-payment-presets a.button {
    margin: 0 3px;
}
.wsom-filter-bar a.button.wsom-clear-filter {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0 !important;
    margin-right: 3px;
    line-height: 1 !important;
    background-color: #aa4949 !important;
    border: none !important;
    color: #fff !important;
}
.wsom-filter-bar a.button.wsom-clear-filter:hover,
.wsom-filter-bar a.button.wsom-clear-filter:focus {
    background-color: #b82f2f !important;
    border: none !important;
}
.wsom-filter-bar a.button.wsom-clear-filter .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}
/********Buttons & Links****/
.wsom-filter-bar button.button:hover, .wsom-content a.button:hover, .wsom-content a.button:focus {
    background-color: #367ab5 !important;
    border-color: #367ab5 !important;
    color: #f3f3f3;
}
.wsom-filter-bar button.button.active-cr, .wsom-content a.button.active-cr, .wsom-filter-bar .active-cr {
   background-color: #1f588a !important;
   border-color: #1f588a !important;
   color: #f3f3f3;
}
.wsom-filter-bar .active-cr::placeholder {
    color: #f3f3f3;
}
.wsom-content a.button.disabled-link, .wsom-content a.button.disabled-link:hover, .wsom-content a.button.disabled-link:focus {
    pointer-events: none;
    background-color: #eee;
    color: #ccc;
    border: none;
}
/***Payments Scheule****/
/* Installment dots (4 circles) */
.wsom-dots{
    display:inline-flex;
    gap:6px;
    align-items:center;
    vertical-align:middle;
}
.wsom-dot{
    width:10px;
    height:10px;
    border-radius:999px;
    background:#d0d0d0;
    display:inline-block;
}
.wsom-dot--on{
    background:#2271b1;
}
.wsom-content.general-settings table tr td {
    text-align: left;
}
.wsom-content.payment-scheduale table.widefat {
    direction: rtl;
}
.wsom-content.payment-scheduale table.widefat tr td {
    vertical-align: middle !important;
}
.wsom-text-danger {
    color: #cd6061 !important;
    font-weight: 500;
}
.wsom-export-box {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 16px;
    margin-top: 14px;
    padding: 6px 16px;
    border: 1px solid #dcdcde;
    background: #fff;
}
.wsom-export-csv {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    white-space: nowrap;
    padding: 0 10px !important;
    text-decoration: none;
    color: #777;
}
.wsom-export-csv img {
    width: auto;
    height: 24px;
    display: block;
}
@media (max-width: 782px) {
    .wsom-export-box {
        align-items: flex-start;
        flex-direction: column;
    }
}
.wsom-text-warning {
    color: #996800 !important;
    font-weight: 500;
}
/********Settings Access & Category Commission Preview****/
.wsom-current-access-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-right: 6px;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    color: #666;
    font-size: 12.5px;
}
.wsom-current-access-user .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #648d6e;
}
.wsom-current-access-user--empty .dashicons {
    color: #777;
}
.wsom-current-access-user--warning {
    border-color: #dba617;
    background: #fff8e5;
}
.wsom-current-access-user--warning .dashicons {
    color: #dba617;
}
.form-table th {
    width: 220px !important;
}
.wsom-category-commission-table-wrap {
    margin-top: 15px;
    max-width: 400px;
}
.wsom-settings-subtitle {
    margin: 0 0 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #1d2327;
    text-align: right;
    direction: rtl;
}
.wsom-category-commission-table {
    margin: 0 0 8px;
    direction: rtl;
}
.wsom-content.general-settings .wsom-category-commission-table th,
.wsom-content.general-settings .wsom-category-commission-table td {
    text-align: right !important;
    vertical-align: middle;
    padding: 5px 15px;
    font-weight: 500;
}
.wsom-content.general-settings .wsom-category-commission-table th:last-child,
.wsom-content.general-settings .wsom-category-commission-table td:last-child {
    width: 120px;
    text-align: center !important;
}
.wsom-commission-badge {
    display: inline-block;
    min-width: 46px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    color: #2271b1;
}
.wsom-empty-state {
    margin-top: 6px !important;
}
.wsom-settings-guide {
    max-width: 760px;
    margin: 25px auto;
    padding: 16px 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    direction: rtl;
}
.wsom-settings-guide a {
    text-decoration: none;
}
.wsom-settings-guide span.dashicons-external {
    font-size: 15px;
    vertical-align: sub;
    margin-right: -3px;
    color: #565656;
}
.wsom-settings-guide__title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 25px 15px !important;
    color: #1d2327;
    font-size: 18px !important;
    font-weight: 500;
}
.wsom-settings-guide__title .dashicons {
    width: 28px;
    height: 30px;
    font-size: 30px;
    color: #2271b1;
}
.wsom-settings-guide__list {
    margin: 0;
    padding-right: 18px;
    list-style: disc;
    color: #50575e;
    line-height: 1.95;
    font-size: 13px;
}
.wsom-settings-guide__list li {
    margin: 3px 25px !important;
    font-size: 13.3px;
}
/********License****/
.wsom-license-field {
    max-width: 520px;
}
.wsom-license-field input.regular-text {
    direction: ltr;
    text-align: left;
    max-width: 100%;
}
.wsom-license-status {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #50575e;
    font-size: 12.5px;
    line-height: 1.8;
}
.wsom-license-status--active {
    border-color: #b8d9c1;
    background: #f5fbf6;
    color: #1f6f35;
}
.wsom-license-status--inactive {
    border-color: #e5c5c5;
    background: #fff7f7;
    color: #8a2424;
}
.wsom-license-status--error {
    border-color: #dba617;
    background: #fff8e5;
    color: #996800;
}
.wsom-license-notice {
    direction: rtl;
    text-align: left;
}

/********Dedicated license page****/
.wsom-license-wrap .wsom-title {
    margin-bottom: 18px;
}
.wsom-license-page {
    direction: rtl;
    text-align: right;
    max-width: 1080px;
}
.wsom-license-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: stretch;
}
.wsom-license-card,
.wsom-license-side-card {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.wsom-license-card {
    padding: 24px;
    min-height: 260px;
}
.wsom-license-side-card {
    height: 100%;
    padding: 22px;
    background: linear-gradient(145deg, #fff, #f8faf8);
}
.wsom-license-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.wsom-license-card h2,
.wsom-license-side-card h3 {
    margin: 0 0 8px;
    color: #1d2327;
}
.wsom-license-card h2 {
    font-size: 24px;
    line-height: 1.35;
}
.wsom-license-card p,
.wsom-license-side-card p {
    margin-top: 0;
    color: #50575e;
}
.wsom-license-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #2271b1;
    font-size: 12px;
    font-weight: 700;
}
.wsom-license-form-area {
    margin-top: 8px;
}
.wsom-license-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #1d2327;
}
.wsom-license-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wsom-license-token-input.regular-text {
    direction: ltr;
    text-align: center;
    width: 420px;
    max-width: 100%;
    min-height: 36px;
    font-family: Consolas, Monaco, monospace;
    letter-spacing: 0.5px;
}
.wsom-license-token-input[readonly] {
    background: #f6f7f7;
    color: #50575e;
    border-color: #c3c4c7;
    box-shadow: none;
}
.wsom-license-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f1;
}
.wsom-license-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.wsom-license-badge--active {
    background: #f0f9f2;
    color: #1f6f35;
    border: 1px solid #b8d9c1;
}
.wsom-license-badge--inactive {
    background: #fff7f7;
    color: #8a2424;
    border: 1px solid #e5c5c5;
}
.wsom-license-badge--error {
    background: #fff8e5;
    color: #996800;
    border: 1px solid #dba617;
}
.wsom-license-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #eef7f0;
    color: #1f6f35;
}
.wsom-license-shield .dashicons {
    width: 32px;
    height: 32px;
    font-size: 32px;
}
.wsom-license-side-card .wsom-license-status {
    margin-top: 14px;
    background: #fff;
}
.wsom-license-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef0f2;
    color: #646970;
    font-size: 12px;
}
.wsom-license-inline-notice {
    margin: 8px 0 14px !important;
}
.wsom-license-action-notice {
    margin: 0 0 16px !important;
}
.wsom-content a.button.button-secondary {
    background: #27608f !important;
    color: #eee !important;
    border: none !important;
    line-height: 30px !important;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.wsom-content a.button.wsom-license-clear {
    background: #aa4949 !important;
    color: #eee !important;
    border: none !important;
    line-height: 30px !important;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.wsom-content a.button.wsom-license-clear:hover {
    background: #9c2e2e !important;
}
@media (max-width: 960px) {
    .wsom-license-panel {
        grid-template-columns: 1fr;
    }
    .wsom-license-card {
        min-height: auto;
    }
}
