|
20 | 20 | display: block; /* Ensure it's a block element */ |
21 | 21 | clear: both; /* Clear any floats */ |
22 | 22 | overflow: hidden; /* Prevent overflow issues */ |
23 | | -} |
| 23 | + } |
24 | 24 |
|
25 | 25 | .bears_pricing_tables-container { |
26 | 26 | display: flex; |
|
37 | 37 | gap: var(--bears-column-margin-x); |
38 | 38 | /* Ensure the container takes full width */ |
39 | 39 | max-width: 100%; |
40 | | -} |
| 40 | + } |
41 | 41 |
|
42 | 42 | /* Ensure box-sizing includes borders */ |
43 | 43 | .bears_pricing_tables * { |
44 | 44 | box-sizing: border-box; |
45 | | -} |
| 45 | + } |
46 | 46 |
|
47 | 47 | /* Base column styles - applies to all templates */ |
48 | 48 | .bears_pricing_tables { |
|
57 | 57 | /* Changed from flex: 0 1 auto to flex: 1 1 0% to make columns expand */ |
58 | 58 | flex: 1 1 0%; |
59 | 59 | min-width: 0; /* Prevent flex items from overflowing */ |
60 | | -} |
| 60 | + } |
61 | 61 |
|
62 | 62 | /* Generic column width settings - will apply to any template */ |
63 | 63 | /* Modified to use flex-basis instead of fixed calculations when using space-between */ |
64 | 64 | .bears_pricing_tables-container[data-columns="1"] .bears_pricing_tables { |
65 | 65 | flex: 1 1 100%; |
66 | 66 | max-width: 100%; |
67 | | -} |
| 67 | + } |
68 | 68 |
|
69 | 69 | .bears_pricing_tables-container[data-columns="2"] .bears_pricing_tables { |
70 | 70 | flex: 1 1 0%; /* Changed to allow growth */ |
71 | 71 | /* Set a min-width instead of fixed width to allow expansion */ |
72 | 72 | min-width: calc((100% - var(--bears-column-margin-x)) / 2); |
73 | 73 | /* Keep max-width to prevent overflow on small screens */ |
74 | 74 | max-width: calc(50% - (var(--bears-column-margin-x) / 2)); |
75 | | -} |
| 75 | + } |
76 | 76 |
|
77 | 77 | .bears_pricing_tables-container[data-columns="3"] .bears_pricing_tables { |
78 | 78 | flex: 1 1 0%; /* Changed to allow growth */ |
79 | 79 | min-width: calc((100% - 2 * var(--bears-column-margin-x)) / 3); |
80 | 80 | max-width: calc(33.333% - (var(--bears-column-margin-x) * 2 / 3)); |
81 | | -} |
| 81 | + } |
82 | 82 |
|
83 | 83 | .bears_pricing_tables-container[data-columns="4"] .bears_pricing_tables { |
84 | 84 | flex: 1 1 0%; /* Changed to allow growth */ |
85 | 85 | min-width: calc((100% - 3 * var(--bears-column-margin-x)) / 4); |
86 | 86 | max-width: calc(25% - (var(--bears-column-margin-x) * 3 / 4)); |
87 | | -} |
| 87 | + } |
88 | 88 |
|
89 | 89 | .bears_pricing_tables-container[data-columns="5"] .bears_pricing_tables { |
90 | 90 | flex: 1 1 0%; /* Changed to allow growth */ |
91 | 91 | min-width: calc((100% - 4 * var(--bears-column-margin-x)) / 5); |
92 | 92 | max-width: calc(20% - (var(--bears-column-margin-x) * 4 / 5)); |
93 | | -} |
| 93 | + } |
94 | 94 |
|
95 | 95 | /* Fix for border gap in header corners - applies to all templates */ |
96 | 96 | [class*="template-"] .bears_pricing_tables .plan { |
|
105 | 105 | /* Fix for content overflow - ensure content stays within bounds */ |
106 | 106 | box-sizing: border-box; |
107 | 107 | max-width: 100%; |
108 | | -} |
| 108 | + } |
109 | 109 |
|
110 | 110 | [class*="template-"] .bears_pricing_tables header { |
111 | 111 | /* Fix for the border gap - adjust border radius to only round the top */ |
|
116 | 116 | width: 100%; |
117 | 117 | box-sizing: border-box; |
118 | 118 | position: relative; |
119 | | -} |
| 119 | + } |
120 | 120 |
|
121 | 121 | /* Apply the same fix to featured plans */ |
122 | 122 | [class*="template-"] .bears_pricing_tables .plan.featured header { |
|
126 | 126 | margin-right: 0; |
127 | 127 | width: 100%; |
128 | 128 | border-radius: calc(var(--bears-border-radius) - var(--bears-border-width)) calc(var(--bears-border-radius) - var(--bears-border-width)) 0 0; |
129 | | -} |
| 129 | + } |
130 | 130 |
|
131 | 131 | /* Ensure the header's after element (triangle) is positioned correctly */ |
132 | 132 | [class*="template-"] .bears_pricing_tables header:after { |
133 | 133 | z-index: 1; /* Ensure the accent appears above any potential gaps */ |
134 | 134 | margin-bottom: 0; /* Remove any margin that might create a gap */ |
135 | | -} |
| 135 | + } |
136 | 136 |
|
137 | 137 | /* Fix for content overflow in columns */ |
138 | 138 | .bears_pricing_tables .plan { |
|
142 | 142 | overflow: hidden; /* Prevent content from overflowing */ |
143 | 143 | /* Make sure plan content fills the column */ |
144 | 144 | flex: 1 1 auto; |
145 | | -} |
| 145 | + } |
146 | 146 |
|
147 | 147 | /* Ensure content within the plan fills the available space */ |
148 | 148 | .bears_pricing_tables .plan-content { |
149 | 149 | flex: 1 1 auto; |
150 | 150 | display: flex; |
151 | 151 | flex-direction: column; |
152 | | -} |
| 152 | + } |
153 | 153 |
|
154 | 154 | /* Responsive styles for tablet */ |
155 | 155 | @media (max-width: 992px) and (min-width: 769px) { |
|
158 | 158 | display: flex; |
159 | 159 | flex-wrap: wrap; |
160 | 160 | justify-content: space-between; /* Keep space-between for columns 1 and 2 */ |
161 | | - } |
| 161 | + } |
162 | 162 |
|
163 | 163 | /* Default 2-column layout for tablet view */ |
164 | 164 | .bears_pricing_tables-container[data-columns] .bears_pricing_tables { |
165 | 165 | flex: 0 0 calc(50% - var(--bears-column-margin-x) / 2) !important; |
166 | 166 | max-width: calc(50% - var(--bears-column-margin-x) / 2) !important; |
167 | 167 | margin-bottom: var(--bears-column-margin-y); |
168 | | - } |
| 168 | + } |
169 | 169 |
|
170 | 170 | /* Specific fix for 3-column layout */ |
171 | 171 | .bears_pricing_tables-container[data-columns="3"] { |
172 | 172 | position: relative; /* For proper positioning of the third column */ |
173 | | - } |
| 173 | + } |
174 | 174 |
|
175 | 175 | /* First two columns in a 3-column layout */ |
176 | 176 | .bears_pricing_tables-container[data-columns="3"] .bears_pricing_tables:nth-child(1), |
177 | 177 | .bears_pricing_tables-container[data-columns="3"] .bears_pricing_tables:nth-child(2) { |
178 | 178 | flex: 0 0 calc(50% - var(--bears-column-margin-x) / 2) !important; |
179 | 179 | max-width: calc(50% - var(--bears-column-margin-x) / 2) !important; |
180 | 180 | margin-bottom: var(--bears-column-margin-y); |
181 | | - } |
| 181 | + } |
182 | 182 |
|
183 | 183 | /* Third column in a 3-column layout */ |
184 | 184 | .bears_pricing_tables-container[data-columns="3"] .bears_pricing_tables:nth-child(3) { |
185 | 185 | flex: 0 0 48% !important; |
186 | 186 | max-width: 48% !important; |
187 | 187 | margin: 0 auto; |
188 | 188 | clear: both; |
189 | | - } |
| 189 | + } |
190 | 190 |
|
191 | 191 | /* Fix for featured plans in tablet view */ |
192 | 192 | [class*="template-"] .bears_pricing_tables-container[data-columns="3"] .bears_pricing_tables:nth-child(3) .plan.featured { |
193 | 193 | transform: none !important; /* Remove transform that causes overflow */ |
194 | 194 | margin: 0 auto !important; /* Center the plan */ |
195 | 195 | width: 100% !important; /* Full width within its column */ |
| 196 | + } |
| 197 | + |
| 198 | + .bears_pricing_tables .plan { |
| 199 | + margin-bottom: 1.0em !important; |
| 200 | + } |
| 201 | + } |
| 202 | + |
| 203 | +.template-1214 .bears_pricing_tables .plan, |
| 204 | +.template-1223 .bears_pricing_tables .plan { |
| 205 | + margin-bottom: 2.5em !important; |
196 | 206 | } |
197 | | -} |
198 | 207 |
|
199 | 208 | /* Responsive styles for mobile */ |
200 | 209 | @media (max-width: 768px) { |
|
203 | 212 | display: flex; |
204 | 213 | flex-direction: column; |
205 | 214 | align-items: center; |
206 | | - } |
| 215 | + width: 100vw !important; |
| 216 | + max-width: 100vw !important; |
| 217 | + margin-left: 0 !important; |
| 218 | + margin-right: 0 !important; |
| 219 | + padding-left: 0 !important; |
| 220 | + padding-right: 0 !important; |
| 221 | + box-sizing: border-box !important; |
| 222 | + } |
| 223 | + |
| 224 | + /* Ensure outer container is full viewport width */ |
| 225 | + .bears_pricing_tables-outer { |
| 226 | + width: 100vw !important; |
| 227 | + max-width: 100vw !important; |
| 228 | + margin-left: 0 !important; |
| 229 | + margin-right: 0 !important; |
| 230 | + padding-left: 0 !important; |
| 231 | + padding-right: 0 !important; |
| 232 | + box-sizing: border-box !important; |
| 233 | + } |
207 | 234 |
|
208 | 235 | /* All columns in mobile view */ |
209 | 236 | .bears_pricing_tables-container[data-columns] .bears_pricing_tables { |
210 | | - flex: 0 0 100% !important; |
211 | | - max-width: 100% !important; |
| 237 | + flex: 0 0 100vw !important; |
| 238 | + width: 100vw !important; |
| 239 | + max-width: 100vw !important; |
212 | 240 | padding-left: 0; |
213 | 241 | padding-right: 0; |
214 | 242 | margin-bottom: var(--bears-column-margin-y); |
215 | | - } |
| 243 | + box-sizing: border-box !important; |
| 244 | + } |
216 | 245 |
|
217 | 246 | /* Add space between stacked columns on mobile */ |
218 | 247 | .bears_pricing_tables-container .bears_pricing_tables:not(:last-child) { |
219 | 248 | margin-bottom: var(--bears-column-margin-y); |
220 | | - } |
| 249 | + } |
221 | 250 |
|
222 | 251 | /* Fix for featured plans in mobile view - applies to all templates */ |
223 | 252 | [class*="template-"] .bears_pricing_tables .plan.featured { |
224 | 253 | transform: none !important; /* Remove transform that causes overflow */ |
225 | 254 | margin: 0 auto !important; /* Center the plan */ |
226 | | - width: 100% !important; /* Full width within its column */ |
| 255 | + width: 100vw !important; /* Full viewport width */ |
| 256 | + max-width: 100vw !important; |
| 257 | + } |
| 258 | + |
| 259 | + /* Ensure all plans take full viewport width */ |
| 260 | + .bears_pricing_tables .plan { |
| 261 | + width: 100vw !important; |
| 262 | + max-width: 100vw !important; |
| 263 | + margin-bottom: 1.0em !important; |
| 264 | + box-sizing: border-box !important; |
| 265 | + } |
| 266 | + |
| 267 | + .template-1214 .bears_pricing_tables .plan, |
| 268 | + .template-1223 .bears_pricing_tables .plan { |
| 269 | + margin-bottom: 2.5em !important; |
| 270 | + width: 100vw !important; |
| 271 | + max-width: 100vw !important; |
| 272 | + } |
227 | 273 | } |
228 | | -} |
|
0 commit comments