plans.scss 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491
  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. }
  1238. .plans-faq-tabs {
  1239. max-width: 800px;
  1240. margin: 0 auto;
  1241. .nav-tabs-container {
  1242. margin-bottom: var(--spacing-08);
  1243. }
  1244. .tab-content {
  1245. margin-top: 0;
  1246. }
  1247. }