/* Range 360 - Waiver signing form */

/* Fills the width of whatever column/section the block is placed in by
   default (100%), then the "Form Size" percentage scales the whole thing as
   a unit via zoom — so resizing enlarges/shrinks everything together (text,
   fields, signature pad) like resizing a text box, instead of just changing
   the container width and reflowing/word-wrapping the text differently. */
.r360-waiver-wrap {
    width: 100%;
    zoom: var(--r360-waiver-scale, 1);
}

/* When the block itself is center/right aligned, keep the (scaled-size)
   form centered/right-aligned within it too. */
.wp-block-r360-waiver.aligncenter .r360-waiver-wrap {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-r360-waiver.alignright .r360-waiver-wrap {
    margin-left: auto;
}

.r360-waiver-text img {
    max-width: 100%;
    height: auto;
}

.r360-waiver-text {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #333;
}

.r360-waiver-already-signed {
    background: #edfaef;
    border-left: 4px solid #1a6627;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.r360-waiver-row {
    margin-bottom: 18px;
}

.r360-waiver-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.r360-waiver-row input[type="text"],
.r360-waiver-row input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 10px;
    border: 1px solid #a0aab4;
    border-radius: 4px;
    font-size: 1em;
}

.r360-required {
    color: #d63638;
}

/* Inline {Placeholder} fields embedded directly in the waiver text.
   Doubled class (instead of a single class selector) so this reliably beats
   the theme's same-specificity input[type=...] rule, which also sets width
   and would otherwise win the tie depending on stylesheet load order. */
.r360-inline-field.r360-inline-field {
    display: inline-block;
    width: var(--r360-waiver-field-width, 200px);
    max-width: 100%;
    padding: 3px 8px;
    border: 0;
    border-bottom: 2px solid #2271b1;
    border-radius: 0;
    background: #fff;
    font-size: 1em;
    font-family: inherit;
}

.r360-inline-date {
    padding: 0 2px;
}

.r360-inline-signature-wrap {
    display: inline-block;
    vertical-align: bottom;
}

.r360-inline-signature-pad {
    display: block;
    border: 2px dashed #a0aab4;
    border-radius: 6px;
    background: #fff;
    max-width: 100%;
    touch-action: none;
    cursor: crosshair;
}

.r360-inline-clear {
    margin-top: 4px;
}

/* Draw / Type signature mode toggle */
.r360-sig-mode-toggle {
    display: block;
    margin-bottom: 8px;
}

.r360-sig-mode-btn {
    background: #f0f0f1;
    border: 1px solid #a0aab4;
    padding: 4px 10px;
    font-size: 0.85em;
    cursor: pointer;
    color: #333;
}

.r360-sig-mode-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.r360-sig-mode-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.r360-sig-mode-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.r360-sig-mode-panel {
    display: block;
}

.r360-signature-preview {
    cursor: default;
}

.r360-signature-typed-input {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid #a0aab4;
    border-radius: 4px;
    font-size: 1em;
}

.r360-signature-font-select {
    display: block;
    margin-bottom: 8px;
    padding: 4px 8px;
    border: 1px solid #a0aab4;
    border-radius: 4px;
    font-size: 0.9em;
}

.r360-signature-pad-wrap {
    display: block;
    margin-bottom: 8px;
}

#r360-signature-pad {
    max-width: 100%;
    touch-action: none;
    cursor: crosshair;
}

.r360-signature-hint {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 6px;
}

.r360-message {
    display: block;
    padding: 10px 14px;
    border-radius: 3px;
    margin: 14px 0;
    font-size: 0.95em;
}

.r360-message:empty {
    display: none;
}

.r360-msg-success {
    background: #edfaef;
    color: #1a6627;
    border-left: 4px solid #1a6627;
}

.r360-msg-error {
    background: #fce9e9;
    color: #8a2424;
    border-left: 4px solid #d63638;
}

.r360-msg-info {
    background: #f0f6fc;
    color: #1c5175;
    border-left: 4px solid #2271b1;
}
