/*
Theme Name: Top Rabat
Theme URI: https://gratis-rabatt.se
Description: Child theme for GeneratePress
Author: Top Rabat
Author URI: https://gratis-rabatt.se
Template: generatepress
Version: 1.0
*/
body {
	background-color:#f6fafd;
}
a, body, html, h1, h2, h3, h4, h5, h6 {color:#353535;}
.inside-header {
    padding: 10px 0px;
}
h1 {
	font-size:24px;
	font-weight:500;
}
.page-template-page-butikker h1 {margin-bottom:0px;}
h2 {
	font-size:20px;
	font-weight:500;
}
.site-header .header-image {
	max-width:120px;
}
.site-header {
    border-bottom: solid 1px #efefef;
}
main {
	width:100%;
	padding-bottom:40px;
	padding-top:40px;
}
.home main {
	padding-bottom:0px;
	padding-top:0px;
}
.toprabat-header-search {
  position: relative;
  display: inline-block;
  margin-left: 12px;
}
.toprabat-search-input {
  width: 260px;
  max-width: 60vw;
  padding: 8px 10px;
}
.toprabat-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}
.toprabat-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toprabat-search-item a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
}
.toprabat-search-item a:hover {
  background: #f5f5f5;
}
.toprabat-search-empty {
  padding: 10px 12px;
  opacity: 0.8;
}
.popular-searches {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0px;
}
.fp-section.fp-slideshow-section { padding-bottom:10px; }
body.home .fp-section.fp-faq {padding-bottom:20px;}
.fp-section.fp-faq {padding-bottom:0px;}
.popular-searches .label {
	text-align:left;
  font-weight: 500;
  color: #333;
  width: 100%;
  margin-bottom: 5px;
}

.popular-searches .link {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  text-decoration: none;
  color: #353535;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 200px;
  text-align: center;
}
.fp-section {
  padding-bottom: 40px;
  padding-top:40px;
}
.butik-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.butik-liste li {
  margin-bottom: 8px;
}
.rabatkoder-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.rabatkort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 23px 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}
.rabatkort-title {
  font-size: 16px;
  font-weight: 600;
}
.rabatkort-btn {
    padding: 14px 28px;
    background: #2c71cb;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    min-width: 160px;
    font-size: 16px;
    text-align: center;
}
.rabatkort-btn:hover {
  background: #3d88e7;
}
.container.butik-single, .container.frontpage {
width:100%;
}
input[type=search] {border-radius:30px;font-size:15px;}
.az-nav a, .az-nav .az-disabled {
	padding: 6px 14px;
    text-decoration: none;
    background: #ffffff;
    color: #303030;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    margin: 0px 6px 12px 0px;
    border: solid 1px #e5e5e5;
}
/* ============================================
   MENU IKON - SVG FILTER
   ============================================ */
.menu-toggle,
.mobile-menu-control-wrapper .menu-toggle {
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
}

/* Skjul standard GeneratePress ikoner */
.menu-toggle .gp-icon,
.menu-toggle .mobile-menu,
.menu-toggle span {
  display: none !important;
}

/* SVG Filter ikon */
.menu-toggle::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 128 128'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-width='7' d='M71 83L16 83M57 45L112 45'/%3E%3Cpath fill='%23000' d='M85.5 82.5C85.5 90.7843 92.2157 97.5 100.5 97.5V90.5C96.0817 90.5 92.5 86.9183 92.5 82.5H85.5zM100.5 97.5C108.784 97.5 115.5 90.7843 115.5 82.5H108.5C108.5 86.9183 104.918 90.5 100.5 90.5V97.5zM115.5 82.5C115.5 74.2157 108.784 67.5 100.5 67.5V74.5C104.918 74.5 108.5 78.0817 108.5 82.5H115.5zM100.5 67.5C92.2157 67.5 85.5 74.2157 85.5 82.5H92.5C92.5 78.0817 96.0817 74.5 100.5 74.5V67.5zM42.5 44.5C42.5 52.7843 35.7843 59.5 27.5 59.5V52.5C31.9183 52.5 35.5 48.9183 35.5 44.5H42.5zM27.5 59.5C19.2157 59.5 12.5 52.7843 12.5 44.5H19.5C19.5 48.9183 23.0817 52.5 27.5 52.5V59.5zM12.5 44.5C12.5 36.2157 19.2157 29.5 27.5 29.5V36.5C23.0817 36.5 19.5 40.0817 19.5 44.5H12.5zM27.5 29.5C35.7843 29.5 42.5 36.2157 42.5 44.5H35.5C35.5 40.0817 31.9183 36.5 27.5 36.5V29.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}

/* Nar menuen er aben - vis X */
.main-navigation.toggled .menu-toggle::before,
.toggled .menu-toggle::before,
#site-navigation.toggled .menu-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}
li {list-style:none;}
ul {margin:0px;}
.page-template-xpage-kategorier .kategori-valg li {list-style:none;display:inline-block;margin-right:20px;margin-bottom:20px; padding:15px;border-radius:15px;background:#fff;text-align:center;font-size:18px;border:solid 1px #ededed;}
.page-template-xpage-kategorier .kategori-valg li .kategori-topshop-sep { font-size:14px; }
.page-template-xpage-kategorier .kategori-valg li .kategori-topshops a {font-weight:400; font-size:14px; color:#740074;padding:4px 0px;}
.page-template-xpage-kategorier .kategori-valg li a {text-decoration:none;font-weight:600;display:inline-block;}

/* Full-bleed baggrund pa hver 2. sektion (kun CSS) */

.container > .fp-section{
  position: relative;
  z-index: 0;
}

/* Hver 2. .bbd-block far hvid baggrund helt ud til skarmkant */
.container > .fp-section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff;
  z-index: -1;
}

.container > .fp-section:nth-of-type(even) .rabatkort {
  background: #fbfbfb;
}

/* Butik logo usage */
.butik-logo {
	min-width:140px;
  width: 140px;
  height: 63px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px;
  flex: 0 0 auto;
}
.page-template-page-butikker .butik-logo, .home .fp-section .az-list li a .butik-logo {
		min-width:90px;
  width: 90px;
  height: 60px;
}
.single-butik .butik-header .butik-logo {
  width: 170px;
height: 120px; }
.rabatkort-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rabatkort-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rabatkort-shop {
  font-size: 14px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}

.butik-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 0px;
}
.butik-image {flex:0 0 170px;}
.butik-info-wrap {flex:1 1 auto;}
.butik-read-more-wrap {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 14px;
  align-items: start;
  margin: 16px 0 0;
}
.butik-read-more {text-align:center;}
.butik-read-more button {
    text-align: center;
    padding: 10px 20px;
    background: #fff;
    border-radius: 10px;
    border: solid 1px #e5e5e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
	color:#353535;
		margin-top:0px;
	width:100%;
	float:none;
}
.butik-title {
    margin-bottom: 5px;
}
.fp-section ul.butik-liste li a {
	padding: 10px 16px;
    border-radius: 15px;
	border: solid 1px #e5e5e5;
    background: #fff;
    text-decoration: none;
    font-size: 16px;
	display:block;
}
body.home .fp-section ul.butik-liste li a {background:#fbfbfb;}
.fp-section ul.butik-liste li {
	display:inline-block;
	margin-bottom: 14px;
    margin-right: 12px;
	margin-top:0px;
	margin-left:0px;
}
/* Butikker A-Z list */
.az-list li {
  margin-bottom: 10px;
  width: 33%;
    display: inline-block;
}
.az-section h2 {
    margin-top: 30px;
    padding: 15px 20px;
    background: #fff;
    display: inline-block;
    color: #1478e3;
    border-radius: 15px;
    font-weight: 500;
    border: solid 1px #deeeff;
}
.home .butik-link {
	background:#fff;
}
.butik-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}
.butik-link:hover {
  background: #f7f7f7;
}
.butik-link-title {
  font-weight: 600;
}
.single-butik .butik-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 260ms ease, opacity 200ms ease;
  margin: 10px 0 18px;
}

.single-butik .butik-content.is-open {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
.single-butik .butik-content { transition: none; }
}
.butik-single .butik-content h2 {
font-size:24px;
font-weight: 500;
}
.butik-single .butik-content h3 {
font-size:20px;
font-weight: 500;
}
.butik-short-desc--mobile, .rabatkort-left .coupon-symbol { display: none; }
.description-block { display:inline-block; margin-top:20px; padding:20px; border-radius:6px; background:#fff; margin-bottom:30px; }
.page-template-page-butikker .description-block { margin-top:30px; }
@media (max-width: 991px) {
	.has-inline-mobile-toggle #site-navigation.toggled { background-color:#fff; }
	.inside-header {
    padding: 10px;
}
	main {
		padding-top:15px;
		padding-bottom:15px;
	}
	main.butik-single { padding-top:10px; }
	.fp-section {
    padding-bottom: 20px;
    padding-top: 20px;
}
	.butik-logo {
		min-width:90px;
  width: 90px;
  height: 60px;
}
.main-navigation .main-nav ul li a {
    padding-left: 10px;
    padding-right: 10px;
    line-height: 35px;
    font-size: 16px;
    letter-spacing: 0.2px;
}
.has-inline-mobile-toggle #site-navigation.toggled {
    margin-top: 1.0em;
    margin-bottom: 1.0em;
}
	  .rabatkort-btn, .single-butik .rabatkort-shop, .single-butik .rabatkort-left img, .single-butik .rabatkort-left svg {
    display: none !important;
  }
    .rabatkort {
    cursor: pointer;
  }
.site.grid-container {
	padding:10px;
}
  .butik-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 12px;
    align-items: start;
  }
  .rabatkoder-liste {
  margin-top: 20px;
}
    .rabatkort-left .coupon-symbol {
        display: flex;
        padding: 8px;
        background: #2c71cb;
        border-radius: 6px;
        flex-direction: column;
        border: solid 1px #e5e5e5;
        min-width: 118px;
        text-align: center;
        color: #fff;
    }

  .butik-image { grid-column: 1; }
  .butik-info-wrap { grid-column: 2; }

  .butik-read-more-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .butik-read-more { margin-top: 0; text-align: left; }
  .butik-short-desc--desktop { display: none; }
  .butik-short-desc--mobile { display: block; margin: 10px 0 14px; }
  .az-list li {
    margin-bottom: 10px;
    width: 100%;
    display: block;
}
.butik-read-more button {
	margin-top:0;
	width:100%;
	float:none;
}
/* Mobil: fold ud som almindelig blok for stabil visning */
.single-butik .butik-content {
  max-height: none;
  overflow: visible;
  opacity: 1;
  transition: none;
  display: none;
}
.single-butik .butik-content.is-open {
  display: block;
}
}
/* Kort beskrivelse - default (desktop) */
.butik-short-desc p {
	margin:0px;
	font-size:16px;
	padding: 10px 0px;
}
/* Coupon modal (lightweight) */
.tr-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}
.tr-modal.is-open { display: block; }

.tr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.tr-modal__dialog {
  position: relative;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.tr-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.tr-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.tr-modal__codewrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 12px;
}

.tr-modal__code {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 12px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #f7f9ff;
  word-break: break-word;
}

.tr-modal__copy {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.tr-modal__actions {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    display: inline-block;
    margin-bottom: 10px;
}

.tr-modal__shopbtn {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  width:100%;
}
a.rabatkort-btn:hover, a.tr-modal__shopbtn:hover, a.tr-modal__shopbtn:focus, a.tr-modal__shopbtn:active {
color:#fff;
}
.tr-modal__hint {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}
.tr-modal-open { overflow: hidden; }
.butik-related {
	margin-top:40px;
}
.butik-howto {
	    background: #fff;
    padding: 40px;
    border-radius: 6px;
    text-align: center;
    margin-top: 40px;
}
.butik-howto img { border-radius:6px; }

.toprabat-hero-slider {
  position: relative;
  margin: 30px auto;
  width: 100%;
  max-width: 100%;
}

.hero-slider-container {
  overflow: hidden !important;
  border-radius: 12px;
  background: #f8f9fa;
  padding: 10px 0px;
  position: relative;
  width: 100%;
}

.hero-slider-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  transition: transform 0.5s ease;
}

.hero-slide {
	width:100%;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Vis/skjul mobil vs desktop slider */
.toprabat-hero-slider--mobile { display: block; }
.toprabat-hero-slider--desktop { display: none; }

@media (min-width: 992px) {
  .toprabat-hero-slider--mobile { display: none; }
  .toprabat-hero-slider--desktop { display: block; }
}

/* Grid basis */
.hero-cards-grid {
  display: grid !important;
  gap: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
    grid-template-columns: 1fr !important;
}

/* Desktop: 4 kolonner */
@media (min-width: 992px) {
  .hero-cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Kvadratisk kort design */
.hero-coupon-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 200px;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card-logo {
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-logo img, .hero-card-logo svg {
  max-width: 100%;
  max-height: 145px;
min-height: 145px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-shop {
  font-size: 12px;
  color: #666;
}

.hero-card-button {
  display: block;
  background: #2c71cb;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
}

.hero-card-button:hover {
  background: #0052a3;
  color: #fff;
}

/* Navigation knapper */
.hero-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 28px;
padding:0px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #333;
}

.hero-nav-btn:hover {
  background: #fff;
  color:#353535;
}

.hero-nav-prev { left: -22px; }
.hero-nav-next { right: -22px; }

/* Dots navigation */
.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-nav-dot:hover {
  background: #999;
}

.hero-nav-dot.hero-dot-active {
  background: #333;
  transform: scale(1.2);
}
.butik-textlist {
  margin: 0;
  padding-left: 18px;
}

.butik-textlist li {
  margin: 6px 0;
}

.butik-textlist a, .site-footer a {
  text-decoration: none;
}
.site-footer a { font-size:16px; }

.butik-textlist a:hover,
.butik-textlist a:focus {
  text-decoration: underline;
}
.butik-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
}

.butik-textlist {
  margin: 0;
  padding-left: 18px;
}

.butik-textlist li {
  margin: 6px 0;
}
@media (max-width: 991px) {
  .hero-nav-prev { left: 5px; }
  .hero-nav-next { right: 5px; }
    .butik-cols {
    grid-template-columns: 1fr;
  }
}
.page-template-xpage-kategorier .tr-breadcrumb, body.tax-kategori .tr-breadcrumb, body.single-butik .tr-breadcrumb, .page-template-xpage-kategorier .tr-breadcrumb a, body.tax-kategori .tr-breadcrumb a, body.single-butik .tr-breadcrumb a {margin-top:20px; margin-bottom:0px; color:#606060; font-size:16px; text-decoration:none;}
.tr-breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tr-breadcrumb .breadcrumb-item::after { content: "›"; margin-left: 6px; opacity: .5; }
.tr-breadcrumb .breadcrumb-item:last-child::after { content: ""; margin: 0; }
.last-updated {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.last-updated-label {
  font-weight: 600;
}
.butik-meta-label {font-weight:500; font-size:15px;}
.fp-faq .faq-item { background:#fff; padding:10px 20px; border-radius:15px; margin-bottom:0px;}
.fp-faq .faq-item summary { font-weight:500;}
.fp-faq .faq-item p {     margin: 10px;
margin-left: 0px;
font-size: 16px;
}
.fp-faq .faq-item p a { font-weight:500; }
/* Mobil: 1 kort synligt + horisontal swipe/scroll */
@media (max-width: 991px) {
  .toprabat-hero-slider--mobile .hero-slider-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 10px 12px;
  }

  .toprabat-hero-slider--mobile .hero-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .toprabat-hero-slider--mobile .hero-slide {
    flex: 0 0 90%;
    width: 90%;
    min-width: 90%;
    max-width: 90%;
    scroll-snap-align: start;
  }

  /* Kortet skal fylde hele "slide" */
  .toprabat-hero-slider--mobile .hero-cards-grid {
    grid-template-columns: 1fr !important;
  }
}
body.tax-kategori .fp-lastmod {margin:0px;}
.fp-lastmod{
  margin: 0px 0px 40px 0;
  padding-top: 12px;
  font-size: 14px;
  opacity: .9;
}
.fp-lastmod-label{ font-weight: 600; }
.tr-pagination {margin-top:20px;margin-bottom:10px;}
.tr-pagination a, .tr-pagination span {background:#fff;border-radius:6px;padding:10px 16px;margin-right:10px; text-decoration:none;font-weight:500;border:solid 1px #e5e5e5;}
.tr-pagination .page-numbers.dots {
    background: transparent;
    border: none;
padding: 0px; }
@media (max-width: 991px) {
	.tr-pagination a, .tr-pagination span {
    background: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    margin-right: 2px;
	margin-bottom:2px;
    text-decoration: none;
    font-weight: 500;
    border: solid 1px #e5e5e5;
	display:inline-block;
    font-size: 16px;
}
.single-butik .butik-header .butik-logo {
height:86px; }
.butik-meta-label {
font-weight:400;
}
.fp-lastmod{
margin: 0px 0px 20px 0; }
}
.butik-see-more { margin-top: 30px; margin-bottom:30px; }
.butik-see-more-title { margin: 0 0 20px; font-size: 20px; }
.butik-see-more-links { display: flex; flex-wrap: wrap; gap: 8px; }
.butik-see-more-link {
display: inline-block;
padding: 16px 24px;
border: 1px solid #e5e5e5;
border-radius: 6px;
background: #fff;
text-decoration: none;
line-height: 1;
font-weight: 500;
}
.butik-see-more-link:hover { border-color: rgba(0,0,0,.18); }
.cat-top-shops { margin: 18px 0 24px; }
.cat-top-shops-link { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 10px; text-decoration: none; }
.cat-top-shops-title { font-weight: 600; }
.cat-top-shops .butik-logo { width: 140px; height: 90px; border-radius: 8px; }
.cat-top-shops-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 pr række */
  gap: 12px;
}
@media (max-width: 991px) {
  .cat-top-shops-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cat-top-shops-list {
    grid-template-columns: 1fr;
  }
}
.rabatkoder-liste h2 {margin-bottom:10px;}
.sponsored {
	display:block;
margin-bottom: 0px;
margin-top: 0px;
text-align: left;
font-size: 14px;
opacity:0.85;
}
    .sponsored.mobil {
	display:none; }
.wp-singular.full-width-content .container.grid-container {max-width:1200px;}
.wp-singular.full-width-content .container.grid-container .site-main .inside-article {padding:40px;}
/* ========================================
   ABOUT PAGE - SPLIT SECTIONS MED SVG
   ======================================== */

.about-split-section {
  padding: 80px 0;
  background: #ffffff;
}

.about-split-section.alt {
  background: #f9fafb;
}

.about-split-section .cont {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-split-section .split-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-split-section .split-row.reverse {
  flex-direction: row-reverse;
}

.about-split-section .split-content,
.about-split-section .split-image {
  flex: 1;
  min-width: 0;
}

.about-split-section .split-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-split-section .split-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 16px;
}

.about-split-section .split-content p:last-child {
  margin-bottom: 0;
}

/* SVG STYLING - KRITISK FOR VISNING */
.about-split-section .split-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-split-section .split-image svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* Sørg for at SVG tekst vises korrekt */
.about-split-section .split-image svg text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  user-select: none;
}

/* FAQ section */
.about-faq {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.about-faq .title {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 40px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.faq-item summary {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: #4f46e5;
  font-weight: 700;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

/* Contact section */
.about-contact {
  padding: 60px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-contact .title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.about-contact .description {
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
}
.rabatkort-type {display:block;}
.rabatkort-type-label { background: #f9f9f9;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    border: solid 1px #e5e5e5;
}
.rabatkort-tested-time {color:#353535;}
.rabatkort-used-today {color: #2f6f2f;}
.rabatkort-best-today { color:#187a07; }
.rabatkort-best-today, .rabatkort-used-today, .rabatkort-tested-time {
    background: #f9f9f9;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    border: solid 1px #e5e5e5;
}
/* ========================================
   RESPONSIVE - MOBILE & TABLET
   ======================================== */

@media (max-width: 968px) {
  .about-split-section .split-row {
    gap: 40px;
  }

  .about-split-section .split-image svg {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
	.rabatkort-type {display:none;}
  .about-split-section {
    padding: 50px 0;
  }

  .about-split-section .split-row,
  .about-split-section .split-row.reverse {
    flex-direction: column;
    gap: 40px;
  }

  .about-split-section .split-content h2 {
    font-size: 26px;
    text-align: center;
  }

  .about-split-section .split-content p {
    font-size: 16px;
    text-align: center;
  }

  .about-split-section .split-image {
    max-width: 100%;
    padding: 10px;
  }

  .about-split-section .split-image svg {
    max-width: 300px;
  }

  .about-faq {
    padding: 50px 20px;
  }

  .about-faq .title {
    font-size: 28px;
  }

  .faq-item {
    padding: 16px 20px;
  }

  .faq-item summary {
    font-size: 16px;
  }

  .faq-answer {
    font-size: 15px;
  }

  .about-contact {
    padding: 40px 20px 60px;
  }

  .about-contact .title {
    font-size: 26px;
  }
  .inside-footer-widgets { text-align:center; }
  .butik-howto {
  padding: 20px;
margin-top:30px;
}
.butik-related { margin-top:30px; }
}
.footer-widget-1 p { font-size:16px; color:#606060; }
.footer-widget-2 h2.widget-title, .footer-widget-3 h2.widget-title, .footer-widget-4 h2.widget-title, .footer-widget-5 h2.widget-title {font-weight:500;}

/* Mobile search button + modal */
.toprabat-mobile-search-toggle {
  display: none;
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.toprabat-mobile-search-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20L16.65 16.65' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.toprabat-mobile-search-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.toprabat-mobile-search-modal.is-open {
  display: block;
}

.toprabat-mobile-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.toprabat-mobile-search-modal__dialog {
  position: relative;
  margin: 10vh auto 0;
  width: calc(100% - 24px);
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.toprabat-mobile-search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.toprabat-mobile-search-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.toprabat-mobile-search .toprabat-search-input {
  width: 100%;
  max-width: none;
  font-size: 16px;
}

.toprabat-search-results--mobile {
  position: static;
  margin-top: 8px;
}

.toprabat-search-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .toprabat-mobile-search-toggle {
    display: inline-block;
    flex: 0 0 40px;
  }

  .toprabat-header-search {
    display: none !important;
  }
    .sponsored {
	display:none; }
  .sponsored.mobil {
	  display:block;
margin-bottom: 10px;
margin-top: 10px;
border-radius: 6px;
text-align: center;
font-size: 14px;
}
h1.butik-title {
font-size:18px;
margin-bottom:0px;
}
}
/* Sørg for dropdown kan flyde ud over header/nav */
#mobile-menu-control-wrapper,
#mobile-menu-control-wrapper .inside-navigation,
.main-navigation.mobile-menu-control-wrapper {
  overflow: visible !important;
  position: relative;
}

/* Search dropdown over alt */
.toprabat-header-search {
  position: relative;
}

.toprabat-search-results {
  z-index: 999999 !important;
}

/* Mobil bredde i topbaren */
@media (max-width: 991px) {
  #mobile-menu-control-wrapper .toprabat-header-search {
    flex: 1 1 auto;
    margin-right: 10px;
  }

  #mobile-menu-control-wrapper .toprabat-search-input {
    width: 100%;
    max-width: none;
  }
  #mobile-menu-control-wrapper .toprabat-header-search .toprabat-search-results ul {
  display:block;
  }
  .page-template-xpage-kategorier .kategori-valg li { display:block; margin-right:0px; }
}
main.butik-single .butik-content { background:#fff; padding:20px; border-radius:15px; margin-top:20px; }
.inside-footer-widgets>div:not(:last-child) {
        margin-bottom: 1.0em;
    }
.inside-footer-widgets p { margin-bottom:0px; }
.inside-footer-widgets .widget-title, .inside-footer-widgets img { margin-bottom:5px; }
.flag-switch {
	margin-top:15px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.flag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;   /* ændr til fx 20/28/32 */
  height: 24px;  /* ændr til fx 20/28/32 */
  border-radius: 9999px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

.flag {
  width: 100%;
  height: 100%;
  display: block;
}

.flag-link.is-active {
  cursor: default;
  opacity: 0.9;
}

.flag-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a[data-kind="offer"] {background: #54739b;}
a[data-kind="offer"]:hover {background: #405774;}
a[data-kind="coupon"] {background: #2c71cb;}