/* AMA Custom Label - Frontend Styles */

/* Canvas container - overlaid on the product image gallery */
.ama-canvas-container {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    pointer-events: none;
}

.ama-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Rotulo input field */
.ama-rotulo-field {
    margin-bottom: 16px;
}

.ama-rotulo-input-wrap {
    margin-top: 16px;
}

.ama-rotulo-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.ama-rotulo-label strong {
    font-weight: 600;
}

.ama-rotulo-hint {
    font-weight: 400;
    color: #6b6b6b;
    margin-left: 4px;
    font-size: 0.9em;
}

.ama-rotulo-textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    font-size: 0.95em;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease;
    background: #fff;
    color: #333;
}

.ama-rotulo-textarea:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 1px #96588a;
}

.ama-rotulo-textarea.ama-error {
    border-color: #cc0000;
    box-shadow: 0 0 0 1px #cc0000;
}

/* Validation message */
.ama-rotulo-validation {
    font-size: 0.85em;
    margin-top: 4px;
    min-height: 20px;
    color: #cc0000;
}

/* Tilt control - radio buttons */
.ama-tilt-control {
    margin-top: 12px;
    margin-bottom: 8px;
}

.ama-tilt-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.ama-tilt-label strong {
    font-weight: 600;
}

.ama-tilt-options {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ama-tilt-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95em;
}

.ama-tilt-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #96588a;
}

.ama-tilt-option span {
    user-select: none;
}

/* Version badge */
.ama-version-badge {
    position: fixed;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: #bbb;
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 9999;
    letter-spacing: 0.03em;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ama-rotulo-textarea {
        font-size: 16px; /* previne zoom automatico no iOS */
    }

    .ama-version-badge {
        bottom: 60px;
    }
}
