@charset "UTF-8";
.nader-loading,
.nader-error {
  padding: 20px;
  text-align: center;
  background: var(--nader-color-white-gray);
  border-radius: 4px;
  margin: 20px 0;
}

.nader-error {
  color: #dc3232;
}

.nader-ticket-item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.nader-ticket-item:hover {
  transform: translateY(-2px);
}
.nader-ticket-item .nader-ticket-title {
  font-size: 14px;
  margin-bottom: 10px;
}
.nader-ticket-item .nader-ticket-title a {
  color: var(--nader-color-dark);
  font-weight: 600;
}
.nader-ticket-item .nader-ticket-title .view-ticket-btn {
  background: var(--nader-color-white-gray);
  color: var(--nader-color-dark-light);
  padding: 0px 12px;
  font-weight: normal;
  border-radius: 4px;
  font-size: 12px;
}
.nader-ticket-item .nader-ticket-title .view-ticket-btn:hover {
  background: var(--nader-color-main);
  color: white;
}

.nader-ticket-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9em;
  text-transform: capitalize;
}
.nader-ticket-meta > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.nader-ticket-meta > span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ddd;
  border-radius: 50%;
}
.nader-ticket-meta .nader-ticket-status {
  font-weight: bold;
}
.nader-ticket-meta .nader-ticket-status:before {
  background: currentColor;
}
.nader-ticket-meta .nader-ticket-status.status-open {
  color: #46b450;
}
.nader-ticket-meta .nader-ticket-status.status-pending {
  color: #ffb900;
}
.nader-ticket-meta .nader-ticket-status.status-closed {
  color: #dc3232;
}

.nader-tickets-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.nader-tickets-pagination .page-numbers {
  font-size: 14px;
  min-width: 36px;
  padding: 8px 12px;
  background: var(--nader-color-white-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.nader-tickets-pagination .page-numbers:hover:not(.disabled) {
  background: var(--nader-color-main);
  color: white;
  border-color: var(--nader-color-main);
}
.nader-tickets-pagination .page-numbers.current {
  background: var(--nader-color-main);
  color: white;
  border-color: var(--nader-color-main);
  font-weight: bold;
}
.nader-tickets-pagination .page-numbers.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .nader-tickets-pagination .page-numbers.first, .nader-tickets-pagination .page-numbers.last {
    display: none;
  }
}

.nader-loading-text {
  margin-top: 16px;
  margin-bottom: 0;
}
.nader-loading-spinner {
  display: flex;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid var(--nader-color-main);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 1s ease-in-out infinite;
}

.nader-ticket-btn {
  background: var(--nader-color-main);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all 0.3s;
}
.nader-ticket-btn svg {
  width: 24px;
  height: 24px;
}
.nader-ticket-btn:hover {
  background: var(--nader-color-dark);
  color: var(--nader-color-main);
}

.send-ticket-btn {
  background: #46b450;
  color: white;
}
.send-ticket-btn:hover {
  background: #388f40;
  color: white;
}

.nader-new-ticket-form .nader-form-group {
  margin-bottom: 20px;
}
.nader-new-ticket-form .nader-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.nader-new-ticket-form .nader-form-group input[type=text],
.nader-new-ticket-form .nader-form-group select,
.nader-new-ticket-form .nader-form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.nader-new-ticket-form .nader-form-group input[type=text]:focus,
.nader-new-ticket-form .nader-form-group select:focus,
.nader-new-ticket-form .nader-form-group textarea:focus {
  border-color: var(--nader-color-main);
  outline: none;
}
.nader-new-ticket-form .nader-form-group textarea {
  min-height: 150px;
}
.nader-new-ticket-form .nader-form-actions {
  text-align: right;
}

.nader-ticket-detail .nader-ticket-header {
  border-bottom: 1px solid var(--nader-color-white-gray);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.nader-ticket-detail .nader-ticket-header h2 {
  margin: 0 0 10px;
}
.nader-ticket-detail .nader-ticket-reply-form {
  margin-top: 30px;
  padding-top: 20px;
}
.nader-ticket-detail .nader-ticket-reply-form .nader-form-group {
  margin-bottom: 15px;
}
.nader-ticket-detail .nader-ticket-reply-form .nader-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.nader-ticket-detail .nader-close-ticket {
  background-color: #dc3232;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 10px;
}
.nader-ticket-detail .nader-close-ticket:hover {
  background-color: #bb2020;
}
.nader-ticket-detail .nader-close-ticket:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
.nader-ticket-detail .nader-ticket-closed-notice {
  background-color: #f8f9fa;
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 0;
  border-radius: 4px;
  text-align: center;
  color: #6c757d;
}

.nader-ticket-replies {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.nader-ticket-replies .nader-ticket-reply {
  position: relative;
  gap: 16px;
}
.nader-ticket-replies .nader-ticket-reply.nader-admin-reply {
  flex-direction: row-reverse;
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-header .nader-reply-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nader-color-gray-light);
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-header .nader-reply-author-info {
  display: flex;
  flex-direction: column;
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-header .nader-reply-author-info .nader-reply-author {
  font-weight: bold;
  font-size: 14px;
  color: var(--nader-color-dark);
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-content {
  padding: 16px;
  line-height: 1.7;
  color: var(--nader-color-dark);
  background: var(--nader-color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-content p:last-child {
  margin-bottom: 0;
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-date {
  font-size: 12px;
  color: var(--nader-color-gray-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nader-ticket-replies .nader-ticket-reply .nader-reply-date::before {
  content: "\f469";
  font-family: dashicons;
  font-size: 14px;
}
.nader-ticket-replies .nader-ticket-reply.nader-admin-reply .nader-reply-content {
  border-right: 2px solid var(--nader-color-green);
}
.rtl .nader-ticket-replies .nader-ticket-reply.nader-admin-reply .nader-reply-content {
  border-right: none;
  border-left: 2px solid var(--nader-color-green);
}

.nader-ticket-empty-notice {
  background-color: #f8f9fa;
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 0;
  border-radius: 4px;
  text-align: center;
  color: #6c757d;
}

/* استایل شمارنده تیکت‌ها */
.woocommerce-MyAccount-navigation-link--support-tickets .ticket-count {
  display: inline-block;
  background-color: var(--nader-color-main);
  color: white;
  font-size: 12px;
  line-height: 1;
  border-radius: 10px;
  padding: 5px 8px;
  margin-left: 5px;
  min-width: 18px;
  text-align: center;
  font-weight: normal;
}
.rtl .woocommerce-MyAccount-navigation-link--support-tickets .ticket-count {
  margin-left: auto;
  margin-right: 5px;
}
.woocommerce-MyAccount-navigation-link--support-tickets.is-active .ticket-count {
  background: white;
  color: var(--nader-color-dark);
}

@media (max-width: 768px) {
  .nader-ticket-meta {
    flex-direction: column;
    gap: 5px !important;
  }
  .nader-ticket-meta > span::before {
    display: none;
  }
}

/*# sourceMappingURL=frontend.css.map */
