/* SignaturePad component styles
   Include via: <link href="_content/SignaturePad/signaturePad.css" rel="stylesheet" />
*/

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.signature-pad-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

/* ── Canvas area ─────────────────────────────────────────────────────────── */
.signature-pad-canvas-wrapper {
    position: relative;
    width: 100%;
    /* 3 : 1 aspect ratio by default — override as needed */
    height: 200px;
    background: #f9f9f9;
}

.signature-pad-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none; /* prevent scroll-while-drawing on touch */
}

.signature-pad-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.15;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.signature-pad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    min-height: 38px;
    flex-wrap: wrap;
    gap: 6px;
}

.signature-pad-footer-directive {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.signature-pad-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Action buttons / pen picker ─────────────────────────────────────────── */
.signature-pad-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
}

.signature-pad-action:hover {
    background: #e8e8e8;
    border-color: #999;
}

.signature-pad-action:active {
    background: #d8d8d8;
}

/* ── Pen colour picker ───────────────────────────────────────────────────── */
.signature-pad-pen-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.signature-pad-color-input {
    width: 28px;
    height: 22px;
    padding: 1px 2px;
    border: 1px solid #bbb;
    border-radius: 3px;
    cursor: pointer;
    background: none;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.d-none {
    display: none !important;
}
