.lmmb-portal {
  margin-top: 8px;
}

.lmmb-dashboard-summary {
  margin: 16px 0 22px;
  padding: 0;
}

.lmmb-dashboard-summary__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.lmmb-dashboard-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lmmb-dashboard-card {
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 10px;
  padding: 12px 13px;
}

.lmmb-dashboard-card__label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lmmb-dashboard-card__value {
  margin-top: 4px;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.lmmb-dashboard-card__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}

.lmmb-table-wrap {
  overflow-x: hidden;
  max-width: 100%;
}

.lmmb-table {
  --lmmb-col-app: 16%;
  --lmmb-col-code: 26%;
  --lmmb-col-buy: 15%;
  --lmmb-col-runtime: 19%;
  --lmmb-col-status: 10%;
  --lmmb-col-actions: 14%;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d7e1ea;
}

.lmmb-resizable-table {
  table-layout: fixed !important;
}

.lmmb-table th,
.lmmb-table td {
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lmmb-table th {
  position: relative;
  background: #f7fafc;
  border-right: 1px solid #e6edf4;
}

.lmmb-table th:last-child {
  border-right: 0;
}

.lmmb-col-resizer {
  position: absolute;
  top: 0;
  right: -1px;
  width: 3px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: col-resize;
  z-index: 2;
}

.lmmb-col-resizer::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 1px;
  height: calc(100% - 2px);
  background: rgba(43, 108, 176, 0.38);
  transform: translateX(-50%);
  border-radius: 0;
}

.lmmb-col-resizer:hover::before,
.lmmb-col-resizer:focus::before {
  background: rgba(43, 108, 176, 0.55);
}

.lmmb-col-resizer:focus {
  outline: none;
}

.lmmb-col-resizer:hover,
.lmmb-col-resizer:focus,
.lmmb-col-resizer:active {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

body.lmmb-resizing {
  cursor: col-resize;
  user-select: none;
}

.lmmb-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.lmmb-table tbody tr:nth-child(even) td {
  background: #f5f7fa;
}

.lmmb-table th:nth-child(1),
.lmmb-table td:nth-child(1) {
  width: var(--lmmb-col-app);
}

.lmmb-table th:nth-child(2),
.lmmb-table td:nth-child(2) {
  width: var(--lmmb-col-code);
}

.lmmb-table th:nth-child(3),
.lmmb-table td:nth-child(3) {
  width: var(--lmmb-col-buy);
}

.lmmb-table th:nth-child(4),
.lmmb-table td:nth-child(4) {
  width: var(--lmmb-col-runtime);
}

.lmmb-table th:nth-child(5),
.lmmb-table td:nth-child(5) {
  width: var(--lmmb-col-status);
}

.lmmb-table th:nth-child(6),
.lmmb-table td:nth-child(6) {
  width: var(--lmmb-col-actions);
}

.lmmb-table code {
  white-space: normal;
}

.lmmb-col-runtime {
  min-width: 0;
  width: auto;
}

.lmmb-col-actions {
  min-width: 0;
  width: auto;
  white-space: normal;
}

.lmmb-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.lmmb-pill-active {
  background: #dcfce7;
  color: #166534;
}

.lmmb-pill-expired,
.lmmb-pill-blocked {
  background: #fee2e2;
  color: #991b1b;
}

.lmmb-pill-inactive {
  background: #e5e7eb;
  color: #374151;
}

.lmmb-muted {
  opacity: 0.7;
}

.lmmb-runtime-line + .lmmb-runtime-line {
  margin-top: 4px;
}

.lmmb-runtime-type {
  font-weight: 600;
}

.lmmb-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: -1px !important;
}

.lmmb-actions .button {
  margin: 1px !important;
  width: auto;
  max-width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 5px 9px !important;
  min-height: 0 !important;
}

.lmmb-actions > * {
  margin: 0 !important;
  width: auto;
  max-width: 100%;
}

.lmmb-actions > * + * {
  margin-top: 0 !important;
}

.lmmb-actions > form {
  display: block;
}

.lmmb-modal[hidden] {
  display: none !important;
}

.lmmb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lmmb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 34, 0.52);
  backdrop-filter: blur(5px);
}

.lmmb-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.lmmb-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: #1f2937;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lmmb-modal__title {
  margin: 0 40px 6px 0;
  font-size: 20px;
}

.lmmb-modal__subtitle {
  margin: 0 0 16px;
  color: #4b5563;
}

.lmmb-renewal-options {
  display: grid;
  gap: 12px;
}

.lmmb-renewal-option-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  margin: 0;
}

.lmmb-renewal-option-label {
  display: block;
  font-weight: 600;
}

body.lmmb-modal-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .lmmb-dashboard-summary__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lmmb-modal__dialog {
    padding: 16px;
  }

  .lmmb-renewal-option-form {
    grid-template-columns: 1fr;
  }

  .lmmb-renewal-option-form .button {
    width: 100%;
    text-align: center;
  }

  .lmmb-table th,
  .lmmb-table td {
    padding: 8px;
  }
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table td {
  padding: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table thead th {
  position: relative;
  background: #f7fafc;
  border-right: 1px solid #e6edf4;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th:last-child,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table thead th:last-child {
  border-right: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) td,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) td {
  background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) th,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) th {
  background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) td,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) td {
  background: #f5f7fa;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) th,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) th {
  background: #f5f7fa;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: -1px !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td[class*="order-actions"] .button,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table td[class*="order-actions"] .button,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td[class*="actions"] .button,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table td[class*="actions"] .button {
  margin: 1px !important;
}

.woocommerce-account .woocommerce {
  --lmmb-account-gap: 24px;
  --lmmb-account-nav-width: clamp(180px, 18vw, 260px);
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: var(--lmmb-account-gap) !important;
  position: relative !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  content: none !important;
  display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
  position: relative !important;
  float: none !important;
  flex: 0 0 var(--lmmb-account-nav-width) !important;
  width: var(--lmmb-account-nav-width) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul,
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a {
  padding-left: 14px !important;
}

.lmmb-account-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 3px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: col-resize;
  z-index: 3;
}

.lmmb-account-resizer::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 1px;
  height: calc(100% - 2px);
  background: rgba(43, 108, 176, 0.55);
  border-radius: 0;
  opacity: 0;
}

.lmmb-account-resizer:hover::before,
.lmmb-account-resizer:focus::before,
.woocommerce-account .woocommerce.lmmb-account-resizing .lmmb-account-resizer::before {
  opacity: 1;
}

.lmmb-account-resizer:focus {
  outline: none;
}

.lmmb-account-resizer:hover,
.lmmb-account-resizer:focus,
.lmmb-account-resizer:active {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

body.lmmb-account-resizing {
  cursor: col-resize;
  user-select: none;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
  float: none !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  clear: none !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .lmmb-portal > h2,
.woocommerce-account .woocommerce-MyAccount-content .lmmb-portal .lmmb-table-wrap {
  clear: none !important;
}

@media (max-width: 980px) {
  .lmmb-resizable-table {
    table-layout: auto !important;
  }

  .lmmb-col-resizer {
    display: none !important;
  }

  .lmmb-account-resizer {
    display: none !important;
  }

  .woocommerce-account .woocommerce {
    display: block !important;
    gap: 0 !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    clear: both !important;
  }
}
