/* CSS Document */

table.leaky-paywall-table,
body.leaky-paywall_page_leaky-paywall-subscribers table {
  width: 100%;
}

table.leaky-paywall-table input.small-text,
body.leaky-paywall_page_leaky-paywall-subscribers table input.small-text {
  height: 28px;
}

table.issuem-leaky-paywall-subscription-level-row-table {

}

table.issuem-leaky-paywall-subscription-level-row-table.toggled {
  display: none;
}

.leaky-paywall-subscription-level-row-header.hidden {
  display: none;
}

.leaky-paywall-subscription-level-row-header.toggled {
  margin-bottom: 10px;
}

.leaky-paywall-subscription-level-row-header .dashicons-arrow-down {
  display: none;
}

.leaky-paywall-subscription-level-row-header.toggled .dashicons-arrow-up {
  display: none;
}

.leaky-paywall-subscription-level-row-header.toggled .dashicons-arrow-down {
  display: block;
}

.leaky-paywall-subscription-level-row-header {
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 20px;
}

.leaky-paywall-subscription-level-row-header p {
  font-weight: bold;
  font-size: 18px;
}

.leaky-paywall-subscription-level-row-header
  .leaky-paywall-subscription-level-row-header-title-id {
  font-weight: normal;
  color: #999;
  margin-left: 10px;
}

table.leaky-paywall-table tr th,
table.leaky-paywall-table tr td,
body.leaky-paywall_page_leaky-paywall-subscribers table tr th,
body.leaky-paywall_page_leaky-paywall-subscribers table tr td {
  vertical-align: top;
  padding-bottom: 10px;
}

table.leaky-paywall-table tr th,
body.leaky-paywall_page_leaky-paywall-subscribers table tr th {
  padding-top: 5px;
  width: 200px;
}

table.leaky-paywall-table .leaky_paywall_subscription_level_row_table {
  border: 1px solid #eee;
  padding-top: 20px;
  margin-bottom: 20px;
}

body.leaky-paywall_page_leaky-paywall-subscribers div.tablenav {
  margin-top: 25px;
}

body.leaky-paywall_page_leaky-paywall-subscribers
  div#leaky-paywall-subscriber-add-edit {
  background: #ececec;
  border: 1px solid #ccc;
  padding: 0 10px;
  margin-top: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  width: 100%;
}

div#leaky-paywall-subscriber-add-edit form#leaky-paywall-susbcriber-add {
  display: block;
  float: left;
  max-width: 500px;
  position: relative;
}

div#leaky-paywall-subscriber-add-edit form#leaky-paywall-subscriber-bulk-add {
  display: block;
  float: left;
  margin-left: 150px;
  max-width: 500px;
  position: relative;
}

div.interval_div,
div.allowed_value_div {
  display: inline-block;
}

form#leaky-paywall-subscriber-bulk-add textarea {
  width: 400px;
  height: 200px;
}

span.delete-x {
  display: inline-block;
  color: red;
  font-size: 14px;
  line-height: 1.3em;
  margin-right: 12px;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
  width: 20px;
  height: 20px;
}

span.delete-x:hover {
  cursor: pointer;
}

select.select_level_post_type,
select.select_level_site {
  width: 100px;
}

.leaky_paywall_hidden {
  display: none;
}

td.available-addon {
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  max-width: 340px;
  min-width: 250px;
  vertical-align: top;
  width: 33%;
  background: #fff;
}

div.available-addon-inner {
  margin: 20px;
}

div.available-addon-inner img {
  max-width: 100%;
}

.leaky-paywall-dashboard-table {
  width: 100%;
}

.leaky-paywall-dashboard-table th {
  text-align: left;
  font-weight: bold;
}
.leaky-paywall-dashboard-table td {
  padding-bottom: 5px;
}

span.delete-restriction-row {
  color: red;
  margin-top: -10px;
}

#issuem-leaky-paywall-restriction-rows table {
  border: 1px solid #ddd;
  background: #fff;
}

#issuem-leaky-paywall-restriction-rows table th {
  /*border-bottom: 1px solid #ddd;*/
  padding: 10px;
}

#issuem-leaky-paywall-restriction-rows table td {
  border-top: 1px solid #f0f0f0;
  padding: 10px;
}

#add-restriction-row {
  margin-bottom: 10px;
}

/* access options */

.leaky-paywall-interal-setting-table {
  border: 1px solid #ddd;
  background: #fff;
}

.leaky-paywall-interal-setting-table th {
  padding: 10px;
}

.leaky-paywall-interal-setting-table td {
  border-top: 1px solid #f0f0f0;
  padding: 10px;
}

span.delete-post-type-row {
  color: red;
  margin-top: -10px;
}

.allowed_value_div .allowed_value {
  margin-left: 5px;
}

.leaky-paywall-sidebar-widget {
  background: #fff;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.leaky-paywall-sidebar-widget .description {
  font-size: 16px;
  color: #c35232;
}

.leaky-paywall-sidebar-widget ul {
  list-style-type: disc;
  margin-left: 20px;
}

.leaky-paywall-sidebar-widget .button {
  background: #dd6035;
  color: #fff;
  border: 1px solid #ea9c47;
  text-transform: uppercase;
  font-weight: bold;
  width: 100%;
  text-align: center;
  padding: 10px;
}

/* Upgrade Page */

#leaky-paywall-upgrade-page-wrapper {
  margin-left: -20px;
}

.lp-upgrade-header {
  background: #E45637;
  padding: 20px;
}

.lp-upgrade-header img {
  display: block;
}

.lp-upgrade-card {
  background: #fff;
  max-width: 680px;
  margin: 30px 20px;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#leaky-paywall-upgrade-page-wrapper h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #1d2327;
}

.lp-upgrade-tagline {
  font-size: 15px;
  color: #50575e;
  margin: 0 0 24px 0;
}

#leaky-paywall-upgrade-page-wrapper ul {
  list-style-type: none;
  margin: 0 0 32px 0;
  padding: 0;
}

#leaky-paywall-upgrade-page-wrapper ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  color: #1d2327;
  border-bottom: 1px solid #f0f0f1;
}

#leaky-paywall-upgrade-page-wrapper ul li:last-child {
  border-bottom: none;
}

#leaky-paywall-upgrade-page-wrapper ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #E45637;
  font-weight: 700;
}

.lp-upgrade-button {
  display: inline-block;
  background: #E45637;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.lp-upgrade-button:hover,
.lp-upgrade-button:focus {
  background: #C94829;
  color: #fff;
}

.leaky-paywall-restriction-settings .hide-setting {
  display: none;
}

#leaky_paywall_default_restriction_options .hide-setting {
  display: none;
}

#leaky_paywall_subscription_level_options #add-subscription-row {
  margin-bottom: 20px;
}

button.lp-inline-button {
  margin: 0 5px;
}

input[type="submit"].lp-inline-button {
  margin: 0 5px;
}

.lp-pro-upgrade a {
  font-weight: bold;
}


#lp-header {
  padding: 20px 0;
  margin-left: -20px;
  background: #E45637;
}

#lp-header-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  align-items: center
}

#lp-header img {
  display: block;
  max-width: 300px;
  margin: 0
}

.lp-header-page-title-wrap {
  font-size: 1.75em;
  margin-top: -5px;
  margin-right: auto;
  padding-left: 7px
}

.lp-header-separator {
  margin-top: -2px;
  opacity: .25;
  color: #fff;
}

.lp-header-page-title {
  font-weight: 400;
  font-size: 1em;
  line-height: 1.3em;
  display: inline;
  color: #fff;
}

.lp-header-page-title-wrap .button {
  margin-left: 5px
}

/* Status badges */

/* License Cards */

.lp-license-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 12px;
}

.lp-license-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f1;
}

.lp-license-card__name {
  font-weight: 600;
  font-size: 14px;
  color: #1d2327;
}

.lp-license-card__body {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-license-card__body input.regular-text {
  flex: 1;
  max-width: 400px;
}

/* Status Badges */

.lp-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.lp-status-badge--active {
  background: #d4edda;
  color: #155724;
}

.lp-status-badge--pending_cancel {
  background: #fff3cd;
  color: #856404;
}

.lp-status-badge--trial {
  background: #d1ecf1;
  color: #0c5460;
}

.lp-status-badge--canceled {
  background: #e2e3e5;
  color: #383d41;
}

.lp-status-badge--expired {
  background: #f8d7da;
  color: #721c24;
}

.lp-status-badge--deactivated {
  background: #f8d7da;
  color: #721c24;
}

.lp-status-badge--suspended {
  background: #fff3cd;
  color: #856404;
}

/* Relative dates */

.lp-relative-date {
  cursor: help;
  border-bottom: 1px dotted #999;
}

/* Transaction detail view — page-level */

.post-type-lp_transaction #wpcontent {
  background: #FEF2ED;
}

.post-type-lp_transaction #post-body-content,
.post-type-lp_transaction #titlediv {
  display: none;
}

.post-type-lp_transaction #submitdiv,
.post-type-lp_transaction #slugdiv {
  display: none;
}

.post-type-lp_transaction .postbox {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.post-type-lp_transaction .postbox .postbox-header {
  border-bottom: 1px solid #f0f0f1;
}

.post-type-lp_transaction .postbox .postbox-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.post-type-lp_transaction .postbox .inside {
  padding: 16px 20px 20px;
}

.post-type-lp_transaction #side-sortables .postbox .inside {
  padding: 12px 16px 16px;
}

/* Transaction detail view — header */

.lp-transaction-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.lp-transaction-price-block {
  padding: 0 0 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f1;
}

.lp-transaction-price-block .lp-transaction-amount {
  font-size: 32px;
  font-weight: 700;
  color: #1d2327;
  line-height: 1.1;
  display: block;
}

.lp-transaction-price-block .lp-transaction-amount--refund {
  color: #b32d2e;
}

.lp-transaction-tax-breakdown {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #6b7c93;
  line-height: 1.6;
  margin-top: 4px;
}

/* Transaction detail view — refund notice */

.lp-transaction-refund-notice {
  background: #fcf0f1;
  border-left: 4px solid #b32d2e;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
}

.lp-transaction-refund-notice a {
  font-weight: 600;
}

/* Transaction detail view — sections */

.lp-transaction-section {
  margin-bottom: 24px;
}

.lp-transaction-section:last-child {
  margin-bottom: 0;
}

.lp-transaction-section h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f1;
}

.lp-transaction-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  align-items: baseline;
}

.lp-transaction-fields .lp-field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
}

.lp-transaction-fields .lp-field-value {
  color: #1d2327;
  font-size: 13px;
}

.lp-transaction-fields .lp-field-value a {
  color: #2271b1;
  text-decoration: none;
}

.lp-transaction-fields .lp-field-value a:hover {
  color: #135e96;
}

.lp-transaction-extensions {
  margin-top: 24px;
}

.lp-transaction-extensions h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f1;
}

/* Transaction detail view — sidebar */

.lp-transaction-sidebar .lp-sidebar-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f1;
  font-size: 13px;
}

.lp-transaction-sidebar .lp-sidebar-field:first-child {
  padding-top: 0;
}

.lp-transaction-sidebar .lp-sidebar-field:last-child {
  border-bottom: none;
}

.lp-transaction-sidebar .lp-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
}

.lp-transaction-sidebar .lp-sidebar-value {
  color: #1d2327;
  text-align: right;
  font-weight: 500;
}

.lp-transaction-sidebar .lp-sidebar-value a {
  color: #2271b1;
  text-decoration: none;
}

.lp-transaction-sidebar .lp-sidebar-value a:hover {
  color: #135e96;
}

.lp-transaction-sidebar .lp-sidebar-actions {
  padding-top: 12px;
  margin-top: 4px;
}

.lp-transaction-sidebar .lp-sidebar-actions a {
  display: block;
  text-decoration: none;
  color: #2271b1;
  padding: 6px 0;
  font-size: 13px;
}

.lp-transaction-sidebar .lp-sidebar-actions a:hover {
  color: #135e96;
}

/* Transaction detail view — PayPal collapsible */

.lp-transaction-paypal-details {
  margin-top: 24px;
}

.lp-transaction-paypal-details summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
  padding: 8px 0;
}

.lp-transaction-paypal-details pre {
  background: #f9f9f9;
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  max-height: 300px;
  border: 1px solid #f0f0f1;
  border-radius: 6px;
}

/* Transaction-specific status badges */

.lp-status-badge--complete {
  background: #d4edda;
  color: #155724;
}

.lp-status-badge--refund {
  background: #fcf0f1;
  color: #b32d2e;
}

.lp-status-badge--recurring {
  background: #d1ecf1;
  color: #0c5460;
}

.lp-status-badge--free {
  background: #e2e3e5;
  color: #383d41;
}

.lp-status-badge--past_due {
  background: #fff3cd;
  color: #856404;
}

.narrow-cell {
  white-space: nowrap;
  width: 1%;
}

.toplevel_page_issuem-leaky-paywall #wpcontent {
  background: #FEF2ED;
}

.leaky-paywall_page_leaky-paywall-subscribers #wpcontent {
  background: #FEF2ED;
}

.leaky-paywall_page_leaky-paywall-insights #wpcontent {
  background: #FEF2ED;
}

.leaky-paywall_page_leaky-paywall-insights #wpbody-content {
  background: #FEF2ED;
}

.leaky-paywall_page_leaky-paywall-insights #wpwrap {
  background: #FEF2ED;
}

.leaky-paywall_page_leaky-paywall-insights .nav-tab-wrapper {
  background: #fff;
  margin-left: -20px;
  margin-top: 0;
  border: 0;
}

.leaky-paywall_page_leaky-paywall-insights .nav-tab {
  background: #fff;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
}

.leaky-paywall_page_leaky-paywall-insights .nav-tab:hover {
  background: #fff;
  color: #E45637;
}

.leaky-paywall_page_leaky-paywall-insights .nav-tab-active {
  background: #fff;
  border-bottom: 2px solid #E45637;
}

.lp-tab-wrap {
  margin-left: -20px;
    padding-left: 20px;
    background: #fff;
}

.lp-tab-wrap .nav-tab-wrapper {
  border: 0;
}

.lp-tab-wrap .nav-tab {
  background: #fff;
  border-left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}

.lp-tab-wrap .nav-tab:hover {
  background: #fff;
  color: #E45637;
}

.lp-tab-wrap .nav-tab-active {
  background: #fff;
  border-bottom: 2px solid #E45637;
}

.toplevel_page_issuem-leaky-paywall #wpcontent .button-primary, .leaky-paywall_page_leaky-paywall-subscribers #wpcontent .button-primary {
  background: #E45637;
  border: 0;
  border-radius: 0 12px 0 0 !important;
  padding: 8px 26px;
  font-size: 16px;
  transition: all .2s ease-in-out;
}

.toplevel_page_issuem-leaky-paywall #wpcontent .button-primary:hover, .leaky-paywall_page_leaky-paywall-subscribers #wpcontent .button-primary:hover {
  background: #333333;
}

.lp-sub-details-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ========================================
   Settings page — modern styling
   ======================================== */

.leaky-paywall_page_leaky-paywall-settings #wpcontent {
  background: #FEF2ED;
}

.leaky-paywall_page_leaky-paywall-settings .wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.leaky-paywall_page_leaky-paywall-settings .postbox-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  flex: 1;
  min-width: 0;
}

/* Section h2 headings */

.leaky-paywall_page_leaky-paywall-settings .postbox-container h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1d2327;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f1;
  margin: 24px 0 16px;
}

.leaky-paywall_page_leaky-paywall-settings .postbox-container h2:first-child {
  margin-top: 0;
}

/* Form table styling */

.leaky-paywall_page_leaky-paywall-settings .form-table,
.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-table {
  border-collapse: collapse;
}

.leaky-paywall_page_leaky-paywall-settings .form-table tr,
.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-table tr {
  border-bottom: 1px solid #f0f0f1;
}

.leaky-paywall_page_leaky-paywall-settings .form-table tr:last-child,
.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-table tr:last-child {
  border-bottom: none;
}

.leaky-paywall_page_leaky-paywall-settings .form-table th,
.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  vertical-align: top;
  padding: 16px 10px 16px 0;
}

.leaky-paywall_page_leaky-paywall-settings .form-table td,
.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-table td {
  padding: 12px 10px;
  color: #1d2327;
}

/* Sections nav */

.leaky-paywall_page_leaky-paywall-settings .lp-sections-wrap {
  margin-left: -20px;
  padding: 0 20px 12px;
  border-bottom: 1px solid #f0f0f1;
  margin-bottom: 24px;
}

/* Sidebar */

.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-sidebar {
  float: none !important;
  width: 280px !important;
  margin-top: 0 !important;
  flex-shrink: 0;
}

.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-sidebar-widget {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
}

.leaky-paywall_page_leaky-paywall-settings .leaky-paywall-sidebar-widget h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f1;
}

/* Primary button */

.leaky-paywall_page_leaky-paywall-settings #wpcontent .button-primary {
  background: #E45637;
  border: 0;
  border-radius: 0 12px 0 0 !important;
  padding: 8px 26px;
  font-size: 16px;
  transition: all .2s ease-in-out;
}

.leaky-paywall_page_leaky-paywall-settings #wpcontent .button-primary:hover {
  background: #333333;
}

/* Success notice */

.leaky-paywall_page_leaky-paywall-settings .updated {
  border-left: 4px solid #38A65B;
  border-radius: 0 6px 6px 0;
  background: #ecfdf5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Subscriber table — modern styling
   ======================================== */

/* White card wrapper */

.leaky-paywall_page_leaky-paywall-subscribers .wrap > form#leaky-paywall-subscribers,
.leaky-paywall_page_leaky-paywall-subscribers .wrap > .add-new-sub-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
}

.leaky-paywall_page_leaky-paywall-subscribers .wrap > .add-new-sub-container {
  float: none !important;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0 !important;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
  padding-bottom: 0;
}

.leaky-paywall_page_leaky-paywall-subscribers .wrap > form#leaky-paywall-subscribers {
  border-radius: 0 0 8px 8px;
  margin-top: 0;
}

/* Filter bar */

.leaky-paywall_page_leaky-paywall-subscribers .tablenav.top {
  padding-bottom: 16px;
  margin-bottom: 0;
  margin-top: 0;
  border-bottom: 1px solid #f0f0f1;
}

.leaky-paywall_page_leaky-paywall-subscribers .tablenav.top select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  color: #1d2327;
  min-height: 32px;
  padding-right: 25px;
}

.leaky-paywall_page_leaky-paywall-subscribers .tablenav.top .button {
  border-radius: 4px;
  min-height: 32px;
}

/* Search box */

.leaky-paywall_page_leaky-paywall-subscribers .search-box input[type="search"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  min-height: 32px;
}

.leaky-paywall_page_leaky-paywall-subscribers .search-box #search-submit {
  border-radius: 4px;
  min-height: 32px;
}

/* Table */

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table {
  border: none;
  border-spacing: 0;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table thead th,
.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table thead td {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 2px solid #f0f0f1;
  padding: 10px;
  background: none;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table thead th a {
  color: #888;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table thead th a:hover {
  color: #1d2327;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table thead .sorted a,
.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table thead .sorted .sorting-indicators {
  color: #1d2327;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tfoot th,
.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tfoot td {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-top: 2px solid #f0f0f1;
  border-bottom: none;
  padding: 10px;
  background: none;
}

/* Remove striped alternating rows */

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table.striped > tbody > :nth-child(odd) {
  background: none;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tbody tr {
  border-bottom: 1px solid #f0f0f1;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tbody tr:last-child {
  border-bottom: none;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tbody tr:hover {
  background: #fafafa;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tbody td {
  padding: 12px 10px;
  color: #1d2327;
  vertical-align: middle;
}

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table tbody th {
  vertical-align: middle;
}

/* Row actions */

.leaky-paywall_page_leaky-paywall-subscribers .wp-list-table .row-actions span {
  color: #999;
}

/* Pagination */

.leaky-paywall_page_leaky-paywall-subscribers .tablenav.bottom {
  border-top: 1px solid #f0f0f1;
  margin-top: 0;
  padding-top: 12px;
}

.leaky-paywall_page_leaky-paywall-subscribers .tablenav-pages .displaying-num {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

/* ========================================
   Add Subscriber Modal
   ======================================== */

/* Overlay */

.lp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */

.lp-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Header */

.lp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f1;
}

.lp-modal-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
  margin: 0;
}

.lp-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.lp-modal-close:hover {
  color: #1d2327;
}

/* Body */

.lp-modal-body {
  padding: 24px;
}

/* Form fields */

.lp-modal-field {
  margin-bottom: 16px;
}

.lp-modal-field:last-child {
  margin-bottom: 0;
}

.lp-modal-field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-modal-field-row .lp-modal-field {
  flex: 1;
  margin-bottom: 0;
}

.lp-modal-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 6px;
}

.lp-modal-field label .required {
  color: #b32d2e;
}

.lp-modal-field input[type="text"],
.lp-modal-field input[type="email"],
.lp-modal-field select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1d2327;
  box-sizing: border-box;
}

.lp-modal-field input[type="text"]:focus,
.lp-modal-field input[type="email"]:focus,
.lp-modal-field select:focus {
  border-color: #E45637;
  outline: none;
  box-shadow: 0 0 0 1px #E45637;
}

.lp-modal-field-hint {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0;
}

/* Error */

.lp-modal-error {
  border-left: 4px solid #b32d2e;
  background: #fcf0f1;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #1d2327;
  margin-bottom: 16px;
}

/* Footer */

.lp-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f1;
}

.lp-modal-footer .lp-modal-error {
  margin-bottom: 12px;
}

.lp-modal-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lp-modal-footer .button-primary {
  background: #E45637;
  border: 0;
  border-radius: 0 12px 0 0 !important;
  padding: 8px 26px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: all .2s ease-in-out;
}

.lp-modal-footer .button-primary:hover {
  background: #333;
}

.lp-modal-footer .button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success */

.lp-modal-success {
  text-align: center;
  padding: 48px 24px;
}

.lp-modal-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d4edda;
  color: #155724;
  font-size: 24px;
  margin-bottom: 16px;
}

.lp-modal-success-message {
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 8px;
}

.lp-modal-success-link a {
  color: #2271b1;
  text-decoration: none;
}

.lp-modal-success-link a:hover {
  color: #135e96;
}

/* ========================================
   Transaction list page — modern styling
   ======================================== */

/* Background */

.post-type-lp_transaction.edit-php #wpcontent {
  background: #FEF2ED;
}

.post-type-lp_transaction.edit-php .subsubsub {
  margin-top: 10px;
  margin-left: 10px;
  display: none;
}

/* Hide the default WP page title — LP header replaces it */

.post-type-lp_transaction.edit-php .wrap > .wp-heading-inline,
.post-type-lp_transaction.edit-php .wrap > .page-title-action {
  display: none;
}

/* White card wrapper for table area */

.post-type-lp_transaction.edit-php .wrap {
  padding-top: 40px;
}

.post-type-lp_transaction.edit-php #posts-filter {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
}

/* Filter bar */

.post-type-lp_transaction.edit-php .tablenav.top {
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f1;
}

.post-type-lp_transaction.edit-php .tablenav.top select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  color: #1d2327;
  min-height: 32px;
}

.post-type-lp_transaction.edit-php .tablenav.top .button {
  border-radius: 4px;
  min-height: 32px;
}

/* Search box */

.post-type-lp_transaction.edit-php .search-box input[type="search"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  min-height: 32px;
}

.post-type-lp_transaction.edit-php .search-box #post-search-input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  min-height: 32px;
}

.post-type-lp_transaction.edit-php .search-box #search-submit {
  border-radius: 4px;
  min-height: 32px;
}

/* Table */

.post-type-lp_transaction.edit-php .wp-list-table {
  border: none;
  border-spacing: 0;
}

.post-type-lp_transaction.edit-php .wp-list-table thead th,
.post-type-lp_transaction.edit-php .wp-list-table thead td {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 2px solid #f0f0f1;
  padding: 10px;
  background: none;
}

.post-type-lp_transaction.edit-php .wp-list-table thead th a {
  color: #888;
}

.post-type-lp_transaction.edit-php .wp-list-table thead th a:hover {
  color: #1d2327;
}

.post-type-lp_transaction.edit-php .wp-list-table thead .sorted a,
.post-type-lp_transaction.edit-php .wp-list-table thead .sorted .sorting-indicators {
  color: #1d2327;
}

.post-type-lp_transaction.edit-php .wp-list-table tfoot th,
.post-type-lp_transaction.edit-php .wp-list-table tfoot td {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-top: 2px solid #f0f0f1;
  border-bottom: none;
  padding: 10px;
  background: none;
}

/* Remove striped alternating rows */

.post-type-lp_transaction.edit-php .wp-list-table.striped > tbody > :nth-child(odd) {
  background: none;
}

.post-type-lp_transaction.edit-php .wp-list-table tbody tr {
  border-bottom: 1px solid #f0f0f1;
}

.post-type-lp_transaction.edit-php .wp-list-table tbody tr:last-child {
  border-bottom: none;
}

.post-type-lp_transaction.edit-php .wp-list-table tbody tr:hover {
  background: #fafafa;
}

.post-type-lp_transaction.edit-php .wp-list-table tbody td {
  padding: 12px 10px;
  color: #1d2327;
  vertical-align: middle;
}

.post-type-lp_transaction.edit-php .wp-list-table tbody th {
  vertical-align: middle;
}

/* Row actions */

.post-type-lp_transaction.edit-php .wp-list-table .row-actions span {
  color: #999;
}

/* Pagination */

.post-type-lp_transaction.edit-php .tablenav.bottom {
  border-top: 1px solid #f0f0f1;
  margin-top: 0;
  padding-top: 12px;
}

.post-type-lp_transaction.edit-php .tablenav-pages .displaying-num {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

/* Primary button */

.post-type-lp_transaction.edit-php #wpcontent .button-primary {
  background: #E45637;
  border: 0;
  border-radius: 0 12px 0 0 !important;
  padding: 8px 26px;
  font-size: 16px;
  transition: all .2s ease-in-out;
}

.post-type-lp_transaction.edit-php #wpcontent .button-primary:hover {
  background: #333333;
}

/* Column-specific styles */

.lp-txn-level-id {
  color: #999;
  font-size: 12px;
}

.lp-txn-price--negative {
  color: #b32d2e;
  font-weight: 600;
}

.lp-txn-type--renewal {
  color: #0c5460;
  font-weight: 500;
}

/* Hide the "Add New Transaction" button */

.post-type-lp_transaction.edit-php .wrap > a.page-title-action {
  display: none;
}

/* ========================================
   Tools page — modern styling
   ======================================== */

/* Background */

.leaky-paywall_page_leaky-paywall-tools #wpcontent {
  background: #FEF2ED;
}

/* White card */

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  max-width: 800px;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 8px;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card p {
  font-size: 14px;
  color: #50575e;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Primary button */

.leaky-paywall_page_leaky-paywall-tools #wpcontent .button-primary {
  background: #E45637;
  border: 0;
  border-radius: 0 12px 0 0 !important;
  padding: 8px 26px;
  font-size: 16px;
  transition: all .2s ease-in-out;
}

.leaky-paywall_page_leaky-paywall-tools #wpcontent .button-primary:hover {
  background: #333333;
}

/* Export form table */

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  vertical-align: top;
  padding: 16px 10px 16px 0;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table td {
  padding: 12px 10px;
  color: #1d2327;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table tr {
  border-bottom: 1px solid #f0f0f1;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table tr:last-child {
  border-bottom: none;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table input[type="text"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1d2327;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  color: #1d2327;
  min-height: 32px;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table input[type="text"]:focus,
.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .form-table select:focus {
  border-color: #E45637;
  outline: none;
  box-shadow: 0 0 0 1px #E45637;
}

#leaky-paywall-reporting-tool-message {
  font-size: 14px;
  color: #50575e;
  font-style: italic;
}

/* Import form */

.leaky-paywall_page_leaky-paywall-tools #leaky_paywall_upload_user_csv_button {
  margin-left: 8px;
  vertical-align: middle;
}

.leaky-paywall_page_leaky-paywall-tools #leaky_paywall_import_user_csv_file {
  vertical-align: middle;
}

.leaky-paywall_page_leaky-paywall-tools .lp-import-instructions {
  margin-top: 16px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #f0f0f1;
}

.leaky-paywall_page_leaky-paywall-tools .lp-import-instructions p {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px;
  line-height: 1.5;
}

.leaky-paywall_page_leaky-paywall-tools .lp-import-instructions p:last-child {
  margin-bottom: 0;
}

.leaky-paywall_page_leaky-paywall-tools .lp-tools-card .notice {
  margin: 0 0 16px;
}

/* Pro feature toggle */
.lp-pro-feature-toggle {
  color: #999;
  cursor: pointer;
}

.lp-pro-feature-toggle input[disabled] {
  cursor: pointer;
  pointer-events: none;
}

.lp-pro-badge {
  display: inline-block;
  background: #E45637;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.lp-pro-feature-link {
  color: #E45637;
  text-decoration: none;
  font-size: 12px;
}

.lp-pro-feature-link:hover {
  text-decoration: underline;
}

/* Pro upgrade modal */
.lp-pro-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-pro-modal {
  background: #fff;
  border-radius: 8px;
  padding: 32px 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.lp-pro-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
}

.lp-pro-modal__close:hover {
  color: #333;
}

.lp-pro-modal h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #1d2327;
}

.lp-pro-modal p {
  color: #50575e;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.lp-pro-modal ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.lp-pro-modal ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: #50575e;
  font-size: 13px;
}

.lp-pro-modal ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #E45637;
  font-weight: bold;
}

.lp-pro-modal .button-hero {
  background: #E45637;
  border-color: #c94a2e;
  text-shadow: none;
  box-shadow: 0 1px 0 #c94a2e;
}

.lp-pro-modal .button-hero:hover,
.lp-pro-modal .button-hero:focus {
  background: #c94a2e;
  border-color: #b03f26;
}