/* WooCommerce Check Manager — Frontend & Jalali Picker Styles (Local Vazirmatn, Zero CDN) */
.wcm-checkout-box,
.wcm-checkout-box *,
.wcm-myaccount-wrap,
.wcm-myaccount-wrap *,
.wcm-jp-popup,
.wcm-jp-popup * {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
.wcm-checkout-box,
.wcm-myaccount-wrap,
.wcm-jp-popup {
    direction: rtl;
    text-align: right;
}

.wcm-gateway-desc {
    margin: 0 0 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.wcm-checkout-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

.wcm-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.wcm-summary-strip span {
    color: #64748b;
    margin-left: 4px;
}

.wcm-check-row {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.wcm-check-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #0f172a;
}

.wcm-remove-check-btn {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.wcm-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 640px) {
    .wcm-check-grid {
        grid-template-columns: 1fr;
    }
}

.wcm-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.wcm-field input,
.wcm-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    box-sizing: border-box;
}

.wcm-field-full {
    grid-column: 1 / -1;
}

.wcm-split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wcm-repeater-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.wcm-add-check-btn {
    background: #0f766e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    cursor: pointer;
}

.wcm-save-draft-btn {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    cursor: pointer;
}

.wcm-live-totals {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}

.wcm-text-success { color: #15803d; }
.wcm-text-danger { color: #b91c1c; }

.wcm-amount-words {
    display: none;
    margin-top: 6px;
    padding: 5px 10px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 600;
}

.wcm-sayad-disclaimer {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.7;
}

/* Badges */
.wcm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* My Account Checks Dashboard */
.wcm-myaccount-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.wcm-myaccount-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}

.wcm-myaccount-card span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.wcm-myaccount-card strong {
    font-size: 16px;
    color: #0f172a;
}

.wcm-table-responsive {
    overflow-x: auto;
}

.wcm-account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.wcm-account-table th,
.wcm-account-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.wcm-account-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.wcm-upload-inline {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Local Jalali Datepicker Popup */
.wcm-jp-popup {
    position: absolute;
    z-index: 999999;
    width: 268px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    padding: 12px;
    user-select: none;
}

.wcm-jp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wcm-jp-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.wcm-jp-nav {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    color: #1e293b;
}

.wcm-jp-weekdays,
.wcm-jp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}

.wcm-jp-weekdays {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}

.wcm-jp-day {
    border: none;
    background: transparent;
    border-radius: 7px;
    padding: 6px 0;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    color: #1e293b;
}

.wcm-jp-day:hover {
    background: #e2e8f0;
}

.wcm-jp-fri {
    color: #dc2626;
}

.wcm-jp-today {
    border: 1px solid #0f766e;
    font-weight: 700;
}

.wcm-jp-selected {
    background: #0f766e !important;
    color: #ffffff !important;
    font-weight: 700;
}

.wcm-jp-footer {
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    text-align: center;
}

.wcm-jp-today-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 7px;
    padding: 5px 12px;
    font-family: inherit;
    font-size: 12px;
    color: #0f766e;
    font-weight: 600;
    cursor: pointer;
}
