/**
 * Basis-CSS für die Boxyfy Product Ranking Metabox.
 */

/* Input-Felder */
.boxyfy-product-ranking-field,
.boxyfy-ranking-input {
    width: 100px;
}

/* Debug-Ausgaben */
.boxyfy-debug-box {
    margin-bottom: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
}
.boxyfy-debug-log {
    margin-bottom: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
}
.boxyfy-debug-log-missing {
    margin-bottom: 10px;
    background: #ffeeba;
    border: 1px solid #ffeeba;
    padding: 10px;
}

/* Ranking Liste */
.boxyfy-ranking-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Einzelnes Ranking-Item */
.boxyfy-ranking-item {
    min-width: 600px;
    padding: 12px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: move;
}

/* Hintergrundfarben für Ranking-Items */
.boxyfy-current-product {
    background-color: rgba(5, 150, 255, 0.15);
}
.boxyfy-other-product {
    background-color: #f4f4f4;
}

/* Rand-Stile für Top-3-Platzierungen */
.boxyfy-border-gold {
    border-left: 4px solid gold;
}
.boxyfy-border-silver {
    border-left: 4px solid silver;
}
.boxyfy-border-bronze {
    border-left: 4px solid #cd7f32;
}
.boxyfy-border-none {
    border-left: 4px solid transparent;
}

/* Titel der Ranking-Items */
.boxyfy-ranking-title {
    text-align: left;
    flex: 1;
}

/* Bewertung */
.boxyfy-product-rating-wrapper {
    float: right;
    margin-right: 10px;
}
.boxyfy-product-rating-disabled {
    width: 50px;
    background-color: #e9e9e9;
    color: #666;
}
.product-rating-input {
    width: 50px;
}

/* Button "Produkt aus Ranking entfernen" */
.boxyfy-remove-product-btn-wrapper {
    margin-top: 10px;
}
.boxyfy-remove-product-btn {
    display: flex;
    align-items: center;
    padding: 5px 9px;
    background: #016799;
    color: #fff;
    border: none;
    cursor: pointer;
}
.boxyfy-remove-icon {
    margin-right: 5px;
}
