plans.scss 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495
  1. @use 'sass:math';
  2. $container-plans-responsive-width: 95%;
  3. $container-xl: 1280px;
  4. $z-index-plans-new-tabs-content: 0;
  5. $z-index-plans-new-tabs: 1;
  6. $border-radius-full-new: 9999px;
  7. $highlighted-heading-line-height: 24px; // this is ported directly from the .less file as value
  8. $highlighted-heading-padding-vertical: $spacing-02;
  9. $highlighted-heading-height: (
  10. $highlighted-heading-line-height + (2 * $highlighted-heading-padding-vertical)
  11. );
  12. $switcher-container-margin-bottom: $highlighted-heading-height + $spacing-10;
  13. $table-4-column-width: 25%;
  14. $table-5-column-width: 20%;
  15. $nondiscounted-price-element-height: var(--line-height-02);
  16. $group-member-picker-height: 24px;
  17. $group-member-picker-top-height: 36px;
  18. $z-index-group-member-picker-list: 1;
  19. .plans-new-design {
  20. --border-width-base: 3px; // TODO: put this variable in a decent location
  21. --border-radius-large-new: 16px; // TODO: put this variable in a decent location
  22. padding-top: $header-height;
  23. .container {
  24. padding: 0 var(--spacing-06);
  25. @include media-breakpoint-up(md) {
  26. width: $container-plans-responsive-width;
  27. }
  28. @include media-breakpoint-up(xxl) {
  29. width: $container-xl;
  30. }
  31. .geo-banner-container {
  32. margin-top: var(--spacing-08);
  33. }
  34. .plans-new-design-content-spacing {
  35. margin-top: var(--spacing-16);
  36. }
  37. .interstitial-new-design-content-spacing {
  38. margin-top: var(--spacing-13);
  39. }
  40. }
  41. .main-heading-section {
  42. text-align: center;
  43. max-width: 885px;
  44. margin-left: auto;
  45. margin-right: auto;
  46. @include media-breakpoint-down(md) {
  47. text-align: left;
  48. padding: 0 16px;
  49. }
  50. .plans-page-heading {
  51. margin-top: 8px;
  52. margin-bottom: unset;
  53. font-size: 3rem;
  54. font-weight: 600;
  55. line-height: 64px;
  56. @include media-breakpoint-down(md) {
  57. font-size: 2.25rem;
  58. line-height: 48px;
  59. padding-right: 5rem;
  60. }
  61. }
  62. .plans-page-sub-heading {
  63. font-size: 1.125rem;
  64. line-height: 24px;
  65. margin-top: 16px;
  66. margin-bottom: unset;
  67. }
  68. }
  69. .plans-new-content {
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. position: relative;
  74. @include media-breakpoint-up(md) {
  75. border-left: 1px solid var(--border-divider);
  76. border-right: 1px solid var(--border-divider);
  77. border-bottom: 1px solid var(--border-divider);
  78. border-radius: 8px;
  79. }
  80. // this is the border between the tabs and the content, specifically on the left and right side
  81. // this is necessary to enable top border radius on the plans-new-content
  82. &::before {
  83. content: '';
  84. display: block;
  85. z-index: $z-index-plans-new-tabs-content;
  86. position: absolute;
  87. top: -1px; // make border overlap with the border on .plans-new-tabs
  88. width: 100%;
  89. height: 20px; // arbitrary height since it's transparent, make sure that it's bigger than border radius
  90. background: transparent;
  91. border-top: 1px solid var(--border-divider);
  92. @include media-breakpoint-up(md) {
  93. border-top-left-radius: 8px;
  94. border-top-right-radius: 8px;
  95. }
  96. }
  97. }
  98. .plans-new-tabs-container {
  99. z-index: $z-index-plans-new-tabs;
  100. margin-top: var(--spacing-16);
  101. // explicit padding to tell that the bottom left and bottom right
  102. // does not have bottom border defined in .plans-new-tabs
  103. // technically unnecessary because padding is already defined in bootstrap column
  104. padding: 0 16px;
  105. }
  106. .plans-new-tabs {
  107. display: flex;
  108. justify-content: center;
  109. gap: 8px;
  110. border-bottom: 1px solid var(--border-divider);
  111. .plans-new-tab {
  112. cursor: pointer;
  113. font-size: 16px;
  114. font-weight: 600;
  115. border-top-right-radius: 8px;
  116. border-top-left-radius: 8px;
  117. margin-bottom: -1px; // to overlap with the border on .plans-new-tabs to avoid double border
  118. .plans-new-tab-link {
  119. display: flex;
  120. align-items: center;
  121. color: var(--content-secondary);
  122. margin: 0;
  123. border-top-right-radius: 8px;
  124. border-top-left-radius: 8px;
  125. /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
  126. border: 1px solid var(--border-divider);
  127. padding: var(--spacing-05) var(--spacing-08);
  128. gap: var(--spacing-04);
  129. text-decoration: unset;
  130. &:focus {
  131. background-color: unset;
  132. outline: 0;
  133. }
  134. &:hover {
  135. background-color: var(--neutral-20);
  136. }
  137. // TODO: this is copied directly from the `.less` file, migrate this to scss
  138. // tab navigation focus style
  139. // &:focus-visible {
  140. // .box-shadow-button-input();
  141. // outline: 0;
  142. // }
  143. .group-discount-bubble {
  144. padding: var(--spacing-01) var(--spacing-04);
  145. background-color: var(--green-10);
  146. color: var(--green-50);
  147. border-radius: $border-radius-full-new; // TODO: this is ported direction as a scss variable, change this to a css variable
  148. font-family: 'DM Mono', monospace;
  149. font-feature-settings: 'ss05';
  150. font-size: var(--font-size-01);
  151. line-height: var(--line-height-01);
  152. font-weight: 500;
  153. @include media-breakpoint-down(md) {
  154. display: none;
  155. }
  156. }
  157. @include media-breakpoint-down(md) {
  158. font-size: var(--font-size-02);
  159. line-height: var(--line-height-02);
  160. padding: var(--spacing-05);
  161. gap: var(--spacing-02);
  162. }
  163. }
  164. &:has(.active) {
  165. .plans-new-tab-link {
  166. border: 1px solid white;
  167. position: relative;
  168. color: var(--green-50);
  169. // remove the border on tab focus
  170. &:focus-visible {
  171. &::before {
  172. content: unset;
  173. }
  174. }
  175. &::before {
  176. content: '';
  177. position: absolute;
  178. background: border-box
  179. linear-gradient(
  180. to bottom,
  181. $green-50 0%,
  182. $neutral-20 85%,
  183. $neutral-20 100%
  184. );
  185. /* stylelint-disable-next-line property-no-vendor-prefix */
  186. -webkit-mask:
  187. linear-gradient(white 0 0) padding-box,
  188. linear-gradient(white 0 0);
  189. mask:
  190. linear-gradient(white 0 0) padding-box,
  191. linear-gradient(white 0 0);
  192. /* stylelint-disable-next-line property-no-vendor-prefix */
  193. -webkit-mask-composite: xor;
  194. mask-composite: exclude;
  195. border-top-right-radius: 8px;
  196. border-top-left-radius: 8px;
  197. border: 1px solid transparent;
  198. border-bottom: 1px solid white;
  199. // make the border overlap with the .plans-new-tab-link border
  200. top: 0;
  201. bottom: -2px;
  202. left: -1px;
  203. /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
  204. right: -1px;
  205. }
  206. &:hover {
  207. background-color: unset;
  208. }
  209. }
  210. .plans-new-discount-badge {
  211. background-color: var(--green-10);
  212. color: var(--green-60);
  213. }
  214. }
  215. }
  216. }
  217. .plans-new-period-switcher-container {
  218. position: relative;
  219. display: inline-flex;
  220. background-color: var(--bg-light-secondary);
  221. border-radius: $border-radius-full-new; // TODO: this is ported direction as a scss variable, change this to a css variable
  222. padding: var(--spacing-03);
  223. margin-top: var(--spacing-09);
  224. margin-bottom: $switcher-container-margin-bottom;
  225. gap: var(--spacing-04);
  226. @include media-breakpoint-down(md) {
  227. margin-bottom: var(--spacing-09);
  228. }
  229. label {
  230. display: inline-flex;
  231. align-items: center;
  232. margin: 0;
  233. font-size: var(--font-size-05);
  234. font-weight: 600;
  235. line-height: var(--line-height-04);
  236. text-align: center;
  237. padding: var(--spacing-01) var(--spacing-04);
  238. border-radius: $border-radius-full-new; // TODO: this is ported direction as a scss variable, change this to a css variable
  239. &:hover {
  240. background-color: var(--neutral-20);
  241. cursor: pointer;
  242. }
  243. }
  244. input[type='radio'] {
  245. position: absolute;
  246. left: -9999px;
  247. &:focus,
  248. &:focus-visible {
  249. outline: 0;
  250. }
  251. }
  252. // TODO: this is copied directly from the `.less` file, migrate this to scss
  253. // input[type='radio']:focus-visible + label,
  254. // input[type='radio']:checked:focus-visible + label {
  255. // .box-shadow-button-input();
  256. // }
  257. input[type='radio']:checked + label {
  258. background-color: var(--green-50);
  259. color: white;
  260. /* stylelint-disable-next-line length-zero-no-unit, color-function-notation, alpha-value-notation */
  261. box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
  262. .plans-new-discount-badge {
  263. background-color: var(--green-10);
  264. color: var(--green-60);
  265. }
  266. }
  267. .plans-new-discount-badge {
  268. margin-left: var(--spacing-03);
  269. }
  270. }
  271. .plans-new-discount-badge {
  272. font-size: var(--font-size-01);
  273. font-family: 'DM Mono', monospace;
  274. padding: 2px 8px;
  275. height: 20px;
  276. border-radius: 10px;
  277. background-color: var(--neutral-70);
  278. color: white;
  279. display: flex;
  280. align-items: center;
  281. font-weight: 500;
  282. line-height: var(--line-height-01);
  283. }
  284. .plans-new-tab-content {
  285. width: 100%;
  286. border: none;
  287. padding-top: 0;
  288. @include media-breakpoint-down(md) {
  289. padding: 0;
  290. }
  291. }
  292. .plans-new-mobile {
  293. display: none;
  294. @include media-breakpoint-down(md) {
  295. display: block;
  296. }
  297. }
  298. .plans-new-desktop {
  299. display: block;
  300. @include media-breakpoint-down(md) {
  301. display: none;
  302. }
  303. }
  304. .plans-new-table {
  305. width: 100%;
  306. // keep the borders separate to help with spacing and alignment in the CTAs
  307. border-collapse: separate;
  308. border-spacing: 0;
  309. th,
  310. td {
  311. width: $table-4-column-width;
  312. }
  313. }
  314. .plans-new-table-student {
  315. margin-left: math.div($table-4-column-width, 2);
  316. }
  317. .plans-new-table-student-verification {
  318. font-weight: 600;
  319. font-size: var(--font-size-01);
  320. text-align: center;
  321. }
  322. .plans-new-table-group {
  323. margin-top: $spacing-11 + $highlighted-heading-height;
  324. }
  325. thead th {
  326. position: relative;
  327. padding: var(--spacing-06) var(--spacing-08) var(--spacing-04)
  328. var(--spacing-08);
  329. font-size: var(--font-size-05);
  330. font-weight: 600;
  331. line-height: var(--line-height-04);
  332. color: var(--content-primary);
  333. text-align: center;
  334. @include media-breakpoint-down(md) {
  335. padding: var(--spacing-05) var(--spacing-05) 0 var(--spacing-05);
  336. }
  337. }
  338. .plans-new-table-subheader {
  339. vertical-align: top;
  340. padding: 0 var(--spacing-08);
  341. @include media-breakpoint-down(xl) {
  342. padding: 0 var(--spacing-05);
  343. }
  344. &.plans-new-table-icon-cta-cell,
  345. &.plans-subheader-monthly-cta {
  346. vertical-align: bottom;
  347. }
  348. }
  349. .plans-new-table-cta-row {
  350. td {
  351. padding-bottom: var(--spacing-06);
  352. @include media-breakpoint-down(xl) {
  353. padding-bottom: var(--spacing-05);
  354. }
  355. // use transparent borders to use the same spacing as highlighted cells
  356. &:not(.plans-new-table-highlighted-cell) {
  357. border-right: var(--border-width-base) solid transparent;
  358. border-left: var(--border-width-base) solid transparent;
  359. }
  360. }
  361. .plans-cta + .plans-cta {
  362. margin-top: var(--spacing-04);
  363. }
  364. }
  365. .plans-new-table-header-grid-container {
  366. display: flex;
  367. flex-direction: column;
  368. align-items: center;
  369. s,
  370. .match-original-price-height {
  371. font-size: var(--font-size-02);
  372. line-height: $nondiscounted-price-element-height;
  373. color: var(--neutral-60);
  374. font-weight: 600;
  375. }
  376. .plans-new-table-header-price {
  377. font-size: var(--font-size-08);
  378. font-weight: 600;
  379. line-height: var(--line-height-07);
  380. color: var(--content-primary);
  381. }
  382. .plans-new-table-header-price-unit {
  383. font-size: var(--font-size-02);
  384. line-height: var(--line-height-02);
  385. text-align: center;
  386. }
  387. .plans-new-table-cta {
  388. margin-top: auto;
  389. a:nth-child(2) {
  390. margin-top: var(--spacing-04);
  391. }
  392. }
  393. .plans-new-table-header-icon {
  394. font-size: 56px;
  395. color: var(--content-primary);
  396. }
  397. }
  398. .plans-new-table-header-price-unit-total {
  399. font-size: var(--font-size-01);
  400. line-height: var(--line-height-01);
  401. }
  402. .plans-new-table-header-desc {
  403. margin-top: var(--spacing-05);
  404. margin-bottom: var(--spacing-08);
  405. font-size: var(--font-size-02);
  406. line-height: var(--line-height-02);
  407. }
  408. .plans-new-group-member-picker {
  409. .plans-new-group-member-picker-text {
  410. font-size: var(--font-size-02);
  411. line-height: var(--line-height-02);
  412. font-weight: 600;
  413. margin-bottom: var(--spacing-02);
  414. }
  415. .plans-new-group-member-picker-form {
  416. position: relative;
  417. .plans-new-group-member-picker-button {
  418. width: 100%;
  419. background-color: white;
  420. border-radius: var(--border-radius-base-new);
  421. border: 1px solid var(--neutral-60);
  422. display: flex;
  423. align-items: center;
  424. justify-content: space-between;
  425. padding: var(--spacing-01) var(--spacing-03);
  426. margin-bottom: var(--spacing-04);
  427. height: $group-member-picker-height;
  428. font-size: var(--font-size-02);
  429. line-height: var(--line-height-02);
  430. &[aria-expanded='true'] {
  431. i {
  432. transform: rotate(180deg);
  433. transition: transform 0.35s ease;
  434. }
  435. }
  436. &[aria-expanded='false'] {
  437. i {
  438. transition: transform 0.35s ease;
  439. }
  440. }
  441. &[data-ol-plans-new-group-member-picker-button='group-all'] {
  442. height: $group-member-picker-top-height;
  443. }
  444. }
  445. ul.plans-new-group-member-picker-list {
  446. list-style-type: none;
  447. margin-bottom: 0;
  448. overflow: auto; // to enable box-shadow
  449. /* stylelint-disable-next-line length-zero-no-unit, color-function-notation, alpha-value-notation */
  450. box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
  451. padding: var(--spacing-02);
  452. position: absolute;
  453. top: $group-member-picker-height;
  454. background-color: white;
  455. width: 100%;
  456. margin-top: var(--spacing-01);
  457. z-index: $z-index-group-member-picker-list;
  458. &[data-ol-plans-new-group-member-picker-dropdown='group-all'] {
  459. top: $group-member-picker-top-height;
  460. }
  461. }
  462. li.plans-new-group-member-picker-footer {
  463. font-size: var(--font-size-02);
  464. line-height: var(--line-height-02);
  465. padding: var(--spacing-05) var(--spacing-04);
  466. span {
  467. display: block;
  468. }
  469. button {
  470. font-weight: 400;
  471. padding: 0;
  472. font-size: var(--font-size-02);
  473. line-height: var(--line-height-02);
  474. }
  475. }
  476. li {
  477. position: relative;
  478. &:not(:last-child) {
  479. margin-bottom: var(--spacing-02);
  480. }
  481. &:not(.plans-new-group-member-picker-footer):hover {
  482. input[type='radio']:not(:checked) + p {
  483. background-color: var(--bg-light-secondary);
  484. }
  485. }
  486. input[type='radio'] {
  487. position: absolute;
  488. opacity: 0;
  489. cursor: pointer;
  490. // TODO: this is copied directly from the `.less` file, migrate this to scss
  491. // &:focus + p {
  492. // &:extend(.input-focus-style);
  493. // }
  494. + p {
  495. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  496. var(--spacing-04);
  497. margin-bottom: 0;
  498. border-radius: var(--border-radius-base-new);
  499. }
  500. }
  501. input[type='radio']:checked + p {
  502. background-color: var(--green-10);
  503. color: var(--green-70);
  504. position: relative;
  505. word-wrap: break-word;
  506. &::after {
  507. content: url(../../../../public/img/material-icons/check-green-20.svg);
  508. position: absolute;
  509. right: 12px;
  510. top: 50%;
  511. transform: translateY(-50%);
  512. @include media-breakpoint-down(md) {
  513. right: var(--spacing-04);
  514. }
  515. }
  516. }
  517. label {
  518. width: 100%;
  519. font-size: var(--font-size-02);
  520. line-height: var(--line-height-02);
  521. margin-bottom: var(--spacing-00);
  522. font-weight: 400;
  523. cursor: pointer;
  524. border-radius: var(--border-radius-base-new);
  525. .list-item-footer {
  526. font-size: var(--font-size-01);
  527. line-height: var(--line-height-01);
  528. }
  529. }
  530. }
  531. .plans-new-edu-discount {
  532. display: flex;
  533. align-items: flex-start;
  534. gap: var(--spacing-04);
  535. margin-bottom: var(--spacing-06);
  536. font-weight: 400;
  537. input[type='checkbox'] {
  538. margin: var(--spacing-02);
  539. accent-color: var(--green-50);
  540. // TODO: this is copied directly from the `.less` file, migrate this to scss
  541. // &:focus-visible {
  542. // .box-shadow-button-input();
  543. // }
  544. }
  545. .plans-new-edu-discount-content {
  546. display: flex;
  547. flex-direction: column;
  548. span {
  549. line-height: var(--line-height-03);
  550. color: var(--content-primary);
  551. }
  552. small {
  553. color: var(--content-secondary);
  554. font-size: var(--font-size-01);
  555. line-height: var(--line-height-01);
  556. }
  557. }
  558. }
  559. }
  560. }
  561. .plans-new-table-body:last-of-type {
  562. .plans-new-table-feature-row:last-of-type {
  563. .plans-new-table-feature-td.plans-new-table-highlighted-cell {
  564. border-bottom: var(--border-width-base) solid var(--green-50);
  565. }
  566. }
  567. }
  568. .plans-new-table-heading-row {
  569. // this means min-height, min-height does not work in table layout
  570. // https://stackoverflow.com/questions/7790222
  571. height: 64px;
  572. }
  573. .plans-new-table-heading-text {
  574. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  575. var(--spacing-05);
  576. font-weight: 600;
  577. font-size: var(--font-size-04);
  578. line-height: var(--line-height-03);
  579. vertical-align: bottom;
  580. }
  581. .plans-new-table-feature-row {
  582. &:nth-child(even) {
  583. background-color: var(--bg-light-secondary);
  584. }
  585. }
  586. .plans-new-table-section-without-header-row {
  587. &:nth-child(odd):not(.plans-new-table-heading-row) {
  588. background-color: var(--bg-light-secondary);
  589. }
  590. &:nth-child(even):not(.plans-new-table-heading-row) {
  591. background-color: var(--white);
  592. }
  593. }
  594. .plans-new-table-feature-th {
  595. font-weight: normal;
  596. padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
  597. var(--spacing-05);
  598. .plans-new-table-feature-th-content {
  599. line-height: var(--line-height-03);
  600. display: flex;
  601. justify-content: space-between;
  602. align-items: center;
  603. .plans-new-table-feature-tooltip-icon {
  604. cursor: help;
  605. margin-left: var(--spacing-05);
  606. }
  607. .tooltip.in {
  608. opacity: 1;
  609. }
  610. .tooltip-inner {
  611. padding: var(--spacing-04) var(--spacing-06);
  612. max-width: 258px;
  613. width: 258px;
  614. font-family: Lato, sans-serif;
  615. font-size: var(--font-size-02);
  616. text-align: left;
  617. background-color: var(--content-primary);
  618. border-radius: var(--border-radius-base-new);
  619. }
  620. }
  621. }
  622. .plans-new-table-feature-td {
  623. padding: var(--spacing-05) var(--spacing-08);
  624. text-align: center;
  625. line-height: var(--line-height-03);
  626. .green-round-background {
  627. margin-right: 0;
  628. }
  629. }
  630. .plans-new-table-highlighted-heading {
  631. position: absolute;
  632. left: calc(-1 * var(--border-width-base));
  633. top: -1 * $highlighted-heading-height;
  634. height: $highlighted-heading-height;
  635. width: calc(100% + (2 * var(--border-width-base)));
  636. border-top-left-radius: var(--border-radius-large-new);
  637. border-top-right-radius: var(--border-radius-large-new);
  638. padding: $highlighted-heading-padding-vertical var(--spacing-04);
  639. font-weight: 600;
  640. text-align: center;
  641. line-height: $highlighted-heading-line-height;
  642. background-color: var(--green-50);
  643. color: var(--white);
  644. font-size: var(--font-size-03);
  645. }
  646. .plans-new-table-highlighted-cell {
  647. border-right: var(--border-width-base) solid var(--green-50);
  648. border-left: var(--border-width-base) solid var(--green-50);
  649. }
  650. .ai-assist {
  651. color: var(--neutral-90);
  652. @include media-breakpoint-up(lg) {
  653. padding-left: 0 !important;
  654. padding-right: 0 !important;
  655. }
  656. .ai-assist-heading {
  657. margin-top: var(--spacing-12);
  658. margin-bottom: var(--spacing-12);
  659. text-align: center;
  660. }
  661. .ai-assist-container {
  662. padding: var(--spacing-10);
  663. border: var(--spacing-02) solid var(--neutral-10);
  664. border-radius: var(--border-radius-large-new);
  665. background:
  666. linear-gradient(270deg, var(--blue-10), #fff) 0.13%,
  667. #fff 63.21%;
  668. @include media-breakpoint-down(lg) {
  669. background: var(--bg-light-primary);
  670. border-width: 2px;
  671. border-radius: var(--border-radius-medium);
  672. border-color: var(--premium-gradient);
  673. padding: var(--spacing-09);
  674. }
  675. .ai-assist-content {
  676. display: flex;
  677. justify-content: space-between;
  678. gap: var(--spacing-07);
  679. @include media-breakpoint-down(lg) {
  680. flex-direction: column;
  681. }
  682. .ai-assist-left {
  683. display: flex;
  684. gap: var(--spacing-07);
  685. flex-direction: column;
  686. max-width: 480px;
  687. @include media-breakpoint-down(lg) {
  688. max-width: 100%;
  689. }
  690. .ai-assist-price {
  691. font-weight: 600;
  692. font-size: var(--font-size-03);
  693. @include media-breakpoint-down(lg) {
  694. font-weight: normal;
  695. font-size: var(--font-size-02);
  696. .price {
  697. font-size: var(--font-size-08);
  698. font-weight: 600;
  699. }
  700. }
  701. }
  702. .ai-assist-annually-price {
  703. display: block;
  704. }
  705. .ai-assist-monthly-price {
  706. display: none;
  707. }
  708. .ai-assist-header-switch {
  709. display: none;
  710. }
  711. .ai-assist-header {
  712. display: flex;
  713. align-items: center;
  714. justify-content: space-between;
  715. .ai-assist-header-content {
  716. display: flex;
  717. gap: var(--spacing-06);
  718. align-items: center;
  719. h3 {
  720. font-size: var(--font-size-07);
  721. margin: 0;
  722. padding: 0;
  723. @include media-breakpoint-down(lg) {
  724. font-size: var(--font-size-05);
  725. }
  726. }
  727. img {
  728. @include media-breakpoint-down(lg) {
  729. width: 24px;
  730. }
  731. }
  732. }
  733. .ai-assist-header-switch {
  734. align-items: center;
  735. gap: var(--spacing-03);
  736. user-select: none;
  737. input {
  738. margin: 0;
  739. }
  740. label {
  741. margin: 0;
  742. font-weight: normal;
  743. font-size: var(--font-size-03);
  744. }
  745. }
  746. }
  747. }
  748. .ai-assist-right {
  749. display: flex;
  750. align-items: center;
  751. gap: var(--spacing-06);
  752. .ai-assist-features {
  753. list-style: none;
  754. display: flex;
  755. flex-direction: column;
  756. gap: var(--spacing-04);
  757. min-width: 210px;
  758. margin-bottom: 0;
  759. .feature-item {
  760. display: flex;
  761. align-items: center;
  762. font-size: var(--font-size-03);
  763. cursor: default;
  764. .feature-icon {
  765. margin-right: var(--spacing-05);
  766. color: var(--neutral-70);
  767. width: 16px;
  768. height: 16px;
  769. }
  770. .feature-text {
  771. color: var(--neutral-90);
  772. }
  773. }
  774. @include media-breakpoint-up(lg) {
  775. .feature-item-selected {
  776. .feature-text {
  777. color: var(--blue-50);
  778. font-weight: 600;
  779. }
  780. .feature-icon {
  781. content: url(../../../../public/img/check-circle-blue-filled.svg);
  782. }
  783. }
  784. }
  785. }
  786. .ai-assist-images {
  787. display: flex;
  788. align-items: flex-start;
  789. width: 280px;
  790. justify-content: center;
  791. @include media-breakpoint-down(lg) {
  792. display: none;
  793. }
  794. }
  795. }
  796. }
  797. }
  798. .ai-assist-header-switch {
  799. display: flex !important;
  800. }
  801. .ai-assist-button-container {
  802. display: flex;
  803. gap: var(--spacing-05);
  804. &.mobile {
  805. display: none;
  806. margin-top: var(--spacing-06);
  807. flex-direction: column;
  808. }
  809. @include media-breakpoint-down(lg) {
  810. &.mobile {
  811. display: flex;
  812. }
  813. &.desktop {
  814. display: none;
  815. }
  816. }
  817. .btn.monthly {
  818. display: none;
  819. }
  820. }
  821. .overleaf-assist-screenshot {
  822. height: auto;
  823. max-width: 280px;
  824. max-height: 200px;
  825. border-radius: var(--border-radius-base-new);
  826. display: none;
  827. &.selected {
  828. display: block;
  829. animation: fade-in 1s;
  830. }
  831. }
  832. }
  833. .ai-assist.monthly-period {
  834. .ai-assist-annually-price {
  835. display: none !important;
  836. }
  837. .ai-assist-monthly-price {
  838. display: block !important;
  839. }
  840. .ai-assist-button-container .btn.annual {
  841. display: none !important;
  842. }
  843. .ai-assist-button-container .btn.monthly {
  844. display: block !important;
  845. }
  846. }
  847. .plans-new-organizations {
  848. padding: var(--spacing-13) var(--spacing-08);
  849. .plans-new-organizations-text {
  850. text-align: center;
  851. font-size: var(--font-size-05);
  852. line-height: var(--line-height-04);
  853. margin-bottom: var(--spacing-00);
  854. }
  855. .plans-new-organizations-logo {
  856. margin-top: var(--spacing-09);
  857. display: flex;
  858. justify-content: space-around;
  859. align-items: center;
  860. @include media-breakpoint-down(xl) {
  861. flex-wrap: wrap;
  862. gap: 30px;
  863. }
  864. }
  865. }
  866. .plans-card-container-mobile {
  867. width: 100%;
  868. display: flex;
  869. flex-direction: column;
  870. gap: var(--spacing-06);
  871. .mt-spacing-06 {
  872. margin-top: var(--spacing-06);
  873. }
  874. .highlighted-plans-card {
  875. border: 2px solid var(--green-50) !important;
  876. }
  877. .plans-card-mobile {
  878. padding: var(--spacing-09);
  879. border: 2px solid var(--border-divider);
  880. width: 100%; // might need max-width
  881. border-radius: 8px;
  882. display: flex;
  883. flex-direction: column;
  884. .plans-card-title-mobile {
  885. color: var(--content-primary);
  886. font-size: var(--font-size-05); // 20px
  887. font-weight: 600;
  888. line-height: var(--line-height-04);
  889. }
  890. .plans-card-icon-container-mobile {
  891. margin-top: var(--spacing-04);
  892. .plans-card-icon {
  893. font-size: var(--font-size-09);
  894. color: var(--content-primary);
  895. }
  896. }
  897. s {
  898. padding: var(--spacing-04) 0 0 0;
  899. color: var(--neutral-60);
  900. font-size: var(--font-size-04); // 18px
  901. font-weight: 600;
  902. line-height: var(--line-height-05);
  903. margin-bottom: var(--spacing-04);
  904. }
  905. .plans-card-price-container-mobile {
  906. display: flex;
  907. align-items: baseline;
  908. }
  909. .group-plans-card-price-container-mobile {
  910. display: flex;
  911. align-items: center;
  912. }
  913. .plans-card-price-mobile {
  914. color: var(--content-primary);
  915. font-size: var(--font-size-08); // 36px
  916. font-weight: 600;
  917. line-height: var(--line-height-07);
  918. margin-right: var(--spacing-03);
  919. }
  920. .light-gray-text {
  921. color: var(--content-secondary);
  922. font-size: var(--font-size-02); // 14px
  923. line-height: var(--line-height-02);
  924. }
  925. .plans-card-description-mobile {
  926. .green-round-background {
  927. width: 20px;
  928. height: 20px;
  929. }
  930. .plans-card-description-list-mobile {
  931. list-style-type: none;
  932. padding-left: 0;
  933. margin-bottom: unset;
  934. li {
  935. display: flex;
  936. margin-top: var(--spacing-05);
  937. }
  938. }
  939. .plans-card-cta-container {
  940. margin-top: var(--spacing-08);
  941. width: 100%;
  942. .plans-cta + .plans-cta {
  943. margin-top: var(--spacing-04);
  944. }
  945. }
  946. }
  947. }
  948. }
  949. .plans-new-group-tab-card-container {
  950. margin-top: var(--spacing-09);
  951. }
  952. .plans-features-table-section-container-mobile {
  953. margin-top: var(--spacing-13);
  954. .plans-features-section-heading-mobile {
  955. font-size: var(--font-size-06);
  956. font-weight: 600;
  957. line-height: var(--line-height-05);
  958. color: var(--content-primary);
  959. text-align: center;
  960. margin-bottom: var(--spacing-08);
  961. }
  962. .plans-features-table-mobile {
  963. width: 100%;
  964. .plans-features-table-sticky-header {
  965. position: sticky;
  966. top: 0;
  967. }
  968. .plans-features-table-header {
  969. margin-bottom: var(--space-08);
  970. }
  971. .plans-features-table-header-container-mobile {
  972. margin: var(--spacing-08) auto;
  973. border-bottom: unset;
  974. width: 100%;
  975. max-width: 544px;
  976. .plans-features-table-header-item-mobile {
  977. width: 33%;
  978. min-width: 114px;
  979. padding: unset;
  980. .plans-features-table-header-item-content-mobile {
  981. padding: var(--spacing-04);
  982. text-align: center;
  983. background-color: var(--bg-light-secondary);
  984. }
  985. .plans-group-features-table-header-item-content-mobile {
  986. padding: var(--spacing-04);
  987. text-align: center;
  988. background-color: var(--bg-light-secondary);
  989. height: 64px;
  990. display: flex;
  991. justify-content: center;
  992. align-items: center;
  993. }
  994. .plans-features-table-header-item-title-mobile {
  995. color: var(--content-primary);
  996. line-height: var(--line-height-03);
  997. font-weight: 600;
  998. font-size: var(--font-size-03);
  999. }
  1000. .plans-features-table-header-item-price-mobile {
  1001. font-weight: 400;
  1002. color: var(--content-secondary);
  1003. line-height: var(--line-height-01);
  1004. font-size: var(--spacing-05);
  1005. }
  1006. }
  1007. .highlighted-styles {
  1008. background-color: var(--neutral-80);
  1009. .plans-features-table-header-item-title-mobile,
  1010. .plans-features-table-header-item-price-mobile {
  1011. color: var(--white);
  1012. }
  1013. }
  1014. .plans-features-table-header-item-content-mobile.highlighted,
  1015. .plans-group-features-table-header-item-content-mobile.highlighted {
  1016. background-color: var(--neutral-80);
  1017. .plans-features-table-header-item-title-mobile,
  1018. .plans-features-table-header-item-price-mobile {
  1019. color: var(--white);
  1020. }
  1021. }
  1022. }
  1023. tr.plans-features-table-row-for-margin {
  1024. height: var(--spacing-08);
  1025. }
  1026. .plans-features-table-body-container-mobile {
  1027. .plans-features-table-row-heading-mobile {
  1028. font-weight: 600;
  1029. text-align: center;
  1030. line-height: var(--line-height-03);
  1031. .plans-features-table-row-section-heading-content-mobile {
  1032. padding-top: var(--spacing-08);
  1033. padding-bottom: var(--spacing-05);
  1034. font-size: var(--font-size-04);
  1035. color: var(--content-primary);
  1036. }
  1037. }
  1038. // .plans-features-table-row-title-mobile and .plans-features-table-row-mobile are combined together to make one row visually, so we are using factors of 4 to alternatively color their backgrounds.
  1039. .plans-features-table-row-title-mobile {
  1040. &.plans-features-table-row-title-mobile-without-heading {
  1041. &:nth-child(4n - 3) {
  1042. background-color: var(--bg-light-secondary);
  1043. }
  1044. &:nth-child(4n - 1) {
  1045. background-color: var(--white);
  1046. }
  1047. }
  1048. &:nth-child(4n - 2) {
  1049. background-color: var(--bg-light-secondary);
  1050. }
  1051. &:nth-child(4n) {
  1052. background-color: var(--white);
  1053. }
  1054. .plans-features-table-row-title-content-mobile {
  1055. display: flex;
  1056. justify-content: center;
  1057. align-items: center;
  1058. padding-top: var(--spacing-06);
  1059. font-weight: 600;
  1060. line-height: var(--line-height-03);
  1061. .plans-features-table-row-title-accordion {
  1062. display: flex;
  1063. justify-content: center;
  1064. flex-direction: column;
  1065. align-items: center;
  1066. text-align: center;
  1067. padding: 0 var(--spacing-04);
  1068. .plans-features-table-row-title-accordion-header {
  1069. font-size: var(--font-size-03);
  1070. font-weight: 600;
  1071. line-height: var(--line-height-03);
  1072. display: flex;
  1073. justify-content: center;
  1074. background-color: unset;
  1075. border: unset;
  1076. .plans-features-table-row-title-accordion-icon {
  1077. display: flex;
  1078. align-items: center;
  1079. transition: transform 0.35s ease;
  1080. margin-left: var(--spacing-02);
  1081. }
  1082. &:not(.collapsed) {
  1083. .plans-features-table-row-title-accordion-icon {
  1084. transform: rotate(180deg);
  1085. transition: transform 0.35s ease;
  1086. }
  1087. }
  1088. }
  1089. .plans-features-table-row-title-accordion-body {
  1090. font-size: var(--font-size-01);
  1091. line-height: var(--line-height-01);
  1092. font-weight: 400;
  1093. }
  1094. }
  1095. }
  1096. }
  1097. .plans-features-table-row-mobile {
  1098. &.plans-features-table-row-mobile-without-heading {
  1099. &:nth-child(4n - 2) {
  1100. background-color: var(--bg-light-secondary);
  1101. }
  1102. &:nth-child(4n) {
  1103. background-color: var(--white);
  1104. }
  1105. }
  1106. &:nth-child(4n - 3) {
  1107. background-color: var(--white);
  1108. }
  1109. &:nth-child(4n - 1) {
  1110. background-color: var(--bg-light-secondary);
  1111. }
  1112. .plans-features-table-cell-content-mobile {
  1113. text-align: center;
  1114. padding-top: var(--spacing-05);
  1115. padding-bottom: var(--spacing-06);
  1116. }
  1117. }
  1118. }
  1119. }
  1120. }
  1121. .plans-price-disclaimer {
  1122. font-size: var(--font-size-01);
  1123. line-height: var(--line-height-01);
  1124. margin-top: var(--spacing-08);
  1125. text-align: center;
  1126. &:last-child {
  1127. margin-bottom: var(--spacing-11);
  1128. }
  1129. &:not(:last-child) {
  1130. margin-bottom: var(--spacing-08);
  1131. }
  1132. .plans-price-disclaimer-icons {
  1133. display: flex;
  1134. justify-content: center;
  1135. gap: var(--spacing-04);
  1136. }
  1137. }
  1138. .only-show-for-specific-plan-type {
  1139. display: none;
  1140. }
  1141. &[data-ol-current-plan-type='group'] {
  1142. .show-for-plan-type-group {
  1143. display: block;
  1144. }
  1145. }
  1146. &[data-ol-current-plan-type='individual'] {
  1147. .show-for-plan-type-individual {
  1148. display: block;
  1149. }
  1150. }
  1151. &[data-ol-current-plan-type='student'] {
  1152. .show-for-plan-type-student {
  1153. display: block;
  1154. }
  1155. }
  1156. .only-show-for-specific-plan-period {
  1157. display: none;
  1158. }
  1159. &[data-ol-current-plan-period='annual'] {
  1160. .show-for-plan-period-annual {
  1161. display: block;
  1162. }
  1163. }
  1164. &[data-ol-current-plan-period='monthly'] {
  1165. .show-for-plan-period-monthly {
  1166. display: block;
  1167. }
  1168. }
  1169. }
  1170. .plans-overleaf-common-request {
  1171. color: var(--content-primary);
  1172. display: flex;
  1173. align-items: center;
  1174. justify-content: center;
  1175. margin: var(--spacing-04) var(--spacing-08);
  1176. text-align: center;
  1177. gap: var(--spacing-06);
  1178. @include media-breakpoint-down(md) {
  1179. flex-direction: column;
  1180. margin: 0;
  1181. }
  1182. a {
  1183. font-size: var(--font-size-02);
  1184. line-height: var(--line-height-02);
  1185. }
  1186. }
  1187. .plans-faq {
  1188. .faq-heading-container {
  1189. text-align: center;
  1190. margin-bottom: var(--spacing-10);
  1191. @include media-breakpoint-down(md) {
  1192. text-align: unset;
  1193. }
  1194. }
  1195. .plans-faq-support {
  1196. margin-top: var(--spacing-06);
  1197. margin-bottom: var(--spacing-06);
  1198. display: flex;
  1199. flex-direction: column;
  1200. align-items: center;
  1201. gap: var(--spacing-04);
  1202. span {
  1203. line-height: var(--line-height-03);
  1204. font-size: var(--font-size-04);
  1205. }
  1206. button {
  1207. font-family: 'DM Mono', monospace;
  1208. font-weight: 500;
  1209. text-decoration: none;
  1210. color: var(--green-50);
  1211. line-height: var(--line-height-03);
  1212. font-size: var(--font-size-04);
  1213. background-color: var(--white);
  1214. border: unset;
  1215. display: flex;
  1216. align-items: center;
  1217. }
  1218. }
  1219. }
  1220. .plans-new-design.plans-interstitial-new-design {
  1221. padding-top: $header-height;
  1222. padding-bottom: var(--spacing-09);
  1223. .plans-interstitial-new-content {
  1224. display: flex;
  1225. flex-direction: column;
  1226. align-items: center;
  1227. }
  1228. .plans-new-table {
  1229. th,
  1230. td {
  1231. width: $table-5-column-width;
  1232. }
  1233. }
  1234. }
  1235. .plans-cta {
  1236. display: block;
  1237. a {
  1238. display: block;
  1239. }
  1240. }
  1241. .plans-faq-tabs {
  1242. max-width: 800px;
  1243. margin: 0 auto;
  1244. .nav-tabs-container {
  1245. margin-bottom: var(--spacing-08);
  1246. }
  1247. .tab-content {
  1248. margin-top: 0;
  1249. }
  1250. }