/* Markalar filtresi: çoklu seçimli açılır kutu (inc/marka-filtre-coklu.php) */
.ed-mc,
.ed-mc * {
    box-sizing: border-box;
}

.ed-mc {
    position: relative;
}

.ed-mc-dugme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.ed-mc-dugme:hover,
.ed-mc-dugme[aria-expanded="true"] {
    border-color: var(--wd-primary-color, #a98a48);
}

.ed-mc[data-secili]:not([data-secili="0"]) .ed-mc-dugme {
    font-weight: 600;
}

.ed-mc-ok {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

.ed-mc-dugme[aria-expanded="true"] .ed-mc-ok {
    transform: rotate(-135deg) translate(-2px, 0);
}

.ed-mc-panel {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
}

.ed-mc-panel[hidden] {
    display: none;
}

.ed-mc input.ed-mc-ara[type="search"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 38px;
    margin: 0 0 8px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-size: 14px;
}

.ed-mc-liste {
    max-height: 260px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    -webkit-overflow-scrolling: touch;
}

.ed-mc-oge[hidden] {
    display: none;
}

.ed-mc-oge label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 2px;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.ed-mc-oge input {
    flex: 0 0 auto;
    margin: 0;
}

.ed-mc-ad {
    flex: 1 1 auto;
    min-width: 0;
}

.ed-mc-sayi {
    flex: 0 0 auto;
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
}

.ed-mc-bos {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
}

.ed-mc-eylem {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ed-mc-uygula,
.ed-mc-temizle {
    flex: 1 1 0;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ed-mc-uygula {
    border: 1px solid var(--wd-primary-color, #a98a48);
    background: var(--wd-primary-color, #a98a48);
    color: #fff;
}

.ed-mc-temizle {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #fff;
    color: #333;
}

.ed-mc-temizle[hidden] {
    display: none;
}

/* Seçilen markalar: etiket (çip) olarak, kaldırmak için × */
.ed-mc .ed-mc-etiketler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.ed-mc .ed-mc-etiket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid rgba(169, 138, 71, 0.45);
    border-radius: 999px;
    background: rgba(169, 138, 71, 0.12);
    color: #222;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.ed-mc .ed-mc-etiket:hover {
    border-color: var(--wd-primary-color, #a98a48);
    background: rgba(169, 138, 71, 0.2);
}

.ed-mc .ed-mc-etiket-x {
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
}

.ed-mc .ed-mc-etiket:hover .ed-mc-etiket-x {
    opacity: 1;
}

.ed-mc .ed-mc-hepsini {
    min-height: 30px;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: rgba(0, 0, 0, 0.55);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
}

/* "Marka ekle" düğmesi: premium altın hap düğme (premium.css .pp_newsletter_btn ile aynı dil) */
.ed-mc .ed-mc-dugme {
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--color_gold, #b8925a);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0.78px;
    text-transform: none;
    box-shadow: none;
}

.ed-mc .ed-mc-dugme:hover,
.ed-mc .ed-mc-dugme[aria-expanded="true"] {
    background: var(--color_gold_dark, #9c7a45);
    color: #fff;
}

.ed-mc .ed-mc-dugme .ed-mc-ok {
    flex: 0 0 auto;
}

/* Seçilen markalar: düğmeden ayrı bir blok */
.ed-mc .ed-mc-secilenler {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ed-mc .ed-mc-secilen-baslik {
    margin: 0 0 10px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ed-mc .ed-mc-secilenler .ed-mc-etiketler {
    margin: 0;
}
