/* ── Overlay backdrop ── */
.rcuk-pa-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.rcuk-pa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

/* ── Slide-up panel ── */
.rcuk-pa-panel {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 960px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding: 28px 24px 20px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, .25);
    transform: translateY(100%);
    animation: rcukPaSlideUp .4s ease forwards;
}
@keyframes rcukPaSlideUp {
    to { transform: translateY(0); }
}

/* ── Close button ── */
.rcuk-pa-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}
.rcuk-pa-close:hover {
    color: #000;
}

/* ── Message ── */
.rcuk-pa-message {
    font-size: 18px;
    font-weight: 600;
    color: #0a0f1e;
    margin: 0 0 18px;
    text-align: center;
}

/* ── Carousel wrapper ── */
.rcuk-pa-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rcuk-pa-carousel {
    overflow: hidden;
    flex: 1;
}
.rcuk-pa-track {
    display: flex;
    gap: 16px;
    transition: transform .35s ease;
}

/* ── Arrows ── */
.rcuk-pa-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rcuk-pa-arrow:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.rcuk-pa-arrow:disabled {
    opacity: .3;
    cursor: default;
}

/* ── Product cards ── */
.rcuk-pa-card {
    flex: 0 0 200px;
    text-align: center;
    background: #fafafa;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rcuk-pa-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 8px;
}
.rcuk-pa-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
    color: #222;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rcuk-pa-card h4 a {
    color: inherit;
    text-decoration: none;
}
.rcuk-pa-card h4 a:hover {
    color: #048de0;
}
.rcuk-pa-price {
    font-size: 15px;
    font-weight: 700;
    color: #048de0;
    margin-bottom: 8px;
    display: block;
}
.rcuk-pa-stock {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    display: inline-block;
}
.rcuk-pa-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}
.rcuk-pa-stock.backorder {
    background: #fff3cd;
    color: #856404;
}
.rcuk-pa-btn {
    display: inline-block;
    padding: 7px 18px;
    background: #048de0;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    transition: background .2s;
}
.rcuk-pa-btn:hover {
    background: #036bb0;
}

/* ── Dismiss button ── */
.rcuk-pa-dismiss {
    display: block;
    margin: 18px auto 0;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}
.rcuk-pa-dismiss:hover {
    color: #444;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .rcuk-pa-panel {
        padding: 20px 12px 16px;
        border-radius: 12px 12px 0 0;
    }
    .rcuk-pa-message {
        font-size: 15px;
    }
    .rcuk-pa-card {
        flex: 0 0 160px;
        padding: 10px;
    }
    .rcuk-pa-card img {
        width: 120px;
        height: 120px;
    }
    .rcuk-pa-arrow {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
