:root{
  --cfg-navy:#061d47;
  --cfg-blue:#087cf0;
  --cfg-green:#0b9b4c;
  --cfg-red:#ef3340;
  --cfg-purple:#6816bd;
  --cfg-border:#dbe4ef;
  --cfg-bg:#f3f7fb;
  --cfg-text:#071c4c;
}

/* Keep the retailer application independent from the active WordPress theme. */
body.cfg-retail-dashboard-page .entry-title,
body.cfg-retail-dashboard-page .page-title,
body.cfg-retail-dashboard-page .wp-block-post-title{
  display:none!important;
}

.cfg-retail-shell{
  width:min(1600px,calc(100vw - 32px))!important;
  max-width:none!important;
  min-width:0!important;
  margin:18px 0 36px!important;
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  float:none!important;
  clear:both!important;
}

.cfg-retail-app,
.cfg-retail-app *{
  box-sizing:border-box!important;
}

.cfg-retail-app{
  font-family:Arial,Helvetica,sans-serif!important;
  color:var(--cfg-text)!important;
  background:var(--cfg-bg)!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:780px!important;
  display:grid!important;
  grid-template-columns:260px minmax(0,1fr)!important;
  align-items:stretch!important;
  border-radius:16px!important;
  overflow:hidden!important;
  box-shadow:0 12px 35px rgba(7,28,76,.10)!important;
  font-size:16px!important;
  line-height:1.4!important;
}

.cfg-retail-sidebar{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  float:none!important;
  margin:0!important;
  position:relative!important;
  background:linear-gradient(180deg,#062148,#07172f)!important;
  color:#fff!important;
  padding:26px 17px!important;
  min-height:100%!important;
}

.cfg-brand{text-align:center!important;padding:6px 0 28px!important;color:#fff!important}
.cfg-brand-mark{font-size:19px!important;font-weight:700!important;line-height:.95!important;color:#fff!important}
.cfg-brand-mark strong{font-size:38px!important;letter-spacing:-2px!important;color:#fff!important}
.cfg-brand-mark small{font-size:12px!important;margin-left:4px!important;color:#fff!important}
.cfg-brand-sub{font-size:18px!important;font-weight:800!important;margin-top:18px!important;color:#fff!important}
.cfg-brand-sub span{color:#16b5ff!important}
.cfg-brand-tag{font-size:9px!important;letter-spacing:3px!important;margin-top:7px!important;color:#fff!important}

.cfg-retail-nav{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:0!important}
.cfg-retail-nav button,.cfg-retail-nav a{
  display:block!important;
  width:100%!important;
  min-height:48px!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  text-align:left!important;
  padding:13px 14px!important;
  margin:0!important;
  border-radius:8px!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.25!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.cfg-retail-nav button.active,.cfg-retail-nav button:hover,.cfg-retail-nav a:hover{background:var(--cfg-blue)!important;color:#fff!important}
.cfg-retail-nav span{margin-left:9px!important;color:inherit!important}

.cfg-retail-main{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  float:none!important;
  margin:0!important;
  padding:28px!important;
  background:var(--cfg-bg)!important;
}

.cfg-retail-header{display:flex!important;justify-content:space-between!important;gap:24px!important;align-items:flex-start!important;margin:0 0 20px!important}
.cfg-retail-header h1{font-family:Arial,Helvetica,sans-serif!important;font-size:32px!important;line-height:1.05!important;margin:0!important;padding:0!important;color:#081d56!important;letter-spacing:-1px!important;font-weight:900!important;text-transform:none!important}
.cfg-retail-header p{margin:7px 0 0!important;padding:0!important;letter-spacing:5px!important;font-size:12px!important;color:#071c4c!important}
.cfg-shop-card{background:#e6f2ff!important;padding:13px 18px!important;border-radius:9px!important;display:grid!important;gap:4px!important;min-width:230px!important;max-width:320px!important;color:#071c4c!important}
.cfg-shop-card strong{font-size:16px!important;color:#071c4c!important}
.cfg-shop-card span{font-size:12px!important;color:#071c4c!important}

.cfg-tab-panel{display:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
.cfg-tab-panel.active{display:block!important}

.cfg-stats-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(190px,1fr))!important;
  gap:14px!important;
  width:100%!important;
  margin:0 0 18px!important;
}
.cfg-stats-grid article{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:116px!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid var(--cfg-border)!important;
  border-radius:12px!important;
  padding:18px!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  box-shadow:none!important;
}
.cfg-stats-grid article>div{min-width:0!important}
.cfg-stats-grid small{display:block!important;font-size:13px!important;line-height:1.25!important;min-height:32px!important;color:#243a65!important}
.cfg-stats-grid strong{display:block!important;font-size:27px!important;line-height:1.1!important;margin-top:6px!important;color:#071c4c!important;white-space:normal!important}
.cfg-stat-icon{width:54px!important;height:54px!important;border-radius:50%!important;display:grid!important;place-items:center!important;color:#fff!important;font-weight:800!important;font-size:18px!important;flex:0 0 54px!important}
.cfg-stat-icon.blue{background:var(--cfg-blue)!important}.cfg-stat-icon.green{background:var(--cfg-green)!important}.cfg-stat-icon.red{background:var(--cfg-red)!important}.cfg-stat-icon.purple{background:var(--cfg-purple)!important}

.cfg-panel-card{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  background:#fff!important;
  border:1px solid var(--cfg-border)!important;
  border-radius:12px!important;
  padding:20px!important;
  margin:0 0 18px!important;
  box-shadow:none!important;
  color:var(--cfg-text)!important;
}
.cfg-panel-title-row{display:flex!important;justify-content:space-between!important;gap:18px!important;align-items:center!important;margin:0 0 16px!important}
.cfg-panel-title-row h2,.cfg-panel-card h2{font-family:Arial,Helvetica,sans-serif!important;margin:0!important;padding:0!important;font-size:21px!important;line-height:1.2!important;color:#071c4c!important;font-weight:900!important;text-transform:none!important}
.cfg-muted{color:#60708b!important;margin:5px 0 0!important;font-size:13px!important;line-height:1.35!important}
.cfg-price-pill{background:#eef6ff!important;color:#0b58a8!important;border-radius:999px!important;padding:9px 14px!important;font-weight:700!important;white-space:nowrap!important;font-size:13px!important}
.cfg-price-pill small{font-weight:600!important;color:#0c7b42!important}

.cfg-flow-grid{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) 36px minmax(280px,1fr) 36px minmax(280px,1fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
}
.cfg-step-card{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  border:1px solid #cfe0f4!important;
  border-radius:10px!important;
  padding:18px!important;
  margin:0!important;
  background:#fff!important;
  color:var(--cfg-text)!important;
}
.cfg-step-heading{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 15px!important}
.cfg-step-heading span{width:36px!important;height:36px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:var(--cfg-blue)!important;color:#fff!important;font-weight:800!important;flex:0 0 36px!important}
.cfg-step-heading h3{font-family:Arial,Helvetica,sans-serif!important;margin:0!important;padding:0!important;font-size:16px!important;line-height:1.2!important;color:#071c4c!important;font-weight:900!important;text-transform:none!important;word-break:normal!important}
.cfg-step-card label{display:block!important;font-size:13px!important;font-weight:700!important;line-height:1.3!important;margin:12px 0 6px!important;color:#071c4c!important;word-break:normal!important}
.cfg-step-card label b{color:var(--cfg-red)!important}
.cfg-step-card input[type=text],.cfg-step-card input[type=tel],.cfg-step-card input[type=email],.cfg-step-card select,.cfg-step-card textarea{
  display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:42px!important;max-width:none!important;
  border:1px solid #bdcbe0!important;border-radius:7px!important;padding:10px 11px!important;margin:0!important;
  font-family:Arial,Helvetica,sans-serif!important;font-size:14px!important;line-height:1.3!important;background:#fff!important;color:#071c4c!important;box-shadow:none!important
}
.cfg-inline-input{display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;gap:8px!important;width:100%!important}
.cfg-inline-input button{display:block!important;width:100%!important;min-width:0!important;min-height:42px!important;border:0!important;border-radius:7px!important;background:var(--cfg-blue)!important;color:#fff!important;font-weight:800!important;font-size:13px!important;line-height:1.2!important;padding:9px!important;margin:0!important;box-shadow:none!important}
.cfg-customer-result{margin:13px 0 0!important;padding:12px!important;border-radius:8px!important;font-size:13px!important;line-height:1.45!important;word-break:normal!important}
.cfg-customer-result.empty{background:#f4f6f8!important;color:#60708b!important}.cfg-customer-result.found{background:#e9f8ef!important;color:#08783d!important}.cfg-customer-result.new{background:#fff8e1!important;color:#805a00!important}.cfg-customer-result.error{background:#fdecee!important;color:#b4232c!important}.cfg-new-fields{margin-top:10px!important}
.cfg-subscription-type{padding:12px!important;border-radius:8px!important;background:#f4f7fb!important;font-size:13px!important;line-height:1.4!important;font-weight:700!important;color:#071c4c!important;word-break:normal!important}
.cfg-check-line{display:flex!important;gap:9px!important;align-items:flex-start!important;font-weight:500!important;line-height:1.4!important;white-space:normal!important}
.cfg-check-line input{width:auto!important;flex:0 0 auto!important;margin:3px 0 0!important}
.cfg-activate-btn{display:block!important;width:100%!important;min-height:48px!important;border:0!important;border-radius:8px!important;padding:13px 15px!important;background:var(--cfg-green)!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-weight:900!important;font-size:15px!important;line-height:1.2!important;margin:15px 0 0!important;cursor:pointer!important;box-shadow:none!important;white-space:normal!important}
.cfg-activate-btn:disabled{opacity:.45!important;cursor:not-allowed!important}
.cfg-step-arrow{display:grid!important;place-items:center!important;font-size:31px!important;color:#8293aa!important;min-width:0!important}
.cfg-confirmation-placeholder{height:100%!important;min-height:205px!important;border-radius:8px!important;background:#f4f7fb!important;color:#60708b!important;padding:16px!important;display:flex!important;align-items:center!important;font-size:13px!important;line-height:1.45!important;word-break:normal!important}
.cfg-confirmation-success{background:#e9f8ef!important;color:#075b2f!important;border-radius:8px!important;padding:14px!important;font-size:13px!important;line-height:1.4!important}
.cfg-confirmation-success strong{display:block!important;font-size:17px!important;margin-bottom:9px!important}.cfg-confirmation-success dl{display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;gap:5px!important;margin:0!important;font-size:12px!important}.cfg-confirmation-success dt{font-weight:700!important}.cfg-confirmation-success dd{margin:0!important;word-break:break-word!important}
.cfg-global-message{margin-top:10px!important;font-weight:700!important;font-size:13px!important}.cfg-global-message.error{color:#b4232c!important}.cfg-global-message.success{color:#08783d!important}

.cfg-table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
.cfg-transactions-table{width:100%!important;max-width:none!important;border-collapse:collapse!important;font-size:12px!important;min-width:900px!important;margin:0!important;background:#fff!important;table-layout:auto!important}
.cfg-transactions-table th,.cfg-transactions-table td{padding:10px 9px!important;border:0!important;border-bottom:1px solid #edf1f6!important;text-align:left!important;vertical-align:middle!important;line-height:1.3!important;white-space:nowrap!important;color:#071c4c!important}
.cfg-transactions-table th{background:#f7f9fc!important;font-weight:800!important}.cfg-badge{display:inline-block!important;border-radius:5px!important;padding:4px 7px!important;font-size:10px!important;font-weight:700!important;white-space:nowrap!important}.cfg-badge.green{background:#bdecc8!important;color:#075c2e!important}.cfg-badge.amber{background:#ffe7a3!important;color:#765300!important}.cfg-empty-row{text-align:center!important;color:#718096!important;padding:22px!important}

.cfg-settlement-grid{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)!important;gap:16px!important;width:100%!important}
.cfg-summary-table{width:100%!important;border-collapse:collapse!important;margin:14px 0!important}.cfg-summary-table td,.cfg-summary-table th{border:0!important;border-bottom:1px solid #e6ebf2!important;padding:11px 6px!important;color:#071c4c!important}.cfg-summary-table th{text-align:right!important}.cfg-retail-btn,.cfg-small-btn{display:inline-block!important;background:var(--cfg-blue)!important;color:#fff!important;text-decoration:none!important;border-radius:7px!important;padding:10px 14px!important;font-weight:800!important;line-height:1.2!important}.cfg-wide{display:block!important;text-align:center!important}.cfg-small-btn{font-size:12px!important;padding:7px 10px!important}.cfg-term-row{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:13px 0!important;border-bottom:1px solid #edf1f6!important}.cfg-retail-login-required{max-width:600px!important;margin:50px auto!important;padding:30px!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:12px!important;text-align:center!important}.cfg-loading{opacity:.6!important;pointer-events:none!important}

@media(max-width:1250px){
  .cfg-retail-app{grid-template-columns:220px minmax(0,1fr)!important}
  .cfg-stats-grid{grid-template-columns:repeat(2,minmax(220px,1fr))!important}
  .cfg-flow-grid{grid-template-columns:1fr!important}
  .cfg-step-arrow{height:26px!important;transform:rotate(90deg)!important}
  .cfg-settlement-grid{grid-template-columns:1fr!important}
}

@media(max-width:780px){
  .cfg-retail-shell{width:100vw!important;margin:0!important;left:50%!important;border-radius:0!important}
  .cfg-retail-app{display:block!important;border-radius:0!important;min-height:0!important}
  .cfg-retail-sidebar{min-height:auto!important;padding:14px!important}
  .cfg-brand{padding:2px 0 14px!important}.cfg-brand-mark{font-size:15px!important}.cfg-brand-mark strong{font-size:30px!important}.cfg-brand-sub{font-size:15px!important;margin-top:10px!important}.cfg-brand-tag{letter-spacing:2px!important}
  .cfg-retail-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.cfg-retail-nav button,.cfg-retail-nav a{font-size:13px!important;min-height:42px!important;padding:10px!important}
  .cfg-retail-main{padding:14px!important}.cfg-retail-header{display:block!important}.cfg-retail-header h1{font-size:23px!important}.cfg-retail-header p{letter-spacing:3px!important}.cfg-shop-card{margin-top:12px!important;min-width:0!important;max-width:none!important;width:100%!important}
  .cfg-stats-grid{grid-template-columns:1fr!important;gap:10px!important}.cfg-stats-grid article{min-height:96px!important}.cfg-stats-grid strong{font-size:25px!important}
  .cfg-panel-card{padding:14px!important}.cfg-panel-title-row{display:block!important}.cfg-price-pill{display:inline-block!important;margin-top:10px!important;white-space:normal!important}
  .cfg-flow-grid{display:block!important}.cfg-step-card{margin-bottom:6px!important}.cfg-step-arrow{height:24px!important;padding:0!important;transform:rotate(90deg)!important}
  .cfg-inline-input{grid-template-columns:minmax(0,1fr) 88px!important}.cfg-confirmation-success dl{grid-template-columns:95px minmax(0,1fr)!important}
}

.cfg-copy-message-btn{margin-top:14px;width:100%;border:0;border-radius:8px;background:#0b7af3;color:#fff;font-weight:800;padding:11px 12px;cursor:pointer;letter-spacing:.02em}
.cfg-copy-message-btn:hover{filter:brightness(.95)}
.cfg-badge.red{background:#ffe4e6;color:#b42318}

.cfg-member-note{margin-top:10px;padding:9px 10px;border-radius:7px;font-size:12px;line-height:1.4;font-weight:600}
.cfg-member-note.ok{background:#eef9f3;color:#19734a;border:1px solid #cdebdc}
.cfg-member-note.warn{background:#fff3f3;color:#9c2525;border:1px solid #f0c7c7}
.cfg-confirmation-error{color:#9c2525!important;background:#fff3f3!important;border:1px solid #f0c7c7!important;padding:18px!important}

/* VAT invoice / receipt controls */
.cfg-invoice-link{display:inline-block;font-weight:800;color:#0b72e7;text-decoration:none;white-space:nowrap}
.cfg-invoice-link:hover{text-decoration:underline}
.cfg-confirmation-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.cfg-confirmation-actions .cfg-copy-message-btn{flex:1 1 180px;text-align:center;text-decoration:none;box-sizing:border-box}
.cfg-invoice-btn{background:#0b72e7!important;color:#fff!important}

/* Individual / Business VAT invoice buyer details */
.cfg-purchaser-fields{margin-top:14px!important;padding-top:12px!important;border-top:1px solid #e7edf5!important}
.cfg-business-fields{margin-top:10px!important;padding:12px!important;background:#f7f9fc!important;border:1px solid #dbe4ef!important;border-radius:8px!important}
.cfg-business-note{font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#60708b!important;margin-bottom:4px!important}
.cfg-step-card textarea{min-height:74px!important;resize:vertical!important}
.cfg-vat-check{margin-top:13px!important}

/* Multi-plan retail subscriptions */
.cfg-plan-term span,.cfg-plan-term strong{display:flex!important;flex-direction:column!important;gap:3px!important}
.cfg-plan-term strong{text-align:right!important}
.cfg-plan-term small{font-size:11px!important;font-weight:600!important;color:#60708b!important}
#cfg-plan{font-weight:700!important}
.cfg-sms-action-btn{border:0!important;border-radius:6px!important;background:#0b7af3!important;color:#fff!important;font-size:10px!important;font-weight:800!important;padding:6px 8px!important;cursor:pointer!important;white-space:nowrap!important;line-height:1.2!important}
.cfg-sms-action-btn:hover{filter:brightness(.95)!important}
.cfg-sms-action-btn:disabled{background:#cbd5e1!important;color:#475569!important;cursor:default!important;filter:none!important}
#cfg-current-sms-action{display:flex;flex:1 1 180px}
#cfg-current-sms-action .cfg-sms-action-btn{width:100%;min-height:40px;font-size:12px!important}
