/**
 * Digital2 Pricelists — Frontend stylesheet
 *
 * Architecture: TWO LAYERS in one file.
 *   Layer 1 = distributable design tokens + base utilities
 *            (klar til at flytte til /digital2-childtheme/css/d2-tokens.css)
 *   Layer 2 = pricelist-specifikke styles (.d2pl-* — bliver i plugin)
 *
 * Når central konsolidering påbegyndes, kopiér Lag 1 til childtheme og
 * fjern det fra denne fil. Plugin bevarer Lag 2 + scope-overrides.
 *
 * Brand-værdier matcher /digital2-childtheme/css/services.css.
 */


/* ╔══════════════════════════════════════════════════════════════════╗
   ║                                                                    ║
   ║   LAYER 1 — DISTRIBUTABLE TOKENS + BASE UTILITIES                  ║
   ║                                                                    ║
   ║   Kopiér denne sektion til:                                        ║
   ║   /home/digitald/public_html/wp-content/themes/                    ║
   ║   digital2-childtheme/css/d2-tokens.css                            ║
   ║                                                                    ║
   ║   når CSS-konsolidering påbegyndes på tværs af projekter.          ║
   ║                                                                    ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* -----------------------------------------------------------
   Tokens — design variables (root-level for global cascade)
   ----------------------------------------------------------- */
:root {
    /* Brand */
    --d2-orange:        #fc8902;
    --d2-orange-hover:  #e57a00;
    --d2-orange-tint:   rgba(252, 137, 2, 0.12);
    --d2-orange-soft:   rgba(252, 137, 2, 0.06);

    --d2-red-link:      #990000;

    /* Ink scale */
    --d2-ink-strong:    #1a1a1a;   /* hero-bg, top headings */
    --d2-ink:           #222222;   /* h1-h3 default */
    --d2-ink-body:      #292929;   /* body text */
    --d2-ink-muted:     #444444;   /* lead/secondary */
    --d2-ink-faint:     #666666;   /* placeholders, meta */

    /* Surfaces */
    --d2-surface:       #ffffff;
    --d2-surface-alt:   #f7f7f7;
    --d2-line:          #e8e8e8;
    --d2-line-strong:   #d8d8d8;

    /* Typography */
    --d2-font-display:  'Montserrat', Arial, Helvetica, sans-serif;
    --d2-font-body:     Arial, Helvetica, sans-serif;

    /* Radius */
    --d2-radius-sm:     4px;
    --d2-radius-md:     6px;
    --d2-radius-lg:     12px;
    --d2-radius-xl:     16px;

    /* Motion */
    --d2-ease:          cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* -----------------------------------------------------------
   Buttons — .d2-btn / .d2-btn--primary / .d2-btn--ghost
   Genbrugelige på alle sider/plugins.
   ----------------------------------------------------------- */
.d2-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--d2-radius-md);
    font-family: var(--d2-font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s var(--d2-ease),
                border-color 0.2s var(--d2-ease),
                color 0.2s var(--d2-ease);
    border: 2px solid transparent;
    cursor: pointer;
}
.d2-btn:hover {
    text-decoration: none;
}
.d2-btn--primary {
    background: var(--d2-orange);
    color: #ffffff;
    border-color: var(--d2-orange);
}
.d2-btn--primary:hover {
    background: var(--d2-orange-hover);
    border-color: var(--d2-orange-hover);
    color: #ffffff;
}
.d2-btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}
.d2-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}
.d2-btn--ghost-dark {
    background: transparent;
    color: var(--d2-ink);
    border-color: var(--d2-line-strong);
}
.d2-btn--ghost-dark:hover {
    background: var(--d2-ink-strong);
    border-color: var(--d2-ink-strong);
    color: #ffffff;
}

/* -----------------------------------------------------------
   Hero (split layout) — .d2-hero-split
   Sort baggrund, eyebrow + heading + lead + CTAs i venstre,
   visual i højre. Fullbleed-bredde med boxed inner.
   ----------------------------------------------------------- */
.d2-hero-split {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    padding: 40px 24px 20px;
    box-sizing: border-box;
}
.d2-hero-split__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 60px;
    background: var(--d2-ink-strong);
    border-radius: var(--d2-radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
}
.d2-hero-split__content {
    color: #ffffff;
    min-width: 0;
}
.d2-hero-split__eyebrow {
    color: var(--d2-orange);
    font-family: var(--d2-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.d2-hero-split__heading {
    font-family: var(--d2-font-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.015em;
}
.d2-hero-split__heading em {
    font-style: italic;
    color: var(--d2-orange);
    font-weight: 800;
}
.d2-hero-split__lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0 0 28px;
    max-width: 560px;
}
.d2-hero-split__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.d2-hero-split__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    min-width: 0;
}

/* -----------------------------------------------------------
   Section containers — .d2-section, .d2-section--alt
   Til komponering af alm. content-sektioner under hero.
   ----------------------------------------------------------- */
.d2-section {
    padding: 60px 20px;
}
.d2-section--alt {
    background: var(--d2-surface-alt);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}
.d2-section__inner {
    max-width: 780px;
    margin: 0 auto;
}
.d2-section--wide .d2-section__inner {
    max-width: 1080px;
}

/* -----------------------------------------------------------
   Hero responsive (1024 / 720)
   ----------------------------------------------------------- */
@media (max-width: 980px) {
    .d2-hero-split__inner {
        grid-template-columns: 1fr;
        padding: 40px 40px;
        gap: 24px;
    }
    .d2-hero-split__heading { font-size: 36px; }
    .d2-hero-split__visual {
        order: -1;
        min-height: auto;
    }
}
@media (max-width: 720px) {
    .d2-hero-split { padding: 16px 16px 12px; }
    .d2-hero-split__inner {
        padding: 32px 24px;
        border-radius: var(--d2-radius-lg);
    }
    .d2-hero-split__heading { font-size: 30px; }
    .d2-hero-split__lead { font-size: 16px; }
    .d2-btn {
        padding: 12px 22px;
        font-size: 14px;
    }
    .d2-section { padding: 50px 20px; }
}


/* ╔══════════════════════════════════════════════════════════════════╗
   ║                                                                    ║
   ║   LAYER 2 — PRICELIST-SPECIFIC                                     ║
   ║                                                                    ║
   ║   Bliver i digital2-pricelists/assets/css/pricelist.css            ║
   ║   selv efter Layer 1 er flyttet til childtheme.                    ║
   ║   Alle klasser præfikset med .d2pl- for plugin-isolation.          ║
   ║                                                                    ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* -----------------------------------------------------------
   Page-scope wrap — sætter base-typografi og isolerer mod
   Divi-arv. Match med .d2-services-page-mønstret.
   ----------------------------------------------------------- */

/* Skjul Divi's entry-title og fjern top-padding på main content
   når shortcoden er aktiv. Scopet til .d2-pricelists-page så
   andre sider ikke påvirkes. */
body.d2-pricelists-page .entry-title,
body.d2-pricelists-page h1.entry-title,
body.d2-pricelists-page .post .entry-title,
body.d2-pricelists-page .page .entry-title,
body.d2-pricelists-page .single .entry-title,
body.d2-pricelists-page #post-title,
body.d2-pricelists-page .et_pb_title_meta_container,
body.d2-pricelists-page .et_post_meta_wrapper > h1 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.d2-pricelists-page #main-content,
body.d2-pricelists-page #main-content .container {
    padding-top: 0 !important;
}
body.d2-pricelists-page #left-area,
body.d2-pricelists-page .et_pb_post,
body.d2-pricelists-page .et_pb_section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.d2-pricelists-page .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* Divi/WP first-child reset — ekskluderer .d2-hero-split som ejer sin
   egen padding-top (60px desktop / 32px mobil) for hero-breath til navbar.
   Reglen er ellers nødvendig for at fjerne default Divi-spacing før vores
   shortcode-content. */
body.d2-pricelists-page .entry-content > *:first-child:not(.d2-hero-split),
body.d2-pricelists-page #left-area > *:first-child:not(.d2-hero-split) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Divi-builder wrappers — når siden bruger [et_pb_section]+[et_pb_row]+[et_pb_text]
   omkring [d2_pricelist] genererer Divi 54+27+padding på hero.
   Disse regler nuller padding/margin på alle disse niveauer
   når sektionen indeholder vores shortcode-instance. */
body.d2-pricelists-page .et_pb_section,
body.d2-pricelists-page .et_pb_section > .et_pb_row,
body.d2-pricelists-page .et_pb_row,
body.d2-pricelists-page .et_pb_row > .et_pb_column,
body.d2-pricelists-page .et_pb_column,
body.d2-pricelists-page .et_pb_text,
body.d2-pricelists-page .et_pb_text_inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* Override Divi's default row max-width så hero kan blive fullbleed */
body.d2-pricelists-page .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* WordPress wpautop wrapper shortcoder i <p> — fjerne dens visuelle margin */
body.d2-pricelists-page .et_pb_text p {
    margin: 0 !important;
    padding: 0 !important;
}

.d2-pricelists-page,
.d2-pricelists-page * {
    box-sizing: border-box;
}
.d2-pricelists-page {
    font-family: var(--d2-font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--d2-ink-body);
}

/* Hero top-spacing override — beskytter mod externe regler (Divi, theme,
   plugins) der overskriver .d2-hero-split's padding-top.
   Specificity (0,3,0) — slår alt undtagen !important.

   Værdier matcher D2_DESIGN_SYSTEM kanonisk standard:
   • 40px desktop (matcher shop's wrap-margin numerisk)
   • 16px mobil */
body.d2-pricelists-page .d2-hero-split {
    padding-top: 40px;
}
@media (max-width: 720px) {
    body.d2-pricelists-page .d2-hero-split {
        padding-top: 16px;
    }
}
/* ─────────────────────────────────────────────────────────────────
   ARKITEKTUR-NOTE (v0.5.9):
   Ingen generic h1/h2/h3/p/a-regler scoped til .d2-pricelists-page.
   Sådanne descendant-selectors har specificity (0,1,1) og kaprer
   komponent-CSS som .d2-hero-split__heading (0,1,0), .d2-btn (0,1,0),
   .d2pl-panel__title (0,1,0) — uanset kilderækkefølge.

   Komponenter ejer deres egen typografi; page-scope leverer kun
   inheritance-defaults (font, color body) ovenfor.

   Naked tekst-links (uden klasse) findes i to kontekster på siden;
   de styles kontekst-scoped herunder, ikke globalt.
   ───────────────────────────────────────────────────────────────── */

/* Naked tekst-links i panel-footer (telefon-link) og consent-row
   (privacy-link i modal). */
.d2pl-panel__foot a,
.d2pl-consent a {
    color: var(--d2-red-link);
    text-decoration: none;
    transition: color 0.15s var(--d2-ease);
}
.d2pl-panel__foot a:hover,
.d2pl-panel__foot a:focus,
.d2pl-consent a:hover,
.d2pl-consent a:focus {
    color: var(--d2-orange);
    text-decoration: underline;
}

/* -----------------------------------------------------------
   Hero stat-blocks — bruges som visual i .d2-hero-split__visual
   ----------------------------------------------------------- */
.d2pl-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 380px;
}
.d2pl-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--d2-radius-md);
    padding: 18px 16px;
    transition: border-color 0.25s var(--d2-ease),
                background 0.25s var(--d2-ease);
}
.d2pl-stat:hover {
    border-color: var(--d2-orange);
    background: rgba(252, 137, 2, 0.08);
}
.d2pl-stat--feature {
    grid-column: 1 / -1;
    background: var(--d2-orange);
    border-color: var(--d2-orange);
    color: #ffffff;
}
.d2pl-stat--feature:hover {
    background: var(--d2-orange-hover);
    border-color: var(--d2-orange-hover);
}
.d2pl-stat__num {
    font-family: var(--d2-font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: block;
}
.d2pl-stat--feature .d2pl-stat__num {
    font-size: 22px;
    letter-spacing: 0;
}
.d2pl-stat__label {
    font-family: var(--d2-font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    display: block;
}
.d2pl-stat--feature .d2pl-stat__label {
    color: rgba(255, 255, 255, 0.9);
}

/* -----------------------------------------------------------
   Wrap — container for tabs + panels + tabel.
   Matcher hero-inner's max-width (1200px) så indholdet under
   hero respekterer samme visuelle bredde.
   ----------------------------------------------------------- */
.d2pl-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* -----------------------------------------------------------
   Tabs — målgruppe-vælger
   ----------------------------------------------------------- */
.d2pl-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    border-bottom: 2px solid var(--d2-line);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}
.d2pl-tabs::-webkit-scrollbar {
    display: none;
}
.d2pl-tab {
    flex: 0 0 auto;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 16px 24px 18px;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: var(--d2-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--d2-ink-faint);
    letter-spacing: -0.005em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s var(--d2-ease),
                border-color 0.2s var(--d2-ease);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    line-height: 1.2;
}
.d2pl-tab:hover {
    color: var(--d2-ink);
}
.d2pl-tab.is-active {
    color: var(--d2-ink);
    border-bottom-color: var(--d2-orange);
}
.d2pl-tab:focus-visible {
    outline: 2px solid var(--d2-orange);
    outline-offset: 3px;
    border-radius: var(--d2-radius-sm);
}
.d2pl-tab__count {
    font-family: var(--d2-font-body);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    background: var(--d2-surface-alt);
    color: var(--d2-ink-faint);
    border-radius: 999px;
    line-height: 1.4;
    transition: background 0.2s var(--d2-ease),
                color 0.2s var(--d2-ease);
}
.d2pl-tab.is-active .d2pl-tab__count {
    background: var(--d2-orange);
    color: #ffffff;
}

/* -----------------------------------------------------------
   Panel (per target)
   ----------------------------------------------------------- */
.d2pl-panel {
    display: none;
    padding: 32px 0;
    animation: d2pl-fade 0.3s var(--d2-ease);
}
.d2pl-panel.is-active {
    display: block;
}
@keyframes d2pl-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.d2pl-panel__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
    align-items: end;
}
@media (min-width: 900px) {
    .d2pl-panel__head {
        grid-template-columns: 1fr auto;
        gap: 32px;
    }
}
.d2pl-panel__title {
    font-family: var(--d2-font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--d2-ink);
    margin: 0 0 8px;
    line-height: 1.2;
}
.d2pl-panel__desc {
    font-size: 16px;
    color: var(--d2-ink-muted);
    margin: 0 0 14px;
    line-height: 1.55;
    max-width: 60ch;
}
.d2pl-panel__stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
.d2pl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--d2-ink);
    color: #ffffff;
    font-family: var(--d2-font-display);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.3px;
}
.d2pl-pill--ghost {
    background: transparent;
    color: var(--d2-ink-faint);
    border: 1px solid var(--d2-line-strong);
}

/* -----------------------------------------------------------
   Action bar (Excel/CSV/PDF/Email)
   ----------------------------------------------------------- */
.d2pl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: end;
}
.d2pl-action {
    appearance: none;
    border: 2px solid var(--d2-line-strong);
    background: var(--d2-surface);
    padding: 10px 16px;
    cursor: pointer;
    font-family: var(--d2-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--d2-ink);
    border-radius: var(--d2-radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s var(--d2-ease);
    line-height: 1;
    letter-spacing: -0.005em;
}
.d2pl-action:not([disabled]):hover {
    border-color: var(--d2-ink-strong);
    background: var(--d2-ink-strong);
    color: #ffffff;
    transform: translateY(-1px);
}
.d2pl-action--primary {
    background: var(--d2-orange);
    border-color: var(--d2-orange);
    color: #ffffff;
}
.d2pl-action--primary:not([disabled]):hover {
    background: var(--d2-orange-hover);
    border-color: var(--d2-orange-hover);
    color: #ffffff;
}
.d2pl-action[disabled],
.d2pl-action--soon {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}
.d2pl-action--soon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: var(--d2-orange);
    border-radius: 50%;
    border: 2px solid var(--d2-surface);
    animation: d2pl-pulse 2s var(--d2-ease) infinite;
}
@keyframes d2pl-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%      { opacity: 0.6; transform: scale(1.3); }
}
.d2pl-action__icon {
    font-size: 16px;
    line-height: 1;
}

/* -----------------------------------------------------------
   Table
   ----------------------------------------------------------- */
.d2pl-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--d2-line);
    border-radius: var(--d2-radius-sm);
    background: var(--d2-surface);
}
.d2pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    margin: 0;
}
.d2pl-table thead {
    background: var(--d2-surface-alt);
}
.d2pl-table th {
    text-align: left;
    padding: 14px 20px;
    font-family: var(--d2-font-display);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--d2-ink-faint);
    border-bottom: 1px solid var(--d2-line-strong);
    white-space: nowrap;
}
.d2pl-th-price,
.d2pl-td-price {
    text-align: right;
}
.d2pl-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--d2-line);
    vertical-align: middle;
    font-size: 16px;
}
.d2pl-table tbody tr {
    transition: background 0.15s var(--d2-ease);
}
.d2pl-table tbody tr:hover {
    background: var(--d2-orange-soft);
}
.d2pl-table tbody tr:last-child td {
    border-bottom: 0;
}
.d2pl-td-sku code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: var(--d2-ink);
    background: var(--d2-surface-alt);
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}
.d2pl-td-name {
    color: var(--d2-ink-body);
    line-height: 1.4;
}
.d2pl-td-price {
    font-family: var(--d2-font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--d2-ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Screen-reader only utility */
.d2-pricelists-page .screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* -----------------------------------------------------------
   Panel foot
   ----------------------------------------------------------- */
.d2pl-panel__foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--d2-line);
    color: var(--d2-ink-muted);
    font-size: 15px;
}
.d2pl-panel__foot p { margin: 0; }
.d2pl-panel__foot a {
    color: var(--d2-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--d2-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.d2pl-panel__foot a:hover {
    color: var(--d2-orange-hover);
}

/* -----------------------------------------------------------
   Empty state
   ----------------------------------------------------------- */
.d2pl-empty {
    padding: 40px 24px;
    text-align: center;
    background: var(--d2-surface-alt);
    border: 1px dashed var(--d2-line-strong);
    border-radius: var(--d2-radius-sm);
    color: var(--d2-ink-faint);
    font-size: 15px;
}

/* -----------------------------------------------------------
   Mobile — table → cards
   ----------------------------------------------------------- */
@media (max-width: 720px) {
    .d2pl-wrap {
        padding: 0 16px;
    }
    .d2pl-tab {
        padding: 14px 16px 16px;
        font-size: 14px;
    }
    .d2pl-panel {
        padding: 24px 0;
    }
    .d2pl-actions {
        width: 100%;
    }
    .d2pl-action {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-width: 0;
        padding: 12px 8px;
    }
    .d2pl-action--primary {
        flex: 1 1 100%;
    }
    .d2pl-action__label {
        font-size: 13px;
    }
    .d2pl-table-wrap {
        border: 0;
        background: transparent;
    }
    .d2pl-table thead {
        position: absolute;
        left: -9999px;
    }
    .d2pl-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .d2pl-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name price"
            "sku  sku";
        gap: 4px 16px;
        padding: 16px;
        background: var(--d2-surface);
        border: 1px solid var(--d2-line);
        border-radius: var(--d2-radius-sm);
        align-items: center;
    }
    .d2pl-table td {
        padding: 0;
        border: 0;
    }
    .d2pl-td-name { grid-area: name; font-size: 15px; line-height: 1.3; font-weight: 600; }
    .d2pl-td-sku  { grid-area: sku;  font-size: 12px; margin-top: 4px; }
    .d2pl-td-price {
        grid-area: price;
        text-align: right;
        font-size: 17px;
    }
    .d2pl-table tbody tr:hover {
        background: var(--d2-surface);
        border-color: var(--d2-orange);
    }

    /* Hero stats — på mobil i samme bredde som content */
    .d2pl-stats {
        max-width: none;
    }
}

/* -----------------------------------------------------------
   Print
   ----------------------------------------------------------- */
@media print {
    .d2pl-tabs,
    .d2pl-actions,
    .d2-hero-split { display: none !important; }

    .d2pl-panel {
        display: block !important;
        page-break-inside: avoid;
    }
    .d2pl-table-wrap {
        border: 0;
    }
}

/* -----------------------------------------------------------
   Email modal
   ----------------------------------------------------------- */
.d2pl-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: d2pl-modal-fade 0.2s var(--d2-ease);
}
.d2pl-modal[hidden] {
    display: none;
}
.d2pl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.d2pl-modal__panel {
    position: relative;
    background: var(--d2-surface);
    border-radius: var(--d2-radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: d2pl-modal-slide 0.25s var(--d2-ease);
}
@keyframes d2pl-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes d2pl-modal-slide {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
body.d2pl-modal-open {
    overflow: hidden;
}
.d2pl-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--d2-surface-alt);
    border: 0;
    cursor: pointer;
    font-size: 22px;
    color: var(--d2-ink-muted);
    line-height: 1;
    transition: background 0.15s var(--d2-ease), color 0.15s var(--d2-ease);
}
.d2pl-modal__close:hover {
    background: var(--d2-ink-strong);
    color: #fff;
}
.d2pl-modal__head {
    margin-bottom: 22px;
}
.d2pl-modal__eyebrow {
    color: var(--d2-orange);
    font-family: var(--d2-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.d2pl-modal__title {
    font-family: var(--d2-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--d2-ink);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.d2pl-modal__lead {
    margin: 0;
    font-size: 14px;
    color: var(--d2-ink-muted);
    line-height: 1.55;
}
.d2pl-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.d2pl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.d2pl-field label {
    font-family: var(--d2-font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--d2-ink-muted);
}
.d2pl-field input,
.d2pl-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--d2-surface);
    border: 1px solid var(--d2-line-strong);
    border-radius: var(--d2-radius-sm);
    color: var(--d2-ink-body);
    font-family: var(--d2-font-body);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s var(--d2-ease),
                box-shadow 0.15s var(--d2-ease);
}
.d2pl-field textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--d2-font-body);
}
.d2pl-field input:focus,
.d2pl-field textarea:focus {
    outline: none;
    border-color: var(--d2-orange);
    box-shadow: 0 0 0 3px var(--d2-orange-tint);
}
.d2pl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.d2pl-required {
    color: var(--d2-orange);
}
.d2pl-consent {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--d2-surface-alt);
    border-radius: var(--d2-radius-sm);
}
.d2pl-consent__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: var(--d2-ink-muted);
    line-height: 1.5;
}
.d2pl-consent__row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--d2-orange);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.d2pl-consent__row a {
    color: var(--d2-ink);
    text-decoration: underline;
    text-decoration-color: var(--d2-orange);
    text-decoration-thickness: 2px;
}
.d2pl-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}
.d2pl-modal__feedback {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: var(--d2-radius-sm);
    font-size: 14px;
    line-height: 1.5;
}
.d2pl-modal__feedback.is-success {
    background: #e8f7e8;
    color: #1e6e1e;
    border: 1px solid #b8e0b8;
}
.d2pl-modal__feedback.is-error {
    background: #fbeaea;
    color: #8b1818;
    border: 1px solid #e8b8b8;
}

@media (max-width: 600px) {
    .d2pl-modal__panel {
        padding: 28px 22px 24px;
    }
    .d2pl-modal__title {
        font-size: 19px;
    }
    .d2pl-field-row {
        grid-template-columns: 1fr;
    }
    .d2pl-modal__actions {
        flex-direction: column-reverse;
    }
    .d2pl-modal__actions .d2pl-action {
        width: 100%;
        justify-content: center;
    }
}

/* -----------------------------------------------------------
   Reduced motion
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .d2-pricelists-page *,
    .d2-pricelists-page *::before,
    .d2-pricelists-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
