@keyframes slideUpPrompt {
from {
transform: translateY(10px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
#perfecty-pwa-install-prompt {
position: fixed;
bottom: 20px;
right: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
padding: 12px 16px;
border-radius: 6px;
z-index: 99999;
animation: slideUpPrompt 0.25s ease-out;
max-width: 420px;
box-sizing: border-box;
}
.perfecty-pwa-prompt-content {
display: flex;
align-items: center;
gap: 10px;
position: relative;
}
.perfecty-pwa-prompt-icon {
width: 28px;
height: 28px;
background: rgba(255, 255, 255, 0.2);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.perfecty-pwa-prompt-icon svg {
width: 18px;
height: 18px;
fill: #fff;
}
.perfecty-pwa-prompt-text {
flex: 1;
font-size: 14px;
color: #fff;
font-weight: 500;
line-height: 1.4;
min-width: 0;
padding-right: 12px;
}
.perfecty-pwa-prompt-text strong {
font-size: 14px;
display: block;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.perfecty-pwa-prompt-description {
margin: 0;
line-height: 1.4;
opacity: 0.9;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.perfecty-pwa-prompt-features {
display: none;
}
.perfecty-pwa-prompt-buttons {
display: flex;
gap: 6px;
flex-shrink: 0;
}
.perfecty-pwa-prompt-button {
background: #fff;
color: #667eea;
border: none;
padding: 6px 14px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: background-color 0.15s ease;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1.2;
min-height: 32px;
white-space: nowrap;
}
.perfecty-pwa-prompt-button-primary {
background: #fff;
color: #667eea;
}
.perfecty-pwa-prompt-button-primary:hover {
background: #f0f0f0;
}
.perfecty-pwa-prompt-button-secondary {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
.perfecty-pwa-prompt-button-secondary:hover {
background: rgba(255, 255, 255, 0.25);
}
.perfecty-pwa-prompt-close {
position: absolute;
top: -6px;
right: -6px;
background: rgba(0, 0, 0, 0.3);
border: none;
font-size: 14px;
color: #fff;
cursor: pointer;
padding: 0;
border-radius: 50%;
line-height: 1;
transition: background 0.15s ease;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.perfecty-pwa-prompt-close:hover {
background: rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) {
#perfecty-pwa-install-prompt {
bottom: 0;
left: 0;
right: 0;
max-width: 100%;
border-radius: 6px 6px 0 0;
padding: 12px 14px;
}
.perfecty-pwa-prompt-content {
flex-wrap: wrap;
gap: 8px;
}
.perfecty-pwa-prompt-icon {
width: 24px;
height: 24px;
}
.perfecty-pwa-prompt-icon svg {
width: 16px;
height: 16px;
}
.perfecty-pwa-prompt-text {
flex: 1 1 calc(100% - 40px);
min-width: 0;
padding-right: 0;
}
.perfecty-pwa-prompt-text strong {
font-size: 13px;
}
.perfecty-pwa-prompt-description {
font-size: 12px;
}
.perfecty-pwa-prompt-buttons {
flex: 1 1 100%;
justify-content: center;
gap: 8px;
}
.perfecty-pwa-prompt-button {
padding: 8px 14px;
font-size: 13px;
min-height: 36px;
}
.perfecty-pwa-prompt-close {
position: absolute;
top: 4px;
right: 4px;
}
}
@media (prefers-color-scheme: dark) {
#perfecty-pwa-install-prompt {
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.perfecty-pwa-prompt-button {
background: #fff;
color: #1e3c72;
}
.perfecty-pwa-prompt-button-primary:hover {
background: #f0f0f0;
}
}