.pages-storefront {
    all: unset;
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10000;
}

.pages-storefront-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #121212;
    background-image: url(../../../../modules/App/assets/img/logo.svg);
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: 50%;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pages-storefront:hover .pages-storefront-trigger {
    opacity: 1;
    transform: translateY(0);
}

storefront-highlight {
    display: none;
    position: absolute;
    z-index: 2147483647; /* Max z-index */
    pointer-events: none;
    will-change: transform, width, height;
}

storefront-highlight[active="true"] {
    display: block;
}

.storefront-highlight-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 4px 12px rgba(59, 130, 246, 0.2);
    pointer-events: none;
    transition: all 0.2s ease;
}

.storefront-highlight-actions {
    all: unset;
    position: absolute;
    top: -30px;
    left: 0;
    height: 28px;
    padding: 0 12px;
    background-color: #3b82f6;
    color: #fff;
    border-radius: 4px 4px 0 0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-origin: bottom left;
    animation: sf-pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.storefront-highlight-actions:hover {
    background-color: #2563eb;
}

.storefront-highlight-actions::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
}

.storefront-highlight-actions[title]:before {
    content: attr(title);
    display: inline;
    margin-right: 4px;
}

/* Handle edge case where element is at the top of the page */
storefront-highlight.top-aligned .storefront-highlight-actions {
    top: 100%;
    border-radius: 0 0 4px 4px;
    transform-origin: top left;
}

@keyframes sf-pop {
    from { transform: scale(0.9) translateY(5px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
