/* ================= HARD RESET (ANTI-THEME) ================= */
.wpa-wrapper,
.wpa-wrapper * {
    box-sizing: border-box;
}

.wpa-wrapper {
    display: block;
    width: 100%;
    font-family: inherit;
}

/* ================= ADDON LIST ================= */
.wpa-addons {
    margin: 20px 0;
}

/* ================= CARD ================= */
.wpa-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    padding: 12px;
    margin-bottom: 12px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;

    transition: all .2s ease;
    cursor: pointer;
    position: relative;
}

/* Hover */
.wpa-card:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Selected */
.wpa-card.wpa-selected {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

/* ================= LEFT ================= */
.wpa-left {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* ================= INPUT FIX ================= */
/* ================= FIX NUMBER INPUT ================= */
.wpa-card input[type="number"],
.wpa-qty {
    -webkit-appearance: auto;
    appearance: auto;

    width: 42px;
    height: 30px;

    border: 1px solid #ccc;
    border-radius: 6px;

    text-align: center;
    font-size: 13px;

    background: #fff;
    color: #000;

    padding: 2px;
    box-sizing: border-box;
}

/* Checkbox */
.wpa-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #22c55e; /* modern styling */
}

/* ================= IMAGE ================= */
.wpa-img {
    flex: 0 0 auto;
}

.wpa-img img {
    display: block;
    width: 55px !important;
    height: 55px !important;
    border-radius: 8px;
    object-fit: cover;
}

/* ================= CENTER ================= */
.wpa-center {
    flex: 1 1 auto;
    min-width: 0;
}

.wpa-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.wpa-price {
    font-size: 12px;
}

.wpa-price del {
    color: #999;
    margin-right: 4px;
}

/* ================= RIGHT ================= */
.wpa-right {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

/* Qty */
.wpa-qty {
    width: 38px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
}

/* ================= BADGE ================= */
.wpa-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 600;

    padding: 6px 4px;
    border-radius: 20px;

    writing-mode: vertical-rl;
    transform: rotate(180deg);

    line-height: 1;
    white-space: normal;
    min-height: 60px;
}

.wpa-popular { background: #f97316; color: #fff; }
.wpa-recommended { background: #3b82f6; color: #fff; }
.wpa-free { background: #22c55e; color: #fff; }

/* ================= PREVIEW ================= */
.wpa-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.wpa-preview img {
    width: 240px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ================= LOAD MORE ================= */

.wpa-hidden {
    display: none !important;
} 
.wpa-load-wrap {
    text-align: center;
    margin-top: 12px;
}

.wpa-load-more {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg,#ff5f6d,#ffc371);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {

    .wpa-card {
        gap: 8px;
        padding: 10px;
    }

    .wpa-img img {
        width: 48px !important;
        height: 48px !important;
    }

    .wpa-title {
        font-size: 12px;
    }

    .wpa-price {
        font-size: 11px;
    }

    .wpa-qty {
        width: 34px;
        height: 26px;
        font-size: 11px;
    }

    /* Hide badge on mobile */
    .wpa-badge {
        display: none !important;
    }
}




.wpa-upgrade-box {
    background: #fff;
    border: 1px dashed #e50914;
    padding: 14px;
    text-align: center;
    border-radius: 10px;
    color: #222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wpa-upgrade-box strong {
    color: #e50914;
}

.wpa-upgrade-btn {
    display: inline-block;
    margin-top: 10px;
    background: #e50914;
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.wpa-upgrade-btn:hover {
    background: #c40812;
}