/* Styles for the 'Install App' modal */
body.pwa-modal-open {
    overflow: hidden;
}

.pwa-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999; /* A very high value to ensure it's on top of theme menus */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.pwa-install-modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.pwa-modal-dialog {
    width: 90%;
    max-width: 500px;
}

.pwa-modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #333;
    overflow: hidden; /* Ensures the border-radius is respected by children */
}

.pwa-modal-content .modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pwa-modal-content .modal-header .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.pwa-modal-content .btn-close {
    padding: 0.5rem;
    margin: -0.5rem;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
}
.pwa-modal-content .btn-close:before {
    content: '\00d7'; /* The 'times' character (×) */
}
.pwa-modal-content .btn-close:hover {
    opacity: 1;
}

.pwa-modal-content .modal-body {
    padding: 1rem;
}

.pwa-modal-content .modal-body ol {
    padding-left: 25px;
}
.pwa-modal-content .modal-body li {
    margin-bottom: 0.75rem;
}

.pwa-modal-content .modal-footer {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.pwa-modal-content .btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #6c757d;
    color: #fff;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.pwa-modal-content .btn:hover {
    background-color: #5a6268;
}

/* In file: /wp-content/plugins/simple-pwa-static/install-prompt.css */

/* ... (all your existing CSS for the modal) ... */

/* --- NEW: PWA Back Button Styles --- */
#pwa-back-button {
    display: none; /* Hidden by default, shown by JS and the inline <style> tag */
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999990; /* High, but below the install modal */
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
}

#pwa-back-button.visible {
    transform: scale(1);
}

/* In file: install-prompt.css */

/* --- NEW: Share Button Styles --- */
.meta-share-button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    display: inline;
}
.meta-share-button:hover {
    color: #cc5130; /* Example hover color */
}
