/**
 * Admin Sidebar & Notices Styles
 * Scroll to Top Button
 */

/* Settings page two-column layout */
.creative-scroll-to-top-button-settings-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.creative-scroll-to-top-button-settings-main {
    flex: 1;
    min-width: 0;
}

.creative-scroll-to-top-button-settings-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 32px;
}

/* Generic sidebar box */
.creative-scroll-to-top-button-sidebar-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 4px;
}

.creative-scroll-to-top-button-sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #1d2327;
}

.creative-scroll-to-top-button-sidebar-box p {
    font-size: 13px;
    color: #646970;
    margin-bottom: 15px;
    line-height: 1.5;
}

.creative-scroll-to-top-button-sidebar-header {
    margin-bottom: 15px;
}

.creative-scroll-to-top-button-heart-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #8b5cf6;
    display: block;
    margin: 0 auto 15px;
    line-height: 48px;
}

.creative-scroll-to-top-button-sidebar-footer-text {
    font-size: 11px !important;
    color: #8c8f94 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.creative-scroll-to-top-button-sidebar-box.creative-scroll-to-top-button-box-highlight {
    border-top: 4px solid #8b5cf6;
}

/* Sidebar buttons */
.creative-scroll-to-top-button-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #8b5cf6;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.creative-scroll-to-top-button-button-primary:hover,
.creative-scroll-to-top-button-button-primary:focus {
    background-color: #7c3aed;
    color: #fff;
}

.creative-scroll-to-top-button-button-primary .dashicons {
    margin-right: 8px;
}

.creative-scroll-to-top-button-button-secondary {
    display: inline-block;
    background-color: #fff;
    color: #2271b1;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-size: 13px;
}

.creative-scroll-to-top-button-button-secondary:hover,
.creative-scroll-to-top-button-button-secondary:focus {
    background-color: #f0f6fc;
    color: #135e96;
    border-color: #135e96;
}

/* ── Admin banner notice ── */

.creative-scroll-to-top-button-notice {
    background: #fff;
    border-left: 4px solid #00a32a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    padding: 15px 20px;
    margin: 5px 0 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.creative-scroll-to-top-button-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f0f8f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a32a;
}

.creative-scroll-to-top-button-notice-icon svg {
    width: 28px;
    height: 28px;
}

.creative-scroll-to-top-button-notice-content {
    flex-grow: 1;
}

.creative-scroll-to-top-button-notice-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.creative-scroll-to-top-button-notice-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #50575e;
}

.creative-scroll-to-top-button-notice-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.creative-scroll-to-top-button-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 2.15384615;
    min-height: 32px;
    margin: 0;
    padding: 0 12px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.creative-scroll-to-top-button-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.creative-scroll-to-top-button-btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.creative-scroll-to-top-button-btn-secondary {
    color: #2271b1;
    border-color: #2271b1;
    background: #f6f7f7;
}

.creative-scroll-to-top-button-btn-secondary:hover {
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}

.creative-scroll-to-top-button-btn-green {
    background: #00a32a;
    border-color: #008a20;
    color: #fff;
}

.creative-scroll-to-top-button-btn-green:hover {
    background: #008a20;
    border-color: #00701a;
    color: #fff;
}

.creative-scroll-to-top-button-notice-dismiss {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    cursor: pointer;
    color: #787c82;
    padding: 5px;
    transition: color 0.2s;
}

.creative-scroll-to-top-button-notice-dismiss:hover {
    color: #d63638;
}

/* ── Sidebar review box ── */

.creative-scroll-to-top-button-sidebar-box-review {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.creative-scroll-to-top-button-sidebar-box-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a32a, #2271b1);
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-stars {
    color: #ffb900;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-stars svg {
    width: 24px;
    height: 24px;
}

.creative-scroll-to-top-button-sidebar-box-review h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.creative-scroll-to-top-button-sidebar-box-review p {
    margin: 0 0 18px;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.creative-scroll-to-top-button-sidebar-box-review .creative-scroll-to-top-button-btn {
    width: 100%;
    min-height: 36px;
}

/* Responsive */
@media (max-width: 782px) {
    .creative-scroll-to-top-button-settings-wrapper {
        flex-direction: column;
    }

    .creative-scroll-to-top-button-settings-sidebar {
        width: 100%;
    }
}
