/* Wrapper ngoài */
.ppph-wrapper {
    padding: 41px 40px 20px 40px;
    border: dashed 2px #529cd2;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* ---- hành động (2 nút ngang) ---- */
.ppph-actions{
    display:flex;
    gap:14px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    margin-bottom:18px;
}

/* kiểu chung cho nút */
.ppph-btn {
    padding:12px 16px;
    border-radius:5px;
    border:none;
    font-weight:600;
    cursor:pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display:inline-block;
    min-width:160px;
    text-align:center;
}

/* nút chính trên hàng hành động */
.ppph-actions .ppph-primary {
    width:auto;
    min-width:220px;
}

/*Getlink */
.ppph-wrapper .ppph-form .ppph-form-submit {
    width: auto !important;
    min-width:260px;
    display:block;
    margin:10px auto 0 auto;
}

/* style chung primary/help */
.ppph-primary { background: linear-gradient(135deg,#3498db,#2ecc71); color:#fff; }
.ppph-helpbtn { background:#eb0600; color:#fff; }

/* hover effect */
.ppph-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Password*/
.ppph-wrapper .ppph-input {
    display:block;
    width:30em !important;      
    max-width:100% !important;    /* responsive */
    margin:12px auto;
    padding:12px 14px;
    border:1px solid #e1e7f0;
    font-size:15px;
    height: 3.507em;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}
.ppph-wrapper .ppph-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}

/* popup */
.ppph-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center;
    z-index: 99999;
}
.ppph-box {
    background: rgba(255,255,255,0.98);
    border-radius: 14px;
    padding: 22px;
    width: 92%;
    max-width: 660px;
    box-shadow: 0 10px 40px rgba(2,6,23,0.12);
    position: relative;
}
.ppph-close {
    position: absolute; top: 12px; right: 12px;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; background: linear-gradient(180deg,#fff,#f3f6fb);
    display: inline-flex; align-items:center; justify-content:center;
    cursor: pointer; box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}
.ppph-close:hover { transform: scale(1.05); background: linear-gradient(180deg,#ff6464,#ff4d4d); color:#fff; }

.ppph-title { font-size:18px; margin:0 0 12px 0; color:#1f2d3d; display:flex; align-items:center; gap:10px; }

.ppph-error { color:#c53030; display:none; margin-top:8px; }

.ppph-protected { display:none; margin-top:14px; padding:12px; border-radius:10px; border:1px solid #d8f3e3; background:#f7fff9; }

/* Responsive: nếu màn nhỏ hơn 480px, input sẽ chiếm 100% */
@media (max-width:480px) {
    .ppph-actions { flex-direction:column; gap:10px; }
    .ppph-actions .ppph-primary, .ppph-actions .ppph-helpbtn { width:100%; min-width: unset; }
    .ppph-wrapper .ppph-input { width: 100% !important; max-width: none !important; }
    .ppph-wrapper .ppph-form .ppph-form-submit { width: 100% !important; min-width: unset; }
}
