/* aGo Legal, Cookie Banner CSS */

#ago-cookie-banner { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.5; }

.ago-cookie-prefs-btn { position: fixed; bottom: 20px; left: 20px; z-index: 99998; background: #1d2327; color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); display: none; }

/* Bar style */
.ago-banner-bar { position: fixed; left: 0; right: 0; z-index: 99999; padding: 16px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 -2px 10px rgba(0,0,0,0.15); }
.ago-banner-bar.ago-pos-bottom { bottom: 0; }
.ago-banner-bar.ago-pos-top { top: 0; }

/* Modal style */
.ago-banner-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); }
.ago-banner-modal .ago-banner-inner { max-width: 500px; width: 90%; border-radius: 12px; padding: 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* Floating style */
.ago-banner-floating { position: fixed; z-index: 99999; max-width: 380px; border-radius: 12px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.ago-banner-floating.ago-pos-bottom { bottom: 20px; right: 20px; }
.ago-banner-floating.ago-pos-top { top: 20px; right: 20px; }

/* Content */
.ago-banner-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.ago-banner-text { margin: 0 0 12px; opacity: 0.9; }
.ago-banner-text a { color: inherit; text-decoration: underline; }

/* Buttons */
.ago-banner-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.ago-banner-btn { padding: 8px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.2s; font-family: inherit; }
.ago-banner-btn:hover { opacity: 0.9; }
.ago-banner-btn-accept { color: #fff; }
.ago-banner-btn-reject { background: transparent; border: 1px solid currentColor; opacity: 0.8; }
.ago-banner-btn-customize { background: transparent; border: none; text-decoration: underline; opacity: 0.7; font-size: 13px; padding: 8px 8px; }

/* Customize panel */
.ago-banner-customize { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); }
.ago-banner-category { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.ago-banner-cat-info { flex: 1; }
.ago-banner-cat-name { font-weight: 600; font-size: 13px; }
.ago-banner-cat-desc { font-size: 12px; opacity: 0.7; }
.ago-banner-toggle { position: relative; width: 40px; height: 22px; }
.ago-banner-toggle input { opacity: 0; width: 0; height: 0; }
.ago-banner-toggle-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.3); border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.ago-banner-toggle-slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.ago-banner-toggle input:checked + .ago-banner-toggle-slider { background: #00a32a; }
.ago-banner-toggle input:checked + .ago-banner-toggle-slider::before { transform: translateX(18px); }
.ago-banner-toggle input:disabled + .ago-banner-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.ago-banner-save { margin-top: 12px; }

/* Policy table (shortcode) */
.ago-cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.ago-cookie-table th, .ago-cookie-table td { padding: 8px 12px; border: 1px solid #dcdcde; font-size: 13px; text-align: left; }
.ago-cookie-table th { background: #f0f0f1; font-weight: 600; }
.ago-cookie-table code { font-size: 12px; background: #f6f7f7; padding: 2px 4px; border-radius: 2px; }

/* Policy pages */
.ago-policy { max-width: 800px; }
.ago-policy h2 { font-size: 24px; }
.ago-policy h3 { font-size: 18px; margin-top: 24px; }
.ago-policy p, .ago-policy li { font-size: 15px; line-height: 1.7; }

@media (max-width: 600px) {
    .ago-banner-bar { flex-direction: column; text-align: center; }
    .ago-banner-buttons { justify-content: center; }
}
