/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.4
Text Domain:  Avada
*/

/* EPMS mobile navigation backdrop */
@media (max-width: 1025px) {
  body:has(.fusion-tb-header .awb-menu.expanded) {
    overflow: hidden;
  }

  body:has(.fusion-tb-header .awb-menu.expanded)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(23, 47, 61, 0.72);
  }

  body:has(.fusion-tb-header .awb-menu.expanded) .fusion-tb-header {
    position: relative;
    z-index: 9999;
  }

  .fusion-tb-header .awb-menu.expanded .awb-menu__main-ul {
    max-height: calc(100dvh - 105px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}

/* EPMS mobile fair cards */
@media (max-width: 640px) {
  .fusion-text div:has(> .epms-fair-table) {
    overflow: visible !important;
  }

  .epms-fair-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 18px 0 26px !important;
    border-collapse: separate !important;
  }

  .epms-fair-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .epms-fair-table tbody {
    display: grid !important;
    gap: 16px;
    width: 100% !important;
  }

  .epms-fair-table tbody tr {
    display: block !important;
    width: 100% !important;
    overflow: hidden;
    background: #ffffff !important;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(23, 47, 61, 0.08);
  }

  .epms-fair-table tbody td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 16px !important;
    white-space: normal !important;
    border: 0 !important;
    border-bottom: 1px solid #e4e8eb !important;
  }

  .epms-fair-table tbody td:first-child {
    padding: 16px !important;
    color: #ffffff !important;
    background: #172f3d !important;
    font-size: 18px;
  }

  .epms-fair-table tbody td:first-child > a:not(.epms-fair-cta) {
    color: #ffffff !important;
  }

  .epms-fair-table tbody td:nth-child(2)::before,
  .epms-fair-table tbody td:nth-child(3)::before {
    display: block;
    margin-bottom: 3px;
    color: #66737c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .epms-fair-table tbody td:nth-child(2)::before {
    content: "Termin";
  }

  .epms-fair-table tbody td:nth-child(3)::before {
    content: "Personalbedarf";
  }

  .epms-fair-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  .epms-fair-table .epms-fair-cta {
    width: max-content;
    max-width: 100%;
    margin-top: 2px;
  }
}

/* EPMS full-width addon heroes */
.epms-fullwidth-hero {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: -50vw !important;
  margin-left: -50vw !important;
  box-sizing: border-box;
}

/* EPMS IMAGE PROVENANCE START */
.fusion-body .epms-fullwidth-hero {
  position: relative !important;
}

.fusion-body .epms-fullwidth-hero > .epms-image-credit {
  position: absolute !important;
  right: 16px !important;
  bottom: 12px !important;
  z-index: 12 !important;
  display: inline-flex !important;
  width: auto !important;
  max-width: calc(100% - 32px) !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(18, 38, 50, 0.58) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-align: right !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.fusion-body .epms-image-credit a,
.fusion-body .epms-image-credit a:hover,
.fusion-body .epms-image-credit a:focus {
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .fusion-body .epms-fullwidth-hero > .epms-image-credit {
    right: 10px !important;
    bottom: 8px !important;
    max-width: calc(100% - 20px) !important;
    padding: 3px 7px !important;
    font-size: 9px !important;
  }
}
/* EPMS IMAGE PROVENANCE END */
