.pab-profile-root {
  border: 1px solid #dcdfe4;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  margin: 12px 0;
}

.pab-profile-root .pab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.pab-profile-root .pab-card form {
  display: grid;
  gap: 8px;
}

.pab-profile-root .pab-card label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.pab-profile-root .pab-card input {
  width: 100%;
}

.pab-profile-root .pab-card input[name="email"][readonly] {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.pab-profile-root .pab-card input:disabled {
  background: #f8fafc;
  color: #64748b;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.pab-profile-root .pab-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pab-profile-root .pab-profile-logout-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.pab-profile-root .pab-profile-logout-wrap .pab-profile-logout-btn {
  border: 1px solid #c10f00;
  background: #c10f00;
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 20px;
  cursor: pointer;
}

.pab-profile-root .pab-profile-logout-wrap .pab-profile-logout-btn:hover {
  background: #a50d00;
  border-color: #a50d00;
}

.pab-profile-root .pab-profile-email-update {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.pab-profile-root .pab-profile-email-update-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pab-profile-root .pab-profile-email-update-panel[hidden] {
  display: none !important;
}

.pab-profile-root .pab-profile-actions button,
.pab-profile-root .pab-profile-actions .pab-profile-subscription-cta {
  flex: 1 1 180px;
}

.pab-profile-root .pab-profile-actions > button,
.pab-profile-root .pab-profile-actions > a {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}

.pab-profile-root .pab-profile-edit-infos-btn,
.pab-profile-root .pab-profile-edit-password-btn,
.pab-profile-root .pab-profile-edit-email-btn,
.pab-profile-root .pab-profile-subscription-cta {
  border: 1px solid #1d4f74;
  background: #eef6ff;
  color: #113652;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}

.pab-profile-root .pab-profile-send-email-code-btn,
.pab-profile-root .pab-profile-validate-email-code-btn,
.pab-profile-root .pab-profile-cancel-email-btn {
  border: 1px solid #1d4f74;
  background: #eef6ff;
  color: #113652;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}

.pab-profile-root .pab-profile-logout-btn {
  border: 1px solid #c10f00;
  background: #fff5f5;
  color: #9f0f00;
  font-weight: 700;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

.pab-profile-root .pab-profile-logout-btn:hover,
.pab-profile-root .pab-profile-logout-btn:focus {
  background: #ffe8e8;
  border-color: #a50d00;
  color: #8f0b00;
}

.pab-profile-root .pab-profile-gate-card {
  margin-bottom: 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.pab-profile-root .pab-profile-subscription-details p {
  margin: 0 0 8px;
  font-size: 14px;
}

.pab-profile-root .pab-profile-subscription-details p:last-child {
  margin-bottom: 0;
}

.pab-profile-root .pab-profile-ulule-modal[hidden] {
  display: none !important;
}

.pab-profile-root .pab-profile-disable-modal[hidden] {
  display: none !important;
}

body.pab-profile-ulule-modal-open {
  overflow: hidden;
}

body.pab-profile-disable-modal-open {
  overflow: hidden;
}

.pab-profile-root .pab-profile-ulule-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pab-profile-root .pab-profile-disable-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pab-profile-root .pab-profile-ulule-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 39, 65, 0.56);
}

.pab-profile-root .pab-profile-disable-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 39, 65, 0.62);
}

.pab-profile-root .pab-profile-ulule-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
  text-align: center;
}

.pab-profile-root .pab-profile-disable-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
}

.pab-profile-root .pab-profile-ulule-modal-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.pab-profile-root .pab-profile-disable-modal-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.pab-profile-root .pab-profile-ulule-modal-message {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.pab-profile-root .pab-profile-disable-modal-message,
.pab-profile-root .pab-profile-disable-modal-help {
  margin: 0 0 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.pab-profile-root .pab-profile-disable-modal-help a {
  color: #0f3a5c;
  font-weight: 700;
}

.pab-profile-root .pab-profile-disable-modal-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.pab-profile-root .pab-profile-disable-modal-status.info {
  background: #eff6ff;
  color: #113652;
}

.pab-profile-root .pab-profile-disable-modal-status.error {
  background: #fff1f2;
  color: #9f1239;
}

.pab-profile-root .pab-profile-disable-form {
  display: grid;
  gap: 12px;
}

.pab-profile-root .pab-profile-disable-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #1f2937;
}

.pab-profile-root .pab-profile-ulule-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.pab-profile-root .pab-profile-disable-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pab-profile-root .pab-profile-ulule-modal-close-btn {
  border: 1px solid #092741;
  background: #092741;
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(6, 38, 63, 0.22);
}

.pab-profile-root .pab-profile-disable-modal-confirm-btn,
.pab-profile-root .pab-profile-disable-modal-cancel-btn {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pab-profile-root .pab-profile-disable-modal-confirm-btn {
  border: 1px solid #c10f00;
  background: #c10f00;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(193, 15, 0, 0.22);
}

.pab-profile-root .pab-profile-disable-modal-confirm-btn:hover,
.pab-profile-root .pab-profile-disable-modal-confirm-btn:focus {
  background: #a50d00;
  border-color: #a50d00;
  color: #ffffff;
}

.pab-profile-root .pab-profile-disable-modal-cancel-btn {
  border: 1px solid #092741;
  background: #092741;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(6, 38, 63, 0.22);
}

.pab-profile-root .pab-profile-disable-modal-cancel-btn:hover,
.pab-profile-root .pab-profile-disable-modal-cancel-btn:focus {
  background: #0f3a5c;
  border-color: #0f3a5c;
  color: #ffffff;
}

.pab-profile-root .pab-profile-ulule-modal-close-btn:hover,
.pab-profile-root .pab-profile-ulule-modal-close-btn:focus {
  background: #0f3a5c;
  border-color: #0f3a5c;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 38, 63, 0.28);
}

.pab-profile-root .swpm-active-subs-table-wrap {
  display: none !important;
}

body.pab-has-profile-shortcode .swpm-active-subs-table-wrap {
  display: none !important;
}

@media (max-width: 767px) {
  .pab-profile-root .pab-profile-ulule-modal {
    padding: 16px;
  }

  .pab-profile-root .pab-profile-disable-modal {
    padding: 16px;
  }

  .pab-profile-root .pab-profile-ulule-modal-dialog {
    padding: 24px 18px;
  }

  .pab-profile-root .pab-profile-disable-modal-dialog {
    padding: 24px 18px;
  }

  .pab-profile-root .pab-profile-ulule-modal-title {
    font-size: 21px;
  }

  .pab-profile-root .pab-profile-disable-modal-title {
    font-size: 21px;
  }

  .pab-profile-root .pab-profile-ulule-modal-close-btn {
    width: 100%;
  }

  .pab-profile-root .pab-profile-disable-modal-confirm-btn,
  .pab-profile-root .pab-profile-disable-modal-cancel-btn {
    width: 100%;
  }
}
