/* ── Palmer Lead Time Widget ─────────────────────────────────────────────── */

.plt-wrap {
    max-width: 90%;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: 'Jost', sans-serif;
}

/* ── Table ── */
.plt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* ── Column widths ── */
.plt-th-img  { width: 140px; }
.plt-th-cat  { width: 24%; }
.plt-th-time { width: 24%; }
.plt-th-hide { width: 24%; }

/* ── Header row ── */
.plt-th {
    font-family: 'Jost', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    text-align: left !important;
    padding: 28px 24px !important;
    vertical-align: bottom !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.plt-th-img {
    padding-left: 0 !important;
}

/* ── Body rows ── */
.plt-row {
    border-bottom: 1px solid #ebebeb !important;
    transition: background-color 0.2s ease;
}

.plt-row:hover {
    background-color: transparent !important;
}

/* ── Thumbnail cell ── */
.plt-td-img {
    padding: 28px 28px 28px 0 !important;
    vertical-align: middle !important;
}

.plt-thumb {
    width: 130px !important;
    height: 130px !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    background: #f0f0f0 !important;
}

.plt-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ── Name cell ── */
.plt-td-name {
    padding: 28px 24px !important;
    vertical-align: middle !important;
}

.plt-name {
    display: block !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 10px !important;
}

.plt-code {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #999 !important;
    letter-spacing: 0.05em !important;
}

/* ── Category cell ── */
.plt-td-cat {
    padding: 28px 24px !important;
    vertical-align: middle !important;
}

.plt-cat-text {
    font-family: 'Jost', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    color: #4a4844 !important;
    letter-spacing: 0.02em !important;
}

/* ── Time cells ── */
.plt-td-time {
    padding: 28px 24px !important;
    vertical-align: middle !important;
    text-align: left !important;
}

.plt-weeks {
    font-family: 'Jost', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.02em !important;
}

/* ── Badges ── */
.plt-badge {
    display: inline-block !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
}

.plt-badge--short    { background-color: #e8f5f4 !important; color: #3a9e9b !important; }
.plt-badge--standard { background-color: #fef3e2 !important; color: #c08020 !important; }
.plt-badge--extended { background-color: #fdecea !important; color: #b83c3c !important; }

/* ── Mobile info block — hidden on desktop, shown on mobile ── */
.plt-mobile-info {
    display: none;
    margin-top: 12px;
}

.plt-mobile-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 5px;
}

.plt-mobile-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
    white-space: nowrap;
    min-width: 90px;
}

.plt-mobile-val {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1a1a1a;
}

/* ════════════════════════════════════════════════════════════════════════════
   SORT / FILTER BAR
   ════════════════════════════════════════════════════════════════════════════ */

.plt-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border: 1px solid #1a1a1a;
}

.plt-bar-prefix {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    white-space: nowrap;
    line-height: 1;
    align-self: center;
    margin-top: 2px;
}

.plt-bar-sep {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #999;
    padding: 0 2px;
}

.plt-dd {
    position: relative;
}

.plt-dd-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    line-height: 1;
}

.plt-dd-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #1a1a1a;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.plt-dd-toggle.is-open .plt-dd-arrow {
    transform: rotate(180deg);
}

.plt-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    width: max-content;
    background: #fff;
    border: 1px solid #1a1a1a;
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.plt-dd-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.plt-dd-item {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 12px 16px;
    cursor: pointer;
    display: block;
}

.plt-dd-item:hover { color: #3a9e9b; }
.plt-dd-item.is-selected { color: #3a9e9b; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .plt-wrap {
        padding: 32px 16px;
    }

    .plt-table {
        table-layout: auto !important;
    }

    .plt-table thead {
        display: none !important;
    }

    .plt-th-cat,
    .plt-td-cat,
    .plt-th-time,
    .plt-td-time,
    .plt-th-hide,
    .plt-td-time.plt-th-hide {
        display: none !important;
    }

    .plt-mobile-info {
        display: block;
    }

    .plt-th-img,
    .plt-th-cat,
    .plt-th-time,
    .plt-th-hide {
        width: auto !important;
    }

    .plt-td-img {
        width: 96px !important;
        padding: 16px 12px 16px 0 !important;
    }

    .plt-thumb {
        width: 80px !important;
        height: 80px !important;
    }

    .plt-td-name {
        padding: 16px 12px !important;
    }

    .plt-name {
        font-size: 1.05rem !important;
    }

    .plt-bar {
        width: 100%;
    }
}

/* ── Elementor transition dampener ── */
.plt-row,
.plt-row td,
.plt-row span {
    transition: background-color 0.2s ease, color 0.15s ease;
}


/* ── Info Icon & Popup ── */
.plt-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #bbb;
    background: transparent;
    color: #bbb;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease;
    margin-left: 8px;
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
}
.plt-info-btn:hover {
    border-color: #3a9e9b;
    color: #3a9e9b;
}

/* ── Popup overlay ── */
.plt-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.plt-popup-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Popup box ── */
.plt-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    z-index: 9999;
    background: #fff;
    border: 1px solid #1a1a1a;
    padding: 36px 40px 32px;
    max-width: 480px;
    width: calc(100vw - 48px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.plt-popup.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: all;
}
.plt-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.3rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    font-family: 'Jost', sans-serif;
    transition: color 0.15s ease;
}
.plt-popup-close:hover { 
    color: #ccc;
    background: transparent;
}

.plt-popup-title {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.plt-popup-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 18px;
}
.plt-popup-body {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #4a4844;
    line-height: 1.65;
}

/* ── Popup layout with image ── */
.plt-popup {
    max-width: 640px; /* widen to fit image + text side by side */
}

.plt-popup-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.plt-popup-img-el {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.plt-popup-text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 769px) {
    .plt-popup-inner {
        flex-direction: column;
    }
    .plt-popup-img-el {
        width: 100%;
        height: 100%;
    }
}

/* ── Price tier ── */
.plt-popup-price-el {
    display: block;
    margin: 8px 0 14px;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.plt-price-filled {
    color: #1a1a1a;
    font-weight: 600;
}

.plt-price-empty {
    color: #ddd;
    font-weight: 400;
}

.plt-popup .plt-badge {
    display: none !important;
}