/* ==========================================================================
   EPP Price List Widget
   ========================================================================== */

/* ── List layout ── */
.eppro-price-list--list {
    display: flex;
    flex-direction: column;
}

/* ── Grid layout ── */
.eppro-price-list--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ── Item ── */
.eppro-pl-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.eppro-pl-item--separator:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.eppro-price-list--grid .eppro-pl-item {
    flex-direction: column;
}

/* Image-right variant */
.eppro-pl-item--img-right {
    flex-direction: row-reverse;
}

/* ── Image ── */
.eppro-pl-image {
    width: 80px;
    min-width: 80px;
    flex-shrink: 0;
}

.eppro-pl-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.eppro-price-list--grid .eppro-pl-image {
    width: 100%;
}

.eppro-price-list--grid .eppro-pl-image img {
    height: 180px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

/* ── Content ── */
.eppro-pl-content {
    flex: 1;
    min-width: 0;
}

/* ── Header row ── */
.eppro-pl-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.eppro-pl-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* ── Dotted leader (list layout only) ── */
.eppro-price-list--list .eppro-pl-title-wrap::after {
    content: '';
    flex: 1;
    min-width: 16px;
    border-bottom: 2px dotted #d1d5db;
    margin: 0 4px;
    align-self: center;
}

/* ── Title ── */
.eppro-pl-title {
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.eppro-pl-title a {
    color: inherit;
    text-decoration: none;
}

.eppro-pl-title a:hover {
    text-decoration: underline;
}

/* ── Price ── */
.eppro-pl-price {
    font-weight: 700;
    font-size: 1rem;
    color: #1d4ed8;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Description ── */
.eppro-pl-desc {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ── Badge ── */
.eppro-pl-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: #1d4ed8;
    color: #fff;
    line-height: 1.6;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Grid card styling ── */
.eppro-price-list--grid .eppro-pl-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.eppro-price-list--grid .eppro-pl-content {
    padding: 14px 16px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .eppro-price-list--grid {
        grid-template-columns: 1fr;
    }
}
