/**
 * Shared Frame Preview Button Styles
 *
 * Reusable button component for toggling frame preview.
 * Used by both the Hover Image widget and Product Cards.
 *
 * @package Imagelet_Product_Types
 */

/* ========================================
   Frame Preview Button
   ======================================== */
.ipt-frame-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    animation: ipt-icon-pulse 1.8s ease-in-out infinite;
    border: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    line-height: 1;
    font-size: 0;
    color: transparent;
    text-decoration: none;
}

/* Expanded invisible hit area — easier to tap/click without making button visually bigger */
.ipt-frame-preview-btn::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    bottom: -12px;
    left: -12px;
}

@keyframes ipt-icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
}

.ipt-frame-preview-btn:hover {
    animation: none;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ipt-frame-preview-btn:active {
    transform: scale(0.95);
    background: #f0f0f0;
    animation: none;
}

.ipt-frame-preview-btn svg {
    width: 20px;
    height: 20px;
    fill: #444;
    pointer-events: none;
    display: block;
}
