/* Takımorium Hesabım — açılır hesap menüsü */
:root { --tkmh-ana: #7a1f2b; --tkmh-ana-acik: #f6ecec; }

.tkmh-acilir {
	position: fixed; z-index: 99999; box-sizing: border-box; width: 320px;
	background: #fff; color: #2b2b2b; border: 1px solid #ece6df; border-radius: 16px;
	box-shadow: 0 18px 48px rgba(40, 20, 10, .14), 0 2px 6px rgba(40, 20, 10, .06);
	padding: 16px; font-size: 15px; line-height: 1.4; text-align: left;
	opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease;
	font-family: inherit;
}
.tkmh-acilir.acik { opacity: 1; transform: translateY(0); }
.tkmh-acilir[hidden] { display: none !important; }
.tkmh-acilir * { box-sizing: border-box; }
.tkmh-acilir-ok { position: absolute; top: -7px; width: 14px; height: 14px; background: #fff; border-left: 1px solid #ece6df; border-top: 1px solid #ece6df; transform: rotate(45deg); border-radius: 3px 0 0 0; }

/* Giriş yapmamış */
.tkmh-acilir-ust { margin-bottom: 14px; }
.tkmh-acilir-ust strong { display: block; font-size: 17px; margin-bottom: 4px; color: #2b2b2b; }
.tkmh-acilir-ust span { display: block; color: #857d76; font-size: 14px; }
.tkmh-acilir-dugmeler { display: grid; gap: 8px; }
.tkmh-acilir .tkmh-a-btn {
	display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px;
	border-radius: 999px; border: 1px solid var(--tkmh-ana); background: var(--tkmh-ana); color: #fff !important;
	font-weight: 600; font-size: 15px; text-decoration: none !important; transition: opacity .15s; line-height: 1.2;
}
.tkmh-acilir .tkmh-a-btn:hover { opacity: .9; }
.tkmh-acilir .tkmh-a-btn.tkmh-a-ikincil { background: #fff; color: var(--tkmh-ana) !important; }

/* Giriş yapmış */
.tkmh-acilir-kisi { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid #ece6df; }
.tkmh-a-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--tkmh-ana); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.tkmh-a-kisi-bilgi { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tkmh-a-kisi-bilgi strong { font-size: 15px; color: #2b2b2b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkmh-a-kisi-bilgi small { color: #857d76; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkmh-acilir-liste { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tkmh-acilir-liste li { margin: 0 !important; padding: 0 !important; list-style: none !important; border: 0 !important; }
.tkmh-acilir-liste a, .tkmh-acilir-cikis {
	display: flex !important; align-items: center; gap: 12px; padding: 10px 10px !important; border-radius: 10px;
	color: #2b2b2b !important; text-decoration: none !important; font-size: 15px; font-weight: 500; line-height: 1.3; transition: background .12s;
}
.tkmh-acilir-liste a:hover, .tkmh-acilir-liste a:focus-visible, .tkmh-acilir-cikis:hover, .tkmh-acilir-cikis:focus-visible { background: #faf7f3; outline: none; }
.tkmh-acilir .tkmh-ikon { flex: none; color: #857d76; }
.tkmh-acilir-liste a:hover .tkmh-ikon { color: var(--tkmh-ana); }
.tkmh-acilir-cikis { margin-top: 6px; border-top: 1px solid #ece6df; border-radius: 0 0 10px 10px; padding-top: 12px !important; color: #a8321d !important; }
.tkmh-acilir-cikis .tkmh-ikon { color: #a8321d; }

/* Kısa kodun kendi düğmesi */
.tkmh-hesap-dugme-kap { display: inline-block; position: relative; }
.tkmh-hesap-dugme { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; line-height: 1; transition: background .15s; }
.tkmh-hesap-dugme:hover, .tkmh-hesap-dugme[aria-expanded="true"] { background: rgba(0, 0, 0, .05); }
.tkmh-hesap-dugme .tkmh-ikon { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) { .tkmh-acilir { transition: none; transform: none; } }

/* Temanın kendi hesap açılır menüsü/penceresi bizimkiyle çakışmasın */
html.tkmh-acilir-aktif .ct-header-account .ct-header-account-dropdown,
html.tkmh-acilir-aktif .ct-header-account [class*="dropdown"],
html.tkmh-acilir-aktif .wd-header-my-account .wd-dropdown { display: none !important; }
