/**
 * Frontend styles for Report Issue plugin
 *
 * @package ReportIssue
 * @since 1.0.0
 */

/* Report Issue Button */
.report-issue-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    background: var(--report-issue-button-color, #4285f4);
    color: #fff;
    padding: 12px 8px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    min-width: 40px;
    max-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Button Position */
.report-issue-button.report-issue-left {
    left: 0;
    border-radius: 0 6px 6px 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.report-issue-button.report-issue-right {
    right: 0;
    border-radius: 6px 0 0 6px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

/* Button Icon */
.report-issue-button i {
    display: none;
}

/* Button Text */
.report-issue-button-text {
    display: block;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

/* Button Hover Effects */
.report-issue-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.report-issue-button:active {
    transform: translateY(-50%) scale(0.98);
}

/* Tooltip */
.report-issue-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000000;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.report-issue-left .report-issue-tooltip {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.report-issue-right .report-issue-tooltip {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
}

.report-issue-button:hover .report-issue-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Tooltip Arrow */
.report-issue-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
}

.report-issue-left .report-issue-tooltip::before {
    left: -12px;
    border-right-color: rgba(0, 0, 0, 0.9);
}

.report-issue-right .report-issue-tooltip::before {
    right: -12px;
    border-left-color: rgba(0, 0, 0, 0.9);
}

/* Modal Overlay */
.report-issue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
}

.report-issue-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
}

/* Modal - Complete Reset and Strong Styles */
.report-issue-modal {
    /* Complete reset */
    all: unset !important;
    
    /* Apply strong modal styles */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000001 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    transition: all 0.3s ease !important;
    padding: 12px 16px !important; /* increased horizontal padding */
    box-sizing: border-box !important;
    
    /* Ensure proper font and direction */
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    color: #333 !important;
    
    /* Remove any potential interference */
    margin: 0 !important;
    border: none !important;
    background: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.report-issue-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
}

/* Modal Content */
.report-issue-modal-content {
    background: #fff !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    max-width: 400px !important;
    width: 100% !important;
    max-height: 80vh !important;
    overflow: hidden !important;
    transform: scale(0.8) translateY(40px) !important;
    transition: all 0.3s ease !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    color: #333 !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    z-index: 1000001 !important;
    position: relative !important;
}

.report-issue-modal.active .report-issue-modal-content {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Modal Header */
.report-issue-modal-header {
    background: var(--report-issue-button-color, #4285f4);
    color: var(--report-issue-header-text-color, #fff) !important;
    padding: 10px 24px; /* increased horizontal padding more */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
}

.report-issue-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--report-issue-header-text-color, #fff) !important;
}

.report-issue-modal-header i {
    font-size: 18px;
    color: var(--report-issue-header-text-color, #fff) !important;
}

/* Close Button */
.report-issue-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--report-issue-header-text-color, #fff) !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.report-issue-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body - Force Strong Display */
.report-issue-modal-body {
    padding: 14px 24px !important; /* increased horizontal padding more */
    max-height: calc(80vh - 48px) !important;
    overflow: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
}

/* Form Styles - Force Strong Display */
#report-issue-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
}

.report-issue-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.report-issue-field-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.report-issue-field label {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    line-height: 1.4 !important;
    text-align: right !important;
    direction: rtl !important;
    background: none !important;
    border: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
}

.required {
    color: #e74c3c !important;
    font-weight: bold !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.optional {
    color: #7f8c8d !important;
    font-weight: normal !important;
    font-size: 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Input Fields - Force Reset & Strong Styles */
.report-issue-field input,
.report-issue-field textarea,
.report-issue-field select {
    /* Reset all possible inherited styles */
    all: unset !important;
    
    /* Apply our specific styles with !important */
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    text-align: right !important;
    direction: rtl !important;
    
    /* Visibility and appearance */
    opacity: 1 !important;
    visibility: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    
    /* Remove any transforms or positioning */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    
    /* Ensure proper sizing */
    min-height: 36px !important;
    max-width: none !important;
    min-width: 0 !important;
    
    /* Text properties */
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    
    /* Remove any shadows or effects that might hide content */
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    
    /* Ensure proper overflow */
    overflow: visible !important;
    white-space: normal !important;
    
    /* Remove margins that might cause issues */
    margin: 0 !important;
    
    /* Ensure proper z-index */
    z-index: auto !important;
}

/* Placeholder Styles */
.report-issue-field input::placeholder,
.report-issue-field textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    direction: rtl !important;
    text-align: right !important;
}

.report-issue-field input::-webkit-input-placeholder,
.report-issue-field textarea::-webkit-input-placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    direction: rtl !important;
    text-align: right !important;
}

.report-issue-field input::-moz-placeholder,
.report-issue-field textarea::-moz-placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    direction: rtl !important;
    text-align: right !important;
}

.report-issue-field input:-ms-input-placeholder,
.report-issue-field textarea:-ms-input-placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    direction: rtl !important;
    text-align: right !important;
}

.report-issue-field input:focus,
.report-issue-field textarea:focus,
.report-issue-field select:focus {
    outline: none !important;
    border-color: var(--report-issue-button-color, #4285f4) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.report-issue-field textarea {
    resize: vertical !important;
    min-height: 60px !important;
    max-height: 120px !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.report-issue-field input[type="file"] {
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    border-style: dashed !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.report-issue-field input[type="file"]:hover {
    background: #e9ecef !important;
    background-color: #e9ecef !important;
}

/* File Info */
.file-info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.4;
}

/* Persian Captcha Styles - Compact Single Line */
.persian-captcha-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8f9fa !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
}

.persian-captcha-question {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    line-height: 1.3 !important;
    text-align: right !important;
    direction: rtl !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

.persian-captcha-input-row {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.persian-captcha-input-row input {
    width: 80px !important;
    padding: 6px 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #333 !important;
    text-align: center !important;
    direction: ltr !important;
}

.persian-captcha-input-row input:focus {
    border-color: var(--report-issue-button-color, #4285f4) !important;
    box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.3) !important;
    outline: none !important;
}

.persian-captcha-refresh {
    background: var(--report-issue-button-color, #4285f4) !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
}

.persian-captcha-refresh:hover {
    background: #3367d6 !important;
    transform: scale(1.1) !important;
}

.persian-captcha-refresh:active {
    transform: scale(0.9) !important;
}

.persian-captcha-refresh i {
    font-size: 11px !important;
    color: #fff !important;
}

/* Persian Captcha Error States */
.persian-captcha-container.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    animation: shake 0.5s ease-in-out !important;
}

.persian-captcha-input-row input.error {
    border-color: #dc3545 !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.3) !important;
}

.captcha-error-message {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    text-align: center !important;
    font-family: var(--report-issue-font, inherit), 'Vazirmatn', 'Vazir', 'Sahel', 'Shabnam', Tahoma, 'Segoe UI', Arial, sans-serif !important;
    animation: fadeInDown 0.3s ease-out !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User info for logged in users */
.report-issue-user-info {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin: 0 0 15px 0 !important;
    font-size: 13px !important;
    color: #495057 !important;
    direction: rtl !important;
    text-align: right !important;
}

.report-issue-user-info p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.report-issue-user-info strong {
    color: #28a745 !important;
    font-weight: 600 !important;
}

/* Submit Button */
.report-issue-submit {
    background: var(--report-issue-submit-button-color, #28a745);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.report-issue-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.report-issue-submit:active {
    transform: translateY(0);
}

.report-issue-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.report-issue-submit.loading {
    pointer-events: none;
}

.report-issue-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success/Error Messages */
.report-issue-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.3s ease;
}

.report-issue-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.report-issue-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.report-issue-message i {
    font-size: 18px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .report-issue-modal {
        padding: 10px 16px; /* increased horizontal padding */
        align-items: center;
    }
    .report-issue-modal-content {
        max-width: 360px;
        max-height: 85vh;
    }
    .report-issue-modal-header { padding: 10px 20px; }
    .report-issue-modal-body { padding: 12px 20px; max-height: calc(85vh - 44px); }
    #report-issue-form { gap: 10px; }
    .report-issue-field-row { grid-template-columns: 1fr; gap: 10px; }
}

@media screen and (max-width: 480px) {
    .report-issue-modal-content { max-width: 95vw; max-height: 90vh; }
    .report-issue-modal-body { padding: 10px 18px; max-height: calc(90vh - 44px); }
    .report-issue-field input, .report-issue-field textarea, .report-issue-field select { padding: 8px 10px; font-size: 16px; }
    .report-issue-submit { padding: 9px 14px; min-height: 38px; }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .report-issue-button {
        border: 2px solid #fff;
    }
    
    .report-issue-modal-content {
        border: 2px solid #000;
    }
    
    .report-issue-field input,
    .report-issue-field textarea,
    .report-issue-field select {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .report-issue-button,
    .report-issue-modal,
    .report-issue-modal-content,
    .report-issue-overlay,
    .report-issue-field input,
    .report-issue-field textarea,
    .report-issue-field select,
    .report-issue-submit,
    .report-issue-close {
        transition: none;
    }
    
    .report-issue-button i {
        animation: none;
    }
    
    .report-issue-submit.loading::after {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .report-issue-button,
    .report-issue-modal,
    .report-issue-overlay {
        display: none !important;
    }
}

/* RTL Support */
[dir="rtl"] .report-issue-button.report-issue-left {
    left: auto;
    right: 0;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .report-issue-button.report-issue-right {
    right: auto;
    left: 0;
    border-radius: 0 8px 8px 0;
}

[dir="rtl"] .report-issue-left .report-issue-tooltip {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .report-issue-right .report-issue-tooltip {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .report-issue-left .report-issue-tooltip::before {
    left: auto;
    right: -12px;
    border-right-color: transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

[dir="rtl"] .report-issue-right .report-issue-tooltip::before {
    right: auto;
    left: -12px;
    border-left-color: transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
}
