﻿.pd-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: pdFadeIn 0.3s ease;
    padding: 24px;
    box-sizing: border-box;
}

.pd-modal {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: pdPopup 0.3s ease;
}

/* ===== Header ===== */
.pd-header {
    background: #0d6dbf;
    color: #fff;
    padding: 12px 24px;
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.pd-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-header-title {
    font-size: 15px;
    font-weight: 600;
}

.pd-close-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

    .pd-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ===== Step indicator ===== */
.pd-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.pd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pd-step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-step.active .pd-step-circle {
    background: #ffb020;
    color: #1a1a1a;
}

.pd-step.done .pd-step-circle {
    background: #ffffff;
    color: #0d6dbf;
}

.pd-step-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.pd-step.active .pd-step-label,
.pd-step.done .pd-step-label {
    color: #fff;
}

.pd-step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: -16px;
}

/* ===== Body ===== */
.pd-body {
    padding: 20px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pd-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    flex-shrink: 0;
}

.pd-columns {
    display: flex;
    gap: 20px;
    flex: 1;
}

.pd-card {
    flex: 1;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 16px 18px 26px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.pd-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.pd-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #e7eaee;
}

.pd-label {
    color: #6b7280;
}

.pd-value {
    color: #1a1a1a;
    font-weight: 600;
}

.pd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.pd-total-amount {
    color: #0d6dbf;
    font-size: 16px;
}

/* ===== Payment Method ===== */
.pd-payment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.pd-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
}

    .pd-payment-option input[type="radio"] {
        width: 16px;
        height: 16px;
        accent-color: #0d6dbf;
        cursor: pointer;
    }

.pd-payment-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.pd-icon-easypaisa {
    width: 20px;
    height: 20px;
}

.pd-payment-error {
    font-size: 12px;
    color: #d93025;
    font-weight: 500;
    margin-top: 4px;
}

.pd-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.pd-back-btn {
    flex: 1;
    padding: 11px;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .pd-back-btn:hover {
        background: #f1f2f4;
    }

.pd-buy-btn {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #0d6dbf;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .pd-buy-btn:hover {
        opacity: 0.9;
    }

@media (max-width: 600px) {
    .pd-columns {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .pd-body {
        padding: 16px 16px 20px;
    }

    .pd-actions {
        flex-direction: column;
    }
}

@keyframes pdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pdPopup {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
