/* Base styles for the widget container */
.psp-widget-container {
  background-color: #fff; /* Default, can be overridden by Elementor style controls if added */
   /* Default, can be overridden */
  overflow: hidden;
}
/* Table Title */
.psp-table-title {
  margin: 0;
  padding: 15px 20px;
  font-size: 1.5em;
  color: #333;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
/* Table Controls (Search only) */
.psp-table-controls {
  display: flex;
  justify-content: flex-end; /* Align search to the right */
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.psp-search-container {
  display: flex;
  gap: 10px;
}
.psp-search-input {
  font-size: 16px;
  font-weight: lighter;
  line-height: 24px;
  width: 100% !IMPORTANT;
  max-width: 362px !IMPORTANT;
  min-width: 332px;
  padding: 8px 16px 8px 45px !important;
  font-family: "Lexend", sans-serif;
  border-radius: 0 !important;
  border-color: #686868 !important;
}
.psp-search-container-icon {
    display: flex;
    position: relative;
}

span.psp-search-input-icon {
    position: absolute;
    left: 14px;
    top: 8px;
}
.psp-search-input::placeholder {
  color: #666;
}
span.psp-search-input-icon svg {
    width: 22px !important;
    height: 25px !important;
}
.psp-search-button {
  padding: 8px 15px;
  background-color: #194C9F;
  color: white;
  cursor: pointer;
  border-radius: 0;
  border: 0;
  display: flex;
  font-size: 16px;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-family: 'Poppins';
  justify-content: space-between;
}

.psp-search-button:hover {background-color: #194C9F;}

/* Table Container and Table */
.psp-table-container {
  width: 100%;
  overflow-x: auto; /* Enable horizontal scrolling for small screens */
}

.psp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Helps with column width consistency */
}

.psp-table thead {
  background-color: #194C9F;
  color: white;
}

.psp-table th {
  padding: 10px 10px 10px 20px;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  line-height: normal;
  font-weight: 600;
  font-family: 'Poppins';
}

/* Column widths */
.psp-table th:nth-child(1),
.psp-table td:nth-child(1) {
  /* Institution Name */
  width: 25%;
}
.psp-table th:nth-child(2),
.psp-table td:nth-child(2) {
  /* Website */
  width: 33%;
}
.psp-table th:nth-child(3),
.psp-table td:nth-child(3) {
  /* Approved Services */
  width: 37%;
}
.psp-table th:nth-child(4),
.psp-table td:nth-child(4) {
  /* Actions */
  width: 15%;
  text-align: center; /* Center the button */
}

/* Table Body Rows */
.psp-table-body {
  min-height: 100px; /* Ensure some height even when empty */
  position: relative; /* For loading spinner positioning */
}

.psp-table-body tr {
  border-bottom: 1px solid #00C8FF;
   /* Default for odd rows */
  transition: background-color 0.2s ease;
  border-right: 1px solid #00C8FF;
  border-left: 1px solid #00C8FF;
}

.psp-table-body tr:last-child {
   /* Zebra striping */
}

.psp-table-body tr:hover {
}

.psp-table-body td {
  padding: 10px 10px 10px 20px;
  color: #333;
  word-break: break-word; /* Prevent long words from overflowing */
   /* Align content to top in cells */
}

.psp-table-body td a {
  text-decoration: none;
  color: #000;
}

.psp-table-body td a:hover {
  text-decoration: underline;
}

.psp-table-body .no-items {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* View Button Styling */
.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 70px; /* Ensure consistent button width */
}

.view-button:hover {
  background-color: #0056b3;
  color: white; /* Keep text white on hover */
  text-decoration: none; /* Remove underline on hover */
}

.view-button .fas {
  margin-right: 5px;
}

.view-button.no-view-link {
  background-color: #6c757d; /* Grey out if no link */
  cursor: not-allowed;
}

.view-button.no-view-link:hover {
  background-color: #6c757d; /* Keep grey on hover */
}

/* Loading Spinner */
.psp-table-container.loading .loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block; /* Shown by JS when loading */
  z-index: 10;
}
.psp-table-container .loading-spinner {
  display: none; /* Hidden by default */
}

.psp-table-container.loading .psp-table {
  opacity: 0.5; /* Dim content while loading */
  pointer-events: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Table Footer (Pagination) */
.psp-table-footer {
  display: flex;
  justify-content: space-between; /* Distribute items to ends */
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
  gap: 10px; /* Gap between left group and pagination */
}

.psp-footer-left {
  display: flex;
  align-items: center;
  gap: 15px; /* Gap between "Show entries" and "Showing info" */
  flex-wrap: wrap;
}

.psp-per-page-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #555;
}

.psp-posts-per-page {
  padding: 5px 8px;
  border: 1px solid #686868;
  border-radius: 0;
  color: #686868;
}

.psp-table-footer .psp-showing-info, .psp-per-page-container label {
  font-size: 14px;
  color: #A2A1A8;
  font-weight: lighter;
  line-height: 22px;
  font-family: "Lexend", sans-serif;
}

.psp-table-footer .pagination-controls {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bank-pay-inner > .elementor-container.elementor-column-gap-default {
    max-width: 1212px;
}
.psp-table-footer .page-btn {
  padding: 8px 12px;
  border: 1px solid #686868;
  border-radius: 0;
  background-color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  color: #686868;
}

.psp-table-footer .page-btn:hover {
  background: #fff;
  color: #194C9F;
  border-color: #194C9F;
}

.psp-table-footer .page-btn.active {
  color: #194C9F;
  cursor: default;
  border-color: #194C9F;
}

.psp-table-footer .page-btn.active:hover {
  background-color: #007bff;
  color: white;
}

/* Font Awesome icons (if used, ensure Font Awesome is enqueued by Elementor or your theme) */
.fas {
  margin-right: 5px;
}

 

.psp-table-body td h4 {
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
}

.psp-table-body tr td {
    border-right: 1px solid #00C8FF;
}

td {}

.psp-table-body tr td p {
    margin: 0;
}

.psp-search-button svg {
    width: 20px !IMPORTANT;
    height: 20px !IMPORTANT;
}

.psp-search-button svg path {
    fill: #fff;
}

.psp-table td:nth-child(4) a {
    background: #194C9F;
    border-radius: 0;
    color: #fff;
    flex-direction: row-reverse;
    gap: 10px;
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins';
    line-height: normal;
}

.psp-table td:nth-child(4) a:hover {
    background: #194c9fdb;
}

.psp-posts-per-page:focus {
    outline: none;
}

.psp-per-page-container span {
    display: none;
}

.pagination-wrapper {
    display: flex;
    gap: 10px;
}
input.psp-search-input:focus {
    outline: none;
}

@media (max-width: 1199px) {
    .psp-table th { 
    font-size: 16px; 
}
.psp-table-body td h4 {
    font-size: 16px; 
    line-height: 24px; 
}
.psp-table-body tr td a, .psp-table-body tr td p {
    font-size: 16px;
}
.psp-table td:nth-child(4) a { 
    font-size: 14px; 
}
.psp-table-body td, .psp-table th {
    padding: 10px; 
}
   .psp-table td:nth-child(4) a{
       flex-wrap:nowrap;
   } 
   .psp-table th:nth-child(1), .psp-table td:nth-child(1) {
    width: 20%;
}
.psp-table th:nth-child(4), .psp-table td:nth-child(4) {
    width: 20%; 
}
}

@media (max-width: 991px) {
    .psp-table th { 
    font-size: 14px; 
}
.psp-table-body td h4 {
    font-size: 14px; 
    line-height: 20px; 
}
.psp-table-body tr td a, .psp-table-body tr td p {
    font-size: 14px;
}
    .psp-search-input {
    font-size: 14px; 
    max-width: 260px !IMPORTANT;
    min-width: 260px; 
}
.psp-search-button { 
    font-size: 14px; 
}
.psp-search-button svg {
    width: 15px !IMPORTANT;
    height: 15px !IMPORTANT;
}
}
@media (max-width: 768px) {
     .psp-table th:nth-child(1), .psp-table td:nth-child(1) {
    width: 20%;
}
.psp-table th:nth-child(4), .psp-table td:nth-child(4) {
    width: 25%; 
}
    
    
    
}
@media (max-width: 599px) {    
    
    .psp-table th:nth-child(1), .psp-table td:nth-child(1) {
    width: 120px;
}
.psp-table th:nth-child(2), .psp-table td:nth-child(2) {
    width: 175px;
}
.psp-table th:nth-child(3), .psp-table td:nth-child(3) {
    width: 300px;
}
.psp-table th:nth-child(4), .psp-table td:nth-child(4) {
    width: 120px;
}
.psp-search-input {
    font-size: 14px;
    max-width: 200px !IMPORTANT;
    min-width: 200px;
}
.psp-footer-left {
    width: 100%;
    max-width: 50%;
}

.psp-table-footer {
    justify-content: center;
    gap: 0;
    row-gap: 10px;
    padding: 15px 0px;
}

.psp-showing-info {
    width: 100%;
    max-width: 50%;
}
}

@media (max-width: 480px) {    

.psp-search-input {
    font-size: 14px;
    max-width: 160px !IMPORTANT;
    min-width: 100px;
}
}





@media (max-width: 380px) {  
    .psp-footer-left { 
    max-width: 100%;        justify-content: center;
}
 
.psp-showing-info { 
    max-width: 100%;        justify-content: center;
}
    
}