@font-face {
  font-family: 'Futura';
  src: url('Futura-Light.eot'); /* IE9 Compat Modes */
  src: url('Futura-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('Futura-Light.woff') format('woff'), /* Modern Browsers */
       url('Futura-Light.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('Futura-Light.svg#svgFontName') format('svg'); /* Legacy iOS */
}

:root{
  --ub-note-dura: 4s;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.exempel {
	font-family: Futura;
}

.fa-reorder{
  cursor: move;
}

.fa-eye, .fa-eye-slash{
  cursor: pointer;
}

.ub.note{
  position: absolute;
  width: 100%;
  height: 27px;
  overflow: hidden;
  z-index: 99;
  pointer-events: none;
}
.ub.note.note-top{
  top: 0;
  left: 50%;
  translate: -50%;
}
.ub.note.note-bot{
  bottom: 0;
  left: 50%;
  translate: -50%;
}
.ub.note > *{
  position: absolute;
  border: 1px solid #0003;
  padding: .25rem 1rem;
}
.ub.note.note-top > *{
  top: -100%;
  left: 50%;
  translate: -50%;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.ub.note.note-bot > *{
  bottom: -100%;
  left: 50%;
  translate: -50%;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.ub.note.note-top.show > *{
  animation: n-show-top var(--ub-note-dura);
}
.ub.note.note-bot.show > *{
  animation: n-show-bot var(--ub-note-dura);
}
.ub.note.note-left.show > *{
  animation: n-show-left var(--ub-note-dura);
}
.ub.note.note-right.show > *{
  animation: n-show-right var(--ub-note-dura);
}
@keyframes n-show-top{
  0%{
    top: -100%;
  }
  14%{
    top: -1px;
  }
  50%{
    top: -1px;
  }
  86%{
    top: -1px;
  }
  0%{
    top: -100%;
  }
}
@keyframes n-show-bot{
  0%{
    bottom: -100%;
  }
  14%{
    bottom: -1px;
  }
  50%{
    bottom: -1px;
  }
  86%{
    bottom: -1px;
  }
  0%{
    bottom: -100%;
  }
}
@keyframes n-show-left{
  0%{
    left: -100%;
  }
  14%{
    left: -1px;
  }
  50%{
    left: -1px;
  }
  86%{
    left: -1px;
  }
  0%{
    left: -100%;
  }
}
@keyframes n-show-right{
  0%{
    right: -100%;
  }
  14%{
    right: -1px;
  }
  50%{
    right: -1px;
  }
  86%{
    right: -1px;
  }
  0%{
    right: -100%;
  }
}

#cookieWindow{
  font-size: 1.4rem;
  padding: 1.6rem;
  width: 80%;
  max-width: 600px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ss-navy, #13285F);
  box-shadow: 0 -2px 20px #0006;
  animation: slide-in-bot 1.5s ease-out;
}
#cookieWindow .cookie-text{
  margin: 0 0 .6rem;
  line-height: 1.5;
}
#cookieWindow .cookie-text a{
  color: var(--ss-navy, #13285F);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cookieWindow #cookieBtn{
  margin-top: .8rem;
  background-color: var(--ss-navy, #13285F);
  color: #FFFFFF;
  border: 2px solid var(--ss-navy, #13285F);
  border-radius: 2px;
  font-weight: 500;
  padding: .5rem;
  transition: .2s;
}
#cookieWindow #cookieBtn:hover{
  background-color: transparent;
  color: var(--ss-navy, #13285F);
}
@keyframes slide-in-bot{
  from{
    bottom: -100%;
  }
  80%{
    bottom: 2%;
  }
  to{
    bottom: 0;
  }
}
@media (max-width: 600px){
  #cookieWindow{
    width: 100%;
  }
}

.of-ellip{
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

::-webkit-scrollbar{
  width: 16px;
  background-color: #e8e8e8;
  /* border-radius: 8px; */
}

::-webkit-scrollbar-thumb{
  background-color: #bbb;
  /* border: 4px solid transparent; */
  /* border-radius: 8px; */
  /* background-clip: padding-box; */
}

::-webkit-scrollbar-thumb:hover{
  background-color: #999;
}

::-webkit-scrollbar-thumb:active{
  background-color: #808080;
}

.pointer:hover {
	cursor: pointer;
}

/* Tabell som blir kort på mobil: varje rad blir ett block och varje cell visar sin rubrik (data-label) först.
   Används t.ex. på rabattsidan och i orderhistoriken. */
@media (max-width: 768px) {
	.table-stack thead { display: none; }
	.table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100% !important; }
	.table-stack tr {
		margin-bottom: 10px;
		padding: 8px 12px;
		background: #FFFFFF !important;
		border: 1px solid var(--ss-line, #D5DAE5);
		border-radius: 2px;
	}
	.table-stack td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 5px 0 !important;
		border: 0 !important;
		text-align: right;
		overflow-wrap: anywhere;
	}
	.table-stack td[data-label]::before {
		content: attr(data-label);
		flex: none;
		font-weight: 600;
		text-align: left;
		color: var(--ss-navy, #13285F);
	}
	.table-stack td:empty { display: none; }
}

/* ═══ Admin (src/adminnav.php): menyträd till vänster, ett avsnitt i taget till höger ═══ */
.adm {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	max-width: 1440px;
	padding-top: 20px;
	padding-bottom: 40px;
	font-family: var(--ss-font, inherit);
	color: var(--ss-navy, #13285F);
}
/* Bootstrap 3:s clearfix på .container-fluid (::before/::after) blir annars egna rutor i griden */
.adm::before, .adm::after { content: none; display: none; }
.adm-nav {
	position: sticky;
	top: 16px;
	padding: 12px;
	background: #FFFFFF;
	border: 1px solid var(--ss-line, #D5DAE5);
	border-radius: 8px;
}
.adm-search { position: relative; margin-bottom: 8px; }
.adm-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9AA3B8; font-size: 13px; }
.adm-search .form-control { height: 36px; padding-left: 32px; font-size: 14px; border-radius: 6px; }
.adm-menu { margin: 0; padding: 0; list-style: none; }
.adm-group { margin: 12px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #6B7490; }
.adm-group:first-child { margin-top: 4px; }
.adm-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--ss-navy, #13285F);
	font-size: 15px;
	text-decoration: none;
}
.adm-link i { width: 18px; text-align: center; color: var(--ss-steel, #4A5470); font-size: 14px; }
.adm-link:hover, .adm-link:focus { background: #F4F6FA; color: var(--ss-navy, #13285F); text-decoration: none; }
.adm-link.is-active { background: #E6EBF4; font-weight: 600; box-shadow: inset 3px 0 0 var(--ss-red, #E41E26); }
.adm-link.is-active i { color: var(--ss-navy, #13285F); }
.adm-content { min-width: 0; max-width: 980px; }
.adm-sec-head { margin-bottom: 16px; }
.adm-sec-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 600; }
.adm-sec-head p { margin: 0; font-size: 15px; color: var(--ss-steel, #4A5470); }
.adm-card {
	margin-bottom: 16px;
	padding: 20px 22px;
	background: #FFFFFF;
	border: 1px solid var(--ss-line, #D5DAE5);
	border-radius: 8px;
	font-size: 15px;
}
.adm-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.adm-card .card { border-radius: 6px; }
.adm-hint { margin: 0 0 12px; font-size: 14px; color: var(--ss-steel, #4A5470); }
.adm-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.adm-row .adm-hint { margin-bottom: 0; }
.adm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
/* Gamla knappar med form-control/btn-block blev hela kolumnens bredd; i en kolumn räcker vanlig bredd */
.adm-actions .btn, .adm-card .btn.form-control, .adm-card .btn.btn-block { width: auto; min-width: 140px; display: inline-block; }
.adm-scroll { max-height: 380px; overflow: auto; border: 1px solid var(--ss-line, #D5DAE5); border-radius: 6px; padding: 4px 8px; }
.adm-scroll-sm { max-height: 240px; margin-top: 10px; }
.adm-scroll .table { margin-bottom: 0; }
.adm-card .row { margin-left: 0; margin-right: 0; }
.adm-card .row > .col { padding-left: 0; padding-right: 0; }
.adm-card .row > .col + .col { padding-left: 12px; }
.adm-online { width: 100%; margin: 0; border: 0; }
@media (max-width: 991.98px) {
	.adm { grid-template-columns: 1fr; gap: 16px; }
	.adm-nav { position: static; }
	.adm-sec-head h1 { font-size: 22px; }
	.adm-card { padding: 16px; }
}

/* Admin: etiketter, välkomstvideo och kontaktperson */
.adm-label { display: block; margin: 12px 0 5px; font-size: 14px; font-weight: 500; }
.adm-label .adm-hint { font-weight: 400; }
.fv-types { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.fv-types label { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 400; cursor: pointer; }
.fv-types input { width: 17px; height: 17px; margin: 0; accent-color: var(--ss-navy, #13285F); }
.fv-box { margin-top: 6px; }
.fv-progress { position: relative; height: 22px; margin-top: 8px; background: #EEF1F6; border-radius: 4px; overflow: hidden; }
.fv-bar { width: 0; height: 100%; background: var(--ss-navy, #13285F); transition: width .2s ease; }
.fv-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #FFFFFF; mix-blend-mode: difference; }
.fv-preview:not(:empty) { margin-top: 14px; aspect-ratio: 16 / 9; max-width: 560px; background: #000000; border-radius: 6px; overflow: hidden; }
.fv-preview iframe, .fv-preview video { display: block; width: 100%; height: 100%; border: 0; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ct-photo-row { display: flex; gap: 16px; align-items: flex-start; }
.ct-photo-row .btn-link { padding: 4px 0; color: var(--ss-red, #E41E26); }
.ct-photo { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #EEF1F6; color: #9AA3B8; font-size: 28px; }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 576px) { .ct-grid { grid-template-columns: 1fr; } }

/* "Skickas från Wien" (viennaTag i src/func.php): artiklar som levereras från Wien och inte går via Fortnox */
.vienna-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 1px 7px;
	border: 1px solid #F1C4CB;
	border-radius: 2px;
	background: #FDF2F4;
	color: #A50E26;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
	vertical-align: middle;
}
.flag-at-mini {
	display: inline-block;
	width: 15px;
	height: 10px;
	background: linear-gradient(to bottom, #ED2939 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #ED2939 66.66%);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 1px;
	flex: none;
}
.av-vienna { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 14px; color: var(--ss-steel, #4A5470); }
.art-vienna-toggle { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border: 1px solid var(--ss-line, #D5DAE5); border-radius: 2px; font-weight: 500; cursor: pointer; }
.art-vienna-toggle input { width: 18px; height: 18px; margin: 0; accent-color: #C8102E; }
