.wpm-box {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.wpm-box h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.wpm-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wpm-option {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wpm-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wpm-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
    user-select: none;
    flex-direction: column;
}

.wpm-option:hover span {
    border-color: #111827;
    transform: translateY(-1px);
}

.wpm-option input[type="radio"]:checked + span {
    border-color: #111827;
    background: #111827;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.wpm-total {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #d1d5db;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.wpm-price-note {
    margin-top: 14px;
}

/*
|--------------------------------------------------------------------------
| DISCOUNT BOX
|--------------------------------------------------------------------------
*/

.wpm-discount-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    margin-left: 10px !important;
}

.wpm-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1;
}

.wpm-new-price {
    font-size: 20px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
    letter-spacing: -0.5px;
}

.wpm-discount-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| PACKAGE PRICE
|--------------------------------------------------------------------------
*/

.wpm-package-price {
    margin-top: 10px;
    font-size: 14px;
    color: #4b5563;
}

.wpm-package-price strong {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

/*
|--------------------------------------------------------------------------
| DARK MODE
|--------------------------------------------------------------------------
*/

body.dark-mode .wpm-box,
.dark .wpm-box {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .wpm-box h3,
.dark .wpm-box h3,
body.dark-mode .wpm-total,
.dark .wpm-total {
    color: #f9fafb;
}

body.dark-mode .wpm-option span,
.dark .wpm-option span {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

body.dark-mode .wpm-option:hover span,
.dark .wpm-option:hover span {
    border-color: #9ca3af;
}

body.dark-mode .wpm-option input[type="radio"]:checked + span,
.dark .wpm-option input[type="radio"]:checked + span {
    background: #f9fafb;
    color: #111827;
    border-color: #f9fafb;
}

body.dark-mode .wpm-discount-box,
.dark .wpm-discount-box {
    background: rgba(220,38,38,.12);
    border-color: rgba(220,38,38,.25);
}

body.dark-mode .wpm-old-price,
.dark .wpm-old-price {
    color: #d1d5db;
}

body.dark-mode .wpm-package-price,
.dark .wpm-package-price {
    color: #f3f4f6;
}

body.dark-mode .wpm-package-price strong,
.dark .wpm-package-price strong {
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .wpm-box {
        padding: 16px;
    }

    .wpm-options {
        flex-direction: column;
    }

    .wpm-option {
        width: 100%;
    }

    .wpm-option span {
        width: 100%;
        justify-content: flex-start;
    }

    .wpm-discount-box {
        width: 100%;
        gap: 8px;
    }

    .wpm-new-price {
        font-size: 24px;
    }

    .wpm-discount-label {
        font-size: 10px;
        height: 24px;
        padding: 0 10px;
    }
}
/*
|--------------------------------------------------------------------------
| DISCOUNT BADGE
|--------------------------------------------------------------------------
*/

.wpm-discount-badge {
    position: absolute;
    top: -30px;
    right: -6px;
    z-index: 10;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 52px;
    height: 10px;
    padding: 0px 10px !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1;
    border-radius: 5px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .25);
    border: 0px !important;
    letter-spacing: -.2px;
}