.cdp-wrapper {
position: relative;
display: inline-block;
} .cdp-modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
z-index: 99999;
display: flex !important;
align-items: center;
justify-content: center;
padding: 16px;
backdrop-filter: blur(3px);
animation: cdp-fade-in 0.18s ease;
}
@keyframes cdp-fade-in {
from { opacity: 0; }
to   { opacity: 1; }
}
.cdp-modal {
background: #fff;
border-radius: 14px;
padding: 32px 28px 24px;
width: 100%;
max-width: 360px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
animation: cdp-slide-up 0.22s ease;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
box-sizing: border-box;
}
@keyframes cdp-slide-up {
from { transform: translateY(20px); opacity: 0; }
to   { transform: translateY(0);    opacity: 1; }
}
.cdp-modal-header {
text-align: center;
margin-bottom: 20px;
}
.cdp-lock-icon {
font-size: 28px;
display: block;
margin-bottom: 8px;
}
.cdp-modal-header h3 {
margin: 0 0 4px;
font-size: 18px;
font-weight: 700;
color: #1a1a2e;
line-height: 1.3;
}
.cdp-subtitle {
margin: 0;
font-size: 13px;
color: #666;
}
.cdp-canvas-wrap {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 14px;
}
.cdp-canvas {
border-radius: 8px;
border: 2px solid #e0e0e0;
background: #f9f9f9;
display: block;
cursor: default;
user-select: none;
}
.cdp-refresh-btn {
background: #f0f0f0;
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
font-size: 20px;
cursor: pointer;
color: #555;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, transform 0.2s;
flex-shrink: 0;
padding: 0;
}
.cdp-refresh-btn:hover {
background: #ddd;
transform: rotate(90deg);
}
.cdp-input-wrap {
margin-bottom: 10px;
}
.cdp-input {
width: 100%;
padding: 11px 14px;
font-size: 17px;
letter-spacing: 3px;
text-align: center;
border: 2px solid #d0d0d0;
border-radius: 8px;
outline: none;
box-sizing: border-box;
transition: border-color 0.15s;
font-family: "Courier New", monospace;
text-transform: uppercase;
}
.cdp-input:focus {
border-color: #4f46e5;
}
.cdp-input.cdp-input-error {
border-color: #e53e3e;
animation: cdp-shake 0.35s ease;
}
@keyframes cdp-shake {
0%,100% { transform: translateX(0); }
25%      { transform: translateX(-6px); }
75%      { transform: translateX(6px); }
}
.cdp-error {
text-align: center;
font-size: 13px;
color: #e53e3e;
font-weight: 600;
margin-bottom: 10px;
}
.cdp-actions {
display: flex;
gap: 10px;
margin-top: 16px;
}
.cdp-cancel-btn,
.cdp-submit-btn {
flex: 1;
padding: 11px 16px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
}
.cdp-cancel-btn {
background: #f0f0f0;
color: #555;
}
.cdp-cancel-btn:hover { background: #e0e0e0; }
.cdp-submit-btn {
background: #4f46e5;
color: #fff;
}
.cdp-submit-btn:hover    { background: #4338ca; }
.cdp-submit-btn:active,
.cdp-cancel-btn:active   { transform: scale(0.97); }
.cdp-submit-btn:disabled { background: #a5b4fc; cursor: not-allowed; }
.cdp-submit-btn.cdp-success { background: #16a34a; }
@media (max-width: 420px) {
.cdp-modal { padding: 24px 18px 18px; }
}