@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: 20px;
left: 53px;
z-index: 9999;
display: block;
}
.perfecty-push-settings-container #perfecty-push-settings-open {
height: 36px;
width: 36px;
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: 20px;
height: 20px;
fill: #fff;
outline: none;
box-sizing: border-box;
}
.perfecty-push-settings-container #perfecty-push-settings-open img {
width: 20px;
height: 20px;
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(255, 107, 107, 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 {
bottom: 20px;
left: 53px;
}
.perfecty-push-settings-container #perfecty-push-settings-open {
height: 36px;
width: 36px;
}
.perfecty-push-settings-container #perfecty-push-settings-open svg {
width: 20px;
height: 20px;
}
}
@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: 20px;
left: 53px;
}
.perfecty-push-settings-container #perfecty-push-settings-open {
height: 36px;
width: 36px;
}
.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));
}
}
@keyframes perfecty-push-ios-fadeIn {
from { opacity: 0; transform: translateX(-50%) translateY(10px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.perfecty-push-ios-guide {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: #fff;
color: #333;
padding: 16px 20px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
z-index: 99999;
font-size: 14px;
max-width: 90%;
width: 320px;
text-align: center;
line-height: 1.6;
border: 1px solid #e0e0e0;
animation: perfecty-push-ios-fadeIn 0.3s ease-out;
box-sizing: border-box;
}
.perfecty-push-ios-close {
position: absolute;
top: 8px;
right: 10px;
cursor: pointer;
font-size: 18px;
color: #999;
line-height: 1;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color 0.15s ease;
}
.perfecty-push-ios-close:hover {
background: rgba(0, 0, 0, 0.05);
color: #666;
}
.perfecty-push-ios-emoji {
font-size: 24px;
margin-bottom: 8px;
}
.perfecty-push-ios-title {
margin-bottom: 12px;
font-weight: 500;
}
.perfecty-push-ios-desc {
margin-bottom: 12px;
color: #666;
}
.perfecty-push-ios-btn {
background: #007AFF;
color: #fff;
border: none;
padding: 10px 24px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
width: 100%;
transition: background-color 0.15s ease;
}
.perfecty-push-ios-btn:hover {
background: #0066d6;
}
.perfecty-push-ios-btn:active {
background: #0055b3;
}
@media (prefers-color-scheme: dark) {
.perfecty-push-ios-guide {
background: #1a1a1a;
color: #e0e0e0;
border-color: #333;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.perfecty-push-ios-close {
color: #666;
}
.perfecty-push-ios-close:hover {
background: rgba(255, 255, 255, 0.1);
color: #999;
}
.perfecty-push-ios-desc {
color: #aaa;
}
.perfecty-push-ios-btn {
background: #0a84ff;
}
.perfecty-push-ios-btn:hover {
background: #409cff;
}
}
@media (prefers-reduced-motion: reduce) {
.perfecty-push-ios-guide {
animation: none;
}
}
@keyframes perfecty-push-direct-fadeIn {
from { opacity: 0; transform: translateX(-50%) translateY(10px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.perfecty-push-direct-btn {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 99999;
animation: perfecty-push-direct-fadeIn 0.3s ease-out;
}
.perfecty-push-direct-btn-button {
background: #4CAF50;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: background-color 0.15s ease;
}
.perfecty-push-direct-btn-button:hover {
background: #43a047;
}
.perfecty-push-direct-btn-button:active {
background: #388e3c;
}
@media (prefers-color-scheme: dark) {
.perfecty-push-direct-btn-button {
background: #66bb6a;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.perfecty-push-direct-btn-button:hover {
background: #81c784;
}
}
@media (prefers-reduced-motion: reduce) {
.perfecty-push-direct-btn {
animation: none;
}
}
.perfecty-push-permission-guide-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
animation: perfecty-push-fadeIn 0.2s ease-out;
}
.perfecty-push-permission-guide-box {
background: #fff;
border-radius: 12px;
padding: 24px;
max-width: 320px;
margin: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
text-align: center;
}
.perfecty-push-permission-guide-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 16px;
color: #333;
}
.perfecty-push-permission-guide-text {
font-size: 14px;
color: #666;
margin-bottom: 20px;
line-height: 1.6;
text-align: left;
}
.perfecty-push-permission-guide-close {
width: 100%;
padding: 12px;
background: #4CAF50;
color: #fff;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.15s ease;
}
.perfecty-push-permission-guide-close:hover {
background: #43a047;
}
.perfecty-push-permission-guide-never {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 12px;
font-size: 13px;
color: #999;
cursor: pointer;
user-select: none;
}
.perfecty-push-permission-guide-never input[type="checkbox"] {
margin: 0;
cursor: pointer;
accent-color: #4CAF50;
width: 14px;
height: 14px;
}
.perfecty-push-permission-guide-never:hover {
color: #666;
}
@media (prefers-color-scheme: dark) {
.perfecty-push-permission-guide-box {
background: #1a1a1a;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.perfecty-push-permission-guide-title {
color: #e0e0e0;
}
.perfecty-push-permission-guide-text {
color: #aaa;
}
.perfecty-push-permission-guide-close {
background: #66bb6a;
}
.perfecty-push-permission-guide-close:hover {
background: #81c784;
}
}
@media (prefers-reduced-motion: reduce) {
.perfecty-push-permission-guide-overlay {
animation: none;
}
}
.perfecty-push-update-notice {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: #333;
color: #fff;
padding: 12px 20px;
border-radius: 6px;
z-index: 99999;
font-size: 14px;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
animation: perfecty-push-fadeIn 0.25s ease-out;
}
.perfecty-push-update-notice-btn {
background: #8ab4f8;
color: #222;
border: none;
border-radius: 4px;
padding: 6px 14px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.15s ease;
white-space: nowrap;
}
.perfecty-push-update-notice-btn:hover {
background: #aecbfa;
}
.perfecty-push-update-notice-later {
background: transparent;
color: #8ab4f8;
border: none;
border-radius: 4px;
padding: 6px 10px;
font-size: 13px;
cursor: pointer;
transition: background-color 0.15s ease;
white-space: nowrap;
}
.perfecty-push-update-notice-later:hover {
background: rgba(138, 180, 248, 0.1);
}
@media (prefers-color-scheme: dark) {
.perfecty-push-update-notice {
background: #1a1a1a;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
}
.perfecty-push-settings-container.subscribed {
opacity: 0.7;
transition: opacity 0.2s ease;
}
.perfecty-push-settings-container.subscribed:hover {
opacity: 1;
}
.perfecty-push-management-panel {
position: fixed;
bottom: 70px;
left: 53px;
background: #222;
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
padding: 16px;
z-index: 100000;
min-width: 220px;
max-width: 280px;
color: #fff;
font-size: 14px;
animation: perfecty-push-fadeIn 0.2s ease-out;
}
.perfecty-push-management-panel-title {
font-weight: 600;
margin-bottom: 12px;
font-size: 14px;
color: #fff;
}
.perfecty-push-management-panel-status {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 12px;
color: #aaa;
font-size: 13px;
}
.perfecty-push-management-panel-status .dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #4CAF50;
flex-shrink: 0;
}
.perfecty-push-management-panel-status .dot.inactive {
background: #f44336;
}
.perfecty-push-management-unsubscribe {
width: 100%;
padding: 8px 12px;
background: rgba(244, 67, 54, 0.15);
color: #ef5350;
border: 1px solid rgba(244, 67, 54, 0.3);
border-radius: 4px;
font-size: 13px;
cursor: pointer;
transition: background-color 0.15s ease;
}
.perfecty-push-management-unsubscribe:hover {
background: rgba(244, 67, 54, 0.25);
}
.perfecty-push-management-close {
position: absolute;
top: 6px;
right: 8px;
background: transparent;
border: none;
color: #999;
font-size: 16px;
cursor: pointer;
padding: 0;
line-height: 1;
}
.perfecty-push-management-close:hover {
color: #fff;
}
@media (prefers-color-scheme: dark) {
.perfecty-push-management-panel {
background: #1a1a1a;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
}
@media (max-width: 480px) {
.perfecty-push-management-panel {
bottom: 70px;
left: 12px;
right: 12px;
min-width: auto;
max-width: none;
}
}