@keyframes perfecty-push-fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.perfecty-push-dialog-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 100000;
display: none;
align-items: center;
flex-wrap: wrap;
max-width: 420px;
background: #222;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
padding: 14px 18px;
color: #fff;
font-size: 14px;
font-weight: 400;
line-height: 1.5;
text-align: left;
animation: perfecty-push-fadeIn 0.25s ease-out;
box-sizing: border-box;
}
.perfecty-push-dialog-container[style*="display: flex"],
.perfecty-push-dialog-container[style*="display:flex"] {
display: flex;
}
.perfecty-push-dialog-close {
position: absolute;
top: 6px;
right: 8px;
width: 20px;
height: 20px;
border: none;
background: transparent;
color: #999;
font-size: 16px;
line-height: 1;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.15s ease;
padding: 0;
margin: 0;
}
.perfecty-push-dialog-close:hover {
color: #fff;
}
.perfecty-push-dialog-close:focus {
outline: 2px solid #8ab4f8;
outline-offset: 1px;
}
.perfecty-push-dialog-icon {
flex-shrink: 0;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
color: #8ab4f8;
}
.perfecty-push-dialog-icon svg {
width: 20px;
height: 20px;
fill: currentColor;
}
.perfecty-push-dialog-content {
flex: 1;
min-width: 0;
padding-right: 16px;
}
.perfecty-push-dialog-title {
font-size: 14px;
font-weight: 600;
margin: 0 0 3px;
color: #fff;
line-height: 1.3;
}
.perfecty-push-dialog-description {
font-size: 13px;
color: #ccc;
margin: 0;
line-height: 1.4;
}
.perfecty-push-dialog-buttons {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
margin-left: 8px;
}
.perfecty-push-dialog-buttons button {
font-size: 14px;
font-weight: 500;
border: none;
border-radius: 4px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
padding: 6px 12px;
text-align: center;
text-decoration: none;
transition: background-color 0.15s ease;
white-space: nowrap;
min-height: 32px;
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-cancel {
background: transparent;
color: #8ab4f8;
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-cancel:hover {
background: rgba(138, 180, 248, 0.1);
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-subscribe {
background: #8ab4f8;
color: #222;
font-weight: 600;
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-subscribe:hover {
background: #aecbfa;
}
.perfecty-push-settings-container {
position: fixed;
bottom: 15px;
left: 15px;
z-index: 100000;
display: block;
}
.perfecty-push-settings-container #perfecty-push-settings-open {
height: 48px;
width: 48px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: 0px;
margin: 0px;
padding: 0px;
outline: 0px;
box-sizing: border-box;
border-radius: 50%;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
display: flex;
align-items: center;
justify-content: center;
}
.perfecty-push-settings-container #perfecty-push-settings-open svg {
color: #ffffff;
width: 24px;
height: 24px;
fill: #fff;
outline: none;
box-sizing: border-box;
}
.perfecty-push-settings-container #perfecty-push-settings-open:hover,
.perfecty-push-settings-container #perfecty-push-settings-open:focus {
transform: scale(1.05);
box-shadow: 0 3px 15px rgba(102, 126, 234, 0.4);
}
@media (prefers-color-scheme: dark) {
.perfecty-push-dialog-container {
background: #1a1a1a;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.perfecty-push-dialog-title {
color: #e0e0e0;
}
.perfecty-push-dialog-description {
color: #aaa;
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-cancel {
color: #8ab4f8;
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-cancel:hover {
background: rgba(138, 180, 248, 0.15);
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-subscribe {
background: #8ab4f8;
color: #1a1a1a;
}
.perfecty-push-dialog-container .perfecty-push-dialog-buttons #perfecty-push-dialog-subscribe:hover {
background: #aecbfa;
}
.perfecty-push-dialog-close {
color: #666;
}
.perfecty-push-dialog-close:hover {
color: #ccc;
}
}
.perfecty-push-dialog-container:focus {
outline: 2px solid #8ab4f8;
outline-offset: 2px;
}
.perfecty-push-dialog-buttons button:focus {
outline: 2px solid #8ab4f8;
outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
.perfecty-push-dialog-container {
animation: none;
}
.perfecty-push-dialog-buttons button {
transition: none;
}
}
@media (pointer: coarse) {
.perfecty-push-dialog-buttons button {
min-height: 40px;
padding: 8px 16px;
}
.perfecty-push-settings-container #perfecty-push-settings-open {
height: 52px;
width: 52px;
}
.perfecty-push-settings-container #perfecty-push-settings-open svg {
width: 26px;
height: 26px;
}
}
@media only screen and (max-width: 480px) {
.perfecty-push-dialog-container {
bottom: 0;
left: 0;
right: 0;
max-width: 100%;
border-radius: 6px 6px 0 0;
padding: 14px 16px;
flex-wrap: wrap;
}
.perfecty-push-dialog-icon {
margin-right: 10px;
}
.perfecty-push-dialog-content {
padding-right: 8px;
}
.perfecty-push-dialog-title {
font-size: 14px;
}
.perfecty-push-dialog-description {
font-size: 12px;
}
.perfecty-push-dialog-buttons {
flex-direction: column;
gap: 6px;
margin-left: 0;
width: 100%;
margin-top: 10px;
}
.perfecty-push-dialog-buttons button {
width: 100%;
padding: 10px 16px;
font-size: 14px;
}
.perfecty-push-settings-container {
bottom: 10px;
left: 10px;
}
.perfecty-push-settings-container #perfecty-push-settings-open {
height: 40px;
width: 40px;
}
.perfecty-push-settings-container #perfecty-push-settings-open svg {
width: 20px;
height: 20px;
}
}
@media only screen and (max-height: 400px) and (orientation: landscape) {
.perfecty-push-dialog-container {
bottom: 8px;
left: 8px;
max-width: 360px;
padding: 10px 14px;
}
.perfecty-push-dialog-title {
font-size: 13px;
}
.perfecty-push-dialog-description {
font-size: 12px;
}
.perfecty-push-dialog-buttons button {
padding: 5px 10px;
font-size: 13px;
min-height: 28px;
}
}
@supports (padding: max(0px)) {
.perfecty-push-dialog-container {
padding-right: max(14px, env(safe-area-inset-right));
padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.perfecty-push-settings-container {
bottom: max(12px, env(safe-area-inset-bottom));
left: max(12px, env(safe-area-inset-left));
}
}