/* EndlessRPG Character Bazaar - same look as the donate and library pages (Frost and classic). */
.eb { font-size: 12px; line-height: 1.5; color: #d9e6f2; }
.eb a { color: #7fd4ff; }
.Content .BoxContent .eb h2, .Content .BoxContent .eb h3, .eb .eb-h {
	background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
	-webkit-text-fill-color: currentColor !important; color: #ffcc00 !important; filter: none !important; animation: none !important;
}
.eb .eb-h { font-size: 14px; margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(127, 212, 255, .25); }
.eb h2.eb-h { font-size: 17px; }
.Content .BoxContent .eb div, .Content .BoxContent .eb span, .Content .BoxContent .eb td { color: inherit; }

/* tabs */
.eb-top { display: flex; gap: 6px; margin-bottom: 10px; }
.eb-tab { padding: 6px 14px; border: 1px solid rgba(127, 212, 255, .3); border-radius: 2px; background: rgba(8, 20, 38, .8); color: #bcd3ea !important; text-decoration: none !important; font-weight: bold; }
.eb-tab.on, .eb-tab:hover { border-color: #ffcc00; color: #ffdf6b !important; }

/* boxes, messages */
.eb-box { margin: 8px 0; padding: 10px 12px; border: 1px solid rgba(127, 212, 255, .25); border-radius: 2px; background: rgba(8, 20, 38, .75); }
.Content .BoxContent .eb .eb-muted { color: #9fb3c8 !important; }
.eb-box.eb-safe { border-left: 3px solid #3fd17f; }
.eb-rules ul { margin: 0; padding-left: 18px; } .eb-rules li { margin: 2px 0; }
.Content .BoxContent .eb .eb-msg { margin: 8px 0; padding: 9px 12px; border: 1px solid; border-left-width: 4px; border-radius: 2px; font-weight: bold; }
.Content .BoxContent .eb .eb-msg.ok { background: #0d2a1c; border-color: #2a7a4c; border-left-color: #3fd17f; color: #c6f2d6 !important; }
.Content .BoxContent .eb .eb-msg.err { background: #2e0d12; border-color: #b8323f; border-left-color: #ff3b47; color: #ffc9cf !important; }
.Content .BoxContent .eb .eb-small { font-size: 11px; color: #9fb3c8 !important; }
.eb-coin { vertical-align: -1px; image-rendering: pixelated; }
.Content .BoxContent .eb .eb-good { color: #6fe3a0 !important; }

/* buttons, forms */
.eb-btn { display: inline-block; padding: 7px 16px; border: 1px solid #ffcc00; border-radius: 2px; background: linear-gradient(180deg, #3a2f10, #241c08);
	color: #ffdf6b !important; font: bold 12px Verdana, Arial, sans-serif; text-decoration: none !important; cursor: pointer; }
.eb-btn:hover { box-shadow: 0 0 8px rgba(255, 204, 0, .35); }
.eb-btn-small { padding: 3px 9px; font-size: 11px; }
.eb-btn-red { border-color: #b8323f; background: linear-gradient(180deg, #3a1216, #240a0d); color: #ffc9cf !important; }
.eb-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.eb-filter input, .eb-filter select, .eb-form input[type=text], .eb-form input[type=password], .eb-form input[type=number], .eb-form select {
	padding: 6px 8px; background: #020812; border: 1px solid #1f4c7a; border-radius: 2px; color: #eef6ff; font: 12px Verdana, Arial, sans-serif; box-sizing: border-box; }
.eb-filter input[name=search] { min-width: 150px; } .eb-filter input[name=min] { width: 95px; }
.eb-form { margin: 8px 0 14px; padding: 12px; border: 1px solid rgba(127, 212, 255, .25); border-radius: 2px; background: rgba(8, 20, 38, .75); max-width: 560px; }
.eb-form label { display: block; margin: 10px 0 4px; font-weight: bold; color: #ffdf6b; }
.eb-form input[type=text], .eb-form input[type=password], .eb-form input[type=number], .eb-form select { width: 100%; }
.Content .BoxContent .eb .eb-form label.eb-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; padding: 8px 10px; font-weight: normal; color: #ffe9a8 !important;
	background: rgba(255, 204, 0, .08); border: 1px solid rgba(255, 204, 0, .35); border-radius: 2px; }
.eb-check input { margin-top: 2px; flex: none; }
.eb-link { margin-left: 10px; }
.eb-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.eb-chip { padding: 3px 9px; border: 1px solid rgba(127, 212, 255, .35); border-radius: 2px; background: rgba(127, 212, 255, .08); color: #cfe8ff; font: 11px Verdana, Arial, sans-serif; cursor: pointer; }
.eb-chip:hover { border-color: #ffcc00; color: #ffdf6b; }

/* list */
.eb-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eb-head .eb-h { border: 0; margin-bottom: 0; }
.Content .BoxContent .eb .eb-sub { color: #9fb3c8 !important; }
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.eb-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid rgba(127, 212, 255, .3); border-radius: 2px;
	background: linear-gradient(180deg, rgba(18, 44, 78, .9), rgba(6, 14, 28, .95)); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.eb-card:hover { border-color: #ffcc00; transform: translateY(-1px); }
.eb-outfit { image-rendering: pixelated; }
.Content .BoxContent .eb .eb-card-name { color: #ffffff !important; font-weight: bold; text-align: center; }
.Content .BoxContent .eb .eb-card-sub { color: #9fb3c8 !important; font-size: 11px; }
.Content .BoxContent .eb .eb-card-price { margin-top: 4px; padding: 1px 10px; border-radius: 2px; background: rgba(255, 204, 0, .12); color: #ffdf6b !important; font-weight: bold; }
.eb-pager { display: flex; gap: 4px; justify-content: center; margin: 12px 0; }
.eb-pager a, .eb-pager span { padding: 3px 9px; border: 1px solid rgba(127, 212, 255, .3); border-radius: 2px; }
.eb-pager .cur { border-color: #ffcc00; color: #ffdf6b; }

/* character page */
.eb-hero { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid rgba(127, 212, 255, .35); border-radius: 2px; background: linear-gradient(135deg, rgba(16, 52, 94, .85), rgba(6, 14, 28, .9)); }
.eb-hero-pic { flex: none; width: 128px; height: 128px; }
.eb-hero-info h2 { margin: 0; font-size: 20px; }
.eb-price-big { margin: 6px 0 8px; font-size: 22px; font-weight: bold; color: #ffdf6b; }
.eb-price-big small { display: block; font-size: 11px; font-weight: normal; color: #9fb3c8; }
.eb-price-big .eb-coin { width: 16px; height: 16px; vertical-align: 0; }
.eb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eb-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.eb-kv-wide { grid-template-columns: 1fr 1fr; }
.eb-kv > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(127, 212, 255, .1); }
.Content .BoxContent .eb .eb-kv span { color: #9fb3c8 !important; }
.Content .BoxContent .eb .eb-kv b { color: #ffffff !important; text-align: right; }
.eb-eq { display: flex; justify-content: center; }
.eb-admin { margin: 12px 0; }
.eb-summary { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid rgba(127, 212, 255, .3); border-radius: 2px; background: rgba(8, 20, 38, .75); }
.eb-summary > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.Content .BoxContent .eb .eb-name { color: #fff !important; font-size: 15px; }
.eb-summary .eb-price-big { margin: 0; text-align: right; }

/* sell page lines + table */
.eb-lines { display: flex; flex-direction: column; gap: 4px; }
.eb-line { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 1px solid rgba(127, 212, 255, .15); border-radius: 2px; background: rgba(8, 20, 38, .6); }
.eb-line .t { flex: 1; min-width: 0; }
.Content .BoxContent .eb .eb-line .r { color: #ffb3a1 !important; font-size: 11px; text-align: right; display: flex; align-items: center; gap: 8px; }
.eb-line form { display: inline; margin: 0; }
.eb-line .eb-outfit { width: 40px; height: 40px; object-fit: contain; image-rendering: auto; }
.eb-table { width: 100%; border-collapse: collapse; }
.eb-table th, .eb-table td { padding: 5px 8px; border-bottom: 1px solid rgba(127, 212, 255, .15); text-align: left; }
.Content .BoxContent .eb .eb-table th { color: #ffcc00 !important; font-size: 11px; text-transform: uppercase; }

@media (max-width: 820px) {
	.eb-cols, .eb-kv, .eb-kv-wide { grid-template-columns: 1fr; }
	.eb-hero { flex-direction: column; text-align: center; }
	.eb-grid { grid-template-columns: repeat(2, 1fr); }
	.eb-line { flex-wrap: wrap; }
}
/* the theme colours table cells dark; keep the bazaar's own colours */
.Content .BoxContent .eb .eb-table td { color: #d9e6f2 !important; }
.Content .BoxContent .eb .eb-table td.eb-good { color: #6fe3a0 !important; }
.Content .BoxContent .eb .eb-table td.eb-muted { color: #9fb3c8 !important; }
.Content .BoxContent .eb label.eb-check span { color: #ffe9a8 !important; }

/* ---- everything the character has: collapsible sections ---- */
.eb-sec { margin: 6px 0; border: 1px solid rgba(127, 212, 255, .25); border-radius: 2px; background: rgba(8, 20, 38, .75); }
.eb-sec > summary { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; }
.eb-sec > summary::-webkit-details-marker { display: none; }
.eb-sec > summary b { color: #ffdf6b; }
.eb-sec > summary b::before { content: '\25B8'; display: inline-block; width: 14px; color: #7fd4ff; transition: transform .15s; }
.eb-sec[open] > summary b::before { transform: rotate(90deg); }
.Content .BoxContent .eb .eb-sec > summary span { color: #9fb3c8 !important; font-size: 11px; }
.eb-sec-body { padding: 4px 12px 12px; }
.eb-cont { margin: 6px 0; }
.Content .BoxContent .eb .eb-cont-h { color: #cfe8ff !important; font-weight: bold; margin-bottom: 3px; }
.eb-cont-h small { color: #9fb3c8; font-weight: normal; }
.eb-items { display: flex; flex-wrap: wrap; gap: 3px; }
.eb-it { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
	background: url('/item-images/ui/item.png') center / 34px 34px no-repeat; }
.eb-it:hover { outline: 1px solid #ffcc00; }
.eb-it img { width: 32px; height: 32px; image-rendering: pixelated; }
.eb-it .n { position: absolute; right: 1px; bottom: 0; font: bold 9px Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.eb-q { border-bottom: 1px solid rgba(127, 212, 255, .1); }
.eb-q > summary { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; list-style: none; }
.eb-q > summary::-webkit-details-marker { display: none; }
.eb-q .t { flex: 1; }
.eb-q .bar { flex: 0 0 120px; height: 6px; background: rgba(127, 212, 255, .15); border-radius: 3px; overflow: hidden; }
.eb-q .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fd17f, #8ff0b5); }
.Content .BoxContent .eb .eb-q .r { flex: 0 0 80px; text-align: right; color: #9fb3c8 !important; font-size: 11px; }
.eb-q ul { margin: 2px 0 8px 4px; padding-left: 16px; columns: 2; font-size: 11px; }
.eb-q li.done { color: #6fe3a0; list-style: '\2713  '; }
.eb-q li.prog { color: #ffdf6b; list-style: '\2026  '; }
.eb-q li.todo { color: #7f93a8; list-style: '\2022  '; }
.eb-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.eb-look { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px; border: 1px solid rgba(127, 212, 255, .15); border-radius: 2px; }
.eb-look img { image-rendering: pixelated; }
.Content .BoxContent .eb .eb-look b { color: #fff !important; font-size: 11px; }
.Content .BoxContent .eb .eb-look small { color: #9fb3c8 !important; font-size: 10px; }
.eb-tag { padding: 0 4px; border-radius: 2px; background: rgba(127, 212, 255, .15); color: #9fdcff; }
.eb-tag.store { background: rgba(255, 204, 0, .15); color: #ffdf6b; }
@media (max-width: 820px) { .eb-q ul { columns: 1; } .eb-q .bar { flex-basis: 60px; } }
