/* Woo Linked Editions styles (v1.0.4) */
.wle-editions {
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.wle-header {
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(153,0,0,0.06), rgba(0,45,114,0.06));
    border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; gap: 10px;
}
.wle-dot { width: 10px; height: 10px; border-radius: 9999px; background: #9b1c2e; }
.wle-title { font-weight: 700; color: #0f172a; margin: 0; font-size: 1rem; }

/* Items list */
.wle-items { display: flex; flex-direction: column; }
.wle-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.wle-item:last-child { border-bottom: 0; }

/* Larger cover */
.wle-cover img {
    width: 78px; height: 114px; object-fit: cover;
    border-radius: 8px; border: 1px solid #e5e7eb;
    transition: transform .2s ease;
}
.wle-cover:hover img { transform: translateY(-2px); }

/* Meta on two lines */
.wle-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.wle-line { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; align-items: baseline; }
.wle-label { color: #6b7280; }
.wle-publisher { font-weight: 700; color: #002d72; }
.wle-format { color: #334155; }
.wle-isbn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #475569; font-size: .9rem; }

/* Side (price + stock + actions) */
.wle-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.wle-price { font-weight: 800; color: #111827; min-width: 64px; text-align: right; }
.wle-stock { font-size: .9rem; color: #374151; min-width: 80px; text-align: left; }

.wle-actions { display: flex; align-items: center; gap: 10px; }

/* Custom cart button independent of theme */
.wle-actions .wle-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #002d72 !important;
    border: 1px solid #002d72 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    position: relative;
}
.wle-actions .wle-cart-btn:hover { background: #002d72 !important; color: #fff !important; }

.wle-actions .wle-cart-ic { display: block !important; width: 20px; height: 20px; }
.wle-actions .wle-cart-ic path { fill: currentColor; stroke: currentColor; }

.wle-switch { font-size: .9rem; text-decoration: underline; color: #9b1c2e; }

/* Mobile */
@media (max-width: 768px) {
    .wle-item { align-items: flex-start; }
    .wle-side { flex-direction: column; align-items: flex-end; gap: 6px; }
    .wle-cover img { width: 68px; height: 100px; }
}
