/**
 * Measure Guide - Button and Hint Styling
 */

/* Measure button sizing */
.measure-btn {
    flex: 1 !important;
    line-height: 1em !important;
}

/* First-time size selection - compact dark tooltip */
.measure-hint {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    width: max-content;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Speech bubble arrow */
.measure-hint::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Show hint when first size picked */
body.size-picked-first .measure-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Subtle highlight on the button when hint is shown */
body.size-picked-first .measure-btn {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.6);
    transition: box-shadow 0.3s ease;
}

/* Emoji wiggle */
.measure-hint .hint-emoji {
    display: inline-block;
    animation: fingerPoint 0.8s ease-in-out infinite;
}

@keyframes fingerPoint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
