.d-license-app {
  --dl-bg: #f5f7f6;
  --dl-panel: #ffffff;
  --dl-soft: #eef5f2;
  --dl-ink: #182321;
  --dl-muted: #65716e;
  --dl-line: #d9e2df;
  --dl-accent: #087568;
  --dl-accent-dark: #06584f;
  --dl-navy: #183a5a;
  --dl-gold: #b3771d;
  --dl-danger: #c7352a;
  --dl-shadow: 0 18px 44px rgba(18, 34, 31, 0.1);
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  color: var(--dl-ink);
  font-family: Arial, Helvetica, sans-serif;
  container-type: inline-size;
  clear: both;
}

.d-license-app * {
  box-sizing: border-box;
}

.d-license-wide-parent {
  max-width: none !important;
  overflow: visible !important;
}

body.d-license-page-has-app .entry-title,
body.d-license-page-has-app .page-title,
body.d-license-page-has-app .wp-block-post-title,
body.d-license-page-has-app .elementor-heading-title,
body:has(.d-license-app) .entry-title,
body:has(.d-license-app) .page-title,
body:has(.d-license-app) .wp-block-post-title {
  display: none !important;
}

body.d-license-page-has-app .entry-header,
body.d-license-page-has-app .page-header,
body:has(.d-license-app) .entry-header,
body:has(.d-license-app) .page-header {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.d-license-page-has-app .site-content,
body.d-license-page-has-app .site-main,
body.d-license-page-has-app .content-area,
body:has(.d-license-app) .site-content,
body:has(.d-license-app) .site-main,
body:has(.d-license-app) .content-area {
  padding-top: 0 !important;
}

.d-license-app.d-license-view-mobile {
  width: min(100%, 560px);
}

.d-license-app button,
.d-license-app input,
.d-license-app textarea {
  font: inherit;
}

.d-license-workspace,
.d-license-issued-license {
  background: var(--dl-panel);
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  box-shadow: var(--dl-shadow);
}

.d-license-workspace {
  padding: 18px;
}

.d-license-issued-license {
  margin-top: 22px;
  padding: 18px;
}

.d-license-topbar {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--dl-line);
  padding-bottom: 18px;
}

.d-license-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.d-license-logo {
  display: block;
  width: min(230px, 42vw);
  height: auto;
  flex: 0 0 auto;
}

.d-license-brand-copy {
  min-width: 0;
}

.d-license-eyebrow {
  margin: 0 0 7px;
  color: var(--dl-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.d-license-app h1,
.d-license-app h2,
.d-license-app h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

.d-license-app h1 {
  max-width: 780px;
  font-size: 1.85rem;
}

.d-license-app h2 {
  font-size: 1.38rem;
}

.d-license-app h3 {
  font-size: 1rem;
}

.d-license-availability {
  display: grid;
  gap: 2px;
  width: fit-content;
  border: 1px solid rgba(8, 117, 104, 0.26);
  border-radius: 8px;
  background: var(--dl-soft);
  padding: 11px 13px;
}

.d-license-availability strong {
  color: var(--dl-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.d-license-availability span {
  color: var(--dl-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.d-license-samples-banner {
  display: block;
  margin: 16px 0 18px;
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  overflow: hidden;
  background: #0b1420;
  box-shadow: 0 12px 28px rgba(18, 34, 31, 0.1);
}

.d-license-samples-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.d-license-samples-banner:hover,
.d-license-samples-banner:focus {
  border-color: var(--dl-accent);
  outline: 3px solid rgba(8, 117, 104, 0.14);
}

.d-license-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.d-license-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--dl-muted);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 10px;
  text-align: left;
}

.d-license-step-number {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8eeeb;
  color: var(--dl-ink);
  place-items: center;
}

.d-license-step-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-license-step.is-active {
  border-color: var(--dl-accent);
  background: #f2faf7;
  color: var(--dl-accent-dark);
}

.d-license-step.is-active .d-license-step-number {
  background: var(--dl-accent);
  color: #fff;
}

.d-license-step.is-complete {
  color: var(--dl-ink);
}

.d-license-step.is-complete .d-license-step-number {
  background: var(--dl-navy);
  color: #fff;
}

.d-license-step.is-locked {
  cursor: default;
  opacity: 0.58;
}

.d-license-form-step {
  display: none;
}

.d-license-form-step.is-active {
  display: block;
}

.d-license-form-step > .d-license-eyebrow + h2 {
  margin-bottom: 14px;
}

.d-license-customer-types {
  display: grid;
  gap: 18px;
}

.d-license-category-group {
  min-width: 0;
  border-top: 1px solid var(--dl-line);
  padding-top: 16px;
}

.d-license-category-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.d-license-category-group h3 {
  margin-bottom: 10px;
  color: var(--dl-navy);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.d-license-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.d-license-type-option,
.d-license-duration-option {
  min-width: 0;
  min-height: 56px;
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--dl-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 12px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.d-license-type-option:hover,
.d-license-duration-option:hover {
  border-color: var(--dl-accent);
  background: #f5fbf9;
}

.d-license-type-option.is-selected,
.d-license-duration-option.is-selected {
  border-color: var(--dl-accent);
  background: var(--dl-accent);
  color: #fff;
}

.d-license-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.d-license-duration-option {
  display: grid;
  min-height: 96px;
  place-items: center;
  text-align: center;
}

.d-license-duration-option strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.d-license-duration-option span {
  display: block;
  margin-top: 4px;
}

.d-license-date-grid,
.d-license-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.d-license-app label {
  display: grid;
  gap: 7px;
  color: var(--dl-muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.d-license-full-width {
  grid-column: 1 / -1;
}

.d-license-app input,
.d-license-app textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--dl-line);
  border-radius: 6px;
  background: #fbfcfc;
  color: var(--dl-ink);
  padding: 12px 13px;
}

.d-license-app textarea {
  min-height: 96px;
  resize: vertical;
}

.d-license-app input:focus,
.d-license-app textarea:focus {
  border-color: var(--dl-accent);
  outline: 3px solid rgba(8, 117, 104, 0.16);
}

.d-license-app input[readonly] {
  background: #eef2f0;
  color: var(--dl-muted);
}

.d-license-review-layout {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.d-license-review-list,
.d-license-payment-box,
.d-license-payment-flow,
.d-license-template-notice {
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 16px;
}

.d-license-review-list dl,
.d-license-template-summary,
.d-license-license-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  margin: 0;
}

.d-license-app dt {
  color: var(--dl-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.d-license-app dd {
  margin: 5px 0 0;
  color: var(--dl-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.d-license-payment-box {
  display: grid;
  align-content: start;
  gap: 12px;
  background: var(--dl-soft);
}

.d-license-payment-box > span {
  color: var(--dl-muted);
  font-weight: 900;
}

.d-license-payment-box > strong {
  color: var(--dl-accent-dark);
  font-size: 2rem;
  line-height: 1;
}

.d-license-payment-box small {
  color: var(--dl-muted);
  line-height: 1.45;
}

.d-license-payment-flow {
  margin-top: 14px;
  background: #fff9ec;
}

.d-license-payment-flow h3 {
  color: var(--dl-gold);
}

.d-license-payment-flow ol {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.55;
}

.d-license-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid var(--dl-line);
  margin-top: 22px;
  padding-top: 16px;
}

.d-license-primary-action,
.d-license-secondary-action {
  white-space: nowrap;
  min-height: 48px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.d-license-primary-action {
  border: 0;
  background: var(--dl-accent);
  color: #fff;
}

.d-license-primary-action:hover,
.d-license-primary-action:focus {
  background: var(--dl-accent-dark);
}

.d-license-primary-action:disabled,
.d-license-primary-action.is-disabled,
.d-license-primary-action:disabled:hover,
.d-license-primary-action.is-disabled:hover {
  background: #d8dfdc;
  color: #78837f;
  cursor: not-allowed;
}

.d-license-secondary-action {
  border: 1px solid var(--dl-accent);
  background: #fff;
  color: var(--dl-accent);
}

.d-license-secondary-action:disabled {
  border-color: var(--dl-line);
  color: #a6afab;
  cursor: not-allowed;
}

.d-license-success-bar,
.d-license-license-header,
.d-license-license-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.d-license-success-bar {
  margin-bottom: 20px;
}

.d-license-template-notice {
  background: var(--dl-panel);
  box-shadow: var(--dl-shadow);
}

.d-license-template-notice p {
  max-width: 860px;
  line-height: 1.55;
}

.d-license-template-summary {
  margin: 20px 0;
}

.d-license-template-summary div {
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 13px;
}

.d-license-template-warning {
  border-left: 4px solid var(--dl-gold);
  background: #fff8e8;
  color: #5d4516;
  padding: 12px 14px;
}

.d-license-document {
  width: min(100%, 820px);
  margin: 0 auto;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
}

.d-license-license-header {
  align-items: center;
  border-bottom: 4px solid var(--dl-accent);
  padding-bottom: 18px;
}

.d-license-logo-block {
  display: grid;
  width: 130px;
  height: 86px;
  border: 2px solid var(--dl-accent);
  border-radius: 8px;
  color: var(--dl-accent);
  place-items: center;
  text-align: center;
}

.d-license-logo-block strong {
  font-size: 1.5rem;
}

.d-license-logo-block span {
  color: var(--dl-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.d-license-certificate-line {
  margin: 20px 0;
  color: var(--dl-ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

.d-license-number-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--dl-gold);
  border-radius: 8px;
  color: #6d4d13;
  padding: 12px 14px;
}

.d-license-license-fields {
  margin: 22px 0;
}

.d-license-license-terms {
  border-top: 1px solid var(--dl-line);
  border-bottom: 1px solid var(--dl-line);
  padding: 18px 0;
}

.d-license-license-terms p {
  margin: 10px 0 0;
  color: #3e4845;
  line-height: 1.55;
}

.d-license-license-footer {
  align-items: flex-end;
  padding-top: 20px;
}

.d-license-license-footer span,
.d-license-license-footer strong {
  display: block;
}

.d-license-license-footer span {
  color: var(--dl-muted);
  font-size: 0.84rem;
}

@media (min-width: 700px) {
  .d-license-workspace {
    padding: 24px;
  }

  .d-license-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .d-license-app h1 {
    font-size: 2.1rem;
  }

  .d-license-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d-license-date-grid,
  .d-license-field-grid,
  .d-license-review-list dl,
  .d-license-template-summary,
  .d-license-license-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d-license-form-actions {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  body:has(.d-license-app) .entry-content,
  body:has(.d-license-app) .page-content,
  body:has(.d-license-app) .site-content,
  body:has(.d-license-app) .site-main,
  body:has(.d-license-app) .content-area,
  body:has(.d-license-app) .elementor,
  body:has(.d-license-app) .elementor-section,
  body:has(.d-license-app) .elementor-container,
  body:has(.d-license-app) .elementor-column,
  body:has(.d-license-app) .elementor-widget-container {
    max-width: none !important;
    overflow: visible !important;
  }

  .d-license-app {
    position: relative;
    left: 50%;
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
  }

  .d-license-workspace {
    display: block;
    padding: 30px;
  }

  .d-license-topbar {
    padding-bottom: 24px;
  }

  .d-license-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: static;
    margin: 24px 0 18px;
  }

  .d-license-form {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .d-license-form-actions {
    position: sticky;
    top: 18px;
    z-index: 4;
    order: -1;
    align-items: center;
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(18, 34, 31, 0.1);
    margin: 0 0 18px;
    padding: 12px;
  }

  .d-license-secondary-action:disabled {
    display: none;
  }

  .d-license-primary-action {
    min-width: 220px;
  }

  .d-license-step {
    min-height: 58px;
    padding: 11px 12px;
  }

  .d-license-form-step {
    min-height: 0;
  }

  .d-license-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .d-license-customer-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .d-license-category-group {
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
  }

  .d-license-category-group:first-child {
    border-top: 1px solid var(--dl-line);
    padding-top: 16px;
  }

  .d-license-review-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
  }

  .d-license-payment-flow {
    margin-top: 16px;
  }
}

@media (min-width: 1180px) {
  .d-license-workspace {
    padding: 34px;
  }

  .d-license-customer-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .d-license-app.d-license-view-desktop {
    left: auto !important;
    transform: none !important;
  }

  .d-license-app.d-license-view-desktop .d-license-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "banner"
      "steps"
      "form";
    gap: 18px;
    padding: 26px 30px;
  }

  .d-license-app.d-license-view-desktop .d-license-topbar {
    grid-area: topbar;
    padding-bottom: 16px;
  }

  .d-license-app.d-license-view-desktop .d-license-logo {
    width: 210px;
  }

  .d-license-app.d-license-view-desktop h1 {
    font-size: 1.9rem;
  }

  .d-license-app.d-license-view-desktop .d-license-samples-banner {
    grid-area: banner;
    margin: -6px 0 0;
  }

  .d-license-app.d-license-view-desktop .d-license-steps {
    grid-area: steps;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: static;
    margin: 0;
  }

  .d-license-app.d-license-view-desktop .d-license-step {
    min-height: 48px;
    padding: 9px 12px;
  }

  .d-license-app.d-license-view-desktop .d-license-form {
    display: flex;
    flex-direction: column;
    grid-area: form;
    min-width: 0;
  }

  .d-license-app.d-license-view-desktop .d-license-form-actions {
    position: sticky;
    top: 18px;
    z-index: 6;
    order: -1;
    grid-template-columns: auto auto;
    justify-content: start;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(18, 34, 31, 0.1);
    margin: 0 0 14px;
    padding: 9px 10px;
  }

  .d-license-app.d-license-view-desktop .d-license-secondary-action:disabled {
    display: none;
  }

  .d-license-app.d-license-view-desktop .d-license-primary-action {
    min-width: 230px;
  }

  .d-license-app.d-license-view-desktop .d-license-secondary-action {
    min-width: 120px;
  }

  .d-license-app.d-license-view-desktop .d-license-customer-types {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .d-license-app.d-license-view-desktop .d-license-category-group {
    display: grid;
    grid-template-columns: minmax(145px, 190px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: #fff;
    padding: 9px 11px;
  }

  .d-license-app.d-license-view-desktop .d-license-category-group:first-child {
    border-top: 1px solid var(--dl-line);
    padding-top: 9px;
  }

  .d-license-app.d-license-view-desktop .d-license-category-group h3 {
    position: sticky;
    top: 100px;
    margin: 0;
    line-height: 1.25;
    font-size: 0.78rem;
  }

  .d-license-app.d-license-view-desktop .d-license-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 7px;
  }

  .d-license-app.d-license-view-desktop .d-license-type-option {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .d-license-app.d-license-view-desktop .d-license-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .d-license-app.d-license-view-desktop .d-license-review-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  }
}

@media (max-width: 699px) {
  .d-license-workspace {
    display: flex;
    flex-direction: column;
    padding-bottom: 96px;
  }

  .d-license-topbar {
    order: 1;
  }

  .d-license-steps {
    order: 3;
    grid-template-columns: repeat(4, 36px);
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
  }

  .d-license-step {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 36px;
    min-height: 36px;
    padding: 5px;
    border-radius: 999px;
    text-align: center;
  }

  .d-license-step-number {
    width: 24px;
    height: 24px;
    margin: 0;
    font-size: 0.82rem;
  }

  .d-license-step-label {
    display: none !important;
  }

  .d-license-form {
    display: flex;
    flex-direction: column;
    order: 4;
  }

  .d-license-form-actions {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 999;
    order: -1;
    grid-template-columns: 1fr;
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(18, 34, 31, 0.12);
    margin: 0 auto;
    max-width: 560px;
    padding: 8px;
  }

  .d-license-form-actions:has(.d-license-secondary-action:not(:disabled)) {
    grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  }

  .d-license-form-actions .d-license-primary-action,
  .d-license-form-actions .d-license-secondary-action {
    min-height: 46px;
    width: 100%;
  }

  .d-license-form-actions .d-license-secondary-action:disabled {
    display: none;
  }

  .d-license-samples-banner {
    order: 2;
    margin: 14px 0 12px;
  }

  .d-license-brand {
    display: grid;
    gap: 10px;
  }

  .d-license-logo {
    width: min(260px, 100%);
  }

  .d-license-duration-grid {
    grid-template-columns: 1fr;
  }

  .d-license-duration-option {
    min-height: 68px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 10px;
    text-align: left;
  }

  .d-license-success-bar,
  .d-license-license-header,
  .d-license-license-footer,
  .d-license-number-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .d-license-workspace,
  .d-license-issued-license,
  .d-license-document {
    padding: 14px;
  }

  .d-license-app h1 {
    font-size: 1.55rem;
  }

  .d-license-app h2 {
    font-size: 1.18rem;
  }

  .d-license-step {
    grid-template-columns: 1fr;
    width: 34px;
    min-height: 34px;
    padding: 5px;
  }
}

@media print {
  .d-license-workspace,
  .d-license-success-bar {
    display: none;
  }

  .d-license-issued-license,
  .d-license-document {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}
