.cpa-filter-buttons {
    border-radius: 5px;
    overflow: hidden;
    display: flex; /* Flex helyett, hogy blokk elemként viselkedjen */
    flex-wrap: wrap; /* EZ A SOR ENGEDÉLYEZI A TÖRDELÉST */
    justify-content: center; /* A gombok sorai középre lesznek igazítva */
    padding: 4px;
    gap: 8px;
}

.cpa-filter-buttons button {
    border: none;
    padding: 8px 16px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px; /* EZ AZ ÚJ SOR az állandó lekerekítéshez */
}

.cpa-filter-buttons button.active {
    background-color: #ff7800;
    color: #fff;
    /* A border-radius innen már nem kell, mert az alap stílus tartalmazza */
}

/* A szűrők teljes konténerének elrendezése */
#cpa-filter-container {
    display: flex;
    flex-direction: column; /* Elemek elrendezése függőlegesen */
    align-items: center;   /* Elemek középre igazítása vízszintesen */
    gap: 15px;
    margin-bottom: 20px;
}

/* A kereső doboz konténere */
.cpa-search-box {
    position: relative;
    width: 100%;           /* Teljes szélességet kap a megadott kereten belül */
    max-width: 300px;      /* Maximális szélesség 500px-ben limitálva */
}

/* A nagyító ikon (Dashicon) hozzáadása CSS-ből */
.cpa-search-box::before {
    content: '\f179'; /* A Dashicon keresés ikonjának kódja */
    font-family: 'dashicons';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9ca3af; /* Szürke ikon szín */
}

/* Maga a keresőmező (<input>) */
#cpa-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* A bal oldali padding helyet csinál az ikonnak */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Stílus a placeholder szövegnek */
#cpa-search-input::placeholder {
    color: #9ca3af;
}

/* Kinézet, amikor a felhasználó belekattint a keresőbe */
#cpa-search-input:focus {
    outline: none; /* A böngésző alapértelmezett "glow"-jának eltávolítása */
    border-color: #0073aa; /* A gombok aktív színéhez passzoló keret */
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2); /* Finom "glow" effekt */
}



/* ----------------------------------------- */
/* --- FRISSÍTETT Popup Stílusok --- */
/* ----------------------------------------- */

/* A háttér viselkedésének módosítása a görgetéshez */
/* Popup viselkedésének JAVÍTÁSA */
#cpa-popup-overlay {
    position: fixed; /* Visszaállítjuk fixed-re, hogy mindent lefedjen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* A teljes képernyőt kitölti */
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    padding: 60px 20px;
    
    /* A TRÜKK: Maga az áttetsző háttér lesz görgethető */
    overflow-y: auto; 
    
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#cpa-popup-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    padding: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 auto; /* Biztosítja a középre igazítást görgetéskor is */
    
    /* Levesszük a magasságkorlátot és a belső görgetést */
    /* A tartalom így szabadon megnyúlhat, amilyen hosszú csak akar */
}

#cpa-popup-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #63aa7d;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 40px;
    border-radius: 50%;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#cpa-popup-close:hover {
    background-color: #ff7800;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* A belső tartalom konténere */
.cpa-popup-details {
    padding: 0;
}

/* Kép banner stílusa */
.cpa-popup-image {
    max-height: 200px !important; /* KÉRT MÓDOSÍTÁS */
    max-width: 200px !important;
    overflow: hidden;
    margin-left: 30px;

}
.cpa-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px !important;
}

/* Cím stílusa */
.cpa-popup-title {
    font-size: 28px;
    padding: 20px 30px 0 30px;
    margin: 0;
}

/* Címkék stílusa (a kártyáéhoz hasonlóan) */
.cpa-popup-tags {
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cpa-popup-tags .cpa-tag {
    background-color: #f9c541;
    color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.8s ease-in-out;
}

.cpa-popup-tags .cpa-tag:hover {
    transform: scale(0.90);
   
}

/* Információs és Leírás boxok */
.cpa-popup-info-box,
.cpa-popup-description {
    background-color: #63aa7d; /* KÉRT MÓDOSÍTÁS (box háttér) */
    margin: 15px 30px;
    padding: 20px;
    border-radius: 5px;
}

 .cpa-popup-description {
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 20px;
    }

/* Információs boxon belüli bekezdések és ikonok */
.cpa-popup-info-box p {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}
.cpa-popup-info-box p:last-child {
    margin-bottom: 0;
}
.cpa-popup-info-box .dashicons {
    color: #f9c541; /* A kártya színéhez passzoló ikon szín */
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}
.cpa-popup-info-box a {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none;
    border-bottom: 0px solid #ddd;
}
.cpa-popup-info-box a:hover {
    color: #000;
    border-bottom-color: #333;
}

/* ----------------------------------------- */
/* --- FRISSÍTETT Árus Kártya Stílusok --- */
/* ----------------------------------------- */

/* Alapértelmezett (mobil): 1 oszlop */
#cpa-arus-list-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

/* Kisebb kijelző / Tablet nézet: 2 oszlop */
@media (min-width: 600px) {
    #cpa-arus-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Asztali nézet: 3 oszlop */
@media (min-width: 1024px) {
    #cpa-arus-list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cpa-arus-card {
    background-color: #63AA7D; /* Kártya háttérszíne */
    color: #fff;
    gap: 20px;
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: transform 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cpa-arus-card:hover {
    transform: scale(0.95);
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.cpa-card-left {
    position: relative;
    flex: 0 0 120px;
}

.cpa-card-left img {
  width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px !important;
}


/* ... a többi stílus ... */
.cpa-card-overlay-box {
    display: none !important;
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    padding: 5px 0;
    width: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.2;
}

.cpa-card-overlay-box span {
    display: block;
}

.cpa-card-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpa-card-tags {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cpa-card-tags .cpa-tag {
    background-color: #f9c541;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0px;
    white-space: nowrap;
    line-height: 0;
    text-transform: uppercase;
}

.cpa-card-title {
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0px !important;
    color: #ffffff !important;
}

.cpa-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpa-card-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cpa-card-icon {
    font-size: 18px;
    height: 18px;
    width: 18px;
    color: #f9c541;
}




/* ----------------------------------------- */
/* --- MOBILBARÁT NÉZET (600px alatt) --- */
/* ----------------------------------------- */
@media (max-width: 800px) {


    /* --- 2. POPUP ABLAK MOBILON --- */

    #cpa-popup-overlay {
        padding: 20px 10px; /* Kisebb térköz a popup körül */
    }
    
    .cpa-popup-content {
        padding: 0; /* A belső paddingot nullázzuk, mert az elemek maguk kapnak */
    }
    
    #cpa-popup-close {
        top: 15px;
        right: 15px;
    }

    .cpa-popup-image {
       max-height: 150px !important; /* KÉRT MÓDOSÍTÁS */
    max-width: 150px !important;
        margin-left: 0;
        border-radius: 8px; /* Csak a felső sarkok legyenek kerekítve */
        margin-left: 20px;
    }
    
    .cpa-popup-image img {
        border-radius: 8px 8px 0 0 !important;
    }

    .cpa-popup-title {
        padding: 20px 20px 0 20px; /* Kisebb oldalsó térközök */
        font-size: 24px;
    }

    .cpa-popup-tags {
        padding: 10px 20px;
    }

    .cpa-popup-info-box,
    .cpa-popup-description {
        margin: 15px 20px; /* Kisebb oldalsó térközök */
        padding: 15px;
    }
    
    .cpa-popup-description {
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 20px;
    }
    
}

/* ----------------------------------------- */
/* Csabai Piac – Árus regisztráció (melegebb tónusú verzió, mindent felülír) */
/* ----------------------------------------- */

body.page-template-arus-regisztracios-oldal {
  background: #f7f6f2 !important;
}

/* Üdvözlő fejléc */
.arus-reg-header {
  text-align: center !important;
  margin-top: 60px !important;
  margin-bottom: 40px !important;
}

.arus-reg-header h1 {
  font-size: 42px !important;
  letter-spacing: 0px !important;
  font-weight: 800 !important;
  color: #009688 !important;
  margin-bottom: 10px !important;
}

.arus-reg-header p {
  font-size: 18px !important;
  color: #3a3a3a !important;
  line-height: 1.6 !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

.arus-reg-header::after {
  content: "" !important;
  display: block !important;
  width: 80px !important;
  height: 4px !important;
  background-color: #ff7800 !important;
  margin: 25px auto 0 !important;
  border-radius: 4px !important;
}

/* Fő űrlapdoboz */
.acf-form {
  background: #fff !important;
  border-radius: 14px !important;
  border: 1px solid #e0dcd4 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 50px 60px !important;
  max-width: 900px !important;
  margin: 60px auto !important;
  font-family: "Inter", sans-serif !important;
}

/* Mezőcímkék */
.acf-form .acf-label label {
  font-weight: 600 !important;
  color: #333 !important;
  font-size: 16px !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.acf-form .acf-label .description {
  font-size: 14px !important;
  color: #666 !important;
}

/* Inputok */
.acf-form .acf-input input[type="text"],
.acf-form .acf-input input[type="email"],
.acf-form .acf-input input[type="url"],
.acf-form .acf-input input[type="number"],
.acf-form .acf-input input[type="tel"],
.acf-form .acf-input textarea,
.acf-form .acf-input select {
  width: 100% !important;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  color: #333 !important;
  background: #fff !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
}

.acf-form .acf-input input:focus,
.acf-form .acf-input textarea:focus,
.acf-form .acf-input select:focus {
  border-color: #009688 !important;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15) !important;
  outline: none !important;
}

.acf-taxonomy-field .categorychecklist-holder {
    border: #ccd0d4 solid 1px !important;
    max-height: 200px !important;
    overflow: auto !important;
    border-radius: 16px !important;
}

.acf-fields.-border {
    border: #ccd0d4 solid 1px !important;
    background: #fff !important;
    border-radius: 16px !important;
}

.acf-fields>.acf-field {
    position: relative;
    margin: 0;
    padding: 16px;
    border-top-width: 0px !important;
    border-top-style: solid;
    border-top-color: #eaecf0;
}

/* Fájl feltöltés */
.acf-field-file input[type="file"] {
  border: 2px dashed #bbb !important;
  border-radius: 10px !important;
  padding: 18px !important;
  background: #fdfaf5 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.acf-field-file input[type="file"]:hover {
  border-color: #ff7800 !important;
  background: #fff4ea !important;
}

/* Gomb */
.acf-form .acf-form-submit .acf-button {
  background: #ff7800 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 16px 36px !important;
  margin-top: 30px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.acf-form .acf-form-submit .acf-button:hover {
  background: #f9c541 !important;
  color: #000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(249, 197, 65, 0.3) !important;
}

/* Checkbox / radio */
.acf-form input[type="checkbox"],
.acf-form input[type="radio"] {
  accent-color: #009688 !important;
}

/* Sikeres üzenet */
.arus-success-message {
  background: #f0fdf9 !important;
  border: 2px solid #009688 !important;
  border-radius: 16px !important;
  padding: 40px 30px !important;
  text-align: center !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  max-width: 650px !important;
  margin: 60px auto !important;
  animation: fadeIn 0.6s ease-in-out !important;
}

.arus-success-message h2 {
  color: #009688 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-top: 10px !important;
}

.arus-success-message p {
  color: #333 !important;
  font-size: 16px !important;
  margin: 15px auto 25px !important;
  line-height: 1.6 !important;
  max-width: 450px !important;
}

.arus-success-btn {
  display: inline-block !important;
  background: #ff7800 !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.arus-success-btn:hover {
  background: #f9c541 !important;
  color: #000 !important;
  transform: translateY(-2px) !important;
}

/* Animáció */
@keyframes fadeIn {
  from { opacity: 0 !important; transform: translateY(10px) !important; }
  to { opacity: 1 !important; transform: translateY(0) !important; }
}

/* --------------------------- */
/* MOBILON NE LÓGJON KI SEMMI */
/* --------------------------- */
@media (max-width: 768px) {
  .acf-form {
    max-width: 100% !important;
    width: 100% !important;
    padding: 25px 16px !important;
    margin: 40px auto !important;
    box-sizing: border-box !important;
  }

  .arus-reg-header {
    padding: 0 16px !important;
    margin-top: 40px !important;
  }

  .arus-reg-header h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .arus-reg-header p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  
  .acf-fields.-border {
    border: #ccd0d4 solid 1px !important;
    background: #fff !important;
    border-radius: 16px !important;
}

.acf-fields>.acf-field {
    position: relative;
    margin: 0;
    padding: 16px;
    border-top-width: 0px !important;
    border-top-style: solid;
    border-top-color: #eaecf0;
}
}


/* ----------------------------------------------------- */
/* --- ACF Űrlap Mezőinek több oszlopba tördelése --- */
/* ----------------------------------------------------- */

/* Csak a 768px-nél szélesebb képernyőkön érvényesül */
@media (min-width: 768px) {

    /* A "Főkategória" rádiógombjainak elrendezése (2 oszlop) */
    .acf-field-name-fokategoria .acf-radio-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 oszlop */
        gap: 5px 20px; /* Térköz a sorok és oszlopok között */
    }

    /* A "Termékkínálat" checkbox listájának elrendezése (3 oszlop) */
    .acf-field-name-termekkinalat .acf-checkbox-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 oszlop */
        gap: 5px 20px;
    }
}


/* Adatkezelési link színének beállítása az űrlapon */
.acf-label-custom-privacy a {
    color: #000000; /* Fekete szín */
    font-weight: bold; /* A jobb láthatóságért legyen félkövér */
    text-decoration: underline; /* Az egyértelműségért legyen alá is húzva */
}

/* Opcionális: Színváltozás, ha az egér főlé kerül */
.acf-label-custom-privacy a:hover {
    color: #0073aa; /* Például a WordPress kék színe */
}




.cpa-card-actions{
margin-top:10px;
}

.cpa-show-on-map{
display:inline-block;
padding:6px;
background:#f9c541;
color:#333333;
font-size:13px;
font-weight: 600;
border-radius:4px;
text-decoration:none;
}

.cpa-show-on-map:hover{
background:#f9c541;
}


/* Mutasd a térképen – a popupban is */
.cpa-popup-details .cpa-card-actions {
    margin: 16px 0 20px;
}

.cpa-popup-details .cpa-show-on-map {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.cpa-show-on-map:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 2px;
}
