/* ============================================================ Plan Widget Overrides — Modern Redesign Styles the 3scale {% plan_widget %} Colorbox popup ============================================================ */ /* ---- Reset & Base ---- */ .plan-preview-box, .plan-preview-box * { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-sizing: border-box; } .plan-preview-box { background: #fff; width: 860px; height: 620px; padding: 0; border-radius: 0.75rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); overflow: hidden; } .plan-preview-content { background: transparent; display: flex; height: 100%; } /* ---- Close button ---- */ .plan-preview-box .close-box { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; padding: 0; background: none; background-image: none; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.15s; } .plan-preview-box .close-box:hover { background: rgba(0, 0, 0, 0.06); } .plan-preview-box .close-box:after { content: "\f00d"; font-family: FontAwesome; font-style: normal; font-weight: normal; font-size: 18px; color: #6c757d; -webkit-font-smoothing: antialiased; } /* ---- Left sidebar: plan list ---- */ .plan-preview-box .plans-menu { width: 220px; min-width: 220px; background: #f8f9fa; border-right: 1px solid #e0e0e0; padding: 1.5em 0; overflow-y: auto; } .plan-preview-box .plans-menu h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.8px; color: #6c757d; padding: 0 1.25em; margin: 0 0 0.5em; font-weight: 600; } .plan-preview-box .plans-menu h3 + ul { margin-bottom: 1.5em; } .plan-preview-box .plans-menu ul { list-style: none; padding: 0; margin: 0 0 0.5em; } .plan-preview-box .plans-menu ul li { margin: 0; padding: 0; } .plan-preview-box .plans-menu ul li a { display: block; padding: 0.55em 1.25em; font-size: 0.9rem; color: #333; text-decoration: none; border-left: 3px solid transparent; transition: all 0.15s; font-weight: 500; } .plan-preview-box .plans-menu ul li a:hover { background: #e9ecef; color: #0d6efd; } .plan-preview-box .plans-menu ul li a.current { background: #dbeafe; color: #0d6efd; border-left-color: #0d6efd; font-weight: 600; } /* Hide the checkmark image on current plan */ .plan-preview-box .plans-menu ul li a.current img { display: none; } /* ---- Pricing labels on sidebar plan links ---- */ /* "Your plan" section — first ul after first h3 */ /* AutoComplete Basic */ .plan-preview-box .plans-menu h3:first-child + ul li:first-child a::after { content: "$9.90/mo"; display: block; font-size: 0.7rem; color: #6c757d; font-weight: 400; margin-top: 1px; } /* "Other plans" section — second ul */ /* Developer — Free */ .plan-preview-box .plans-menu h3 + ul + h3 + ul li:nth-child(1) a::after { content: "Free"; display: block; font-size: 0.7rem; color: #198754; font-weight: 600; margin-top: 1px; } /* AutoCompletePro */ .plan-preview-box .plans-menu h3 + ul + h3 + ul li:nth-child(2) a::after { content: "$19.90/mo"; display: block; font-size: 0.7rem; color: #6c757d; font-weight: 400; margin-top: 1px; } /* Pro */ .plan-preview-box .plans-menu h3 + ul + h3 + ul li:nth-child(3) a::after { content: "$89/mo"; display: block; font-size: 0.7rem; color: #6c757d; font-weight: 400; margin-top: 1px; } /* Enterprise */ .plan-preview-box .plans-menu h3 + ul + h3 + ul li:nth-child(4) a::after { content: "$189/mo"; display: block; font-size: 0.7rem; color: #6c757d; font-weight: 400; margin-top: 1px; } /* Basic */ .plan-preview-box .plans-menu h3 + ul + h3 + ul li:nth-child(5) a::after { content: "$19.90/mo"; display: block; font-size: 0.7rem; color: #6c757d; font-weight: 400; margin-top: 1px; } /* ---- Right content: plan details ---- */ #plans-content { flex: 1; padding: 1.75em 2em; overflow-y: auto; } .plan-preview-box .plan-overview { height: auto; } .plan-preview-box .plan-preview h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin: 0 0 0.15em; } /* Current plan badge */ .plan-preview-box .current-plan-notice { margin-bottom: 1.25em; } .plan-preview-box .current-plan-notice p { display: inline-block; background: #d1fae5; color: #065f46; font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0.25em 0 0; } /* Section headings (Features, Limits) */ .plan-preview-box .plan-review-section h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6c757d; font-weight: 600; margin: 1.25em 0 0.5em; padding-bottom: 0.4em; border-bottom: 1px solid #e0e0e0; } /* Features list */ .plan-preview-box .features ul { list-style: none; padding: 0; margin: 0; } .plan-preview-box .features ul li.present { padding: 0.3em 0 0.3em 1.5em; font-size: 0.85rem; color: #333; line-height: 1.5; position: relative; } .plan-preview-box .features ul li.present::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; color: #198754; font-size: 0.8rem; font-style: normal; font-weight: normal; -webkit-font-smoothing: antialiased; } /* Hide absent features */ li.absent { display: none; } /* Limits section */ .plan-preview-box .limits dl { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25em 0; } .plan-preview-box .limits dt { font-weight: 600; color: #333; font-size: 0.85rem; min-width: 80px; margin-bottom: 0; } .plan-preview-box .limits dt span { font-size: 0.85rem; } .plan-preview-box .limits dd { font-size: 0.85rem; color: #555; margin-left: 0; flex: 1; } /* ---- Change plan button ---- */ .plan-preview-box .plan-selector.change-plan-control { margin-top: 1.5em; padding-top: 1em; border-top: 1px solid #e0e0e0; } /* Scoped button styles — only inside plan widget */ .plan-preview-box button, .plan-preview-box input[type="button"], .plan-preview-box input[type="reset"], .plan-preview-box input[type="submit"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: inline-block; padding: 10px 24px; font-size: 0.9rem; font-weight: 600; line-height: 1.5; text-align: center; vertical-align: middle; cursor: pointer; border: none; border-radius: 0.375rem; white-space: nowrap; color: #fff; background: #0d6efd; transition: background 0.15s; } .plan-preview-box button:hover, .plan-preview-box input[type="submit"]:hover { background: #0b5ed7; } /* ---- Colorbox container overrides ---- */ #colorbox { border-radius: 0.75rem !important; overflow: hidden !important; } #cboxContent { background: transparent !important; } /* Hide colorbox default close (we have our own) */ #cboxClose { display: none !important; } /* ---- Scrollbar styling ---- */ .plan-preview-box .plans-menu::-webkit-scrollbar, #plans-content::-webkit-scrollbar { width: 6px; } .plan-preview-box .plans-menu::-webkit-scrollbar-thumb, #plans-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; } /* ---- Table styles (plan comparison pages) ---- */ .planTable table, .planTable th, .planTable td, .planTable tr { border: 1px solid #dee2e6 !important; border-collapse: collapse; } .table-curved { border-collapse: separate; border: solid #dee2e6 1px; border-radius: 0.5rem; border-left: 0; } .table-curved td, .table-curved th { border-left: 1px solid #dee2e6; border-top: 1px solid #dee2e6; } .table-curved th { border-top: none; background: #f8f9fa; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6c757d; } .table-curved th:first-child { border-radius: 0.5rem 0 0 0; } .table-curved th:last-child { border-radius: 0 0.5rem 0 0; } .table-curved th:only-child { border-radius: 0.5rem 0.5rem 0 0; } .table-curved tr:last-child td:first-child { border-radius: 0 0 0 0.5rem; } .table-curved tr:last-child td:last-child { border-radius: 0 0 0.5rem 0; }