.twercpt-wrap {
    position: relative;
}

.twercpt-support-li a,
.twercpt-tutorial-li a {
    padding: 2px 3px 3px 25px !important;
}

.tw_bpmwc_wrap {
  margin-right: 20px;
  position: relative;
}

.twercpt-support-quick-links {
  margin: 25px 0;
}

.twercpt-support-quick-links h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #1e293b;
}

.twercpt-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
}

.twercpt-stat-card {
  background: #fff;
  border-radius: 12px;
  display: flex;
  padding: 25px;
  transition: all 0.3s ease;
  border: 2px solid #1460ac;
}

.twercpt-stat-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border: 2px solid #fff;
}

.twercpt-stat-card .stat-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1460ac 0%, #1e7ecc 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.twercpt-stat-card .stat-icon .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #fff;
}

.twercpt-stat-card .stat-content h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #1e293b;
  font-weight: 600;
}

.twercpt-stat-card .stat-content .stat-actions {
  margin-top: 15px;
}

.twercpt-stat-card .stat-content .stat-actions .button {
  background: #1460ac;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  padding: 6px 18px;
  transition: all 0.3s ease;
  border: 2px solid #1460AC;
}

.twercpt-stat-card .stat-content .stat-actions .button:hover {
  background: #E8F0FE;
  color: #1460AC;
  outline: none;
}

.twercpt-support-form-section {
  margin: 0;
}

.twercpt-support-form-section h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #1e293b;
}

.twercpt-review-us {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
}

.twercpt-review-us p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background-color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  margin: 3px 0;
}

.twercpt-review-us .dashicons {
  color: #1460ac;
}

.twercpt-review-us p a {
  color: #1460ac;
  font-weight: 500;
}

.twercpt-support-form-card {
  background: #fff;
  border: 2px solid #1460ac;
  border-radius: 12px;
  padding: 30px;
}

.twercpt-support-form-card .form-table {
  margin-top: 0;
}

.twercpt-support-form-card .form-table th {
  padding: 20px 10px 20px 0;
  width: 150px;
}

.twercpt-support-form-card .form-table td {
  padding: 15px 10px;
}

.twercpt-support-form-card .form-table input,
.twercpt-support-form-card .form-table textarea {
  width: 600px;
  background-color: #fff;
  border: 2px solid #1460ac;
  border-radius: 12px;
  padding: 8px 12px;
}

/* .twercpt-support-form-card .form-table .twercpt-consent-label input {
  width: 15px;
  height: 15px;
} */

.twercpt-support-form-card .form-table .twercpt-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  cursor: pointer;
}

.twercpt-support-form-card .form-table .twercpt-consent-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: #1460ac;
}

.twercpt-consent-error {
  color: #dc2626;
}

.twercpt-consent-error input[type="checkbox"] {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.twercpt-support-form-card .form-table input:focus,
.twercpt-support-form-card .form-table textarea:focus {
  border-color: #0d4a85;
  box-shadow: 0 0 0 1px #1460ac;
  outline: none;
}

.twercpt-support-form-card .form-table textarea {
  min-height: 200px;
}

.twercpt-support-form-card .required {
  color: #dc2626;
  font-weight: bold;
}

.twercpt-support-form-card .twercpt-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.twercpt-support-form-card .twercpt-field-error-message {
  color: #dc2626;
  font-size: 13px;
  margin: 5px 0 0 0;
  font-weight: 500;
}

.twercpt-support-form-card .description {
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.twercpt-support-form-card .description .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #1460ac;
}

.twercpt-support-form-card .submit {
  margin: 25px 0 0 0;
  padding: 0;
}

.twercpt-support-form-card .button-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: #1460ac !important;
  border: 2px solid #1460ac !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  line-height: 1.4 !important;
  min-height: auto !important;
}

.twercpt-support-form-card .button-large:hover {
  background: #fff !important;
  color: #1460ac !important;
  border: 2px solid #1460ac !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 96, 172, 0.2);
}

.twercpt-support-form-card .button-large .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Responsive Adjustments */
@media (min-width: 991.98px) {
  .twercpt-page-top {
    flex-wrap: nowrap;
  }

  .twercpt-review-us,
  .twercpt-review-stack {
    position: static;
    top: auto;
    right: auto;
  }

  /* Tutorial page: Rate Us stays top-right without page-top layout. */
  .twercpt-wrap > .twercpt-review-us {
    position: absolute;
    top: 0;
    right: 0;
  }
}

@media screen and (max-width: 782px) {
  .twercpt-detail-label,
  .twercpt-detail-value {
    display: block;
    width: 100%;
    padding: 10px;
  }

  .twercpt-detail-label {
    padding-bottom: 0;
    font-weight: 700;
  }

  .twercpt-support-form-card {
    padding: 20px;
  }
  
  .twercpt-support-form-card .form-table th {
    padding: 10px 0 5px 0;
    width: 100%;
    display: block;
  }
  
  .twercpt-support-form-card .form-table td {
    padding: 5px 0 15px 0;
    display: block;
  }
  
  .twercpt-support-form-card .form-table input[type="text"],
  .twercpt-support-form-card .form-table input[type="email"],
  .twercpt-support-form-card .form-table input[type="url"],
  .twercpt-support-form-card .form-table textarea {
    max-width: 100%;
  }
  
  .twercpt-support-form-card .button-large {
    width: 100%;
    justify-content: center;
  }
}

/* Priority support button — match Upload Guard / Secure Login Path */
.twercpt-page-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.twercpt-page-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.twercpt-page-top h1,
.twercpt-page-title-row h1 {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.twercpt-reconnect-btn.button,
.twercpt-reconnect-btn.button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 18px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: #1460ac !important;
  border: 2px solid #1460ac !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  line-height: 1.4 !important;
  min-height: auto !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.twercpt-reconnect-btn.button:hover,
.twercpt-reconnect-btn.button:focus,
.twercpt-reconnect-btn.button:hover,
.twercpt-reconnect-btn.button:focus {
  background: #fff !important;
  color: #1460ac !important;
  border: 2px solid #1460ac !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 96, 172, 0.2) !important;
}

@media (min-width: 991.98px) {
  .twercpt-page-top {
    flex-wrap: nowrap;
  }
}

@media screen and (max-width: 782px) {
  .twercpt-page-top {
    flex-direction: column;
    align-items: stretch;
  }

  .twercpt-page-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .twercpt-reconnect-btn.button,
  .twercpt-reconnect-btn.button {
    width: 100%;
    justify-content: center;
  }
}

/* Unified Rate Us + Upgrade spacing */
.twercpt-wrap .twercpt-review-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
    flex: 0 1 auto;
    max-width: 100%;
}

.twercpt-wrap .twercpt-page-top .twercpt-review-stack {
    margin: 0;
}

.twercpt-wrap > .twercpt-review-stack {
    margin: 10px 0 12px;
}

.twercpt-wrap .twercpt-review-us,
.twercpt-wrap .twercpt-upgrade-to-pro {
  display: flex;
  align-items: end;
  justify-content: center;
  margin: 0 !important;
}

.twercpt-wrap .twercpt-review-us p,
.twercpt-wrap .twercpt-upgrade-to-pro p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    background-color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    margin: 0 !important;
    box-sizing: border-box;
}

.twercpt-wrap .twercpt-review-us p {
    border: 2px solid #1460ac;
}

.twercpt-wrap .twercpt-upgrade-to-pro p {
    border: 2px solid #f56e28;
}

.twercpt-wrap .twercpt-review-us .dashicons {
    color: #1460ac;
}

.twercpt-wrap .twercpt-upgrade-to-pro .dashicons {
    color: #f56e28;
}

.twercpt-wrap .twercpt-review-us p a {
    color: #1460ac;
    font-weight: 500;
    text-decoration: none;
}

.twercpt-wrap .twercpt-upgrade-to-pro p a {
    color: #f56e28;
    font-weight: 500;
    text-decoration: none;
}

.twercpt-wrap .twercpt-review-us p a:hover,
.twercpt-wrap .twercpt-upgrade-to-pro p a:hover {
    text-decoration: underline;
}
