/* Hegnberegner */
.dfc{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:40px;align-items:start;margin:8px 0 60px}
.dfc__step{border:1px solid var(--line,#E3E7EB);border-radius:10px;padding:22px 24px;margin-bottom:18px;background:#fff}
.dfc__form{counter-reset:dfcstep}
.dfc__step h2{font-size:19px;display:flex;align-items:center;gap:12px;margin-bottom:10px;text-transform:uppercase;letter-spacing:.02em}
.dfc__step h2::before{counter-increment:dfcstep;content:counter(dfcstep);width:30px;height:30px;flex:none;border-radius:50%;background:var(--navy,#011A3C);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:800}
.dfc__step[hidden]{display:none}
.dfc__lead{color:var(--muted,#667085);font-size:14.5px;margin-bottom:14px}
.dfc__hint{font-size:13px;color:var(--muted,#667085);margin:12px 0 0}
.dfc__shapes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.dfc__shape{border:2px solid var(--line,#E3E7EB);border-radius:8px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;text-align:center;font-weight:600;font-size:13px;position:relative}
.dfc__shape input{position:absolute;opacity:0;pointer-events:none}
.dfc__shape small{font-weight:400;color:var(--muted,#667085);font-size:12px}
.dfc__shape-ico{color:var(--navy,#011A3C);width:70px;height:36px;display:block}
.dfc__shape:has(input:checked){border-color:var(--red,#CC1F2A);background:#fff5f5}
.dfc__sides{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.dfc__side{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600}
.dfc__side-input{display:flex;align-items:center;border:1px solid var(--line-2,#CBD2DA);border-radius:6px;overflow:hidden}
.dfc__side-input input{flex:1;min-width:70px;border:0;padding:10px 12px;font-size:16px;font-weight:700;outline:none;width:100%}
.dfc__side-input em{font-style:normal;padding:0 12px;background:var(--bg,#F6F7F9);align-self:stretch;display:flex;align-items:center;color:var(--muted,#667085)}
.dfc__options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.dfc__opt{border:2px solid var(--line,#E3E7EB);border-radius:8px;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:2px;position:relative}
.dfc__opt input{position:absolute;opacity:0;pointer-events:none}
.dfc__opt b{font-size:15px;color:var(--navy,#011A3C)}.dfc__opt small{font-size:12px;color:var(--muted,#667085)}
.dfc__opt.is-active{border-color:var(--red,#CC1F2A);background:#fff5f5}
.dfc__swatches{display:flex;flex-wrap:wrap;gap:10px}
.dfc__swatch{display:flex;flex-direction:column;align-items:center;gap:6px;width:92px;cursor:pointer;font-size:12px;text-align:center;position:relative;padding:8px 4px;border:2px solid transparent;border-radius:8px}
.dfc__swatch input{position:absolute;opacity:0;pointer-events:none}
.dfc__swatch i{width:52px;height:52px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line-2,#CBD2DA);background-size:cover;background-position:center;display:block}
.dfc__swatch.is-active{border-color:var(--red,#CC1F2A);background:#fff5f5}
.dfc__swatch.is-active i{box-shadow:0 0 0 2px var(--red,#CC1F2A)}
.dfc__gates{display:flex;flex-direction:column;gap:10px}
.dfc__gate{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line,#E3E7EB);border-radius:8px;padding:12px 14px}
.dfc__gate b{display:block;font-size:15px;color:var(--navy,#011A3C)}.dfc__gate small{color:var(--muted,#667085);font-size:12.5px}
.dfc__qty{display:inline-flex;border:1px solid var(--line-2,#CBD2DA);border-radius:6px;overflow:hidden;height:42px}
.dfc__qty button{width:40px;background:var(--bg,#F6F7F9);font-size:18px;color:var(--navy,#011A3C)}.dfc__qty button:hover{background:var(--line,#E3E7EB)}
.dfc__qty input{width:52px;border:0;text-align:center;font-weight:700;-moz-appearance:textfield}
.dfc__qty input::-webkit-inner-spin-button,.dfc__qty input::-webkit-outer-spin-button{-webkit-appearance:none}
.dfc__info{background:var(--bg,#F6F7F9);border-left:4px solid var(--navy,#011A3C);padding:14px 16px;border-radius:6px;font-size:14px;line-height:1.55}
.dfc__summary{position:sticky;top:16px}
.dfc__summary-inner{border:1px solid var(--line,#E3E7EB);border-radius:10px;padding:22px;background:#fff;box-shadow:0 12px 32px -16px rgba(1,26,60,.3);display:flex;flex-direction:column;max-height:calc(100vh - 32px)}
/* Kortet skal kunne være i skærmen, ellers virker sticky ikke: listen scroller indeni, total og knapper bliver stående. */
.dfc__head{flex:0 0 auto}
.dfc__scroll{flex:1 1 auto;min-height:150px;overflow-y:auto;overscroll-behavior:contain;margin-right:-10px;padding-right:10px}
.dfc__scroll::-webkit-scrollbar{width:8px}
.dfc__scroll::-webkit-scrollbar-thumb{background:var(--line-2,#CBD2DA);border-radius:4px}
.dfc__foot{flex:0 0 auto;background:#fff}
.dfc__summary h2{font-size:20px;text-transform:uppercase;margin-bottom:10px}
.dfc__sketch svg{width:100%;height:auto;max-height:110px;background:var(--bg,#F6F7F9);border-radius:8px;margin-bottom:10px}
.dfc__facts{display:grid;gap:2px;margin:0 0 10px;font-size:13px}
.dfc__facts>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed var(--line,#E3E7EB);padding-bottom:4px}
.dfc__facts dt{color:var(--muted,#667085);margin:0}.dfc__facts dd{margin:0;font-weight:700}
.dfc__list{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:12px}
.dfc__list td{padding:8px 6px;border-bottom:1px solid var(--line,#E3E7EB);vertical-align:middle}
.dfc__list td:first-child{width:48px;padding-left:0}.dfc__list img{width:44px;height:33px;object-fit:cover;border-radius:4px;border:1px solid var(--line,#E3E7EB)}
.dfc__list td:nth-child(2) a{font-weight:700;color:var(--navy,#011A3C);display:block}.dfc__list td:nth-child(2) small{color:var(--muted,#667085);display:block;font-size:11.5px}
.dfc__list td:nth-child(3){white-space:nowrap;color:var(--muted,#667085)}.dfc__list td:last-child{text-align:right;font-weight:700;white-space:nowrap;padding-right:0}
.dfc__list tr.is-missing td{opacity:.6}
.dfc__warn{background:#fff7e6;border-left:4px solid var(--amber,#B54708);padding:10px 14px;border-radius:6px;font-size:13px;margin-bottom:12px}
.dfc__warn ul{padding-left:16px;margin:0}
.dfc__sums{margin:0;padding:12px 0 0;border-top:1px solid var(--line,#E3E7EB);display:grid;gap:5px;font-size:13px}
.dfc__sums>div{display:flex;justify-content:space-between;gap:10px}
.dfc__sums dt{margin:0;color:var(--muted,#667085)}
.dfc__sums dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.dfc__total{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0 6px;margin-top:10px;border-top:2px solid var(--navy,#011A3C)}
.dfc__total span{font-weight:600}.dfc__total small{display:block;font-weight:400;color:var(--muted,#667085);font-size:12px}.dfc__total b{font-size:26px;color:var(--navy,#011A3C)}
.dfc__ship{font-size:12px;color:var(--muted,#667085);margin:0 0 12px}
.dfc__actions{display:flex;gap:8px;margin-top:10px}.dfc__actions .df-btn{flex:1;padding:10px 8px;font-size:12px}
.dfc__msg{font-size:13px;margin:10px 0 0;min-height:1em;color:var(--green,#198754)}
.dfc__empty{padding:30px;background:var(--bg,#F6F7F9);border-radius:8px}
@media (max-width:1024px){.dfc{grid-template-columns:1fr}.dfc__summary{position:static}.dfc__summary-inner{max-height:none;display:block}.dfc__scroll{overflow:visible;min-height:0;margin-right:0;padding-right:0}.dfc__foot{position:sticky;bottom:0;padding-top:4px;margin:0 -22px -22px;padding-left:22px;padding-right:22px;padding-bottom:16px;border-top:1px solid var(--line,#E3E7EB);box-shadow:0 -8px 20px -12px rgba(1,26,60,.35);border-radius:0 0 10px 10px}}
@media (max-width:640px){.dfc__shapes{grid-template-columns:repeat(2,1fr)}.dfc__sides{grid-template-columns:1fr 1fr}.dfc__step{padding:16px}}
@media print{.df-header,.df-footer,.df-trustbar,.dfc__form,.dfc__actions,#dfc-add,.dfc__ship{display:none!important}.dfc{display:block}.dfc__summary-inner{box-shadow:none;border:0;max-height:none;display:block}.dfc__scroll{overflow:visible;max-height:none;min-height:0}.dfc__foot{position:static;box-shadow:none;border:0}}

.dfc__opt.is-disabled{opacity:.45;cursor:not-allowed}
.dfc__opt.is-disabled input{pointer-events:none}
