@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root{
  --admin-bg:#f4f8f3;
  --admin-panel:#fff;
  --admin-line:#dfe8dc;
  --admin-text:#606975;
  --admin-heading:#20262d;
  --admin-dark:#2b3035;
  --admin-green:#58b91f;
  --admin-green-dark:#176c2a;
  --admin-soft-green:#edf9e9;
  --admin-soft-grey:#f2f4f5;
  --admin-danger:#b74632;
  --admin-danger-bg:#fff0ed;
  --admin-shadow:0 18px 42px rgba(34,52,39,.08);
}
*{box-sizing:border-box}
body.admin-shell{
  margin:0!important;
  min-height:100vh!important;
  display:grid!important;
  grid-template-columns:285px minmax(0,1fr)!important;
  background:var(--admin-bg)!important;
  color:var(--admin-text)!important;
  font-family:"Poppins",Arial,sans-serif!important;
}
.admin-sidebar{
  min-height:100vh!important;
  background:#fff!important;
  padding:22px 16px!important;
  border-right:1px solid var(--admin-line)!important;
  box-shadow:12px 0 32px rgba(30,45,34,.035)!important;
  position:sticky!important;
  top:0!important;
  align-self:start!important;
}
.admin-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:126px!important;
  margin:0 0 18px!important;
  border:1px solid var(--admin-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(30,45,34,.035)!important;
}
.admin-brand img{width:210px!important;max-height:100px!important;object-fit:contain!important;}
.admin-user-card{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:13px!important;
  margin-bottom:12px!important;
  border:1px solid var(--admin-line)!important;
  border-radius:16px!important;
  background:#f7f8f7!important;
}
.admin-avatar{width:38px!important;height:38px!important;border-radius:13px!important;display:grid!important;place-items:center!important;background:#e9ebe8!important;color:#20262d!important;font-weight:900!important;}
.admin-user-card strong,.admin-user-card span{display:block!important}
.admin-user-card strong{font-size:14px!important;color:var(--admin-heading)!important}
.admin-user-card span{font-size:12px!important;color:#77808b!important}
.admin-view-site{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  margin:0 0 20px!important;
  border-radius:12px!important;
  background:var(--admin-dark)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900!important;
}
.grouped-admin-nav{display:grid!important;gap:10px!important}
.admin-nav-standalone{display:grid!important;gap:8px!important}
.grouped-admin-nav a,
.grouped-admin-nav summary{
  display:flex!important;
  align-items:center!important;
  min-height:42px!important;
  padding:11px 13px!important;
  border-radius:13px!important;
  text-decoration:none!important;
  color:#2f363d!important;
  font-weight:850!important;
  font-size:14px!important;
}
.admin-nav-standalone a{border:1px solid #e5ded8!important;background:#fffdfb!important}
.admin-nav-standalone a.active,
.admin-nav-section-links a.active{background:#eaf0f4!important;border-color:#d5e0e6!important;}
.admin-nav-section{border:1px solid #e5ded8!important;border-radius:15px!important;background:#fffdfb!important;overflow:hidden!important}
.admin-nav-section[open]{border-color:#cfe8c7!important;background:#f6fbf3!important}
.admin-nav-section summary{cursor:pointer!important;list-style:none!important;justify-content:space-between!important;background:#f4efe9!important}
.admin-nav-section[open] summary{background:#eaf8e5!important}
.admin-nav-section summary::-webkit-details-marker{display:none!important}
.admin-nav-section summary::after{content:"+";font-weight:950;color:#87716b;}
.admin-nav-section[open] summary::after{content:"–";}
.admin-nav-section-links{display:grid!important;gap:7px!important;padding:8px!important}
.admin-nav-section-links a{min-height:39px!important;border:1px solid transparent!important;background:#fff!important;color:#4d5962!important}
.logout-link{margin-top:10px!important;border:1px solid #efc7bd!important;background:var(--admin-danger-bg)!important;color:var(--admin-danger)!important;font-weight:950!important}

.admin-main{padding:28px 30px 60px!important;min-width:0!important}
.admin-page-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 24px!important;
}
.admin-page-title p{
  margin:0 0 5px!important;
  color:#89939d!important;
  text-transform:uppercase!important;
  letter-spacing:.18em!important;
  font-size:12px!important;
  font-weight:950!important;
}
.admin-page-title h1{margin:0!important;color:var(--admin-heading)!important;font-size:38px!important;line-height:1.05!important;font-weight:900!important;letter-spacing:-.035em!important}
.admin-date-pill{display:inline-flex!important;align-items:center!important;min-height:42px!important;padding:0 17px!important;border-radius:999px!important;border:1px solid var(--admin-line)!important;background:#fff!important;color:#77808b!important;font-weight:800!important}
.admin-action-button,.btn-dark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:0 18px!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--admin-dark)!important;
  color:#fff!important;
  font-weight:900!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.admin-action-button.add::before,.btn-dark.add::before{content:"+";font-weight:950;font-size:18px}
.admin-panel{
  background:var(--admin-panel)!important;
  border:1px solid var(--admin-line)!important;
  border-radius:20px!important;
  box-shadow:var(--admin-shadow)!important;
  overflow:hidden!important;
  margin-bottom:22px!important;
}
.admin-panel-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:64px!important;
  padding:16px 20px!important;
  background:var(--admin-soft-green)!important;
  border-bottom:1px solid #d2eec9!important;
}
.admin-panel-header h2{margin:0!important;color:var(--admin-heading)!important;font-size:24px!important;font-weight:900!important;letter-spacing:-.02em!important}
.admin-panel-header p{margin:5px 0 0!important;color:#6f7a73!important;font-size:13px!important}
.admin-panel-body{padding:18px 20px!important}
.admin-toolbar{display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;gap:12px!important;flex-wrap:wrap!important}
.admin-toolbar label{display:grid!important;gap:6px!important;color:#7d8891!important;text-transform:uppercase!important;letter-spacing:.12em!important;font-size:11px!important;font-weight:950!important}
.admin-toolbar input,.admin-toolbar select{width:100%!important;min-height:42px!important;border:1px solid #cfd9df!important;border-radius:13px!important;background:#f8fafb!important;padding:9px 13px!important;font:inherit!important;color:#4d5962!important}
.admin-toolbar input{min-width:255px!important}.admin-toolbar select{min-width:86px!important}
.admin-stat-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:10px!important;margin-bottom:18px!important}
.admin-stat-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.admin-stat-card,.admin-stat-grid article{
  min-height:74px!important;
  padding:13px 14px!important;
  border:1px solid var(--admin-line)!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(34,52,39,.04)!important;
}
.admin-stat-card span,.admin-stat-grid article span{display:block!important;text-align:center!important;color:#776a67!important;font-size:11px!important;font-weight:950!important}
.admin-stat-card strong,.admin-stat-grid article strong{display:block!important;text-align:center!important;margin-top:7px!important;color:#111!important;font-size:29px!important;line-height:1!important;font-weight:950!important}
.admin-stat-card.warning{border-color:#e5cc6b!important;background:#fffdf3!important}
.admin-stat-card.success{border-color:#bfe3c4!important;background:#effaf1!important}
.admin-dashboard-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(380px,.7fr)!important;gap:18px!important;align-items:start!important}
.admin-quick-actions{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
.admin-quick-actions a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:47px!important;border:1px solid #e2d9d2!important;border-radius:13px!important;background:#fbfaf8!important;color:#3d302d!important;text-decoration:none!important;font-weight:900!important}
.admin-list-row{display:block!important;padding:12px 0!important;border-top:1px solid #e9dfd8!important;text-decoration:none!important;color:inherit!important}
.admin-list-row:first-child{border-top:0!important}
.admin-list-row strong,.admin-list-row span{display:block!important}.admin-list-row strong{color:#4d5962!important}.admin-list-row span{color:#8a8680!important;font-size:13px!important;margin-top:3px!important}

.admin-table-wrap{overflow:auto!important}
.admin-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important}
.admin-table th{background:#eff1f1!important;color:#5c6872!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.12em!important;font-weight:950!important;text-align:left!important;padding:14px 15px!important;border-bottom:1px solid #dce4df!important;white-space:nowrap!important}
.admin-table th:first-child{border-top-left-radius:14px!important}.admin-table th:last-child{border-top-right-radius:14px!important}
.admin-table td{padding:14px 15px!important;border-bottom:1px solid #e7ded8!important;vertical-align:middle!important;color:#68727d!important;font-size:14px!important}
.admin-table tr:last-child td{border-bottom:0!important}
.admin-table strong{color:#505b66!important}
.admin-table small,.small{font-size:12px!important;color:#8a9299!important}
.admin-actions-cell{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important}
.admin-actions-cell form{margin:0!important;display:inline-flex!important}
.pill-btn,.table-edit-btn,.table-delete-link,.order-action-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:36px!important;padding:0 16px!important;border-radius:999px!important;
  font-size:13px!important;font-weight:900!important;text-decoration:none!important;cursor:pointer!important;
  border:1px solid #d8e1e6!important;background:#f8fafb!important;color:#2f3940!important;white-space:nowrap!important;
}
.table-delete-link,.pill-danger{background:#fff1ee!important;border-color:#efc5b9!important;color:#b74632!important}
.pill-warn{background:#fff8dc!important;border-color:#e6ca6d!important;color:#7b5a08!important}
.status-pill,.role-badge,.payment-pill{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:29px!important;min-width:92px!important;padding:5px 13px!important;border-radius:999px!important;
  font-size:12px!important;font-weight:950!important;background:#f3f0ed!important;color:#453d38!important;
}
.status-active,.status-paid,.status-complete{background:#e4f4e8!important;color:#176c2a!important}
.status-hidden,.status-no,.status-pending{background:#fff1ee!important;color:#a3412f!important}
.status-warning{background:#fff6cd!important;color:#765706!important;border:1px solid #e3ca65!important}
.order-row-locked td{background:#f1f2f1!important;color:#9aa0a5!important}
.admin-product-thumb{width:54px!important;height:54px!important;border-radius:10px!important;object-fit:cover!important;background:#f4f4f4!important}
.sale-badge-mini{display:inline-flex!important;margin-left:8px!important;padding:3px 8px!important;border-radius:999px!important;background:#fff4ca!important;border:1px solid #e4c969!important;color:#7a5d07!important;font-size:11px!important;font-weight:950!important}
.was-price{text-decoration:line-through!important;color:#9aa0a5!important;margin-right:8px!important}
.sale-price{font-weight:950!important;color:#222!important}
.feature-check{display:flex!important;align-items:center!important;gap:8px!important;white-space:nowrap!important}
.feature-check input{width:auto!important}

.pagination{display:flex!important;align-items:center!important;justify-content:center!important;gap:18px!important;margin:20px 0 4px!important}
.pagination a,.pagination span{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:0 18px!important;border-radius:999px!important;border:1px solid #dbe4e8!important;background:#f8fafb!important;color:#3d4750!important;text-decoration:none!important;font-weight:850!important}
.pagination span{border:0!important;background:transparent!important;color:#7c858d!important}

.field-grid{display:grid!important;gap:16px!important}.grid-2{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:16px!important}.grid-3{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:16px!important}
.field label,.friendly-field span{display:block!important;color:#2f3940!important;font-size:12px!important;font-weight:950!important;margin-bottom:7px!important}
.input,input,select,textarea{width:100%!important;min-height:42px!important;border:1px solid #d9e2df!important;border-radius:12px!important;background:#fff!important;padding:10px 13px!important;font:inherit!important;color:#3e484f!important}
textarea{min-height:125px!important}
.admin-check{display:flex!important;align-items:center!important;gap:9px!important;font-weight:850!important}.admin-check input{width:auto!important;min-height:auto!important}
.form-card{border:1px solid #e4ddd6!important;border-radius:16px!important;background:#fff!important;padding:16px!important}
.save-row{display:flex!important;justify-content:flex-end!important;margin:18px 0 0!important}
.save-row .btn-dark{min-width:190px!important}
.admin-success-message,.admin-error-message{border-radius:14px!important;padding:13px 16px!important;margin:0 0 18px!important;font-weight:850!important}
.admin-success-message{background:#e4f4e8!important;color:#176c2a!important;border:1px solid #bfe3c4!important}
.admin-error-message{background:#fff1ee!important;color:#a3412f!important;border:1px solid #efc5b9!important}

/* Maintenance */
.maintenance-preview-area{padding:32px!important;background:#f1f4ef!important}
.maintenance-preview-card{max-width:680px!important;margin:0 auto!important;text-align:center!important;padding:38px!important;border:1px solid #d9e2df!important;border-radius:20px!important;background:#fff!important;box-shadow:0 25px 60px rgba(34,52,39,.10)!important}
.maintenance-preview-card img{max-width:170px!important;margin:0 auto 20px!important}
.maintenance-divider{width:86px!important;height:2px!important;background:var(--admin-green)!important;margin:0 auto 24px!important}
.maintenance-preview-card h2{margin:0 0 18px!important;color:#32383e!important;font-size:30px!important;line-height:1.15!important}
.maintenance-preview-card p{margin:0 0 20px!important;color:#7b8085!important;line-height:1.55!important}.maintenance-preview-card a{color:var(--admin-green-dark)!important;font-weight:950!important}

/* Analytics */
.analytics-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 250px!important;gap:16px!important;margin-bottom:20px!important}
.analytics-bars{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;padding:22px!important;min-height:220px!important}
.analytics-month{text-align:center!important;min-width:52px!important}
.bar-pair{height:110px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:5px!important;margin-bottom:8px!important}
.bar-track{width:13px!important;height:110px!important;border:1px solid #dce4df!important;border-radius:999px!important;background:#f0f2f2!important;display:flex!important;align-items:flex-end!important;overflow:hidden!important}
.revenue-fill{width:100%!important;background:#58b91f!important;border-radius:999px!important}.profit-fill{width:100%!important;background:#8fb79a!important;border-radius:999px!important}
.analytics-month span{display:block!important;color:#7d858d!important;font-size:11px!important}.analytics-month strong{display:block!important;color:#353d44!important;font-size:11px!important}.analytics-month em{display:block!important;color:var(--admin-green-dark)!important;font-style:normal!important;font-size:11px!important;font-weight:950!important}
.status-list{padding:16px 20px!important}.status-list-row{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:13px 0!important;border-bottom:1px solid #e7ded8!important;font-size:13px!important}.status-list-row:last-child{border-bottom:0!important}.status-list-row strong{color:#2f3940!important}

/* Email templates */
.email-template-layout{display:grid!important;grid-template-columns:220px minmax(0,1fr) 300px!important;gap:18px!important;padding:16px!important}
.template-tabs{display:grid!important;gap:8px!important}.template-tab{display:block!important;padding:15px!important;border:1px solid #e0d8d1!important;border-radius:13px!important;background:#fffaf5!important;text-decoration:none!important;color:#4d3d38!important}.template-tab.active{background:#e8f5e3!important;border-color:#abd99d!important}.template-tab strong,.template-tab span{display:block!important}.template-tab span{font-size:12px!important;color:#7b7f82!important;margin-top:5px!important}
.placeholder-card{border:1px solid #e0d8d1!important;border-radius:16px!important;background:#fffaf5!important;padding:16px!important}.placeholder-card h3{margin:0 0 8px!important;color:#4d3d38!important}.placeholder-item{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;align-items:center!important;margin:8px 0!important}.placeholder-item code{background:#e9ded2!important;border-radius:8px!important;padding:6px 8px!important;color:#684b3d!important;font-weight:850!important;font-size:12px!important}.placeholder-item span{font-size:12px!important;color:#736d68!important}

/* modal */
.admin-modal-backdrop,.admin-confirm-backdrop{position:fixed!important;inset:0!important;z-index:9998!important;display:none!important;align-items:flex-start!important;justify-content:center!important;padding:54px 28px!important;overflow:auto!important;background:rgba(24,27,30,.48)!important;backdrop-filter:blur(2px)!important}.admin-modal-backdrop.open,.admin-confirm-backdrop.open{display:flex!important}.admin-modal{position:relative!important;width:min(960px,calc(100vw - 56px))!important;max-height:calc(100vh - 108px)!important;overflow:auto!important;background:#fff!important;border:1px solid #d9e2df!important;border-radius:24px!important;box-shadow:0 34px 90px rgba(23,25,27,.28)!important}.admin-modal-close{position:absolute!important;top:20px!important;right:20px!important;width:42px!important;height:42px!important;border-radius:50%!important;border:1px solid #d9e2df!important;background:#fff!important;font-size:30px!important;cursor:pointer!important}.modal-title-block{padding:24px 72px 16px 24px!important;border-bottom:1px solid #e4ece8!important}.modal-title-block p{margin:0 0 5px!important;text-transform:uppercase!important;letter-spacing:.14em!important;color:#87908a!important;font-size:12px!important;font-weight:950!important}.modal-title-block h2{margin:0!important;color:var(--admin-heading)!important}.modal-section-card{border:1px solid #e4ece8!important;border-radius:16px!important;background:#fbfdfb!important;padding:16px!important}.modal-grid-2{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;padding:18px!important}.modal-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;padding:16px 18px!important;border-top:1px solid #e4ece8!important}.modal-cancel-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:0 18px!important;border-radius:12px!important;border:1px solid #d9e2df!important;background:#f8fafb!important;color:#2f3940!important;font-weight:900!important;cursor:pointer!important}.admin-confirm-backdrop{z-index:10000!important;place-items:center!important;align-items:center!important}.admin-confirm-card{width:min(460px,100%)!important;background:#fff!important;border-radius:20px!important;padding:24px!important;box-shadow:0 30px 80px rgba(23,25,27,.25)!important}.admin-confirm-card h3{margin:0 0 8px!important;color:#20262d!important}.admin-confirm-card p{margin:0 0 18px!important;line-height:1.5!important}.admin-confirm-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important}

@media(max-width:1180px){.admin-stat-grid,.admin-stat-grid.four{grid-template-columns:repeat(2,1fr)!important}.admin-dashboard-grid,.analytics-layout,.email-template-layout{grid-template-columns:1fr!important}}
@media(max-width:840px){body.admin-shell{display:block!important}.admin-sidebar{position:relative!important;min-height:auto!important}.admin-main{padding:18px!important}.grid-2,.grid-3,.modal-grid-2{grid-template-columns:1fr!important}.admin-page-title,.admin-panel-header{flex-direction:column!important;align-items:flex-start!important}.admin-toolbar{justify-content:flex-start!important}.admin-stat-grid,.admin-stat-grid.four{grid-template-columns:1fr!important}}

.admin-login-page{min-height:100vh!important;display:grid!important;place-items:center!important;background:var(--admin-bg)!important;padding:24px!important;font-family:"Poppins",Arial,sans-serif!important}
.admin-login-card{width:min(460px,100%)!important;background:#fff!important;border:1px solid var(--admin-line)!important;border-radius:22px!important;padding:32px!important;box-shadow:var(--admin-shadow)!important;display:grid!important;gap:14px!important}
.admin-login-card img{width:210px!important;margin:0 auto 10px!important}.admin-login-card h1{margin:0!important;text-align:center!important;color:var(--admin-heading)!important}.admin-login-card p{text-align:center!important;margin:0!important;color:#87908a!important;text-transform:uppercase!important;letter-spacing:.14em!important;font-size:12px!important;font-weight:950!important}.admin-forgot-link{text-align:center!important;color:var(--admin-green-dark)!important;font-weight:850!important;text-decoration:none!important}


/* v2.3.8 admin repair pass */
.admin-page-title h1{font-weight:760!important;font-size:36px!important}
.admin-panel-header h2{font-weight:760!important;font-size:22px!important}
.admin-stat-card strong,.admin-stat-grid article strong{font-weight:760!important}
.admin-table th{font-weight:780!important}
.admin-table strong{font-weight:650!important}
.grouped-admin-nav a,.grouped-admin-nav summary,.admin-view-site,.pill-btn,.table-edit-btn,.table-delete-link,.btn-dark,.admin-action-button{font-weight:760!important}
.admin-actions-cell{min-width:240px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
.admin-actions-cell .pill-btn,.admin-actions-cell .table-edit-btn,.admin-actions-cell .table-delete-link{min-width:78px!important}
.modal-section-card .friendly-field,
.modal-section-card .field,
.email-editor-panel .field,
.placeholder-card .friendly-field{
  display:grid!important;
  gap:6px!important;
  margin-bottom:14px!important;
}
.modal-section-card .friendly-field span,
.modal-section-card .field label,
.email-editor-panel .field label,
.placeholder-card .friendly-field span{
  margin:0!important;
}
.category-icon-img{
  width:42px!important;
  height:42px!important;
  object-fit:cover!important;
  border-radius:10px!important;
  border:1px solid #d9e2df!important;
  background:#fff!important;
}
.admin-checkbox-line.extra-info-active-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:12px 14px!important;
  border:1px solid #d9e2df!important;
  border-radius:12px!important;
  background:#f8fbf7!important;
  font-weight:650!important;
}
.admin-checkbox-line.extra-info-active-row input{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  flex:0 0 auto!important;
}
.email-template-layout{
  display:grid!important;
  grid-template-columns:230px minmax(0,1fr) 315px!important;
  gap:18px!important;
  align-items:start!important;
}
.email-editor-panel{
  min-width:0!important;
}
.email-editor-panel textarea{
  min-height:340px!important;
  font-family:inherit!important;
  white-space:pre-wrap!important;
}
.placeholder-card{
  max-height:calc(100vh - 160px)!important;
  overflow:auto!important;
}
.payment-choice-list{display:grid!important;gap:10px!important;margin-top:12px!important}
.payment-choice-list label{display:flex!important;gap:12px!important;align-items:flex-start!important;border:1px solid #d9e2df!important;border-radius:14px!important;padding:12px!important;background:#fff!important}
.payment-choice-list input{width:auto!important;min-height:auto!important;margin-top:4px!important}
.payment-choice-list strong,.payment-choice-list small{display:block!important}
.payment-choice-list small{color:#6f7a73!important;margin-top:3px!important}
@media(max-width:1250px){
  .email-template-layout{grid-template-columns:1fr!important}
  .placeholder-card{max-height:none!important}
}


/* v2.3.9 white-page, email editor, footer modal and spacing repairs */
.payment-choice-list{gap:14px!important}
.payment-choice-list label + label{margin-top:4px!important}
.email-editor-toolbar{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  padding:8px!important;
  border:1px solid #d9e2df!important;
  border-bottom:0!important;
  border-radius:12px 12px 0 0!important;
  background:#f7faf6!important;
}
.email-editor-toolbar button{
  min-height:32px!important;
  padding:0 11px!important;
  border:1px solid #d9e2df!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#2f3940!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.email-rich-editor{
  min-height:330px!important;
  padding:14px!important;
  border:1px solid #d9e2df!important;
  border-radius:0 0 12px 12px!important;
  background:#fff!important;
  color:#344054!important;
  line-height:1.65!important;
  overflow:auto!important;
}
.email-rich-editor h2,.email-rich-editor h3{color:#176c2a!important}
.email-preview-shell{
  padding:24px!important;
  background:#f5f8f3!important;
}
.email-preview-card{
  width:min(620px,100%)!important;
  margin:auto!important;
  background:#fff!important;
  border:1px solid #d9e2df!important;
  box-shadow:0 16px 40px rgba(34,52,39,.08)!important;
}
.email-preview-logo{
  text-align:center!important;
  padding:24px!important;
  background:#f7fbf4!important;
}
.email-preview-logo img{
  max-width:190px!important;
  max-height:92px!important;
  object-fit:contain!important;
}
.email-preview-body{
  padding:24px!important;
  line-height:1.65!important;
  color:#344054!important;
}
.email-preview-body a{
  display:inline-flex!important;
  padding:11px 18px!important;
  border-radius:999px!important;
  background:#58b91f!important;
  color:#fff!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.email-preview-actions{
  display:flex!important;
  justify-content:center!important;
  gap:12px!important;
  padding:18px!important;
  border-top:1px solid #e4ece8!important;
  background:#fbfdfb!important;
}
.email-preview-actions a{
  display:inline-flex!important;
  padding:10px 18px!important;
  border:1px solid #d9e2df!important;
  color:#176c2a!important;
  text-decoration:none!important;
  font-weight:800!important;
}
.approved-cat-icon img{
  width:38px!important;
  height:38px!important;
  object-fit:cover!important;
  border-radius:9px!important;
  border:1px solid #dce8d8!important;
  background:#fff!important;
}
.tsgs-footer-modal-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:9999!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  background:rgba(22,27,24,.52)!important;
  backdrop-filter:blur(2px)!important;
}
.tsgs-footer-modal-backdrop.is-open{display:flex!important}
.tsgs-footer-modal{
  position:relative!important;
  width:min(720px,100%)!important;
  max-height:calc(100vh - 60px)!important;
  overflow:auto!important;
  background:#fff!important;
  border-radius:24px!important;
  border:1px solid #d9e2df!important;
  box-shadow:0 30px 80px rgba(22,27,24,.25)!important;
  padding:30px!important;
}
.tsgs-footer-modal h2{
  margin:0 44px 16px 0!important;
  color:#20262d!important;
  font-weight:760!important;
}
.tsgs-footer-modal div{
  line-height:1.7!important;
  color:#4d5962!important;
}
.tsgs-footer-modal-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  border:1px solid #d9e2df!important;
  background:#fff!important;
  color:#20262d!important;
  font-size:26px!important;
  cursor:pointer!important;
}


/* v2.3.11 admin typography, layout and action alignment */
body.admin-shell,
.admin-login-page{
  font-family:"Poppins",Arial,sans-serif!important;
}
.admin-page-title h1,
.admin-panel-header h2,
.admin-stat-card strong,
.admin-stat-grid article strong{
  font-weight:600!important;
}
.admin-table th,
.admin-table strong,
.grouped-admin-nav a,
.grouped-admin-nav summary,
.admin-view-site,
.pill-btn,
.table-edit-btn,
.table-delete-link,
.btn-dark,
.admin-action-button,
.status-pill,
.payment-pill,
.role-badge{
  font-weight:500!important;
}
.admin-page-title p,
.admin-toolbar label{
  font-weight:600!important;
}
.admin-table{
  table-layout:fixed!important;
}
.orders-table th:nth-child(1), .orders-table td:nth-child(1){width:90px!important}
.orders-table th:nth-child(2), .orders-table td:nth-child(2){width:170px!important}
.orders-table th:nth-child(3), .orders-table td:nth-child(3){width:220px!important}
.orders-table th:nth-child(4), .orders-table td:nth-child(4){width:80px!important}
.orders-table th:nth-child(5), .orders-table td:nth-child(5){width:150px!important}
.orders-table th:nth-child(6), .orders-table td:nth-child(6){width:160px!important}
.orders-table th:nth-child(7), .orders-table td:nth-child(7){width:105px!important}
.orders-table th:nth-child(8), .orders-table td:nth-child(8){width:330px!important}
.products-table th:nth-child(1), .products-table td:nth-child(1){width:82px!important}
.products-table th:nth-child(2), .products-table td:nth-child(2){width:32%!important}
.products-table th:nth-child(3), .products-table td:nth-child(3){width:16%!important}
.products-table th:nth-child(4), .products-table td:nth-child(4){width:100px!important}
.products-table th:nth-child(5), .products-table td:nth-child(5){width:85px!important}
.products-table th:nth-child(6), .products-table td:nth-child(6){width:110px!important}
.products-table th:nth-child(7), .products-table td:nth-child(7){width:125px!important}
.products-table th:nth-child(8), .products-table td:nth-child(8){width:180px!important}
.categories-table th:nth-child(1), .categories-table td:nth-child(1){width:21%!important}
.categories-table th:nth-child(2), .categories-table td:nth-child(2){width:22%!important}
.categories-table th:nth-child(3), .categories-table td:nth-child(3){width:80px!important;text-align:center!important}
.categories-table th:nth-child(4), .categories-table td:nth-child(4){width:80px!important;text-align:center!important}
.categories-table th:nth-child(5), .categories-table td:nth-child(5){width:120px!important}
.categories-table th:nth-child(6), .categories-table td:nth-child(6){width:120px!important}
.categories-table th:nth-child(7), .categories-table td:nth-child(7){width:170px!important}
.admin-actions-cell{
  white-space:nowrap!important;
  min-width:0!important;
}
.admin-actions-cell .pill-btn,
.admin-actions-cell .table-edit-btn,
.admin-actions-cell .table-delete-link{
  min-width:auto!important;
  padding-inline:13px!important;
}
.category-icon-img{
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  object-fit:contain!important;
}
.shipped-details-note{
  padding:12px 14px!important;
  border:1px solid #d9e2df!important;
  border-radius:12px!important;
  background:#f7fbf4!important;
  color:#4d5962!important;
  margin:0 18px 14px!important;
}
.email-template-layout{
  grid-template-columns:230px minmax(0,1fr) 320px!important;
}
.template-tab[data-disabled-template]{
  display:none!important;
}
@media(max-width:1350px){
  .orders-table,.products-table,.categories-table{min-width:1180px!important}
}


/* v2.3.12 table/action alignment, lighter typography and modal spacing */
body.admin-shell,
.admin-login-page{
  font-family:"Poppins",Arial,sans-serif!important;
  font-weight:400!important;
}
.admin-page-title h1,
.admin-panel-header h2,
.admin-table strong,
.admin-stat-card strong,
.admin-stat-grid article strong,
.admin-user-card strong{
  font-weight:500!important;
}
.admin-page-title p,
.admin-table th,
.admin-toolbar label,
.grouped-admin-nav a,
.grouped-admin-nav summary,
.admin-view-site,
.pill-btn,
.table-edit-btn,
.table-delete-link,
.btn-dark,
.admin-action-button,
.status-pill,
.payment-pill,
.role-badge{
  font-weight:500!important;
}
.admin-actions-cell{
  display:table-cell!important;
  text-align:right!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
.admin-actions-cell form{
  display:inline-flex!important;
  margin:0 0 0 8px!important;
  vertical-align:middle!important;
}
.admin-actions-cell .table-edit-btn,
.admin-actions-cell .table-delete-link,
.admin-actions-cell .pill-btn{
  margin-left:8px!important;
  min-width:72px!important;
}
.orders-table,
.products-table,
.categories-table{
  table-layout:fixed!important;
  min-width:1180px!important;
}
.orders-table th:nth-child(8), .orders-table td:nth-child(8){width:360px!important}
.products-table th:nth-child(8), .products-table td:nth-child(8){width:190px!important}
.categories-table th:nth-child(7), .categories-table td:nth-child(7){width:190px!important}
.order-row-locked td{
  background:#f0f2f1!important;
}
.order-row-locked .admin-actions-cell{
  background:#f0f2f1!important;
}
.modal-grid-2{
  gap:20px!important;
  padding:22px!important;
}
.modal-section-card{
  display:grid!important;
  gap:14px!important;
}
.modal-section-card .friendly-field{
  margin:0!important;
}
.modal-section-card input,
.modal-section-card textarea,
.modal-section-card select{
  margin-top:7px!important;
}
.shipped-details-note{
  margin:18px 22px 0!important;
}
.category-icon-img{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}


/* v2.3.13 table alignment hard fix */
.admin-table,
.orders-table,
.products-table,
.categories-table{
  border-collapse:collapse!important;
  border-spacing:0!important;
  width:100%!important;
  table-layout:fixed!important;
}
.admin-table thead tr,
.admin-table tbody tr,
.orders-table thead tr,
.orders-table tbody tr,
.products-table thead tr,
.products-table tbody tr,
.categories-table thead tr,
.categories-table tbody tr{
  display:table-row!important;
}
.admin-table th,
.admin-table td,
.orders-table th,
.orders-table td,
.products-table th,
.products-table td,
.categories-table th,
.categories-table td{
  display:table-cell!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
  border-bottom:1px solid #e7ded8!important;
}
.admin-table tr:last-child td{
  border-bottom:0!important;
}
.admin-actions-cell,
.actions-cell{
  display:table-cell!important;
  text-align:right!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
.admin-action-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  width:100%!important;
}
.admin-action-row form{
  display:inline-flex!important;
  margin:0!important;
  padding:0!important;
}
.admin-action-row .pill-btn,
.admin-action-row .table-edit-btn,
.admin-action-row .table-delete-link{
  margin:0!important;
  flex:0 0 auto!important;
}
.order-row-locked td,
.order-row-locked .actions-cell{
  background:#f0f2f1!important;
}
.orders-table{
  min-width:1280px!important;
}
.orders-table th:nth-child(1), .orders-table td:nth-child(1){width:95px!important}
.orders-table th:nth-child(2), .orders-table td:nth-child(2){width:175px!important}
.orders-table th:nth-child(3), .orders-table td:nth-child(3){width:220px!important}
.orders-table th:nth-child(4), .orders-table td:nth-child(4){width:85px!important}
.orders-table th:nth-child(5), .orders-table td:nth-child(5){width:155px!important}
.orders-table th:nth-child(6), .orders-table td:nth-child(6){width:150px!important}
.orders-table th:nth-child(7), .orders-table td:nth-child(7){width:110px!important}
.orders-table th:nth-child(8), .orders-table td:nth-child(8){width:290px!important}
.orders-table select{
  max-width:135px!important;
}
.orders-table .pill-btn,
.orders-table .table-delete-link{
  min-height:34px!important;
  padding:0 12px!important;
  font-size:12px!important;
}
.products-table{
  min-width:1180px!important;
}
.products-table th:nth-child(8), .products-table td:nth-child(8){width:170px!important}
.categories-table{
  min-width:1050px!important;
}
.categories-table th:nth-child(7), .categories-table td:nth-child(7){width:160px!important}


/* v2.3.16 editable email template editor */
.email-rich-field{
  display:block!important;
}
.email-editor-help{
  margin:0 0 10px!important;
  color:#6f7a73!important;
  font-size:13px!important;
  line-height:1.5!important;
}
.email-rich-editor{
  cursor:text!important;
  user-select:text!important;
  min-height:420px!important;
  outline:none!important;
  caret-color:#176c2a!important;
}
.email-rich-editor:focus{
  border-color:#58b91f!important;
  box-shadow:0 0 0 4px rgba(88,185,31,.12)!important;
}
.email-rich-editor a{
  pointer-events:none!important;
}
.email-rich-editor table,
.email-rich-editor td{
  user-select:text!important;
}
.email-html-source{
  display:none!important;
  width:100%!important;
  min-height:260px!important;
  margin-top:12px!important;
  font-family:Consolas,Menlo,monospace!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.email-html-source.is-open{
  display:block!important;
}
.email-editor-toolbar [data-toggle-html-source].is-active{
  background:#e4f4e8!important;
  border-color:#58b91f!important;
  color:#176c2a!important;
}


/* v2.3.20 email placeholders list */
.placeholder-group{
  margin:14px 0 16px!important;
  padding:12px!important;
  border:1px solid #e1ebe3!important;
  border-radius:12px!important;
  background:#fbfdfb!important;
}
.placeholder-group h4{
  margin:0 0 8px!important;
  color:#176c2a!important;
  font-size:13px!important;
  font-weight:600!important;
}
.placeholder-item code{
  user-select:all!important;
}


/* v2.3.31 email preview footer buttons */
.email-preview-actions-rect{
  display:flex!important;
  justify-content:center!important;
  gap:12px!important;
}
.email-preview-actions-rect a{
  min-width:112px!important;
  border-radius:0!important;
  background:#58b91f!important;
  border:1px solid #58b91f!important;
  color:#ffffff!important;
  text-align:center!important;
  padding:11px 22px!important;
}
