.ts-webpush-trigger {
    position: fixed;
    /* Bottom and right/left set via inline CSS */
    z-index: 9980;
    width: var(--ts-push-fab-size, 50px);
    height: var(--ts-push-fab-size, 50px);
    border-radius: 50%;
    background: var(--ts-push-fab-bg, #0073aa);
    color: var(--ts-push-fab-color, #fff);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    /* Flex center */
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ts-webpush-trigger:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.ts-webpush-modal {
    display: none;
    position: fixed;
    z-index: 9981;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.ts-webpush-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 15px 20px;
    /* Reduced top/bottom padding */
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ts-webpush-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ts-webpush-close:hover,
.ts-webpush-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Compact Sections */
.ts-webpush-section {
    margin-bottom: 15px;
}

.ts-webpush-section h4 {
    margin: 5px 0 10px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    grid-column: 1 / -1;
    /* Span full width */
}

#ts-webpush-languages,
#ts-webpush-categories {
    max-height: 150px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 8px;
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for Webkit */
#ts-webpush-languages::-webkit-scrollbar,
#ts-webpush-categories::-webkit-scrollbar {
    width: 6px;
}

#ts-webpush-languages::-webkit-scrollbar-track,
#ts-webpush-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#ts-webpush-languages::-webkit-scrollbar-thumb,
#ts-webpush-categories::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#ts-webpush-languages::-webkit-scrollbar-thumb:hover,
#ts-webpush-categories::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Item Styling */
#ts-webpush-languages div,
#ts-webpush-categories div {
    display: flex;
    align-items: center;
    font-size: 14px;
}

#ts-webpush-languages input,
#ts-webpush-categories input {
    margin-right: 6px;
}

#ts-webpush-subscribe-btn {
    background: var(--ts-push-subs-btn-bg, #0073aa);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    font-size: 16px;
}

#ts-webpush-subscribe-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Preferences Page Styles */
.ts-webpush-preferences-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ts-webpush-preferences-container .ts-webpush-section {
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.ts-webpush-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.ts-webpush-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ts-webpush-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#ts-webpush-message {
    margin-left: 10px;
    font-weight: bold;
}

.error {
    color: red;
}

.success {
    color: green;
}

/* FAB & Button Styles */
.ts-webpush-trigger {
    bottom: var(--ts-push-fab-offset-bottom);
    position: fixed;
    z-index: 9984;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#ts-webpush-enable-btn,
#ts-webpush-save-btn {
    background-color: var(--ts-push-subs-btn-bg);
    border-color: var(--ts-push-subs-btn-bg);
    color: #fff;
}

#ts-webpush-enable-btn:hover,
#ts-webpush-save-btn:hover {
    filter: brightness(110%);
}