/* Minimal styling for pay now button - uses theme's button styles */
.membercheck-navigation .button {
  border: 1px solid var(--light);
  border-radius: 3px;
  display: block;
  margin-left: auto;
  padding: 6px 12px;
}
.membercheck-navigation .button:hover {
  background-color: var(--light);
}

.button--primary.membercheck-pay-now::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: text-top;
  background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

/* View profile button icon */
.button.membercheck-nav-btn.membercheck-view::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: text-top;
  background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Edit profile button icon */
.button.membercheck-nav-btn.membercheck-edit::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: text-top;
  background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="m18.5 2.5 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Logout button icon */
.button.membercheck-nav-btn.membercheck-logout::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: text-top;
  background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16,17 21,12 16,7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Member navigation block styling */
.membercheck-navigation .block-content ul {
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}

.membercheck-navigation .block-content li {
  margin: 0;
  list-style: none;
}

.membercheck-nav-btn {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .membercheck-navigation {
    flex-direction: column;
  }
  
  .membercheck-navigation .button {
    width: 100%;
    text-align: center;
  }
}

/* User Transactions Table Styling */
#user-transactions {
  margin: 2rem 0;
}

#user-transactions h3 {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

#user-transactions table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#user-transactions table thead {
  background: var(--primary);
  color: #fff;
}

#user-transactions table thead th {
  padding: 12px 15px;
  font-weight: bold;
  text-align: left;
  border-bottom: 2px solid var(--dark);
}

#user-transactions table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

#user-transactions table tbody tr:hover {
  background-color: var(--light);
}

#user-transactions table tbody tr:last-child {
  border-bottom: none;
}

#user-transactions table tbody td {
  padding: 12px 15px;
  color: var(--color-text);
}

#user-transactions table tbody td:nth-child(2) {
  font-weight: bold;
  color: var(--primary);
}

#user-transactions table tbody td:nth-child(4) {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--secondary);
}

#user-transactions table tbody td:nth-child(5) {
  font-size: 0.9rem;
}

#user-transactions .no-transactions {
  text-align: center;
  padding: 2rem;
  color: var(--secondary);
  font-style: italic;
}

/* Responsive table styling */
@media (max-width: 768px) {
  #user-transactions table {
    font-size: 0.9rem;
  }
  
  #user-transactions table thead th,
  #user-transactions table tbody td {
    padding: 8px 10px;
  }
  
  /* Hide less important columns on small screens */
  #user-transactions table th:nth-child(6),
  #user-transactions table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  #user-transactions table th:nth-child(3),
  #user-transactions table td:nth-child(3),
  #user-transactions table th:nth-child(4),
  #user-transactions table td:nth-child(4),
  #user-transactions table th:nth-child(5),
  #user-transactions table td:nth-child(5) {
    display: none;
  }
  
  #user-transactions table {
    font-size: 0.8rem;
  }
}
