#breadcrumbs {
  background-color: var(--wp--preset--color--accent-2);
  padding: 40px 20px 0 20px;
  box-shadow: 0 0 0 100vmax var(--wp--preset--color--accent-2);
  clip-path: inset(0 -100vmax);
  font-size: 16px;

  @media (max-width: 768px) {
    padding: 40px 20px 0 0;
  }
}

#breadcrumbs ~ .is-layout-constrained {
  margin-block-start: 0;
}
/* =============================================
   Metier — Certification logo (single-product)
   ============================================= */

/* Override align-items: start from shared .pei-layout */
.pcl-section .pei-layout {
	align-items: center;
}

.pcl-logo {
	max-height: 100px;
	width: auto;
	display: block;
}

/* =============================================
   Metier — Consultant shortcode
   ============================================= */

.consultant {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2.5rem;
	align-items: start;
	padding: 2.5rem 0;
}

.consultant__text h3 {
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	margin: 0 0 1rem;
	padding: 0;
}

.consultant__text div {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--accent-1);
}

.consultant__text div p {
	margin-top: 0;
	margin-bottom: 1em;
}

.consultant__text div p:last-child {
	margin-bottom: 0;
}

.consultant__image img {
	width: 100%;
	height: auto;
	border-radius: 0;
	display: block;
}

@media (max-width: 768px) {
	.consultant {
		grid-template-columns: 1fr;
	}

	.consultant__image {
		order: -1;
	}

	.consultant__image img {
		max-width: 200px;
	}
}

/* =============================================
   Metier — Course content tabs (single-product)
   ============================================= */

/* ---- Shared with extra-info.css ---- */
.pcc-section,
.pei-section {
	padding: 60px 0;
	background-color: #fff;

	@media (max-width: 1200px) {
		padding: 1rem 0;
	}
}



.pcc-layout,
.pei-layout {
	display: grid;
	grid-template-columns: 25% 1fr;
	align-items: start;
}

.p-sidebar-heading {
	font-size: 2rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	margin: 0 0 1rem 0;
	padding: 0;
}

.pcc-panel-content,
.pei-content {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--accent-1);
}

.pcc-panel-content p,
.pei-content p {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1rem;

	&:last-child {
		margin-bottom: 0;
	}
}

/* ---- Course-content specific ---- */

.pcc-section-border {
	@media (min-width: 1200px) {
		border-top: 1px solid rgba(14, 31, 77, 0.12);
	}

}

.pcc-container {
	margin: 0 auto;
	max-width: var(--wp--style--global--wide-size);
}

/* Tab bar — flex container; .pcc-item uses display:contents so
   buttons and panels participate directly in this flex layout */
.pcc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

/* Transparent wrapper — removed from box tree on desktop */
.pcc-item {
	display: contents;
}

/* Tab buttons float to the top row */
.pcc-tab {
	order: 0;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 0;
	margin-right: 2rem;
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
	font-family: inherit;
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
	position: relative;
	bottom: -1px;
	outline: none;
}

.pcc-tab:hover {
	color: var(--wp--preset--color--accent-1);
	outline: none;
	border-bottom-color: var(--wp--preset--color--accent-1);
}

.pcc-tab.is-active {
	color: var(--wp--preset--color--accent-1);
	font-weight: 600;
	border-bottom-color: var(--wp--preset--color--accent-1);
}

/* +/− icon — hidden on desktop */
.pcc-tab__icon {
	display: none;
}

/* Content panels sit below all buttons (order: 1, full width) */
.pcc-panel {
	order: 1;
	flex-basis: 100%;
	display: none;
	padding-top: 4rem;
}

.pcc-panel.is-active {
	display: block;
}

.pcc-panel-content {
	padding: 1.5rem 0;

	@media (min-width: 768px) {
		padding: 0;
	}
}

.pcc-panel-content h1,
.pcc-panel-content h2,
.pcc-panel-content h3,
.pcc-panel-content h4 {
	color: var(--wp--preset--color--accent-1);
	font-weight: 400;
	margin-top: 2em;
	margin-bottom: 0.4em;
	font-size: 1.5rem;
}

.pcc-panel-content h2:first-child,
.pcc-panel-content h3:first-child {
	margin-top: 0;
}

.pcc-panel-content a {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

.pcc-panel-content ul,
.pcc-panel-content ol {
	padding-left: 1.4em;
	margin-bottom: 1em;
}

.pcc-panel-content img {
	/*border-radius: 50%;*/

	&.alignright {
		float: right;
		margin-left: 1em;
	}

	&.alignleft {
		float: right;
		margin-left: 1em;
	}
}

/* Mobile — accordion layout */
@media (max-width: 1200px) {
	/* Shared: collapse both layouts to single column */
	.pcc-layout,
	.pei-layout {
		grid-template-columns: 1fr;
	}

	.pcc-layout {
		/*gap: 24px;*/
		padding: 0 2rem;
	}

	/* Restore box so tab + panel stack vertically */
	.pcc-item {
		display: block;
		border-bottom: 1px solid rgba(14, 31, 77, 0.12);
	}

	.pcc-tabs {
		display: block;
	}

	.pcc-tab {
		display: flex;
		align-items: center;
		order: unset;
		width: 100%;
		border: none;
		border-bottom: none;
		bottom: 0;
		margin-right: 0;
		padding: 14px 0;
		text-align: left;
		color: var(--wp--preset--color--accent-1);
		font-size: 0.95rem;
		font-weight: 500;
	}

	.pcc-tab.is-active {
		font-weight: 600;
		border-bottom-color: transparent;
	}

	/* +/− icon box */
	.pcc-tab__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 32px;
		height: 32px;
		border: 1.5px solid var(--wp--preset--color--accent-1);
		border-radius: 6px;
		margin-right: 14px;
		font-size: 20px;
		line-height: 1;
		color: var(--wp--preset--color--accent-1);
	}

	.pcc-tab__icon::before {
		content: '+';
	}

	.pcc-tab.is-active .pcc-tab__icon::before {
		content: '−';
	}

	.pcc-panel {
		display: none;
		order: unset;
		flex-basis: unset;
		padding-top: 0;
	}

	.pcc-panel.is-active {
		display: block;
		padding: 4px 0 20px;
	}
}

/* =============================================
   Metier — Extra info / reviews (single-product)
   ============================================= */

/* Shared base styles (section, layout, sidebar heading, content, p)
   are defined in course-content.css — load that first. */

.pei-layout {
	/*border-top: 1px solid rgba(14, 31, 77, 0.1);*/
}

.pei-layout:first-child {
	padding-top: 0;
	border-top: none;
}

/* Attribute list */
.pei-attribute {
	display: grid;
	grid-template-columns: 20% 1fr;
	gap: 0.5rem 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(14, 31, 77, 0.08);
	align-items: baseline;
	font-size: 1rem;
}

.pei-attribute:first-child {
	padding-top: 0;
}

.pei-attribute:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.pei-attribute-label {
	font-size: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
}

.pei-attribute-value {
	font-size: inherit;
	color: var(--wp--preset--color--accent-1);
}

@media (max-width: 600px) {
	.pei-attribute {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

/* Review list */
.pei-reviews {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pei-review {
	border: 1px solid rgba(14, 31, 77, 0.12);
	border-radius: 8px;
	padding: 20px 24px;
}

.pei-review__header {
	font-size: 0.9rem;
	margin-bottom: 8px;
	color: var(--wp--preset--color--accent-1);
}

.pei-review__author {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1);
}

.pei-review__date::before {
	content: ' – ';
}

.pei-review__body {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--accent-1);
}

.pei-review__body p {
	margin: 0;
}

.pei-review--hidden {
	display: none;
}

.pei-reviews-toggle {
	display: block;
	margin: 24px auto 0;
	background: none;
	border: none;
	border-bottom: 1.5px solid var(--wp--preset--color--accent-1);
	padding: 0 0 4px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s;
}

.pei-reviews-toggle::after {
	content: '';
	display: inline-block;
	width: 11px;
	height: 6px;
	margin-left: 8px;
	background-image: url("data:image/svg+xml,%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.203829 0.214054C-0.0679434 0.473514 -0.0679434 0.914595 0.203829 1.2L5.09574 5.84432C5.31316 6.05189 5.69364 6.05189 5.91106 5.84432L10.7758 1.2C11.0747 0.914594 11.0747 0.473513 10.7758 0.214054C10.504 -0.0713515 10.042 -0.0713515 9.77023 0.214054L5.5034 4.26162L1.23657 0.214054C0.964793 -0.0713511 0.502779 -0.0713511 0.203829 0.214054Z' fill='%2300205B'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	vertical-align: middle;
	transition: transform 0.2s;
}

.pei-reviews-toggle.is-expanded::after {
	transform: rotate(180deg);
}

.pei-reviews-toggle:hover {
	opacity: 0.7;
}

.review-content {
	padding-top: 2rem;
	padding-bottom: 2rem;

	p {
		font-size: 1rem;
	}
}

/* Mobile */
@media (max-width: 1200px) {
	/*.pei-section {*/
	/*	padding: 40px 0;*/
	/*}*/

	.pei-layout {
	/*	gap: 20px;*/
		padding: 0 2rem;
	}

	/*.pei-layout:first-child {*/
	/*	padding-top: 40px;*/
	/*}*/
}

/* =============================================
   Metier — Header search toggle + panel
   ============================================= */

.header-search-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: currentColor;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	transition: opacity 0.15s;
}

.header-search-btn:hover {
	opacity: 0.7;
}

.header-search-panel {
	overflow: hidden;
	max-height: 0;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: max-height 0.25s ease, border-color 0.25s;
}

body.header-search-open .header-search-panel {
	max-height: 120px;
	border-bottom-color: #e5e7eb;
}

.header-search-panel__inner {
	max-width: var(--wp--style--global--wide-size, 1340px);
	margin: 0 auto;
	padding: 20px 24px;
}

.header-search-panel__form {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #c8c8c8;
	padding: 0 20px;
	background: #fff;
}

.header-search-panel__icon {
	flex-shrink: 0;
	color: #9ca3af;
}

.header-search-panel__form:focus-within {
	border-color: var(--wp--preset--color--accent-1);
}

.header-search-panel__input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1.125rem;
	font-family: inherit;
	color: var(--wp--preset--color--accent-1);
	padding: 18px 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
}

.header-search-panel__input::placeholder { color: #9ca3af; }
.header-search-panel__input::-webkit-search-cancel-button { display: none; }

/* Mega Menu - complete styles (plugin CSS output disabled) */

/* Reset base */
#mega-menu-wrap-primary,
#mega-menu-wrap-primary *,
#mega-menu-wrap-primary *::before,
#mega-menu-wrap-primary *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

#mega-menu-wrap-primary {
  /*position: relative;*/
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;

  /* Mobile toggle: hidden on desktop */
  .mega-menu-toggle {
    display: none;
  }

  /* Top-level menu bar */
  #mega-menu-primary {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;

    .mega-menu-link {
      text-decoration: none;
    }


    /* Top-level items */
    & > li.mega-menu-item {

      & > a.mega-menu-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
        color: var(--wp--preset--color--contrast, #0b0b0c);
        text-decoration: none;
        font-size: var(--wp--preset--font-size--medium);
        white-space: nowrap;
        transition: all .3s ease-in-out;

        &:hover,
        &[aria-expanded="true"] {
          /*color: #0b0b0c;*/

          .mega-menu-link-text {
            text-decoration: underline;
          }
        }
      }

      /* Dropdown indicator arrow */
      .mega-indicator {
        display: inline-block;
        margin-left: 0.15rem;
        font-size: 0.7em;
        rotate: -90deg;
        transition: rotate 0.2s;
        pointer-events: none;
        text-decoration: none;

        &::after {
          content: "\2193";
        }
      }

      /* Kontakt pill button */
      &.mega-menu-btn > a.mega-menu-link,
      &.mega-menu-kontakt > a.mega-menu-link {
        background-color: var(--wp--preset--color--accent-1, #00205b);
        color: #fff;
        border-radius: 9999px;
        padding: 0.4rem 1.25rem;

        &:hover {
          opacity: 0.85;
        }
      }

      /* --- Mega dropdown panel (grid type) --- */
      &.mega-menu-grid > ul.mega-sub-menu {
        display: none;
        position: absolute;
        left: 50%;
        top: 100%;
        width: 100vw;
        transform: translateX(-50%);
        z-index: 999;
        background: #fff;
        /*border-top: 1px solid #eee;*/
        box-shadow: 0 20px 5px 10px rgba(0, 0, 0, 0.08);
        padding: 2.5rem 0;

        a {

          .mega-menu-link-text,
          span {
            font-weight: 300;
            /*font-weight: inherit;*/
          }
        }

        /* Grid row */
        li.mega-menu-row {
          max-width: var(--wp--style--global--wide-size, 1340px);
          margin-inline: auto;

          @media (min-width: 768px) {
            padding-inline: 2rem;
          }

          @media (min-width: 1400px) {

            padding-inline: 0;
          }
        }

        li.mega-menu-row > ul.mega-sub-menu {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
          gap: 3rem;
        }

        /* Nested sub-menu spacing */
        ul.mega-sub-menu ul.mega-sub-menu {
          margin-top: 1rem;
        }

        /* Columns */
        li.mega-menu-column + li.mega-menu-column {
          border-left: 1px solid #eee;
          padding-left: 3rem;
        }

        li.mega-menu-column {
          & > ul.mega-sub-menu {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;

            @media (min-width: 769px) {
              grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
            }

            @media (min-width: 769px) {
              & > li + li {
                border-left: 1px solid #eee;
                padding-left: 3rem;
              }
            }
          }

          /* Column heading */
          li.mega-menu-item-has-children > a.mega-menu-link {
            font-weight: 500;
            color: var(--wp--preset--color--contrast, #0b0b0c);
            padding: 0 0 0.75rem 0;
            pointer-events: none;
            font-size: var(--wp--preset--font-size--small);

            @media (min-width: 769px) {
              font-size: var(--wp--preset--font-size--medium);
            }

            span,
            .mega-menu-link-text {
              font-weight: inherit;
            }

            .mega-indicator {
              display: none;
            }
          }

          /* Column sub-items */
          li.mega-menu-item-has-children > ul.mega-sub-menu {
            display: block;

            li.mega-menu-item {
              a.mega-menu-link {
                display: inline-flex;
                align-items: center;
                padding: 0.3rem 0 0.3rem 1.25rem;
                color: var(--wp--preset--color--contrast, #0b0b0c);
                text-decoration: none;
                position: relative;

                font-size: var(--wp--preset--font-size--small);

                @media (min-width: 769px) {
                  font-size: var(--wp--preset--font-size--medium);
                }

                &::before {
                  content: "\2192";
                  position: absolute;
                  left: 0;
                  font-size: 16px;
                  color: var(--wp--preset--color--contrast, #0b0b0c);
                }

                &:hover {
                  text-decoration: underline;
                }
              }
            }
          }
        }

        /* Widget block titles (e.g. "Siste nytt") */
        h4.mega-block-title {
          font-weight: 500;
          font-size: var(--wp--preset--font-size--small);
          color: var(--wp--preset--color--contrast, #0b0b0c);
          padding-bottom: 0.75rem;

          @media (min-width: 769px) {
            font-size: var(--wp--preset--font-size--medium);
          }
        }

        /* Widget list items (e.g. recent posts) */
        .widget_recent_entries ul li {
          padding: 0.3rem 0 0.3rem 1.25rem;
          position: relative;

          &::before {
            content: "\2192";
            position: absolute;
            left: 0;
          }

          a {
            color: var(--wp--preset--color--contrast, #0b0b0c);
            text-decoration: none;
            font-size: var(--wp--preset--font-size--medium);

            &:hover {
              text-decoration: underline;
            }
          }
        }

        /* Recent posts with featured image widget */
        .metier-recent-posts {
          display: flex;
          flex-direction: column;
          gap: 1rem;
          list-style: none;
          padding: 1rem 0 0 0;
          margin: 0;

          li {
            display: flex;
            align-items: center;
            gap: 0.75rem;

            img {
              width: 60px;
              height: 60px;
              object-fit: cover;
              border-radius: 4px;
              flex-shrink: 0;
            }

            a {
              color: var(--wp--preset--color--contrast, #0b0b0c);
              text-decoration: none;
              font-size: var(--wp--preset--font-size--small);

              @media (min-width: 769px) {
                font-size: var(--wp--preset--font-size--medium);
              }

              &:hover {
                text-decoration: underline;
              }
            }
          }
        }
      }

      /* Rotate indicator when toggled open (desktop only) */
      @media (min-width: 769px) {
        &.mega-toggle-on > a.mega-menu-link .mega-indicator {
          rotate: 0deg;
        }
      }

      /* Show dropdown when toggled open (all screens) */
      &.mega-menu-grid.mega-toggle-on > ul.mega-sub-menu {
        display: block;
      }

      /* --- Flyout dropdown (simple sub-menus) --- */
      &.mega-menu-flyout {
        position: relative;
      }

      &.mega-menu-flyout > ul.mega-sub-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 999;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        padding: 0.5rem 0;
        min-width: 200px;

        li.mega-menu-item a.mega-menu-link {
          display: block;
          padding: 0.4rem 1.25rem;
          color: var(--wp--preset--color--contrast, #0b0b0c);
          text-decoration: none;
          font-size: var(--wp--preset--font-size--medium);
          white-space: nowrap;

          &:hover {
            background-color: #f5f5f5;
          }
        }
      }


      &.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu {
        display: block;
      }
    }
  }

  /* Close button: hidden on desktop */
  button.mega-close,
  button.metier-mobile-close {
    display: none;
  }
}

/* Mobile: slide-in drawer from right */
@media (max-width: 768px) {
  #mega-menu-wrap-primary {
    .mega-menu-toggle {
      display: flex;
      align-items: center;
    }

    .mega-toggle-animated {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;

      .mega-toggle-animated-box {
        display: block;
        width: 24px;
        height: 18px;
        position: relative;
      }

      .mega-toggle-animated-inner,
      .mega-toggle-animated-inner::before,
      .mega-toggle-animated-inner::after {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--wp--preset--color--contrast, #0b0b0c);
        position: absolute;
        content: "";
      }

      .mega-toggle-animated-inner {
        top: 50%;
        transform: translateY(-50%);

        &::before { top: -7px; }
        &::after { bottom: -7px; }
      }
    }

    button.metier-mobile-close {
      display: flex;
      align-self: flex-end;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.25rem;
      font-size: 1.5rem;
      line-height: 1;
      color: var(--wp--preset--color--contrast, #0b0b0c);
      margin-bottom: 1rem;
    }

    #mega-menu-primary {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 85vw;
      max-width: 400px;
      background: #fff;
      box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
      z-index: 9999;
      flex-direction: column;
      gap: 0;
      padding: 1.5rem;
      overflow-y: auto;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      display: flex;

      & > li.mega-menu-item {
        border-bottom: 1px solid #f0f0f0;
        width: 100%;

        & > a.mega-menu-link {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 0.85rem 0;

          font-size: var(--wp--preset--font-size--medium);
          color: var(--wp--preset--color--contrast, #0b0b0c);
          text-decoration: none;
        }

        .mega-indicator {
          transition: rotate 0.25s ease;
        }

        &.metier-open > a .mega-indicator {
          rotate: 0deg;
        }

        /* Kontakt pill on mobile */
        &.mega-menu-kontakt {
          border-bottom: none;

          & > a.mega-menu-link {
            background-color: var(--wp--preset--color--accent-1, #00205b);
            color: #fff;
            border-radius: 9999px;
            padding: 0.6rem 1.25rem;
            margin: 1rem 0;
            justify-content: center;
          }
        }



        /* No underline on any menu links */
        ul.mega-sub-menu a,
        ul.mega-sub-menu a:hover,
        & > a.mega-menu-link,
        & > a.mega-menu-link:hover {
          text-decoration: none;
        }

        /* Sub-menus: accordion style */
        &.mega-menu-grid > ul.mega-sub-menu,
        &.mega-menu-flyout > ul.mega-sub-menu {
          display: none;
          position: static;
          box-shadow: none;
          min-width: 0;
          padding: 0 0;
          width: auto;
          transform: none;
          left: auto;

          @media (min-width: 769px) {
            padding: 0.25rem 0 0.75rem 1rem;
          }
        }

        &.mega-menu-grid.metier-open > ul.mega-sub-menu,
        &.mega-menu-flyout.metier-open > ul.mega-sub-menu {
          padding: 0 0;
          display: block;

          @media (min-width: 1024px) {
            padding: 1rem 0;
          }
        }

        /* Sub-menu grid columns stack on mobile */
        &.mega-menu-grid > ul.mega-sub-menu li.mega-menu-row > ul.mega-sub-menu {
          display: flex;
          flex-direction: column;
          gap: 1rem;
        }

        /* Remove column borders on mobile */
        &.mega-menu-grid > ul.mega-sub-menu li.mega-menu-column + li.mega-menu-column {
          border-left: none;
          padding-left: 0;
          border-top: 1px solid #eee;
          padding-top: 1rem;
        }
      }
    }
  }

  /* Dim overlay behind drawer */
  body.mega-menu-primary-mobile-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
  }

  /* Slide drawer in when open */
  body.mega-menu-primary-mobile-open #mega-menu-wrap-primary #mega-menu-primary {
    transform: translateX(0);
  }

  /* Restore mini cart icon size */
  body .wc-block-mini-cart__button .wc-block-mini-cart__icon {
    width: 30px;
    height: 30px;
  }
}

#mega-menu-wrap-primary a:focus {
  outline: none;
}

/* Sub-menu link swipe on hover — excludes top-level links and pointer-events:none headings */
@media (min-width: 769px) {
  #mega-menu-wrap-primary ul.mega-sub-menu a.mega-menu-link {
    transition: transform 0.3s ease-in-out;
  }

  #mega-menu-wrap-primary ul.mega-sub-menu a.mega-menu-link:hover {
    transform: translateX(16px);
  }
}

.metier-search {
	max-width: 1100px;
	margin: 60px auto;
	padding: 0 24px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	color: var(--wp--preset--color--accent-1);
}

/* ── Search box ── */
.metier-search__form {
	display: flex;
	align-items: center;
	border: 1px solid #c8c8c8;
	padding: 0 20px;
	gap: 12px;
	background: #fff;
}

.metier-search__form:focus-within {
	border-color: var(--wp--preset--color--accent-1);
}

.metier-search__icon {
	flex-shrink: 0;
	color: #9ca3af;
}


.metier-search__input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1.125rem;
	font-family: inherit;
	color: var(--wp--preset--color--accent-1);
	padding: 18px 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
}

.metier-search__input::placeholder { color: #9ca3af; }
.metier-search__input::-webkit-search-cancel-button { display: none; }

.metier-search__clear {
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
	line-height: 1;
	font-size: 1.25rem;
	display: flex;
	align-items: center;
}
.metier-search__clear:hover { color: var(--wp--preset--color--accent-1); }

/* ── Meta + facets ── */
.metier-search__meta {
	margin-top: 3.5rem;
	margin-bottom: 2.5rem;
	font-size: 1rem;
}

.metier-search__facets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.metier-search__facet {
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-1);
	transition: background 0.15s, color 0.15s;
}
.metier-search__facet:hover { background: #ffd4c8; }
.metier-search__facet--active { background: var(--wp--preset--color--accent-1); color: #fff; }
.metier-search__facet--active:hover { color: var(--wp--preset--color--accent-1)  }
.metier-search__facet--toggle { background: transparent; color: var(--wp--preset--color--accent-1); text-decoration: underline; padding: 8px 4px; }
.metier-search__facet--toggle:hover { background: transparent; color: var(--wp--preset--color--accent-1); }

/* ── Result cards ── */
.metier-search__results {
	list-style: none;
	padding: 0;
	margin: 3rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}


.metier-search__result {
	display: flex;
	text-decoration: none;
	gap: 48px;

	padding-bottom: 0;
	margin: 0;
	border-bottom: 1px solid #e5e7eb;

	/*&:hover {*/
	/*	background:  var(--wp--preset--color--accent-2);*/
	/*}*/
}
.metier-search__result:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.metier-search__result-image {
	flex: 0 0 335px;
	/*width: 335px;*/
	aspect-ratio: 8 / 7;
	overflow: hidden;
	background: #f3f4f6;
}
.metier-search__result-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.metier-search__result-post-type {
	font-size: 0.8rem;
	font-weight: bold;
}

.metier-search__result-body {
	flex: 1;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.metier-search__result-category {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--accent-1);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 14px;
}

.metier-search__result-title {
	display: block;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.35;
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
	margin-bottom: 0.8rem;
	margin-top: 0;
}
.metier-search__result-title em {
	font-style: normal;
	background: var(--wp--preset--color--accent-2);
}

.metier-search__result-excerpt {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #374151;
	margin: 0 0 20px;
}
.metier-search__result-excerpt em {
	font-style: normal;
	background: var(--wp--preset--color--accent-2);
}

.metier-search__result-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.95rem;
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: transform 0.35s ease;
}

.metier-search__result:hover .metier-search__result-link {
	transform: translateX(20px);
}

/* ── States ── */
.metier-search__empty,
.metier-search__error {
	margin-top: 36px;
	font-size: 0.95rem;
	color: #6b7280;
}
.metier-search__error { color: #b91c1c; }

/* ── Spinner ── */
.metier-search__spinner {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 40px;
}
.metier-search__spinner span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.2;
	animation: metier-search-bounce 1s ease-in-out infinite;
}
.metier-search__spinner span:nth-child(2) { animation-delay: .15s; }
.metier-search__spinner span:nth-child(3) { animation-delay: .3s; }
@keyframes metier-search-bounce {
	0%, 80%, 100% { opacity: .2; transform: scale(.8); }
	40%            { opacity: 1;  transform: scale(1); }
}

@media (max-width: 768px) {
	.metier-search__result { flex-direction: column; gap: 20px; }
	.metier-search__result-image { flex: none; width: 100%; }
}
/* =============================================
   Metier — FAQ accordion (single-product)
   ============================================= */

.pfaq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pfaq-item {
	background-color: #fff;
	border: 1px solid #F0F1F5;
	border-radius: 8px;
	overflow: hidden;
}

.pfaq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
	list-style: none;

	&:focus {
		outline: none;
	}

	&::-webkit-details-marker {
		display: none;
	}

	&::after {
		content: '';
		flex-shrink: 0;
		width: 11px;
		height: 6px;
		background-image: url("data:image/svg+xml,%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.203829 0.214054C-0.0679434 0.473514 -0.0679434 0.914595 0.203829 1.2L5.09574 5.84432C5.31316 6.05189 5.69364 6.05189 5.91106 5.84432L10.7758 1.2C11.0747 0.914594 11.0747 0.473513 10.7758 0.214054C10.504 -0.0713515 10.042 -0.0713515 9.77023 0.214054L5.5034 4.26162L1.23657 0.214054C0.964793 -0.0713511 0.502779 -0.0713511 0.203829 0.214054Z' fill='%2300205B'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: contain;
		transition: transform 0.2s;
	}
}

.pfaq-item[open] .pfaq-question::after {
	transform: rotate(180deg);
}

.pfaq-answer {
	padding: 0 1.5rem 1.5rem;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--accent-1);
}
/* =============================================
   Metier — Shop hero + search (archive-product)
   ============================================= */

.psh-hero {
	background-color: #FFEAE4;
	padding: 64px var(--wp--preset--spacing--40);

	@media (max-width: 768px) {
		padding: 40px var(--wp--preset--spacing--40);
	}
}

/* Constrain the hero column to match Figma (600px, centered). The template
   also applies .pcc-container, whose max-width is the full wide-size; this
   rule loads later (alphabetical concat) and wins on equal specificity. */
.psh-hero__inner {
	max-width: 600px;
}

.psh-hero__content {
	color: var(--wp--preset--color--accent-1);
}

.psh-hero__content h1,
.psh-hero__content h2 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

.psh-hero__content p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

.psh-search {
	position: relative;
	background-color: #fff;
	border-radius: 8px;
	padding: 1rem 1.25rem 0.875rem;
}

.psh-search--ai {
	padding-bottom: 3.5rem;
}

.psh-search__input {
	display: block;
	width: 100%;
	border: none;
	outline: none;
	resize: none;
	background: transparent;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wp--preset--color--accent-1);
	padding: 0;
	padding-right: 190px;
}

/* Overrides .woocommerce form textarea { min-height: 100px } from
   woocommerce-blocktheme.css, which otherwise forces the single-row
   default search box taller than intended. */
.woocommerce form textarea.psh-search__input {
	min-height: unset;
	padding: 0.5rem 0;
}

.psh-search--ai .psh-search__input {
	padding-right: 0;
	max-width: 70%;
}

.psh-search__input::placeholder {
	color: rgba(0, 32, 91, 0.5);
}

.psh-search__modes {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background-color: #F0F1F5;
	border: 1px solid rgba(89, 116, 141, 0.2);
	border-radius: 999px;
	padding: 3px;
}

.psh-search__ai-submit {
	position: absolute;
	bottom: 0.875rem;
	right: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 24px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.psh-search__ai-submit:hover {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent);
}

.psh-search__thumb {
	position: absolute;
	top: 0;
	left: 0;
	background-color: #fff;
	border-radius: 999px;
	box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
	pointer-events: none;
}

.psh-search__mode-field {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.psh-search__mode-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	background: none;
	border: none;
	border-radius: 999px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
	white-space: nowrap;
}

.psh-quicklinks {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.psh-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #F9D8CE;
	border-radius: 30px;
	padding: 11px 19px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.psh-chip__arrow {
	transform: rotate(180deg);
}

.psh-link {
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.psh-chip:hover,
.psh-link:hover {
	opacity: 0.8;
}

/* ---- Featured product banner ---- */

.pfp-section {
	display: flex;
	gap: 4rem;
	align-items: center;
	background-color: rgba(180, 219, 255, 0.3);
	border: 1px solid #F0F1F5;
	border-radius: 8px;
	padding: 40px;
	margin: 40px auto;
	box-sizing: border-box;
	max-width: min(var(--wp--style--global--wide-size), calc(100% - 2 * var(--wp--preset--spacing--40)));

	@media (max-width: 900px) {
		flex-direction: column;
		gap: 24px;
		padding: 24px;
	}
}

.pfp-media {
	position: relative;
	flex: 0 0 40%;
	max-width: 480px;
}

.pfp-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.pfp-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: #fff;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.875rem;
	font-weight: 600;
	padding: 8px 20px;
	border-radius: 30px;
}

.pfp-details {
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: center;
}

.pfp-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1);
	margin: 0;
}

.pfp-excerpt {
	font-size: 1rem;
	line-height: 1.5;
	color: #414148;
	margin: 0;
}

.pfp-price {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
}

.pfp-price del {
	opacity: 0.7;
	margin-right: 0.5em;
}

.pfp-price del {
	text-decoration: line-through;
}

.pfp-price ins {
	text-decoration: underline;
}

.pfp-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 8px 30px;
	border-radius: 30px;
	background: var(--wp--preset--color--accent-1);
	color: #F0F1F5;
	font-size: 0.9375rem;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s;
}

.pfp-cta:hover {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent);
	color: #F0F1F5;
}

/* ---- Product filters ---- */

.psf-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: var(--wp--style--global--wide-size);
	margin: 2rem auto 0;
	padding: 0 var(--wp--preset--spacing--40);
	justify-content: end;
}

.psf-dropdown {
	position: relative;
	display: inline-grid;
}

/*
 * The trigger and the sizer share one grid cell, so the auto-sized column
 * grows to whichever is wider: the trigger (label + chevron + clear) or the
 * widest option. This sizes the closed button to the longest option with no JS.
 */
.psf-dropdown__sizer,
.psf-dropdown__trigger {

	grid-area: 1 / 1;
}

.psf-dropdown__sizer {
	height: 0;
	overflow: hidden;
	visibility: hidden;
	/* mirror .psf-dropdown__panel horizontal padding so widths match */
	padding: 0 17px;
}

.psf-dropdown__sizer span {
	display: block;
	white-space: nowrap;
	font-size: 1rem;
	line-height: 22px;
}

.psf-dropdown__trigger {
	box-sizing: border-box;
	display: flex;
	/*width: 100%;*/
	align-items: center;
	gap: 10px;
	background-color: #fff;
	border: 1px solid var(--wp--preset--color--accent-1);
	border-radius: 8px;
	font-size: 1rem;
	color: var(--wp--preset--color--accent-1);
}

.psf-dropdown--open .psf-dropdown__trigger {
	border-bottom: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.psf-dropdown__trigger-label {
	display: inline-flex;
	width: 100%;
	justify-content: space-between;
	box-sizing: border-box;
	align-items: center;
	gap: 20px;
	background: none;
	border: none;
	padding: 1rem;
	font-family: inherit;
	font-size: 1rem;
	color: inherit;
	cursor: pointer;
}

.psf-dropdown__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 1rem 1rem 1rem 0;
	font-family: inherit;
	font-size: 1.2rem;
	line-height: 1;
	color: inherit;
	cursor: pointer;
}

.psf-dropdown__chevron {
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.psf-dropdown--open .psf-dropdown__chevron {
	transform: rotate(180deg);
}

.psf-dropdown__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background-color: #fff;
	border: 1px solid var(--wp--preset--color--accent-1);
	border-top: none;
	border-radius: 0 0 8px 8px;
	padding: 4px 17px 14px;
}

.psf-dropdown__option {
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: 1rem;
	line-height: 22px;
	color: var(--wp--preset--color--accent-1);
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}

.psf-dropdown__option--active {
	font-weight: 600;
}

/* ---- Mobile filter bar + modal ---- */

.psf-bar-mobile {
	display: none;
}

.psf-mobile-filter-btn {
	background: none;
	padding: 1rem;
	cursor: pointer;
}

.psf-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	padding: 1.25rem;
}

.psf-modal {
	width: 100%;
	max-width: 480px;
	max-height: 80vh;
	overflow-y: auto;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 32, 91, 0.12);
	padding: 1.25rem;
}

.psf-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.psf-modal__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
	margin: 0;
}

.psf-modal__close {
	background: none;
	border: none;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
}

.psf-modal__body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.psf-modal__body .psf-dropdown {
	display: grid;
	width: 100%;
}

.psf-modal__body .psf-dropdown__trigger {
	/*width: 100%;*/
}

/* Open dropdown in the modal mirrors desktop: the trigger connects downward
   (base open state drops its bottom border + corners) and the static panel
   carries the border around the options, forming one enclosed box. */
.psf-modal__body .psf-dropdown__panel {
	position: static;
	border: 1px solid var(--wp--preset--color--accent-1);
	border-top: none;
	border-radius: 0 0 8px 8px;
	padding: 8px 17px 14px;
}

body.psf-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.psf-bar {
		display: none;
	}

	.psf-bar-mobile {
		display: flex;
		align-items: center;
		justify-content: end;
		gap: 8px;
		max-width: var(--wp--style--global--wide-size);
		margin: 2rem auto 0;
		padding: 0 var(--wp--preset--spacing--40);
	}

	/*
	 * Sort dropdown in the mobile bar: keep the trigger compact (label only)
	 * instead of the widest-option width, so it doesn't overflow the viewport.
	 */
	.psf-bar-mobile .psf-dropdown__sizer {
		display: none;
	}

	/* Open as a right-anchored floating menu that grows leftward, on-screen. */
	.psf-bar-mobile .psf-dropdown--open .psf-dropdown__trigger {
		border-bottom: 1px solid var(--wp--preset--color--accent-1);
		border-radius: 8px;
	}

	.psf-bar-mobile .psf-dropdown__panel {
		top: calc(100% + 4px);
		left: auto;
		right: 0;
		width: max-content;
		min-width: 100%;
		max-width: 90vw;
		border: 1px solid var(--wp--preset--color--accent-1);
		border-radius: 8px;
		box-shadow: 0 8px 24px rgba(0, 32, 91, 0.12);
	}
}

/* ---- AI recommendation panel ---- */

/* Full-bleed band like .psh-hero: the background spans the viewport and the
   inner wrapper keeps the content on the shared wide-size grid. */
.psf-ai-panel {
	padding: 2rem var(--wp--preset--spacing--40);
	background-color: #EAF0FE;
}

.psf-ai-panel__inner {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
}

.psf-ai-panel__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 1.25rem;
	font-size: 1.65rem;
	font-weight: 400;
	color: var(--wp--preset--color--accent-1);
}

.psf-ai-panel__status {
	margin: 0;
	font-size: 0.95rem;
	color: var(--wp--preset--color--accent-1);
}

.psf-ai-panel__status--error {
	color: #B3261E;
}

.psf-ai-panel__content {
	position: relative;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--wp--preset--color--accent-1);
	overflow: hidden;
}

.psf-ai-panel__content--collapsed {
	max-height: 260px;
	mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.psf-ai-panel__content p {
	margin: 0 0 1em;
}

.psf-ai-panel__content ol,
.psf-ai-panel__content ul {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.psf-ai-panel__content li {
	margin-bottom: 0.75em;
}

.psf-ai-panel__content strong {
	font-weight: 700;
}

.psf-ai-panel__content a {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

.psf-ai-panel__toggle-container {
	display: flex;
	justify-content: center;
}

.psf-ai-panel__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0.5rem;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
}

.psf-ai-panel__toggle-chevron {
	transition: transform 0.15s ease;
}

.psf-ai-panel__toggle-chevron--open {
	transform: rotate(180deg);
}

/* ---- Dummy course card grid ---- */

.psc-section {
	padding: 0 var(--wp--preset--spacing--40) 60px;
}

.psc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.6rem;
	max-width: var(--wp--style--global--wide-size);
	margin: 40px auto 0;

	@media (max-width: 640px) {
		gap: 0.5rem;
	}
}

.psc-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #F0F1F5;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
}

.psc-card:hover {
	border-color: var(--wp--preset--color--accent-1);
}

.psc-card__media {
	position: relative;
	/*aspect-ratio: 4 / 3;*/
	/*background: linear-gradient(135deg, #dbe2ea, #b9c4d1);*/
}

.metier-product-search .psc-grid .psc-card__image {
	width: 100%;
	/*height: 100%;*/
	object-fit: cover;
}

.psc-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background-color: #fff;
	border-radius: 30px;
	padding: 8px 20px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
}

.psc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
	padding: 20px;

	@media (max-width: 768px) {
		padding: 10px;
	}
}

.psc-card__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1);

	@media (max-width: 640px) {
		font-size: 1rem;
	}
}

.psc-card__excerpt {
	flex: 1;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--wp--preset--color--accent-1);
}

.psc-card__meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 4px;

	@media (max-width: 640px) {
		display: flex;
		gap: 0.5rem;
	}
}

.psc-card__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background-color: #F5F6F8;
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
}

@media (max-width: 1200px) {
	.psc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.psc-grid {
		/*grid-template-columns: repeat(1, 1fr);*/
	}

	.hide-on-mobile {
		display: none;
	}
}

/*@media (max-width: 640px) {*/
/*	.psc-grid {*/
/*		grid-template-columns: 1fr;*/
/*	}*/
/*}*/
/* =============================================
   Metier — Related products slider (single-product)
   ============================================= */

.prp-section {
	padding: 60px 0 40px;
	background-color: #fff;
}

.prp-heading {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1);
	margin: 0 0 28px;
}

/* Swiper wrapper — relative so the next button can be positioned */
.prp-swiper-wrapper {
	position: relative;
}

/* Cards */
.prp-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.prp-card__image img {
	width: 100%;
	/*aspect-ratio: 4 / 3;*/
	object-fit: cover;
	display: block;
}

.prp-card__body {
	padding: 16px 0 0;
}

.prp-card__title {
	font-size: 1.5rem;
	font-weight: 700;

	color: var(--wp--preset--color--accent-1);
	margin: 0 0 10px;
	line-height: 1.3;
}

.prp-card__excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--accent-1);
	margin: 0 0 16px;
}

.prp-card__link {
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	border-bottom: 1.5px solid var(--wp--preset--color--accent-1);
	padding-bottom: 2px;
}

/* Previous / Next buttons */
.prp-prev,
.prp-next {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prp-prev { left: -40px; }
.prp-next { right: -40px; }

.prp-next.swiper-button-disabled {
	opacity: 0.2;
	pointer-events: none;
}

/* Scrollbar */
.prp-scrollbar {
	margin-top: 32px;
	height: 3px;
	background: rgba(14, 31, 77, 0.12);
	border-radius: 2px;
}

.prp-scrollbar .swiper-scrollbar-drag {
	background: var(--wp--preset--color--accent-1);
	border-radius: 2px;
}

@media (max-width: 1200px) {
	.prp-section {
		padding-left: 2rem;
	}

	.prp-next {
		display: none;
	}

	.prp-swiper {
		overflow: hidden;
	}
}

/* =============================================
   Metier — Product sticky subnav (single-product)
   ============================================= */

.psn-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 1rem 2rem;
	background-color: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	@media (min-width: 1200px) {
		padding: 1rem 0;
	}
}

/*.psn-backdrop {*/
/*	background-color: rgba(255, 255, 255, 0.6);*/
/*	backdrop-filter: blur(8px);*/
/*	-webkit-backdrop-filter: blur(8px);*/
/*}*/

.psn-inner {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background-color: #ebebeb;
	border-radius: 10px;
	padding: 4px;
}

.psn-item {
	background: none;
	border: none;
	border-radius: 7px;
	height: 60px;
	padding: 0 20px;
	font-size: 1rem;
	font-weight: 400;
	color: var(--wp--preset--color--accent-1);
	cursor: pointer;
	font-family: inherit;
	transition: background 0.18s, color 0.18s;
	white-space: nowrap;
}

.psn-item:hover:not(.is-active) {
	background-color: #e0e0e0;
}

.psn-item.is-active {
	background-color: var(--wp--preset--color--accent-1);
	color: #fff;
	font-weight: 600;
}

/* Scroll offset so sticky nav doesn't cover the heading */
#course-content,
#course-extract,
#course-comments {
	scroll-margin-top: 80px;
}

@media (max-width: 900px) {
	.psn-nav {
		padding: 0.75rem 2rem;
	}

	.psn-inner {
		flex-direction: column;
		width: 100%;
		gap: 0;
		padding: 0;
		background: none;
		border-radius: 10px;
		overflow: hidden;
	}

	/* Active item acts as the collapsed trigger */
	.psn-item.is-active {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 14px 20px;
		font-size: 0.95rem;
		font-weight: 600;
		border-radius: 0;
	}

	.psn-item.is-active::after {
		content: '';
		display: inline-block;
		width: 11px;
		height: 6px;
		flex-shrink: 0;
		background-image: url("data:image/svg+xml,%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.203829 0.214054C-0.0679434 0.473514 -0.0679434 0.914595 0.203829 1.2L5.09574 5.84432C5.31316 6.05189 5.69364 6.05189 5.91106 5.84432L10.7758 1.2C11.0747 0.914594 11.0747 0.473513 10.7758 0.214054C10.504 -0.0713515 10.042 -0.0713515 9.77023 0.214054L5.5034 4.26162L1.23657 0.214054C0.964793 -0.0713511 0.502779 -0.0713511 0.203829 0.214054Z' fill='%23ffffff'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: contain;
		transition: transform 0.2s;
	}

	.psn-nav.is-open .psn-item.is-active::after {
		transform: rotate(180deg);
	}

	/* Non-active items hidden by default */
	.psn-item:not(.is-active) {
		display: none;
		width: 100%;
		padding: 13px 20px;
		font-size: 0.9rem;
		font-weight: 500;
		color: var(--wp--preset--color--accent-1);
		background-color: #ebebeb;
		border-radius: 0;
		text-align: left;
	}

	.psn-nav.is-open .psn-item:not(.is-active) {
		display: block;
	}
}

/* =============================================
   Metier — Product header (single-product)
   ============================================= */

.woocommerce-notices-wrapper {
    padding: 0;
    margin: 60px  auto 0 auto;
    max-width: var(--wp--style--global--wide-size);
}

.woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-breadcrumb {
    display: none;
}

.mph-header .woocommerce-variation-add-to-cart {
    display: flex;
    justify-content: start;
}

.mph-header .woocommerce-variation-add-to-cart .quantity {
    width: 0;
    overflow: hidden;
    margin: 0 !important;
}

.mph-container {
    padding: 2rem 2rem;
    background-color: var(--wp--preset--color--accent-2);

    @media (min-width: 1200px) {
        padding: 3.5rem 3.5rem;
    }
}

.mph-header {
    display: grid;
    grid-template-areas: "image details";
    grid-template-columns: 25% 1fr;
    gap: 60px;
    align-items: start;
    margin: 0 auto;
    max-width: var(--wp--style--global--wide-size);

}

.mph-header--image-right {
    grid-template-areas: "details image";
    grid-template-columns: 1fr 25%;
}

.mph-image  { grid-area: image; }
.mph-details { grid-area: details; }

@media (max-width: 900px) {
    .mph-header,
    .mph-header--image-right {
        display: flex;
        flex-direction: column;
        /*grid-template-areas: "image" "details";*/
        /*grid-template-columns: 1fr;*/
        gap: 1rem;
    }

    .mph-image {
        /*padding: 0 2rem;*/
    }
}

/* Image */
.mph-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.mph-image .wp-caption {
    margin: 0;
}

.mph-image .wp-caption figcaption {
    display: none;
}

/* Details column */
.mph-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Title */
.single-product #main .product .mph-title {
    font-weight: 600;
    color: var(--wp--preset--color--accent-1);
    margin: 2rem 0 0 0 ;
    line-height: 1.2;
    hyphens: auto;
}

/* Rating (WooCommerce outputs .woocommerce-product-rating) */
.mph-details .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--wp--preset--color--accent-1);
    margin: 0;
}

.mph-details .star-rating {
    font-size: 0.85rem;
    color: #f4a020;
}

.mph-details .woocommerce-review-link {
    color: var(--wp--preset--color--accent-1);
}

/* Meta row */
.mph-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;

    /*@media(min-width: 1200px) {*/
    /*	grid-template-columns: repeat(3, auto);*/
    /*	gap: 2rem;*/
    /*}*/

    @media(min-width: 1200px) {
        display: flex;
        grid-template-columns: unset;
        gap: 2rem;
    }

    @media(min-width: 1400px) {
        gap: 3rem;
    }
}

.mph-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 80px;
}

.mph-meta__icon {
    color: var(--wp--preset--color--accent-1);
    flex-shrink: 0;
    margin-top: 2px;
}

.mph-meta__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mph-meta__label {
    font-size: 0.875rem;
    color: #245787;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.mph-meta__value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wp--preset--color--accent-1);
    padding: 0;
    margin: 0;
}

/* Excerpt / short description */
.mph-excerpt {
    font-size: 1rem;
    color: var(--wp--preset--color--accent-1);
    line-height: 1.6;
    margin: 0;
}

.mph-excerpt p {
    margin: 0;
}

/* Price */
.mph-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wp--preset--color--accent-1);
    margin: 0;
}

.mph-price .woocommerce-Price-amount {
    font-size: 1.05rem;
    font-weight: 700;
}

.mph-price__vat {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--wp--preset--color--accent-1);
}

/* Actions row */
.mph-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    select {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 12px 22px;
        border: 1.5px solid var(--wp--preset--color--accent-1);
        border-radius: 50px;
        background: transparent;
        color: var(--wp--preset--color--accent-1);
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        font-family: inherit;
    }
}

.mph-actions form,
.mph-actions .variations_form ,
.mph-actions .cart {


    @media(min-width: 1200px) {
        display: flex;
        align-items: center;
        /*gap: 1rem;*/
    }
}

.woocommerce .mph-actions .variations {
    margin-bottom: 0 !important;
}


.woocommerce  .variations .label,
.woocommerce  .variations label {
    color: var(--wp--preset--color--accent-1);
}

.woocommerce  .variations select {
    color: var(--wp--preset--color--accent-1);
    border-color:  var(--wp--preset--color--accent-1);
    border-radius: 50px;
}

.woocommerce .mph-actions table.variations tr td,
.woocommerce .mph-actions table.variations tr th {
    padding-bottom: 0;
}


.woocommerce-variation {
    margin: 0 !important;
}

.woocommerce-variation div:empty,
.single_variation div:empty{
    display: none;

}

/*.mph-actions table.variations,*/
/*.mph-actions table.variations tbody,*/
/*.mph-actions table.variations tr {*/
/*	display: flex;*/
/*	align-items: center;*/
/*	gap: 8px;*/
/*}*/

/*.mph-actions table.variations th,*/
/*.mph-actions table.variations td {*/
/*	display: block;*/
/*	padding: 0;*/
/*}*/

.mph-actions .single_variation_wrap {

    margin-top: 1rem;

    @media(min-width: 1200px) {
        margin-top: 0;
        margin-left: 1rem;
    }
}

.mph-actions .woocommerce-variation.single_variation {
    display: none;
}

/* "Velg dato" button */
.mph-btn-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border: 1.5px solid var(--wp--preset--color--accent-1);
    border-radius: 50px;
    background: transparent;
    color: var(--wp--preset--color--accent-1);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.mph-btn-date:hover {
    background: var(--wp--preset--color--accent-1);
    color: #fff;
}

.mph-btn-date__chevron {
    font-size: 1.1em;
    line-height: 1;
}

/* "Legg i handlekurv" button */
.mph-cart-form {
    margin: 0;
}

.mph-btn-cart,
.mph-actions .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--wp--preset--color--accent-1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.mph-btn-cart:hover,
.mph-actions .single_add_to_cart_button:hover {
    background: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent);
    color: #fff;
}


.mph-on-demand {
    font-size: 1rem;
    /*font-weight: 600;*/
    color: var(--wp--preset--color--accent-1);
    padding: 0;
    margin: 0;
}