:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] {
  --portal-surface: var(--portal-card-color);
  --portal-surface-2: color-mix(in srgb, var(--portal-card-color), #000 2%);
  --portal-muted-2: var(--portal-muted);
  --portal-danger: #c9343e;
  --portal-license-danger: #861725;
  --portal-license-danger-bg: #fff0f2;
  --portal-license-danger-border: #d92d3b;
  --portal-focus: color-mix(in srgb, var(--portal-secondary), #000 18%);
  display: block;
  place-items: start center;
  padding: max(var(--portal-page-margin), env(safe-area-inset-top)) max(var(--portal-page-margin), env(safe-area-inset-right)) max(var(--portal-page-margin), env(safe-area-inset-bottom)) max(var(--portal-page-margin), env(safe-area-inset-left));
  background: var(--portal-bg);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-shell {
  width: min(100%, 450px);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(12px, 3.5vw, 18px);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-card-radius);
  background: var(--portal-card-color);
  box-shadow: 0 8px 24px rgba(39, 50, 58, .08);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-system-banner {
  width: 100%;
  margin-bottom: var(--portal-section-gap);
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: min(var(--portal-card-radius), 10px);
  background: var(--portal-card-color);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-status-row {
  width: 100%;
  margin: 0 0 6px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-status {
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--portal-button-radius);
  color: var(--portal-success);
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-status.is-disconnected,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-status.is-offline {
  color: var(--portal-danger);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-status-dot {
  width: 9px;
  height: 9px;
  box-shadow: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-device-info {
  width: 100%;
  margin: 0 0 10px;
  color: var(--portal-muted);
  font: 650 11px/1.4 var(--portal-font);
  text-align: center;
  letter-spacing: 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-client-meta-icon,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-client-meta-label,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-device-separator {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-label {
  margin: 0 0 3px;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-duration {
  gap: clamp(4px, 2vw, 10px);
  margin: 0 0 5px;
  color: var(--portal-secondary);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-time-value {
  font-size: min(var(--portal-countdown-size), 10.8vw);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-time-unit {
  color: var(--portal-muted);
  font-size: 9px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-points {
  margin: 0 0 var(--portal-section-gap);
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-system-free-time {
  margin-bottom: var(--portal-section-gap);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-free-time-button {
  min-height: 48px;
  border-color: color-mix(in srgb, var(--portal-success), #000 8%);
  color: var(--portal-success);
  background: color-mix(in srgb, var(--portal-success), transparent 90%);
  box-shadow: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-primary-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-primary-row:not([hidden]) {
  display: block;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-primary-grid .portal-button:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 9px 14px;
  border-radius: var(--portal-button-radius);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-action-with-icon svg,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-pause svg {
  display: block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-insert-default-icon {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-insert-coin-icon,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-pause-icon {
  display: block !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-insert-coin-icon {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-primary-grid .portal-insert {
  min-height: var(--portal-insert-height);
  border-color: color-mix(in srgb, var(--portal-insert-color), #000 10%);
  color: var(--portal-insert-ink);
  background: var(--portal-insert-color);
  box-shadow: none;
  font-size: var(--portal-insert-font);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-primary-grid .portal-pause {
  border-color: color-mix(in srgb, var(--portal-danger), #000 10%);
  color: #fff;
  background: var(--portal-danger);
  box-shadow: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-select-wrap {
  width: 100%;
  margin: var(--portal-section-gap) 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-select-action-row {
  grid-template-columns: minmax(0, 1fr);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-select {
  min-height: 46px;
  border-color: var(--portal-border);
  border-radius: var(--portal-button-radius);
  color: var(--portal-text);
  background-color: var(--portal-card-color);
  box-shadow: none;
  font-size: 14px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-select:hover:not(:disabled) {
  border-color: var(--portal-secondary);
  background-color: var(--portal-card-color);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-rates:not([hidden]) {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 9px 0 0;
  border: 1px solid color-mix(in srgb, var(--portal-secondary), #000 8%);
  border-radius: var(--portal-button-radius);
  color: #fff;
  background: var(--portal-secondary);
  font: 800 14px/1 var(--portal-font);
  text-decoration: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-select-action-row[hidden] + .portal-rates:not([hidden]) {
  margin-top: 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-inline {
  width: 100%;
  margin: var(--portal-section-gap) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-title,
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-help {
  display: none !important;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, max-content);
  gap: 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--portal-border);
  border-right: 0;
  border-radius: var(--portal-button-radius) 0 0 var(--portal-button-radius);
  color: var(--portal-text);
  background: var(--portal-card-color);
  font-size: 16px;
  text-transform: uppercase;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-input::placeholder {
  color: var(--portal-muted);
  opacity: .82;
  text-transform: none;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-submit {
  min-width: 96px;
  min-height: 46px;
  padding: 8px 14px;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--portal-secondary), #000 8%);
  border-radius: 0 var(--portal-button-radius) var(--portal-button-radius) 0;
  color: #fff;
  background: var(--portal-secondary);
  font-size: 13px;
  font-weight: 800;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-more-actions {
  width: 100%;
  margin: var(--portal-section-gap) 0 0;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-quick-heading {
  margin: 0 0 8px;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-quick-action {
  min-height: 44px;
  padding: 8px 10px;
  border-color: var(--portal-border);
  border-radius: var(--portal-button-radius);
  color: var(--portal-text);
  background: var(--portal-card-color);
  box-shadow: none;
  font-size: 12px;
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-quick-action:hover:not(:disabled),
:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-quick-action:focus-visible {
  border-color: var(--portal-secondary);
  background: color-mix(in srgb, var(--portal-secondary), transparent 95%);
}

:is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-quick-action.is-custom {
  color: var(--portal-custom-button-ink);
  border-color: color-mix(in srgb, var(--portal-custom-button-color), #000 18%);
  background: var(--portal-custom-button-color);
}

body.portal-theme-lpb-theme.portal-modal-tone-light #portal-insert-session,
body.portal-theme-lpb-theme.portal-modal-tone-light #portal-action-dialog {
  background: rgba(31, 41, 55, .48);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-dialog,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-panel,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-header {
  color: var(--portal-text);
  background: var(--portal-card-color);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-dialog-countdown,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-voucher-success-time {
  color: var(--portal-text);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-voucher-success span,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-warning-copy span {
  color: var(--portal-muted);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-insert-progress,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-summary,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-breakdown,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-calculation,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-table th,
body.portal-theme-lpb-theme.portal-modal-tone-light .portal-rates-table {
  background: color-mix(in srgb, var(--portal-card-color), #000 3%);
}

body.portal-theme-lpb-theme.portal-modal-tone-light #portal-toast {
  background: var(--portal-card-color);
  box-shadow: 0 14px 36px rgba(31, 41, 55, .18);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-warning {
  color: var(--portal-text);
  background: #fff8e8;
  box-shadow: 0 18px 44px rgba(31, 41, 55, .18);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-message.is-error {
  color: var(--portal-danger);
}

body.portal-theme-lpb-theme.portal-modal-tone-light .portal-action-message.is-success {
  color: var(--portal-success);
}

body.portal-eload-theme {
  background: var(--eload-page) !important;
}

body.portal-eload-theme .portal-eload-toolbar,
html[data-portal-theme="lpb-theme"] .preview-buy-load__header {
  width: min(100%, 920px);
  padding: 14px 12px 7px;
}

body.portal-eload-theme .portal-eload-back,
html[data-portal-theme="lpb-theme"] .preview-buy-load__header button {
  border-color: var(--eload-border, var(--portal-border));
  border-radius: var(--portal-button-radius);
  color: var(--eload-secondary, var(--portal-secondary));
  background: var(--eload-card, var(--portal-card-color));
  box-shadow: none;
}

body.portal-eload-theme #conntent {
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  padding: 8px 12px 32px !important;
}

body.portal-eload-theme #_netnav.portal-eload-controls,
html[data-portal-theme="lpb-theme"] .preview-buy-load__controls {
  margin-bottom: 12px !important;
  padding: 10px !important;
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-card-radius) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
  box-shadow: none !important;
}

body.portal-eload-theme .portal-eload-categories .nav-link,
html[data-portal-theme="lpb-theme"] .preview-buy-load__networks button {
  min-height: 44px !important;
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-button-radius) !important;
  color: var(--eload-text, var(--portal-text)) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
}

body.portal-eload-theme .portal-eload-categories .nav-item.active .nav-link,
html[data-portal-theme="lpb-theme"] .preview-buy-load__networks .is-active {
  border-color: color-mix(in srgb, var(--eload-secondary, var(--portal-secondary)), #000 8%) !important;
  color: #fff !important;
  background: var(--eload-secondary, var(--portal-secondary)) !important;
}

body.portal-eload-theme .portal-eload-search input,
html[data-portal-theme="lpb-theme"] .preview-buy-load__search input {
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-button-radius) !important;
  color: var(--eload-text, var(--portal-text)) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
}

body.portal-eload-theme .portal-eload-search button,
html[data-portal-theme="lpb-theme"] .preview-buy-load__search button {
  border-color: color-mix(in srgb, var(--eload-secondary, var(--portal-secondary)), #000 8%) !important;
  border-radius: var(--portal-button-radius) !important;
  color: #fff !important;
  background: var(--eload-secondary, var(--portal-secondary)) !important;
}

body.portal-eload-theme #content-row2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  gap: 10px !important;
}

body.portal-eload-theme #content-row2 .card,
html[data-portal-theme="lpb-theme"] .preview-buy-load__grid article {
  border-color: var(--eload-border, var(--portal-border)) !important;
  border-radius: var(--portal-card-radius) !important;
  color: var(--eload-text, var(--portal-text)) !important;
  background: var(--eload-card, var(--portal-card-color)) !important;
  box-shadow: none !important;
}

body.portal-eload-theme #content-row2 .card > div:first-child,
body.portal-eload-theme #content-row2 .card-footer {
  border-color: var(--eload-border) !important;
  background: color-mix(in srgb, var(--eload-card), var(--eload-page) 42%) !important;
}

body.portal-eload-theme h4[type="code"] {
  color: var(--eload-text) !important;
}

body.portal-eload-theme #content-row2 .card-footer button,
html[data-portal-theme="lpb-theme"] .preview-buy-load__grid article > button:not(:disabled) {
  min-height: 44px !important;
  border-color: color-mix(in srgb, var(--eload-secondary, var(--portal-secondary)), #000 8%) !important;
  border-radius: var(--portal-button-radius) !important;
  color: #fff !important;
  background: var(--eload-secondary, var(--portal-secondary)) !important;
}

@media (max-width: 480px) {
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] {
    padding: max(var(--portal-page-margin-mobile), env(safe-area-inset-top)) max(var(--portal-page-margin-mobile), env(safe-area-inset-right)) max(var(--portal-page-margin-mobile), env(safe-area-inset-bottom)) max(var(--portal-page-margin-mobile), env(safe-area-inset-left));
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-card {
    padding: 10px;
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-primary-grid .portal-insert {
    min-height: var(--portal-insert-height-mobile);
    font-size: var(--portal-insert-font-mobile);
  }
}

@media (max-width: 330px) {
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-card {
    padding: 8px;
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-form {
    grid-template-columns: minmax(0, 1fr) minmax(96px, max-content);
  }

  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] .portal-voucher-submit {
    min-width: 96px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#portal-root,#portal-preview-root)[data-portal-theme="lpb-theme"] *,
  body.portal-theme-lpb-theme.portal-modal-tone-light *,
  body.portal-eload-theme * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
