
    
    /* ==============================
   Welcome Settings UI
============================== */

.wf-welcome-settings {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    transition: all .3s ease;
    position: relative;
}

/* Active */
.wf-welcome-settings.active {
    opacity: 1;
    filter: none;
}

/* Disabled */
.wf-welcome-settings.disabled {
    opacity: .45;
    pointer-events: none;
    filter: grayscale(1);
}

/* Disabled note */
.wf-disabled-note {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    margin-bottom: 12px;
    font-size: 13px;
}


/* Title */
.wf-welcome-settings h3 {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Description */
.wf-welcome-settings .wf-desc {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 18px;
}


/* Fields */
.wf-welcome-settings .wf-field {
    margin-bottom: 16px;
}

.wf-welcome-settings label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}


/* Inputs */
.wf-welcome-settings input,
.wf-welcome-settings textarea,
#wf-lang-switch {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    background: #fafafa;
    transition: all .2s ease;
}

.wf-welcome-settings textarea {
    min-height: 90px;
    resize: vertical;
}


/* Focus */
.wf-welcome-settings input:focus,
.wf-welcome-settings textarea:focus,
#wf-lang-switch:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}


/* Language Switch */
#wf-lang-switch {
    max-width: 220px;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(#fff,#f9fafb);
}


/* HR */
.wf-welcome-settings hr {
    border: none;
    border-top: 1px dashed #e5e7eb;
    margin: 20px 0;
}


/* Hover Card */
.wf-welcome-settings.active:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    transform: translateY(-1px);
}


/* Toggle animation */
.wf-welcome-settings {
    animation: wfFade .4s ease;
}

@keyframes wfFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    
    /* Welcome settings disabled */
.wf-welcome-settings.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(1);
    transition: .3s;
}

/* Enabled */
.wf-welcome-settings.active {
    opacity: 1;
    pointer-events: auto;
    filter: none;
}
.wf-disabled-note{
    background:#fff3cd;
    color:#856404;
    padding:8px 12px;
    border-radius:6px;
    margin-bottom:10px;
}

    
    
    
    /* Reported Review Preview */

.wf-reported-review{
    margin-top:12px;
    padding:12px 14px;
    background:#f9fafb;
    border:1px solid #e5e7eb;
    border-radius:8px;
    font-size:13px;
}

.wf-review-head{
    display:flex;
    justify-content:space-between;
    font-weight:600;
    color:#333;
    margin-bottom:6px;
}

.wf-review-stars{
    color:#f59e0b;
    font-size:12px;
}

.wf-review-content{
    color:#555;
    line-height:1.5;
    font-style:italic;
}

    
    
    /* Main Tabs */
.wf-main-tabs{
    margin-bottom:8px;
}

/* Sub Tabs Container */
.wf-sub-tabs{
    display:flex;
    gap:12px;
    margin:12px 0 22px;
    padding:4px;
    background:#f8f9fb;
    border-radius:12px;
    width:fit-content;
}

/* Normal Tab */
.wf-sub-tabs a{
    padding:7px 18px;
    border-radius:20px;
    background:transparent;
    color:#666;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
    border:1px solid transparent;
    transition:all .25s ease;
    position:relative;
}

/* Hover */
.wf-sub-tabs a:hover{
    background:#eef3f8;
    color:#2271b1;
}

/* Active Tab */
.wf-sub-tabs a.active{
    background:#fff;
    color:#2271b1;
    font-weight:600;
    border:1px solid #2271b1;
    box-shadow:0 2px 8px rgba(34,113,177,.15);
}

/* Active indicator line */
.wf-sub-tabs a.active::after{
    content:'';
    position:absolute;
    bottom:-6px;
    left:50%;
    transform:translateX(-50%);
    width:22px;
    height:3px;
    background:#2271b1;
    border-radius:5px;
}


    
    
    
    .wf-reports-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:22px;
    margin-top:25px;
}

.wf-report-card{
    background:#fff;
    border-radius:14px;
    padding:18px;
    border:1px solid #e4e7ee;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    display:flex;
    flex-direction:column;
    gap:14px;
}

.wf-report-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.wf-report-title{
    font-weight:700;
    font-size:14px;
    color:#1d3557;
}

.wf-report-title small{
    font-weight:400;
    color:#888;
    margin-left:6px;
}

.wf-report-status{
    font-size:12px;
    padding:4px 12px;
    border-radius:20px;
}

.wf-report-status.pending{
    background:#fff3cd;
    color:#856404;
}

.wf-report-status.reviewed{
    background:#d4edda;
    color:#155724;
}

.wf-report-item{
    background:#f8f9fb;
    padding:10px;
    border-radius:8px;
    font-size:13px;
}

.wf-report-item a{
    font-weight:600;
}

.wf-report-body{
    font-size:13px;
    line-height:1.6;
    color:#444;
}

.wf-report-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:auto;
}

.wf-btn-danger{
    background:#dc3545;
    color:#fff;
    border:none;
    padding:7px 14px;
    border-radius:8px;
    cursor:pointer;
}

.wf-btn-success{
    background:#28a745;
    color:#fff;
    border:none;
    padding:7px 14px;
    border-radius:8px;
    cursor:pointer;
}

.wf-reviewed-badge{
    background:#e6f4ea;
    color:#0f5132;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

    
    
    
    
    
    
    
    
    
    
    
    
    
    
/* Vendor Orders Layout */

.wf-settings-cards{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:22px;
    max-width:1150px;
}


/* Card */

.wf-card{
    background:#fff;
    border-radius:14px;
    padding:22px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    border:1px solid #eee;
}

.wf-card h3{
    margin:0 0 12px;
    font-size:16px;
}

.wf-desc{
    font-size:13px;
    line-height:1.6;
    color:#555;
    margin-bottom:14px;
}

.wf-card input,
.wf-card select{
    width:100%;
    padding:8px 11px;
    border:1px solid #ccc;
    border-radius:7px;
}


/* Range */

.wf-range{
    display:flex;
    gap:8px;
    align-items:center;
    margin-bottom:6px;
}

.wf-range input{
    width:70px;
}


/* Switch */

.wf-switch{
    position:relative;
    display:inline-block;
    width:46px;
    height:24px;
}

.wf-switch input{
    opacity:0;
}

.wf-switch span{
    position:absolute;
    inset:0;
    background:#ccc;
    border-radius:30px;
    cursor:pointer;
    transition:.3s;
}

.wf-switch span:before{
    content:'';
    position:absolute;
    width:18px;
    height:18px;
    left:3px;
    top:3px;
    background:#fff;
    border-radius:50%;
    transition:.3s;
}

.wf-switch input:checked + span{
    background:#2271b1;
}

.wf-switch input:checked + span:before{
    transform:translateX(22px);
}
/* ======================
   SAVE BAR - PREMIUM
====================== */

.wf-save-bar{
    position:sticky;
    bottom:15px;
    background:linear-gradient(135deg,#f8fbff,#eef5ff);
    padding:18px 25px;
    border:1px solid #d6e4f5;
    border-radius:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:35px;
    z-index:99;

    box-shadow:
        0 6px 20px rgba(34,113,177,.15),
        inset 0 0 0 1px #fff;
}


/* Left Info */

.wf-save-info{
    font-size:14px;
    font-weight:600;
    color:#1d3557;
    display:flex;
    align-items:center;
    gap:8px;
}

.wf-save-info::before{
    content:"⚠️";
    font-size:16px;
}


/* ======================
   SAVE BUTTON
====================== */

.wf-save-btn{

    background:linear-gradient(135deg,#2271b1,#135e96);
    border:none;

    color:#fff;
    font-size:16px;
    padding:12px 34px;

    border-radius:12px;
    cursor:pointer;

    font-weight:700;
    letter-spacing:.3px;

    display:flex;
    align-items:center;
    gap:8px;

    box-shadow:
        0 6px 15px rgba(19,94,150,.35);

    transition:.25s;
}


/* Hover */

.wf-save-btn:hover{

    background:linear-gradient(135deg,#135e96,#0b3c66);

    transform:translateY(-2px);

    box-shadow:
        0 10px 22px rgba(19,94,150,.45);
}


/* Click */

.wf-save-btn:active{
    transform:scale(.96);
}


/* Focus */

.wf-save-btn:focus{
    outline:none;
    box-shadow:
        0 0 0 3px rgba(34,113,177,.35),
        0 6px 15px rgba(19,94,150,.35);
}
/* Attention Animation */

@keyframes wf-pulse {

    0%{box-shadow:0 0 0 0 rgba(34,113,177,.6);}
    70%{box-shadow:0 0 0 12px rgba(34,113,177,0);}
    100%{box-shadow:0 0 0 0 rgba(34,113,177,0);}

}

.wf-save-btn.wf-attention{
    animation:wf-pulse 1.5s infinite;
}


    
    
    
    
    
    
    
    
    
    
    
    
    
    .wf-attr-item.is-active{
    background:#e7f3ff;
    border-left:4px solid #2271b1;
    font-weight:600;
}

    
    
    /* === Vendor Actions UX === */
/* =========================
   Vendor Actions – Layout
========================= */

td .wf-action-form {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    transition: all .25s ease;
}

/* Hover card effect */
td .wf-action-form:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* =========================
   Action Buttons
========================= */

.wf-action-trigger {
    width: 100%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wf-action-trigger:hover {
    opacity: .9;
}

/* Reject / danger */
.wf-action-reject .wf-action-trigger,
.wf-action-reject .wf-confirm-btn {
    border-color: #dc2626;
    color: #dc2626;
}

.wf-action-reject .wf-action-trigger:hover {
    background: #fee2e2;
}

/* Suspend */
.wf-action-suspend .wf-action-trigger {
    background: #f3f4f6;
}

/* =========================
   Admin Note (Hidden → Expand)
========================= */

.wf-action-form textarea {
    display: none;
    width: 100%;
    min-height: 70px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    background: #fff;
    margin-bottom: 6px;
}

.wf-action-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* =========================
   Confirm Button
========================= */

/* Hide confirm button by default (override WP buttons) */
.wf-action-form .wf-confirm-btn {
    display: none !important;
    width: 100%;
    font-weight: 600;
}


/* =========================
   Active State (Opened)
========================= */

.wf-action-form.active {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.wf-action-form.active textarea,
.wf-action-form.active .wf-confirm-btn {
    display: block;
}

/* Hide trigger when opened */
.wf-action-form.active .wf-action-trigger {
    display: none;
}

/* =========================
   View Store Button
========================= */

td a.button-secondary {
    width: 100%;
    font-weight: 600;
    margin-bottom: 8px;
}
.wf-action-reject.active {
    border-color: #dc2626;
    box-shadow: 0 8px 18px rgba(220,38,38,.15);
}

.wf-action-suspend.active {
    border-color: #f59e0b;
    box-shadow: 0 8px 18px rgba(245,158,11,.15);
}
.wf-action-form textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Show textarea + confirm ONLY when active */
.wf-action-form.active textarea,
.wf-action-form.active .wf-confirm-btn {
    display: block !important;
}
.wf-action-customer .wf-action-trigger {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.wf-action-customer .wf-action-trigger:hover {
    background: #fde68a;
}

.vendor-wallet {
    font-weight: 600 !important;
    color: #0f766e !important; /* أخضر هادي */ 
}


.vendor-orders {
    font-size: 13px;
    line-height: 1.6;
}
.vendor-orders .completed {
    color: #15803d;
    font-weight: 600;
}
.vendor-orders .returned {
    color: #b91c1c;
    font-weight: 600;
}

/* =========================
   View Store Button
========================= */

.wf-btn-view-store {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;

    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;

    color: #374151;               /* gray-700 */
    background: #f3f4f6;          /* gray-100 */
    border: 1px solid #d1d5db;    /* gray-300 */
    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

.wf-btn-view-store:hover {
    background: #e5e7eb;          /* gray-200 */
    border-color: #9ca3af;        /* gray-400 */
    color: #111827;               /* gray-900 */
}

.wf-btn-view-store:active {
    transform: scale(0.97);
}

.wf-btn-view-store:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.vendor-reports-reviews {
    font-size: 13px;
    line-height: 1.6;
}

.vendor-reports-reviews .reviews {
    color: #92400e; /* amber */
    font-weight: 600;
}

.vendor-reports-reviews .reports {
    color: #b91c1c; /* red */
    font-weight: 600;
}


/* Main Box */
.wf-box{
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    padding:25px;
    max-width:700px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

/* Table */
.wf-table th{
    width:160px;
    font-weight:600;
}

/* Select */
.wf-select{
    min-width:260px;
    padding:6px 10px;
}

/* Attributes Grid */
.wf-attrs-box{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:10px;
    background:#f9fafb;
    padding:15px;
    border-radius:8px;
    border:1px solid #eee;
}

/* Single Item */
.wf-attr-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 8px;
    background:#fff;
    border:1px solid #e3e3e3;
    border-radius:6px;
    cursor:pointer;
    transition:.2s;
}

.wf-attr-item:hover{
    border-color:#2271b1;
    background:#f0f6fc;
}

/* Help Text */
.help{
    font-size:13px;
    color:#666;
    margin-top:6px;
}

/* Save Button */
.wf-save-btn{
    padding:6px 18px;
    font-size:14px;
}









/* Grid */
.wf-settings-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
    gap:20px;
    margin-top:25px;
}

/* Card */
.wf-card{
    background:#fff;
    border-radius:14px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.07);
    border:1px solid #eee;
    transition:.2s;
}

.wf-card:hover{
    box-shadow:0 5px 18px rgba(0,0,0,.12);
}

.wf-card h3{
    margin:0 0 15px;
    font-size:16px;
    font-weight:600;
}

/* Description */
.wf-desc{
    font-size:13px;
    color:#666;
    margin-top:8px;
}

/* Fields */
.wf-field{
    margin-bottom:15px;
}

.wf-field label{
    display:block;
    font-size:13px;
    font-weight:600;
    margin-bottom:5px;
}

/* Inputs */
.wf-card input,
.wf-card select{
    width:100%;
    padding:8px 10px;
    border-radius:8px;
    border:1px solid #ddd;
}

/* Toggle */
.wf-toggle{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:500;
    cursor:pointer;
    margin-bottom:10px;
}

.wf-toggle input{
    display:none;
}

.wf-toggle span{
    width:42px;
    height:22px;
    background:#ccc;
    border-radius:20px;
    position:relative;
    transition:.3s;
}

.wf-toggle span::after{
    content:'';
    width:18px;
    height:18px;
    background:#fff;
    border-radius:50%;
    position:absolute;
    top:2px;
    left:2px;
    transition:.3s;
}

.wf-toggle input:checked + span{
    background:#2271b1;
}

.wf-toggle input:checked + span::after{
    transform:translateX(20px);
}

/* Select */
.wf-select{
    width:100%;
    padding:8px;
    border-radius:8px;
}




/* Commission Card */
.wf-commission-card{
    border-left:4px solid #22c55e;
}

/* Input + Unit */
.wf-input-group{
    display:flex;
    align-items:center;
}

.wf-input-group input{
    flex:1;
    border-radius:8px 0 0 8px;
}

.wf-unit{
    background:#f3f4f6;
    padding:7px 12px;
    border:1px solid #ddd;
    border-left:0;
    border-radius:0 8px 8px 0;
    font-size:13px;
    color:#444;
}

/* Help */
.wf-help{
    display:block;
    margin-top:5px;
    font-size:12px;
    color:#666;
}

/* Preview */
.wf-preview{
    margin-top:15px;
    background:#f0fdf4;
    padding:10px;
    border-radius:8px;
    font-size:13px;
    color:#166534;
}




/* Tooltip Base */
.wf-tooltip{
    position:relative;
    cursor:help;
    display:inline-block;
}

/* Tooltip Box */
.wf-tooltip::after{

    content: attr(data-tip);

    position:absolute;
    bottom:130%;
    left:50%;
    transform:translateX(-50%);

    background:#111;
    color:#fff;

    padding:6px 10px;
    border-radius:6px;

    font-size:12px;
    white-space:nowrap;

    opacity:0;
    pointer-events:none;

    transition:.2s ease;
    z-index:9999;
}

/* Arrow */
.wf-tooltip::before{

    content:'';

    position:absolute;
    bottom:120%;
    left:50%;
    transform:translateX(-50%);

    border:6px solid transparent;
    border-top-color:#111;

    opacity:0;
    transition:.2s;
}

/* Show on Hover */
.wf-tooltip:hover::after,
.wf-tooltip:hover::before{
    opacity:1;
}





/* Reviews Grid */
.wf-reviews-grid{

    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:18px;
    margin-top:20px;
}

/* Card */
.wf-review-card{

    background:#fff;
    border-radius:14px;
    padding:16px;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;

    transition:.2s;
}

.wf-review-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}


/* Header */
.wf-review-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    border-bottom:1px solid #eee;
    padding-bottom:10px;
    margin-bottom:10px;
}

.wf-review-header small{
    color:#666;
    font-size:12px;
}

.wf-review-rating{
    font-size:18px;
}


/* Vendor */
.wf-review-vendor{

    font-size:13px;
    color:#444;
    margin-bottom:8px;
}


/* Content */
.wf-review-content{

    flex:1;

    font-size:14px;
    line-height:1.6;

    color:#333;

    background:#fafafa;
    padding:10px;
    border-radius:8px;

    margin-bottom:12px;
}


/* Footer */
.wf-review-footer{

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:12px;
}

.wf-review-date{
    color:#777;
}

.wf-review-delete{

    color:#dc3545;
    text-decoration:none;
    font-weight:500;
}

.wf-review-delete:hover{
    text-decoration:underline;
}





/* =====================
   Layout Selector
===================== */

.wf-layout-grid{

  display:grid;

  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));

  gap:12px;

  margin:15px 0;
}


.wf-layout-item{

  display:flex;
  align-items:center;
  gap:8px;

  padding:12px;

  border:1px solid #e5e7eb;

  border-radius:10px;

  cursor:pointer;

  background:#fff;

  transition:.15s;
}


.wf-layout-item:hover{
  border-color:#6366f1;
  background:#eef2ff;
}


.wf-layout-item input{
  accent-color:#4f46e5;
}
























