body{
    display: block;
    height: auto;
    min-height: 100dvh;
}

.poe-page{
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.poe-page h1{
    text-align: center;
}

.poe-page > p{
    text-align: center;
}

.poe-page label{
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.poe-controls-row{
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.poe-controls-left{
    flex: 0 0 300px;
}

@media (max-width: 700px){
    .poe-controls-row{
        flex-direction: column;
    }

    .poe-controls-left{
        flex-basis: auto;
        width: 100%;
    }

    .poe-results{
        width: 100%;
        margin-top: 20px;
    }
}

#poe-league{
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 2px solid black;
    font-size: 0.9em;
}

#poe-search-btn{
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid black;
    background-color: rgb(190, 245, 245);
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
}

#poe-search-btn:hover{
    background-color: rgb(150, 235, 235);
}

#poe-search-btn:disabled{
    cursor: not-allowed;
    opacity: 0.6;
}

#poe-status{
    text-align: center;
    font-style: italic;
    min-height: 1.2em;
}

.poe-item-summary{
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #f4f4f4;
    font-size: 0.8em;
}

.poe-item-summary.hidden,
.poe-results.hidden{
    display: none;
}

.poe-item-summary p{
    margin: 4px 0;
}

.poe-note{
    color: #7a5c00;
    font-style: italic;
}

.poe-mod-checklist{
    list-style: none;
    margin: 4px 0;
    padding: 0;
}

.poe-mod-checklist > li{
    padding: 4px 8px;
    margin-bottom: 3px;
    border-radius: 6px;
    background-color: #f0f0f0;
}

/* these need to be at least as specific as ".poe-mod-checklist > li" above,
   otherwise its background-color always wins regardless of source order */
.poe-mod-checklist > li.poe-mod-kind-implicit{ background-color: #e3f2fd; }
.poe-mod-checklist > li.poe-mod-kind-prefix{ background-color: #e8f5e9; }
.poe-mod-checklist > li.poe-mod-kind-suffix{ background-color: #f3e5f5; }
.poe-mod-checklist > li.poe-mod-kind-crafted{ background-color: #fff3e0; }
.poe-mod-checklist > li.poe-mod-kind-enchant{ background-color: #e0f7fa; }
.poe-mod-checklist > li.poe-mod-kind-veiled{ background-color: #fce4ec; }
.poe-mod-checklist > li.poe-mod-kind-fractured{ background-color: #eceff1; }
.poe-mod-checklist > li.poe-mod-kind-scourge{ background-color: #ffebee; }
.poe-mod-checklist > li.poe-mod-kind-unique{ background-color: #fff8e1; }
.poe-mod-checklist > li.poe-mod-kind-corruption{ background-color: #efebe9; }
.poe-mod-checklist > li.poe-mod-kind-foulborn{ background-color: #efebe9; }
.poe-mod-checklist > li.poe-mod-kind-searing-exarch{ background-color: #fbe9e7; }
.poe-mod-checklist > li.poe-mod-kind-eater-of-worlds{ background-color: #e8eaf6; }

.poe-mod-checklist label{
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.poe-mod-checklist input[type="checkbox"]{
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.poe-mod-checklist input[type="checkbox"]:disabled{
    cursor: not-allowed;
}

.poe-mod-kind{
    font-weight: normal;
    font-size: 0.85em;
    color: #666666;
}

.poe-mod-sublist{
    list-style: none;
    margin: 2px 0 0 20px;
    padding: 0;
    font-size: 1em;
    font-weight: bold;
}

#poe-apply-filters-btn{
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid black;
    background-color: rgb(190, 245, 245);
    font-weight: bold;
    cursor: pointer;
}

#poe-apply-filters-btn:hover{
    background-color: rgb(150, 235, 235);
}

#poe-apply-filters-btn:disabled{
    cursor: not-allowed;
    opacity: 0.6;
}

.poe-results{
    flex: 1;
    min-width: 0;
}

.poe-trade-link{
    margin-bottom: 8px;
}

.poe-trade-link a{
    color: #0a6cad;
    font-weight: bold;
    text-decoration: none;
}

.poe-trade-link a:hover{
    text-decoration: underline;
}

.poe-result-count{
    font-size: 0.85em;
    color: #555555;
    margin-bottom: 8px;
}

.poe-result-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poe-result-card{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid black;
    background-color: #ffffff;
}

.poe-result-left{
    flex: 1;
    min-width: 0;
}

.poe-result-header{
    display: flex;
    align-items: center;
    gap: 10px;
}

.poe-result-icon{
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.poe-result-icon-empty{
    background-color: #eeeeee;
    border-radius: 4px;
}

.poe-result-name{
    font-weight: bold;
}

.poe-corrupted{
    color: #b71234;
    font-weight: normal;
}

.poe-unidentified{
    color: #7a5c00;
    font-weight: normal;
}

.poe-result-type{
    font-size: 0.85em;
    color: #555555;
}

.poe-result-stats{
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #dddddd;
    font-size: 0.85em;
    line-height: 1.5;
}

.poe-result-right{
    flex-shrink: 0;
    text-align: right;
    min-width: 130px;
}

.poe-result-price{
    font-weight: bold;
    font-size: 1.1em;
}

.poe-result-seller{
    font-size: 0.8em;
    color: #777777;
    margin: 4px 0 8px;
}

.poe-copy-whisper-btn{
    padding: 8px 10px;
    border-radius: 8px;
    border: 2px solid black;
    background-color: #ffe27a;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.poe-copy-whisper-btn:hover{
    background-color: #ffd23f;
}

/* kept well clear of the search/whisper buttons so ad clicks are never accidental */
.ad-container{
    margin-top: 40px;
    min-height: 90px;
    overflow: hidden;
}

.poe-disclaimer{
    font-size: 0.85em;
    color: #555555;
    text-align: center;
    margin-top: 24px;
}
