/* Frisør — designsystem tilpasset referansen nettbutikk579.
   Originale frisørkomponenter og funksjoner beholdes. */
:root{
  --bg:#13151b;
  --panel:#11131a;
  --panel2:#141826;
  --card:#141826;
  --text:#e9ecf1;
  --muted:#aab1c3;
  --line:rgba(255,255,255,.10);
  --border:rgba(255,255,255,.14);
  --primary:#7c5cff;
  --primary2:#27c6ff;
  --accent:#7c5cff;
  --accent2:#27c6ff;
  --danger:#ef4444;
  --ok:#22c55e;
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --radius:16px;
  --site-shell-width:1840px;
  --site-shell-padding-x:16px;
  --site-ui-scale:1;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{color-scheme:dark}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:16px;
  line-height:1.45;
  color:var(--text);
  background-color:var(--bg);
  background-image:radial-gradient(1000px 500px at 15% 0%,rgba(124,92,255,.20),transparent 60%),radial-gradient(900px 600px at 95% 0%,rgba(39,198,255,.18),transparent 55%);
  background-position:top left,top right;
  background-size:100% 100%,100% 100%;
  background-repeat:no-repeat;
  background-attachment:fixed;
  min-width:0;
  min-height:100vh;
  min-height:100dvh;
  overflow-x:auto;
}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid rgba(39,198,255,.75);outline-offset:2px}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
button{color:inherit;cursor:pointer}
h1,h2,h3{line-height:1.2}
h1{font-size:clamp(24px,2vw,32px)}
h2{font-size:20px}
h3{font-size:17px}
small,.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
/* Samme zoom-trinn og logiske arbeidsflate som nettbutikk579. */
.site-viewport-stage{width:100%;min-width:0;margin:0 auto;zoom:var(--site-ui-scale)}
.site-viewport-stage[data-site-ui-scale="1.15"]{width:86.9565217%}
.site-viewport-stage[data-site-ui-scale="1.265"]{width:79.0513834%}
@media(min-width:2200px){:root{--site-shell-width:2040px}}
.wrap{
  width:100%;min-width:0;
  max-width:min(var(--site-shell-width),100%);
  margin:0 auto;
  padding-left:var(--site-shell-padding-x);
  padding-right:var(--site-shell-padding-x);
}
/* Headeren bruker nettbutikkens topbar-fasong, avstander og knapper. */
.site-header,.admin-top{
  position:relative;
  z-index:110;
  width:calc(100% - var(--site-shell-padding-x) - var(--site-shell-padding-x));
  max-width:calc(var(--site-shell-width) - var(--site-shell-padding-x) - var(--site-shell-padding-x));
  margin:24px auto 0;
  background:rgba(17,19,26,.94);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.site-header>.wrap,.admin-top>.wrap{max-width:none}
.header-main{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;padding-bottom:8px;min-width:0}
.brand{display:flex;align-items:center;gap:9px;min-width:0}
.brand-mark{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 10px 20px rgba(124,92,255,.25);color:#fff;font-size:21px;line-height:1}
.brand strong{display:block;font-size:14px;letter-spacing:.2px;line-height:1.25}
.brand em{display:block;margin-top:1px;color:var(--muted);font-size:10.5px;font-style:normal;line-height:1.25}
.top-nav{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.top-nav a,.secondary,.product-button,button.secondary,.primary,button.primary,.danger,button.danger,.day-button,.slot-button{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:42px;padding:9.2px 11.9px;
  border-radius:13.2px;border:1px solid var(--border);
  background:rgba(255,255,255,.05);color:var(--text);
  text-decoration:none;font-size:15.8px;font-weight:500;line-height:1.3;
  transition:transform .08s ease,border-color .12s ease,background .12s ease;
  cursor:pointer;
}
.top-nav a:hover,.secondary:hover,.product-button:hover,button.secondary:hover,.primary:hover,button.primary:hover,.danger:hover,button.danger:hover,.day-button:hover,.slot-button:hover{
  transform:translateY(-1px);border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.07)
}
.top-nav a.active,.primary,button.primary,.day-button.active,.slot-button.active{
  border-color:rgba(124,92,255,.40);
  background:linear-gradient(135deg,rgba(124,92,255,.22),rgba(39,198,255,.16));
  color:var(--text);
}
.top-nav a.active:hover,.primary:hover,button.primary:hover,.day-button.active:hover,.slot-button.active:hover{border-color:rgba(124,92,255,.70)}
.danger,button.danger{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.10)}
.product-row{display:flex;gap:10px;align-items:center;padding-top:0;padding-bottom:10px}
.product-button{font-weight:600;white-space:nowrap}
.hamb{font-size:16px;margin-right:2px}
.quick-search,.inline-search{display:flex;gap:8px;align-items:center;min-width:0;flex:1}
.quick-search{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.04);padding:7px 9px}
.quick-search input{background:transparent;border:0;box-shadow:none;min-width:0;flex:1;padding:7px 8px;font-size:14px}
.quick-search input:focus{box-shadow:none;outline-offset:0}
.quick-search button{min-height:36px;padding:7px 12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.06);color:var(--text);font-size:14px}
.quick-search button:hover{background:rgba(255,255,255,.1)}
.inline-search input{flex:1;min-width:0}
.page{padding-top:18px;padding-bottom:54px;min-height:55vh}
.site-footer{margin-top:22px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;padding:14px 0 28px}
.footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;line-height:1.6}
.footer-grid strong{color:var(--text);font-size:14px}
/* Nettbutikkens kort, hero og innholdsstruktur. */
.hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr);gap:14px;align-items:stretch;margin:16px 0 22px}
.hero-copy,.hero-card,.panel,.card{
  background:rgba(20,24,38,.72);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 16px;
  box-shadow:var(--shadow);
  min-width:0;
}
.hero-copy,.hero-card{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02))}
.hero h1{font-size:clamp(26px,3vw,46px);line-height:1.1;margin:8px 0 12px}
.hero p{color:var(--muted);line-height:1.4}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--primary2)}
.hero-card{display:flex;flex-direction:column;justify-content:flex-end;min-height:220px}
.hero-card strong{display:block;font-size:25px;line-height:1.2}
.hero-card span{font-size:14px;color:var(--muted);line-height:1.4}
.hero-actions,.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}
.alert,.flash{margin:0 0 16px;padding:12px 14px;border:1px solid rgba(239,68,68,.58);border-radius:14px;background:rgba(127,29,29,.72);color:#fef2f2}
.flash{margin-top:14px;border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.18);color:var(--text)}
.split,.admin-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cards.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.stat span{font-size:13px;color:var(--muted)}
.stat strong{display:block;font-size:32px;margin-top:6px}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.product-grid.small{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.product-card{display:flex;flex-direction:column;gap:7px;min-height:100%;padding:12px;background:rgba(20,24,38,.72);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .12s ease,border-color .12s ease}
.product-card:hover{transform:translateY(-2px);border-color:rgba(124,92,255,.45)}
.product-card img,.no-img{width:100%;aspect-ratio:1.15/1;object-fit:contain;display:grid;place-items:center;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--muted)}
.product-card strong{font-size:16px}
.product-card span{font-size:13px;color:var(--muted)}
.product-card em{font-size:15px;font-weight:700;color:var(--primary2);font-style:normal}
.catalog-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px}
.catalog-menu{position:sticky;top:16px;align-self:start;min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(20,24,38,.72);box-shadow:var(--shadow)}
.cat-link{display:block;padding:9px 10px;border-radius:12px;color:var(--muted);font-size:14px}
.cat-link:hover{color:var(--text);background:rgba(255,255,255,.07)}
.cat-link.active{color:var(--text);background:linear-gradient(135deg,rgba(124,92,255,.22),rgba(39,198,255,.16));border:1px solid rgba(124,92,255,.40)}
.depth-1{padding-left:25px}.depth-2{padding-left:40px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.section-head h1{margin:5px 0 0}
.product-detail{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1fr);gap:22px}
.detail-img{width:100%;height:auto;border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.04);object-fit:contain}
.price{font-weight:800;font-size:26px;color:var(--primary2)}
.frontpage-public-fit,.frontpage-canvas-fit{position:relative;width:100%;min-width:0;overflow:visible}
.frontpage-public-fit{margin:18px 0}
.front-design-surface{position:absolute;left:0;top:0;overflow:hidden;border:1px dashed rgba(124,92,255,.45);border-radius:var(--radius);background:linear-gradient(145deg,#11131a,#141826);box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);transform-origin:top left}
.front-editor-view{margin:0}
.front-block{position:absolute;overflow:hidden;border:1px solid rgba(124,92,255,.30);border-radius:var(--radius);background:rgba(17,19,26,.85);padding:16px}
.front-block.image{padding:8px}
.front-block .fp-block-content{height:100%;width:100%;overflow:auto}
.front-block.text{display:flex;flex-direction:column;font-size:var(--fp-text-size,18px);color:var(--fp-text-color,var(--text));text-align:var(--fp-text-align,left)}
.front-block .fp-block-title,.front-block .fp-block-body{color:var(--fp-text-color,var(--text));text-align:var(--fp-text-align,left)}
.front-block .fp-block-title{display:block;font-size:1.25em;line-height:1.15;margin:0 0 .45em}
.front-block .fp-block-body{display:block;white-space:pre-wrap}
.front-block.image{display:grid;place-items:center}
.front-block.image img{width:100%;height:100%;object-fit:contain;display:block;border-radius:12px;background:transparent;pointer-events:none;user-select:none;-webkit-user-drag:none}
.service-list,.service-checks{display:grid;gap:10px}
.service-row,.service-check{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035)}
.service-row:hover{border-color:rgba(124,92,255,.45);background:rgba(124,92,255,.08)}
.service-row small,.service-check small,.service-check em{display:block;color:var(--muted);font-size:12px;font-style:normal}
.service-check input{width:20px;height:20px;flex:0 0 20px;accent-color:var(--primary)}
.service-check span{flex:1}
.booking-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(320px,1.1fr) minmax(230px,.8fr);gap:14px;align-items:start}
.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.calendar-head h2{text-align:center;margin:0;font-size:17px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:16px}
.weekday{text-align:center;color:var(--muted);font-size:12px}
.day-button,.slot-button{min-height:38px;padding:8px;font-size:14px;border-radius:12px}
.day-button{width:100%;min-width:0;aspect-ratio:1;position:relative;font-variant-numeric:tabular-nums}
.day-button:disabled,.slot-button:disabled{opacity:.4;cursor:not-allowed}
.day-button:disabled:hover,.slot-button:disabled:hover{transform:none}
.day-button.available,body.theme-light .day-button.available{
  border-color:rgba(34,197,94,.55);
  background:rgba(34,197,94,.13);
}
.day-button.available:after{content:'';position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:4px;height:4px;border-radius:50%;background:var(--ok)}
.day-button.active,body.theme-light .day-button.active{border-color:var(--primary);background:linear-gradient(135deg,rgba(124,92,255,.24),rgba(39,198,255,.16))}
.calendar-head a[aria-disabled="true"]{opacity:.4;cursor:not-allowed;pointer-events:none}
.calendar-head a[aria-disabled="true"]:hover{transform:none}
.slot-list{display:flex;gap:8px;flex-wrap:wrap}
.slot-box{margin-top:16px}
.form-grid{display:grid;gap:14px}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
label{display:grid;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
input:not([type=checkbox]):not([type=radio]),textarea,select{
  width:100%;min-width:0;padding:10px 12px;
  border:1px solid rgba(148,163,184,.24);border-radius:12px;
  background:rgba(6,10,18,.62);color:var(--text);
  font-size:14px;line-height:1.4;
}
input::placeholder,textarea::placeholder{color:#8992a5}
select option{background:#11131a;color:var(--text)}
input:disabled,textarea:disabled,select:disabled{opacity:.6;cursor:not-allowed}
input[type=file]::file-selector-button{margin-right:10px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.06);color:var(--text);padding:8px;cursor:pointer}
input[type=checkbox],input[type=radio]{accent-color:var(--primary)}
input:focus,textarea:focus,select:focus{border-color:rgba(39,198,255,.5);box-shadow:0 0 0 3px rgba(124,92,255,.12)}
.table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid rgba(148,163,184,.16);border-radius:12px}
table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
th,td{padding:11px 12px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(148,163,184,.16)}
th{background:rgba(21,28,42,.98);font-size:12px;color:var(--muted);font-weight:650;white-space:nowrap}
tbody tr:nth-child(even){background:rgba(255,255,255,.017)}
tbody tr:hover{background:rgba(124,92,255,.075)}
tbody tr:last-child td{border-bottom:0}
/* Admin-flaten bruker samme kort, felt og tabellutforming. */
.admin-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:14px;padding-top:18px;padding-bottom:54px;min-height:62vh}
.admin-nav{position:sticky;top:16px;align-self:start;display:grid;gap:5px;padding:10px;border:1px solid rgba(148,163,184,.18);border-radius:var(--radius);background:rgba(18,23,35,.96);box-shadow:var(--shadow)}
.admin-nav a{display:block;padding:11px 12px;border-radius:12px;border:1px solid transparent;color:var(--muted);font-size:14px;line-height:1.25}
.admin-nav a:hover{color:var(--text);background:rgba(255,255,255,.05)}
.admin-nav a.active{color:var(--text);border-color:rgba(124,92,255,.4);background:linear-gradient(135deg,rgba(124,92,255,.22),rgba(39,198,255,.16))}
.admin-content{min-width:0}
.admin-content h1{margin-top:0;margin-bottom:16px}
.admin-content .panel{background:rgba(18,23,35,.96);border-color:rgba(148,163,184,.18)}
.thumb{max-width:220px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.04)}
.thumb.small{max-width:80px}
.edit-block{margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.025)}
.editor-preview{margin-bottom:20px}
.front-editor-canvas{overflow:hidden;border:1px dashed var(--line);border-radius:var(--radius);background:rgba(20,24,38,.72)}
.draggable{cursor:grab;user-select:none}.draggable:active{cursor:grabbing}
.login-body{display:grid;place-items:center;min-height:100vh;min-height:100dvh;zoom:var(--site-ui-scale)}
.login-card{width:min(440px,calc(100% - 28px));padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(20,24,38,.92);box-shadow:var(--shadow)}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.media-grid figure{margin:0;padding:10px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(20,24,38,.72)}
.media-grid img{aspect-ratio:1;object-fit:contain}
.media-grid input{font-size:12px}
.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:1200px){
  .booking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .booking-grid>.panel:last-child{grid-column:1 / -1}
}
@media(max-width:900px){
  .header-main,.product-row,.section-head{align-items:stretch;flex-direction:column}
  .top-nav{justify-content:flex-start;width:100%}
  .top-nav a{flex:1 1 auto;text-align:center}
  .hero,.split,.admin-two,.product-detail,.booking-grid,.catalog-layout,.admin-layout{grid-template-columns:1fr}
  .booking-grid>.panel:last-child{grid-column:auto}
  .catalog-menu,.admin-nav{position:static}
  .footer-grid,.cards.four,.form-grid.two,.form-grid.three,.form-grid.four{grid-template-columns:1fr}
  .front-editor-view .front-block,.frontpage-admin .front-block{position:absolute!important;margin:0}
  .quick-search{flex-direction:row}
  .calendar-head{flex-wrap:wrap}
  .day-button{padding:8px 3px}
}
@media(max-width:560px){
  .site-header,.admin-top{margin-top:16px}
  .wrap{padding-left:16px;padding-right:16px}
  .hero{gap:12px}
  .hero-card{min-height:130px}
  .hero-copy,.hero-card,.panel,.card{padding:14px}
  .product-grid,.product-grid.small{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product-card{padding:9px}
  .top-nav a,.primary,button.primary,.secondary,button.secondary,.danger,button.danger{font-size:14px;min-height:39px}
  .calendar-grid{gap:4px}
  .calendar-head h2{width:100%;order:-1}
}

/* Spesialkomponenter for frisør-editor og lokalt mediebibliotek. */

.frontpage-editor-shell{display:grid;gap:18px}.fp-editor-head{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:16px;align-items:start}.fp-editor-head h2{margin:0 0 6px}.fp-toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.frontpage-admin .front-editor-canvas{resize:none;touch-action:none}.frontpage-admin .editor-block{height:auto;min-height:0;cursor:move;touch-action:none}.frontpage-admin .editor-block.selected{outline:2px solid var(--accent2);outline-offset:2px}.fp-image-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:70px;border:1px dashed rgba(124,92,255,.4);border-radius:16px;color:var(--muted);text-align:center;padding:10px}.fp-resize-handle{position:absolute;width:16px;height:16px;border:2px solid var(--accent2);background:#11131a;border-radius:999px;z-index:5;padding:0}.fp-resize-nw{left:-8px;top:-8px;cursor:nwse-resize}.fp-resize-ne{right:-8px;top:-8px;cursor:nesw-resize}.fp-resize-sw{left:-8px;bottom:-8px;cursor:nesw-resize}.fp-resize-se{right:-8px;bottom:-8px;cursor:nwse-resize}.fp-canvas-resize-handle{position:absolute;left:0;right:0;bottom:0;height:26px;display:grid;place-items:center;background:linear-gradient(180deg,rgba(124,92,255,.02),rgba(124,92,255,.25));border-top:1px dashed rgba(124,92,255,.42);cursor:ns-resize;z-index:40;color:#e9ecf1;font-size:.78rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.fp-canvas-resize-handle span{pointer-events:none}.fp-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:rgba(6,10,18,.78);padding:18px}.fp-modal[hidden]{display:none}.fp-modal-card{width:min(620px,calc(100% - 24px));max-height:calc(100vh - 36px);overflow:auto;background:linear-gradient(145deg,#141826,#11131a);border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:var(--shadow);display:grid;gap:14px}.fp-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.fp-modal-head h2{margin:0}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.front-editor-view .front-block{height:auto;min-height:0}
@media (max-width:900px){.fp-editor-head{grid-template-columns:1fr}.fp-toolbar{justify-content:flex-start}.frontpage-admin .front-editor-canvas{min-height:360px}.fp-modal-card{width:100%;padding:16px}.front-editor-view .front-block,.frontpage-admin .front-block{position:absolute!important;margin:0!important}}

.small{font-size:.86rem}.badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.04);color:var(--muted);font-size:12px}.badge.good{border-color:rgba(116,194,136,.45);color:#c8f5d2}.badge.warn{border-color:rgba(245,158,11,.35);color:#ffe2b2}.meta{display:flex;gap:6px;flex-wrap:wrap}.admin-media-picker{display:grid;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.035)}.admin-media-picker-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}.admin-media-picker-label{font-weight:700;color:var(--text)}.admin-media-picker-help{color:var(--muted);line-height:1.35;max-width:680px}.admin-media-selected{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-height:38px}.admin-media-selected-item{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);color:var(--muted);font-size:12px}.admin-media-selected-item img{display:block;width:34px;height:34px;max-width:34px;max-height:34px;object-fit:contain;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18)}.admin-media-empty{color:var(--muted)}.admin-media-modal[hidden]{display:none!important}.admin-media-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:18px}.admin-media-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(4px)}.admin-media-panel{position:relative;z-index:1;width:min(1120px,96vw);max-height:88vh;overflow:auto;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:linear-gradient(145deg,#141826,#11131a);box-shadow:var(--shadow);padding:18px;display:grid;gap:14px}.admin-media-upload-panel{width:min(620px,96vw)}.admin-media-panel-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.10);padding-bottom:12px}.admin-media-panel-head h2{margin:0;font-size:24px}.admin-media-panel-head p{margin:4px 0 0;color:var(--muted);line-height:1.4}.admin-media-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:center}.admin-media-status{min-height:20px;color:var(--muted)}.admin-media-status.bad{color:#fecaca}.admin-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:10px;align-items:stretch}.admin-media-card{appearance:none;text-align:left;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.045);color:var(--text);padding:8px;display:grid;gap:6px;cursor:pointer;min-width:0;overflow:hidden}.admin-media-card:hover,.admin-media-card:focus{border-color:rgba(124,92,255,.6);outline:none;background:rgba(255,255,255,.075)}.admin-media-card.selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(124,92,255,.32)}.admin-media-card-thumb{height:112px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:rgba(0,0,0,.22);padding:6px}.admin-media-card-thumb img{width:100%;height:100%;object-fit:contain;background:transparent}.admin-media-card-name{font-weight:700;font-size:12px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-media-card-meta{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-media-card-actions{display:flex;gap:6px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:2px}.admin-media-card-actions .secondary{padding:7px 9px;font-size:12px}.admin-media-empty-state{grid-column:1/-1;border:1px dashed rgba(255,255,255,.16);border-radius:16px;padding:18px;color:var(--muted);text-align:center}.admin-media-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.10);padding-top:12px}.admin-media-upload-fields{display:grid;gap:12px}.admin-media-page-toolbar{margin-bottom:14px;align-items:center}.admin-media-page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:12px}.admin-media-page-card{border:1px solid rgba(255,255,255,.10);border-radius:18px;background:rgba(255,255,255,.04);overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;min-width:0}.admin-media-page-card[hidden]{display:none!important}.admin-media-page-thumb{background:rgba(0,0,0,.24);aspect-ratio:1.35/1;display:grid;place-items:center;overflow:hidden;padding:8px}.admin-media-page-thumb img{width:100%;height:100%;object-fit:contain;background:transparent}.admin-media-page-info{display:grid;gap:6px;padding:10px;min-width:0}.admin-media-page-info strong,.admin-media-page-info .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-media-page-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 10px 10px;flex-wrap:wrap}.admin-media-delete-panel{width:min(860px,96vw)}.admin-media-rename-panel{width:min(720px,96vw)}.admin-media-rename-field{display:grid;gap:6px}.admin-media-delete-preview{display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.035);padding:10px;min-width:0}.admin-media-delete-preview img{display:block;width:90px;height:72px;max-height:72px;object-fit:contain;border-radius:12px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.10)}.admin-media-delete-usage{display:grid;gap:10px}.admin-media-delete-note{margin-top:0}.admin-media-usage-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.admin-media-usage-list li{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.035);padding:10px}.admin-media-usage-list a{color:var(--text);border-bottom:1px solid rgba(255,255,255,.28)}.admin-media-preview-panel{width:min(980px,96vw)}.admin-media-preview-wrap{display:grid;gap:10px}.admin-media-preview-frame{height:min(70vh,720px);min-height:260px;display:grid;place-items:center;overflow:auto;border:1px solid rgba(255,255,255,.10);border-radius:18px;background:rgba(0,0,0,.28);padding:12px}.admin-media-preview-frame img{width:100%;height:100%;object-fit:contain;background:transparent}.admin-media-preview-meta{display:grid;gap:4px;color:var(--muted);word-break:break-word}.admin-media-open{overflow:hidden}
@media (max-width:760px){.admin-media-modal{padding:8px}.admin-media-panel{max-height:94vh;padding:12px;border-radius:16px}.admin-media-panel-head,.admin-media-picker-head{display:grid}.admin-media-toolbar{grid-template-columns:1fr}.admin-media-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.admin-media-actions{justify-content:stretch}.admin-media-actions .primary,.admin-media-actions .secondary,.admin-media-actions .danger{width:100%}.admin-media-page-grid{grid-template-columns:1fr}.admin-media-delete-preview{grid-template-columns:1fr}.admin-media-delete-preview img{width:100%;height:72px}}

/* Nettbutikk579 tilbyr også lyst tema (standard). Frisør arver de samme
   palettverdiene uten å endre innhold, bilder eller lagrede blokkfarger. */
body.theme-light{
  color-scheme:light;
  --bg:#edece8;
  --panel:#f6f5f2;
  --panel2:#ffffff;
  --card:#ffffff;
  --text:#1f2224;
  --muted:#5e6366;
  --line:#d7d4ce;
  --border:#d7d4ce;
  --primary:#be4227;
  --primary2:#a63820;
  --accent:#be4227;
  --accent2:#a63820;
  --shadow:0 10px 26px rgba(31,34,36,.12);
  background-color:var(--bg);
  background-image:none;
}
body.theme-light .site-header,
body.theme-light .admin-top,
body.theme-light .hero-copy,
body.theme-light .hero-card,
body.theme-light .panel,
body.theme-light .card,
body.theme-light .product-card,
body.theme-light .catalog-menu,
body.theme-light .admin-nav,
body.theme-light .login-card,
body.theme-light .media-grid figure,
body.theme-light .admin-media-panel,
body.theme-light .fp-modal-card,
body.theme-light .front-editor-view,
body.theme-light .front-editor-canvas,
body.theme-light .admin-content .panel{
  background:rgba(255,255,255,.94);
  border-color:rgba(15,23,42,.12);
  box-shadow:0 16px 40px rgba(15,23,42,.10);
  color:var(--text);
}
body.theme-light .hero-copy,
body.theme-light .hero-card,
body.theme-light .panel,
body.theme-light .product-card{
  background:rgba(255,255,255,.90);
}
body.theme-light .admin-nav{background:rgba(255,255,255,.96)}
body.theme-light .top-nav a,
body.theme-light .primary,
body.theme-light .secondary,
body.theme-light .product-button,
body.theme-light .danger,
body.theme-light .day-button,
body.theme-light .slot-button,
body.theme-light button,
body.theme-light .quick-search,
body.theme-light .service-row,
body.theme-light .service-check{
  border-color:rgba(15,23,42,.12);
  background:rgba(15,23,42,.04);
  color:var(--text);
}
body.theme-light .top-nav a:hover,
body.theme-light .secondary:hover,
body.theme-light .primary:hover,
body.theme-light .day-button:hover,
body.theme-light .slot-button:hover,
body.theme-light .product-button:hover,
body.theme-light button:hover{background:rgba(15,23,42,.08);border-color:rgba(15,23,42,.18)}
body.theme-light .top-nav a.active,
body.theme-light .primary,
body.theme-light .day-button.active,
body.theme-light .slot-button.active,
body.theme-light .cat-link.active,
body.theme-light .admin-nav a.active{
  background:rgba(124,92,255,.12);
  border-color:rgba(124,92,255,.34);
  color:var(--text);
}
body.theme-light .danger{border-color:rgba(185,28,28,.32);background:rgba(185,28,28,.09)}
body.theme-light .product-card img,
body.theme-light .no-img,
body.theme-light .detail-img,
body.theme-light .edit-block,
body.theme-light .thumb,
body.theme-light .front-block,
body.theme-light .admin-media-preview-frame,
body.theme-light .admin-media-page-card{
  background:rgba(15,23,42,.035);
  border-color:rgba(15,23,42,.12);
  color:var(--text);
}
body.theme-light .front-block{background:rgba(255,255,255,.95)}
body.theme-light .quick-search{background:rgba(255,255,255,.94)}
body.theme-light .quick-search input{border:0;background:transparent;box-shadow:none}
body.theme-light input:not([type=checkbox]):not([type=radio]),
body.theme-light textarea,
body.theme-light select{
  background:rgba(255,255,255,.96);
  color:var(--text);
  border-color:rgba(15,23,42,.16);
}
body.theme-light input::placeholder,
body.theme-light textarea::placeholder{color:#7a8498}
body.theme-light .quick-search button{background:rgba(15,23,42,.04)}
body.theme-light select option{background:#fff;color:var(--text)}
body.theme-light input[type=file]::file-selector-button{background:rgba(15,23,42,.05);color:var(--text)}
body.theme-light .table-wrap,
body.theme-light th,
body.theme-light td{border-color:rgba(15,23,42,.10)}
body.theme-light th{background:rgba(247,246,242,.98);color:var(--muted)}
body.theme-light tbody tr:nth-child(even){background:rgba(15,23,42,.018)}
body.theme-light tbody tr:hover{background:rgba(190,66,39,.07)}
body.theme-light .site-footer{color:var(--muted)}
body.theme-light .flash{border-color:rgba(34,197,94,.42);background:rgba(34,197,94,.30)}
body.theme-light .alert{background:#fee2e2;color:#7f1d1d;border-color:rgba(185,28,28,.46)}
body.theme-light .admin-nav a:hover{background:rgba(15,23,42,.08);color:var(--text)}
body.theme-light .admin-media-status,
body.theme-light .admin-media-panel-head p,
body.theme-light .admin-media-page-info .small{color:var(--muted)}
body.theme-light .fp-modal{background:rgba(15,23,42,.48)}
body.theme-light .theme-picker{border-color:rgba(15,23,42,.12)}

/* Samme kompakte lys/mørk-velger som visningsvalget på nettbutikk579. */
.theme-picker{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.03)}
.theme-picker button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.theme-picker button:hover{color:var(--text);background:rgba(124,92,255,.07)}
.theme-picker button[aria-pressed="true"]{color:var(--text);background:rgba(124,92,255,.14);border-color:rgba(124,92,255,.32)}
body.theme-light .theme-picker{background:rgba(15,23,42,.03)}
body.theme-light .theme-picker button{border-color:transparent;background:transparent;color:var(--muted)}
body.theme-light .theme-picker button[aria-pressed="true"]{border-color:rgba(124,92,255,.34);background:rgba(124,92,255,.12);color:var(--text)}
body.theme-light .theme-picker button:hover{background:rgba(124,92,255,.10)}
.login-card .theme-picker{margin-top:16px}
@media(max-width:900px){.theme-picker{align-self:flex-start}}

/* Søkefeltet inni topbar-søkerammen skal ikke få dobbelt feltkant. */
body .quick-search input[type="search"],
body.theme-light .quick-search input[type="search"]{
  flex:1;min-width:0;border:0;background:transparent;box-shadow:none;
  padding:7px 8px;font-size:14px;color:var(--text)
}
body .quick-search input[type="search"]:focus,
body.theme-light .quick-search input[type="search"]:focus{outline:2px solid var(--primary);outline-offset:0;box-shadow:none}

/* Bildebibliotekets statusmerker bruker samme badge-størrelse og lyskontrast. */
body.theme-light .badge{border-color:rgba(15,23,42,.12);background:rgba(15,23,42,.04);color:var(--muted)}
body.theme-light .badge.good{color:#166534;border-color:rgba(34,197,94,.42)}
body.theme-light .badge.warn{color:#92400e;border-color:rgba(245,158,11,.45)}
