/* Page layout */
.qvipp-admin-page {
  padding: 20px 20px 10px;
}

.qvipp-page-header {
  margin-bottom: 18px;
}

.qvipp-page-header h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.qvipp-page-subtitle {
  margin: 0;
  color: #646970;
  font-size: 13px;
}

/* Card sections */
.qvipp-card {
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 10px;
  padding: 18px 18px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.qvipp-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f1;
}

/* Table cells */
.qvipp-form-table th,
.qvipp-form-table td {
  padding: 12px 10px;
  vertical-align: top;
}

.qvipp-form-table th {
  width: 240px;
}

/* Inputs */
.qvipp-form-table input[type="text"],
.qvipp-form-table select {
  padding: 6px 8px;
  width: 280px;
  max-width: 100%;
}

/* Notes under fields */
.qvipp-field-note {
  margin: 6px 0 0;
  color: #646970;
  font-size: 12px;
}

/* Color pickers and buttons */
.wrap .wp-picker-container {
  padding: 5px 0;
}

/* Switch rows */
.qvipp-inline-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Submit button spacing */
.wrap .submit {
  margin-top: 10px;
}

.qvipp-version {
    font-size: 15px;
    color: #888;
    margin-left: 6px;
    font-weight: 400;
  background-color: #fff;
    padding: 2px 5px 2px 2px;
    border-radius: 2px;
    border: 1px solid #888;
}

/* Container */
.qvipp-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

/* Hide default checkbox */
.qvipp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider track */
.qvipp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s ease;
}

/* The knob */
.qvipp-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Checked state */
.qvipp-switch input:checked+.qvipp-slider {
  background-color: #2271b1;
  /* WP blue */
}

.qvipp-switch input:checked+.qvipp-slider::before {
  transform: translateX(22px);
}

/* Container */
.qvipp-radio-group {
  display: inline-flex;
  gap: 0;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  overflow: hidden;
}

/* Hide the actual radios */
.qvipp-radio-group input[type="radio"] {
  display: none;
}

/* Style the labels as pills */
.qvipp-radio-group label {
  padding: 6px 14px;
  cursor: pointer;
  background-color: #f6f7f7;
  color: #50575e;
  border-right: 1px solid #c3c4c7;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Remove border from last label */
.qvipp-radio-group label:last-of-type {
  border-right: none;
}

/* Checked state (active pill) */
.qvipp-radio-group input[type="radio"]:checked+label {
  background-color: #2271b1;
  /* WP blue */
  color: #fff;
}