/* Markt — dezentes Minecraft-Panel-Styling (angelehnt an Server-Widget) */

.markt-info__guide {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.markt-info__intro {
    margin: 0;
    padding: 1rem 1.05rem;
    color: var(--color-text);
    background:
        linear-gradient(135deg, rgba(93, 171, 36, 0.12) 0%, rgba(93, 171, 36, 0.03) 42%, transparent 100%),
        var(--mc-panel-slot-bg);
    border: 2px solid;
    border-color: color-mix(in srgb, var(--color-accent) 28%, var(--mc-panel-bevel-dark)) color-mix(in srgb, var(--color-accent) 12%, var(--mc-panel-bevel-light)) color-mix(in srgb, var(--color-accent) 12%, var(--mc-panel-bevel-light)) color-mix(in srgb, var(--color-accent) 28%, var(--mc-panel-bevel-dark));
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.markt-info__intro p:last-child {
    margin-bottom: 0;
}

.markt-info__section {
    margin: 0;
    padding: 1rem 1.05rem 1.05rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%),
        var(--mc-panel-slot-bg);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light) var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
}

.markt-info__section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--mc-panel-bevel-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-accent-hover);
}

.markt-info__section-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    color: #0f1a0a;
    background: linear-gradient(180deg, #7ec942 0%, var(--color-accent) 100%);
    border: 2px solid;
    border-color: #a8e06a var(--color-accent) var(--color-accent) #4a8a1f;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.markt-info__section-label {
    line-height: 1.25;
}

.markt-info__section-title--plain .markt-info__section-label {
    padding-left: 0.1rem;
}

.markt-info__section p:last-child,
.markt-info__section ul:last-child {
    margin-bottom: 0;
}

.markt-info__section--rules ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.markt-info__section--rules li {
    position: relative;
    margin: 0;
    padding: 0.7rem 0.85rem 0.7rem 2.45rem;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.markt-info__section--rules li::before {
    content: '✓';
    position: absolute;
    left: 0.85rem;
    top: 0.68rem;
    font-weight: 900;
    color: var(--color-accent);
}

.markt-info__section--rules li:last-child {
    background: color-mix(in srgb, var(--color-offline) 12%, rgba(0, 0, 0, 0.14));
    border-color: color-mix(in srgb, var(--color-offline) 28%, rgba(255, 255, 255, 0.05));
}

.markt-info__section--rules li:last-child::before {
    content: '✕';
    color: #ff8a8a;
}

.markt-info__section--prices ul {
    list-style: none;
    margin: 0.35rem 0 0.85rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.markt-info__section--prices li {
    margin: 0;
    padding: 0.65rem 0.8rem 0.65rem 2.35rem;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    position: relative;
}

.markt-info__section--prices li::before {
    content: '◆';
    position: absolute;
    left: 0.9rem;
    top: 0.62rem;
    font-size: 0.72rem;
    color: #5bc0de;
    text-shadow: 0 0 6px rgba(91, 192, 222, 0.45);
}

.markt-info__section--prices h3 {
    margin: 0.95rem 0 0.35rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.16);
    border-left: 3px solid #5bc0de;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markt-info__section--prices h3:first-of-type {
    margin-top: 0.35rem;
}

.markt-info__section--warning {
    border-color: color-mix(in srgb, #d4a017 35%, var(--mc-panel-bevel-dark)) color-mix(in srgb, #d4a017 15%, var(--mc-panel-bevel-light)) color-mix(in srgb, #d4a017 15%, var(--mc-panel-bevel-light)) color-mix(in srgb, #d4a017 35%, var(--mc-panel-bevel-dark));
    background:
        linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, transparent 55%),
        var(--mc-panel-slot-bg);
}

.markt-info__section--warning p + p {
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.markt-info__section--design a {
    font-weight: 700;
}

.markt-info__section--web {
    opacity: 0.92;
    background: rgba(0, 0, 0, 0.12);
}

.markt-info__section--web ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.markt-info__section--web li {
    position: relative;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--color-text-muted);
}

.markt-info__section--web li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.markt-info__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.markt-info__meta-label {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
}

.markt-info__team {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mc-panel-bevel-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.markt-info__team-title {
    margin: 0 0 0.65rem;
    padding-bottom: 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-accent-hover);
    border-bottom: 1px solid var(--mc-panel-bevel-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.markt-info__details[open] .markt-info__toggle {
    border-bottom-color: var(--mc-panel-bevel-dark);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.shop-list__summary {
    margin-bottom: 1rem;
}

.markt-info {
    margin-bottom: 1.25rem;
}

.markt-info__content {
    padding-top: 0.15rem;
}

.markt-info__body {
    margin-top: 0;
}

.markt-info__guide.prose h2,
.markt-info__guide.prose h3 {
    margin-top: 0;
}

.markt-info__guide.prose p,
.markt-info__guide.prose ul {
    margin-bottom: 0.85rem;
}

.markt-info__guide.prose strong {
    color: var(--color-accent-hover);
}

.markt-shops__title {
    margin-bottom: 0.85rem;
}

.markt-info__team-empty {
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.shop-villager--paginated {
    display: none;
}

.shop-list__more {
    margin-top: 1.25rem;
    text-align: center;
}

.shop-list__more[hidden] {
    display: none !important;
}

#shop-load-more[hidden] {
    display: none !important;
}

.shop-search {
    position: relative;
    z-index: 40;
    margin-bottom: 1.25rem;
}

.shop-search__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-text);
}

.shop-search__field {
    position: relative;
}

.shop-search__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--mc-panel-slot-bg);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light) var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark);
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.shop-search__input:focus {
    outline: none;
    border-color: var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(93, 171, 36, 0.35);
}

.shop-search__hint,
.shop-search__status,
.shop-search__empty {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.shop-search__status {
    color: var(--color-accent-hover);
    font-weight: 700;
}

.shop-search__suggestions,
.shop-search__dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    z-index: 200;
    max-height: 14rem;
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    list-style: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%),
        var(--mc-panel-slot-bg);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light);
    border-radius: 2px;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.35);
}

.shop-search__suggestion {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.shop-search__suggestion-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: none;
    border-radius: 2px;
    box-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.shop-search__suggestion-label {
    min-width: 0;
}

.shop-search__suggestion-meta {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.shop-search__suggestion:hover .shop-search__suggestion-meta,
.shop-search__suggestion.is-active .shop-search__suggestion-meta {
    color: rgba(255, 255, 255, 0.88);
}

.shop-search__suggestion:hover,
.shop-search__suggestion.is-active {
    color: #fff;
    background: var(--color-accent-dark);
}

.markt-shops.card {
    overflow: visible;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.shop-villager {
    --shop-header-npc-space: 5rem;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--mc-panel-slot-bg);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light);
    border-radius: 2px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

.shop-villager__header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 0.7rem 0 0;
    font: inherit;
    text-align: left;
    color: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        color-mix(in srgb, var(--color-shop-header) 82%, var(--mc-panel-slot-bg) 18%);
    border: none;
    border-bottom: 1px solid transparent;
    border-left: 2px solid var(--color-accent);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s ease, border-radius 0.15s ease;
    min-height: 3.35rem;
}

.shop-villager__header:hover {
    background: color-mix(in srgb, var(--color-shop-header) 88%, var(--color-accent) 12%);
}

.shop-villager__header:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-accent);
}

.shop-villager--open .shop-villager__header {
    border-bottom-color: var(--mc-panel-bevel-dark);
    border-radius: 2px 2px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.shop-villager__header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    align-self: center;
    gap: 0.4rem;
    padding-block: 0.45rem;
}

.shop-villager__identity {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    padding-left: calc(var(--shop-header-npc-space) + 0.35rem);
}

.shop-villager__heading {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.05rem;
    min-width: 0;
    padding-block: 0.35rem;
}

.shop-villager__entity-preview {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--shop-header-npc-space);
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
}

.shop-villager__entity-preview--empty {
    display: none;
}

.shop-villager__entity-preview-skin {
    display: block;
    width: auto;
    max-width: calc(var(--shop-header-npc-space) - 0.25rem);
    height: 3.5rem;
    object-fit: contain;
    object-position: center center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

.shop-villager__chevron {
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.shop-villager--open .shop-villager__chevron {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
    border-color: var(--color-accent-hover);
}

.shop-villager__body[hidden] {
    display: none;
}

.shop-villager__body {
    border-radius: 0 0 2px 2px;
}

.shop-npc .shop-villager__entity-preview {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    overflow: hidden;
    background: transparent;
    border: none;
}

.shop-npc .shop-villager__entity-preview-skin {
    height: 2.35rem;
    max-width: 2.35rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.shop-villager__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.15;
}

.shop-villager__subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    min-width: 0;
}

.shop-villager__sep {
    color: var(--color-text-muted);
    opacity: 0.65;
    font-size: 0.7rem;
    line-height: 1;
}

.shop-villager__meta {
    font-size: 0.84rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--color-text) 84%, var(--color-text-muted) 16%);
    line-height: 1.25;
    white-space: nowrap;
}

.shop-villager__npc-type {
    flex-shrink: 0;
    padding: 0.15rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--color-text) 78%, var(--color-text-muted) 22%);
    background: color-mix(in srgb, var(--color-bg-slot) 72%, var(--color-shop-border) 28%);
    border: 1px solid color-mix(in srgb, var(--color-shop-border) 80%, var(--color-text-muted) 20%);
    border-radius: var(--radius-sm);
}

.shop-npc {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.15;
    min-width: 0;
}

.shop-npc__label {
    min-width: 0;
}

.shop-npc__equipment {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.15rem;
}

.shop-npc__equip {
    position: relative;
    display: inline-flex;
    padding: 0.1rem;
    border: 1px solid var(--color-shop-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-slot);
    cursor: help;
}

.shop-npc__equip .shop-item-tooltip {
    top: calc(100% + 0.35rem);
    left: auto;
    right: 0;
    max-width: min(24rem, 88vw);
    transform: translateY(-4px);
}

.shop-npc__equip:hover .shop-item-tooltip,
.shop-npc__equip:focus-visible .shop-item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-npc__equip-icon {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.shop-villager__badge {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-accent-hover);
    background: color-mix(in srgb, var(--color-accent-dim) 80%, var(--mc-panel-slot-bg) 20%);
    border: 1px solid rgba(93, 171, 36, 0.4);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shop-villager__trades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem 0.75rem;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 100%),
        color-mix(in srgb, var(--mc-panel-slot-bg) 88%, var(--color-shop-slot-cost) 12%);
    border-radius: 0 0 2px 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shop-trade {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    min-height: 4.1rem;
    padding: 0.55rem 0.65rem;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
        color-mix(in srgb, var(--color-shop-slot-cost) 35%, var(--mc-panel-slot-bg) 65%);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light);
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28);
    position: relative;
    flex-wrap: nowrap;
}

.shop-trade:has(.shop-slot:hover),
.shop-trade:has(.shop-slot:focus-visible) {
    z-index: 25;
}

.shop-trade:hover {
    border-color: color-mix(in srgb, var(--color-accent) 55%, var(--mc-panel-bevel-light) 45%) color-mix(in srgb, var(--color-accent-dark) 55%, var(--mc-panel-bevel-dark) 45%) color-mix(in srgb, var(--color-accent-dark) 55%, var(--mc-panel-bevel-dark) 45%) color-mix(in srgb, var(--color-accent) 55%, var(--mc-panel-bevel-light) 45%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(93, 171, 36, 0.18);
}

.shop-trade[hidden],
.shop-villager[hidden] {
    display: none !important;
}

.shop-trade__costs {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.4rem;
}

.shop-slot {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    padding: 0.12rem;
    border: 2px solid;
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
    cursor: default;
}

.shop-slot:hover,
.shop-slot:focus-visible {
    z-index: 26;
}

.shop-slot--cost {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        var(--color-shop-slot-cost);
    border-color: var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light) var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark);
}

.shop-slot--result {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
        var(--color-shop-slot-result);
    border-color: color-mix(in srgb, var(--color-shop-slot-result-border) 70%, var(--mc-panel-bevel-dark) 30%) color-mix(in srgb, var(--color-shop-slot-result-border) 50%, var(--mc-panel-bevel-light) 50%) color-mix(in srgb, var(--color-shop-slot-result-border) 50%, var(--mc-panel-bevel-light) 50%) color-mix(in srgb, var(--color-shop-slot-result-border) 70%, var(--mc-panel-bevel-dark) 30%);
}

.shop-slot__icon {
    display: block;
    width: 2.875rem;
    height: 2.875rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.shop-slot__icon--wiki-render {
    width: 2.75rem;
    height: 2.75rem;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.shop-slot--shulker > .shop-slot__icon {
    width: 3rem;
    height: 3rem;
}

.shop-slot__count {
    position: absolute;
    right: 0.1rem;
    bottom: 0;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.95),
        -1px 0 0 rgba(0, 0, 0, 0.65),
        0 -1px 0 rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.shop-slot__fallback {
    padding: 0.15rem;
    font-size: 0.62rem;
    line-height: 1.15;
    text-align: center;
    color: var(--color-text-muted);
    word-break: break-word;
}

.shop-slot--text {
    width: auto;
    min-width: 3rem;
    max-width: 7rem;
    padding: 0.25rem;
}

.shop-slot--empty {
    opacity: 0.55;
}

.shop-slot--cost.shop-slot--empty {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.08) 3px,
            transparent 3px,
            transparent 8px
        ),
        var(--color-shop-slot-cost);
}

.shop-slot--price-placeholder {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.06rem;
    padding: 0.16rem 0.1rem 0.12rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
        color-mix(in srgb, var(--color-shop-slot-cost) 72%, rgba(0, 0, 0, 0.25) 28%);
    border-style: dashed;
    border-color: color-mix(in srgb, var(--color-text-muted) 45%, var(--mc-panel-bevel-dark) 55%)
        color-mix(in srgb, var(--color-text-muted) 25%, var(--mc-panel-bevel-light) 75%)
        color-mix(in srgb, var(--color-text-muted) 25%, var(--mc-panel-bevel-light) 75%)
        color-mix(in srgb, var(--color-text-muted) 45%, var(--mc-panel-bevel-dark) 55%);
}

.shop-slot--price-placeholder .shop-slot__icon--placeholder {
    width: 2.1rem;
    height: 2.1rem;
    opacity: 0.78;
    filter: saturate(0.65);
}

.shop-slot__placeholder-label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0.08rem;
    font-size: 0.48rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.shop-item-tooltip {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    z-index: 30;
    box-sizing: border-box;
    width: max-content;
    max-width: min(26rem, 88vw);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(12, 16, 22, 0.96);
    border: 1px solid var(--color-shop-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.shop-item-tooltip--rich {
    min-width: min(16rem, 88vw);
    white-space: normal;
}

.shop-item-tooltip__name {
    color: #ffffff;
    font-weight: 800;
}

.shop-item-tooltip__name--enchanted {
    color: #a8b8ff;
}

.shop-item-tooltip__line + .shop-item-tooltip__line,
.shop-item-tooltip__name + .shop-item-tooltip__line {
    margin-top: 0.2rem;
}

.shop-item-tooltip__line--enchantment {
    color: #aaaaaa;
    font-weight: 700;
}

.shop-item-tooltip__line--curse {
    color: #ff5555;
    font-weight: 700;
}

.shop-item-tooltip__line--lore {
    color: #8888cc;
    font-style: italic;
    font-weight: 600;
}

.shop-item-tooltip__line--meta {
    color: #888888;
    font-weight: 600;
}

.shop-item-tooltip__line--rarity-common {
    color: #ffffff;
}

.shop-item-tooltip__line--rarity-uncommon {
    color: #ffaa00;
}

.shop-item-tooltip__line--rarity-rare {
    color: #55ffff;
}

.shop-item-tooltip__line--rarity-epic {
    color: #ff55ff;
}

.shop-slot:hover .shop-item-tooltip,
.shop-slot:focus-visible .shop-item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.shop-slot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    z-index: 30;
    box-sizing: border-box;
    width: max-content;
    max-width: min(26rem, 88vw);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    white-space: pre-line;
    text-align: left;
    pointer-events: none;
    background: rgba(12, 16, 22, 0.96);
    border: 1px solid var(--color-shop-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.shop-slot--shulker {
    z-index: 1;
}

.shop-slot--shulker:hover {
    z-index: 40;
}

.shop-slot--shulker::after {
    display: none;
}

.shop-slot--shulker .shop-item-tooltip {
    display: none;
}

.shop-slot--shulker > .shop-shulker-preview {
    display: none;
}

.shop-shulker-preview {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: max-content;
    padding: 0.65rem;
    pointer-events: none;
    --shulker-accent: #852bc4;
    --shulker-accent-soft: #d4a5f5;
    background: rgba(12, 16, 22, 0.98);
    border: 1px solid color-mix(in srgb, var(--shulker-accent) 45%, var(--color-shop-border) 55%);
    border-radius: var(--radius-sm);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px color-mix(in srgb, var(--shulker-accent) 28%, transparent 72%);
}

.shop-shulker-preview--float {
    position: fixed;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 0);
    transition: opacity 0.1s ease, visibility 0.1s;
}

.shop-shulker-preview--float.is-visible {
    opacity: 1;
    visibility: visible;
}

.shop-shulker-preview__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    min-width: 12rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--shulker-accent) 50%, transparent 50%);
}

.shop-shulker-preview__name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--shulker-accent-soft);
}

.shop-shulker-preview--white { --shulker-accent: #dddddd; --shulker-accent-soft: #f4f4f4; }
.shop-shulker-preview--orange { --shulker-accent: #ee8a31; --shulker-accent-soft: #ffc285; }
.shop-shulker-preview--magenta { --shulker-accent: #bd3dbb; --shulker-accent-soft: #e88ce6; }
.shop-shulker-preview--light_blue { --shulker-accent: #3aa1d8; --shulker-accent-soft: #8fd4f7; }
.shop-shulker-preview--yellow { --shulker-accent: #f6d142; --shulker-accent-soft: #ffe98a; }
.shop-shulker-preview--lime { --shulker-accent: #71a042; --shulker-accent-soft: #b5e06f; }
.shop-shulker-preview--pink { --shulker-accent: #e884a5; --shulker-accent-soft: #ffb8ce; }
.shop-shulker-preview--gray { --shulker-accent: #697478; --shulker-accent-soft: #b0bac2; }
.shop-shulker-preview--light_gray { --shulker-accent: #aeb1b6; --shulker-accent-soft: #e2e4e7; }
.shop-shulker-preview--cyan { --shulker-accent: #158892; --shulker-accent-soft: #6fd5dc; }
.shop-shulker-preview--purple { --shulker-accent: #852bc4; --shulker-accent-soft: #d4a5f5; }
.shop-shulker-preview--blue { --shulker-accent: #2f2196; --shulker-accent-soft: #8f84e8; }
.shop-shulker-preview--brown { --shulker-accent: #6b4424; --shulker-accent-soft: #c4956a; }
.shop-shulker-preview--green { --shulker-accent: #4c6024; --shulker-accent-soft: #9bc45a; }
.shop-shulker-preview--red { --shulker-accent: #933030; --shulker-accent-soft: #e87878; }
.shop-shulker-preview--black { --shulker-accent: #1c1c1e; --shulker-accent-soft: #8a8a90; }

.shop-shulker-preview__grid {
    display: grid;
    grid-template-columns: repeat(9, 2.75rem);
    gap: 0.25rem;
    width: max-content;
    padding: 0.15rem;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 2px;
}

.shop-shulker-preview__empty {
    min-width: 12rem;
    font-size: 0.72rem;
    color: var(--shulker-accent-soft);
}

.shop-shulker-preview__slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%),
        color-mix(in srgb, var(--color-shop-slot) 92%, #1a1a1a 8%);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light) var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.shop-shulker-preview__slot--empty {
    opacity: 0.35;
}

.shop-shulker-preview__icon {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.shop-shulker-preview__count {
    position: absolute;
    right: 0.1rem;
    bottom: 0;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}

.shop-shulker-preview__slot::after {
    display: none;
}

.shop-slot[data-tooltip]:hover::after,
.shop-slot[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.shop-trade__arrow {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(180deg, #8fd956 0%, var(--color-accent) 45%, var(--color-accent-dark) 100%);
    clip-path: polygon(0 22%, 58% 22%, 58% 0, 100% 50%, 58% 100%, 58% 78%, 0 78%);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
    opacity: 0.95;
}

.shop-placeholder {
    padding: 1rem;
    margin-bottom: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%),
        color-mix(in srgb, var(--color-accent-dim) 70%, var(--mc-panel-slot-bg) 30%);
    border: 2px solid;
    border-color: color-mix(in srgb, var(--color-accent) 45%, var(--mc-panel-bevel-light) 55%) color-mix(in srgb, var(--color-accent-dark) 45%, var(--mc-panel-bevel-dark) 55%) color-mix(in srgb, var(--color-accent-dark) 45%, var(--mc-panel-bevel-dark) 55%) color-mix(in srgb, var(--color-accent) 45%, var(--mc-panel-bevel-light) 55%);
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.shop-placeholder__badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--color-accent-dark);
    border: 1px solid rgba(111, 191, 56, 0.45);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.config-snippet {
    margin: 0;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--color-accent-hover);
    background: var(--mc-panel-slot-bg);
    border: 2px solid;
    border-color: var(--mc-panel-bevel-dark) var(--mc-panel-bevel-light) var(--mc-panel-bevel-light) var(--mc-panel-bevel-dark);
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

