subscription.scss 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. /**
  2. * MAIN CONTENT
  3. */
  4. #subscription-dashboard-root {
  5. .hover-highlight {
  6. &:hover,
  7. &:focus {
  8. background-color: var(--neutral-10);
  9. }
  10. }
  11. li.row-link {
  12. display: flex;
  13. border: 0;
  14. padding: 0;
  15. .row-link-inner {
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. padding: var(--spacing-02) 0;
  20. text-decoration: none;
  21. color: var(--neutral-90);
  22. width: 100%;
  23. }
  24. a.row-link-inner {
  25. &:hover {
  26. background-color: var(--neutral-10);
  27. }
  28. }
  29. }
  30. }
  31. /**
  32. * MODALS
  33. */
  34. .group-subscription-modal-title-discount {
  35. @include body-base;
  36. margin-top: var(--spacing-02);
  37. margin-bottom: unset;
  38. }
  39. .group-subscription-modal {
  40. .circle {
  41. font-size: var(--font-size-06);
  42. border-radius: 50%;
  43. background-color: var(--green-70);
  44. color: white;
  45. white-space: nowrap;
  46. height: 180px;
  47. width: 180px;
  48. display: flex;
  49. flex-direction: column;
  50. justify-content: center;
  51. align-items: center;
  52. gap: var(--spacing-02);
  53. font-weight: bold;
  54. .small {
  55. opacity: 0.85;
  56. }
  57. .circle-subtext {
  58. font-size: var(--font-size-03);
  59. }
  60. }
  61. .legend-as-label {
  62. font-size: var(--font-size-02);
  63. font-weight: 600;
  64. color: var(--content-secondary);
  65. margin-bottom: 0;
  66. }
  67. .educational-discount-badge {
  68. height: 50px;
  69. p {
  70. display: inline-block;
  71. font-weight: bold;
  72. padding-left: var(--spacing-02);
  73. padding-right: var(--spacing-02);
  74. }
  75. .applied {
  76. background-color: rgba($green-70, 0.1);
  77. color: var(--green-70);
  78. }
  79. .ineligible {
  80. background-color: var(--neutral-10);
  81. }
  82. }
  83. }
  84. #change-plan {
  85. table {
  86. @include media-breakpoint-up(lg) {
  87. th:last-child,
  88. td:last-child {
  89. width: 1%; // will expand to fit the content
  90. }
  91. }
  92. @include media-breakpoint-down(lg) {
  93. display: block;
  94. thead {
  95. display: none;
  96. }
  97. tbody,
  98. td,
  99. tr {
  100. display: inline-block;
  101. padding-top: 0;
  102. padding-bottom: 0;
  103. text-align: center;
  104. width: 100%;
  105. }
  106. td:first-child {
  107. padding-top: var(--spacing-07);
  108. }
  109. td:last-child {
  110. padding-top: var(--spacing-03);
  111. padding-bottom: var(--spacing-07);
  112. }
  113. tr {
  114. border-bottom: 1px solid var(--bs-border-color);
  115. td,
  116. th {
  117. border: 0 !important;
  118. }
  119. }
  120. tr:last-child {
  121. border-bottom: 0;
  122. }
  123. }
  124. }
  125. }
  126. .payment-container {
  127. padding-top: var(--spacing-08);
  128. display: flex;
  129. gap: var(--spacing-10);
  130. justify-content: center;
  131. @include media-breakpoint-down(lg) {
  132. flex-direction: column;
  133. align-items: center;
  134. }
  135. .notification {
  136. align-self: flex-start;
  137. }
  138. .payment-review-panel {
  139. width: 339px;
  140. height: 100%;
  141. @include media-breakpoint-down(lg) {
  142. width: 100%;
  143. }
  144. h4 {
  145. color: var(--neutral-70);
  146. font-weight: 600;
  147. @include heading-sm;
  148. }
  149. .price-feature-description {
  150. color: var(--neutral-70);
  151. font-weight: 400;
  152. @include body-base;
  153. h4 {
  154. margin-bottom: var(--spacing-06);
  155. }
  156. .features-list {
  157. margin-top: var(--spacing-08);
  158. }
  159. .price-summary {
  160. .price-summary-line {
  161. display: flex;
  162. justify-content: space-between;
  163. .price-summary-line-width {
  164. width: 70%;
  165. }
  166. }
  167. p {
  168. margin: unset;
  169. }
  170. .price-nowrap {
  171. white-space: nowrap;
  172. }
  173. .price-summary-total-line {
  174. margin-top: var(--spacing-06);
  175. .price-summary-due {
  176. color: var(--green-50);
  177. }
  178. }
  179. }
  180. .price-cancel-anytime {
  181. @include body-xs;
  182. }
  183. .trial-coupon-summary {
  184. padding-top: var(--spacing-08);
  185. .trial-coupon-summary-list-container {
  186. padding-left: 0;
  187. li {
  188. display: flex;
  189. color: var(--neutral-90);
  190. align-items: center;
  191. justify-content: flex-start;
  192. margin-bottom: var(--spacing-04);
  193. gap: var(--spacing-05);
  194. @include body-sm;
  195. }
  196. }
  197. }
  198. }
  199. }
  200. .payment-checkout {
  201. padding: var(--spacing-08);
  202. width: 408px;
  203. @include media-breakpoint-down(lg) {
  204. width: 100%;
  205. }
  206. @include media-breakpoint-down(xs) {
  207. padding-left: 0;
  208. padding-right: 0;
  209. }
  210. .address-line-1-tooltip {
  211. font-size: var(--font-size-03);
  212. }
  213. h1 {
  214. @include heading-md;
  215. margin-bottom: var(--spacing-08);
  216. }
  217. .student-disclaimer {
  218. @include body-sm;
  219. }
  220. .paypal-disclaimer {
  221. @include body-sm;
  222. margin: var(--spacing-05) 0 0 0;
  223. }
  224. .form-group {
  225. &:not(.payment-method-toggle) {
  226. margin-bottom: var(--spacing-05);
  227. }
  228. &.address-1 {
  229. margin-bottom: var(--spacing-04);
  230. }
  231. }
  232. .form-check {
  233. margin-bottom: 0; // override bootstrap5 default margin-bottom of 0.125rem
  234. }
  235. .checkout-form-submit {
  236. margin-top: var(--spacing-08);
  237. }
  238. }
  239. &.stripe-payment-container {
  240. .payment-checkout {
  241. .checkout-form-inputs {
  242. display: flex;
  243. flex-direction: column;
  244. gap: 1rem;
  245. }
  246. // Everything under .form-group is to make the form better match
  247. // Stripe's payment inputs
  248. .form-group {
  249. // we can't use "Noto Sans" as the font within PaymentElement,
  250. // so we're using sans-serif for the text elsewhere in the page
  251. font-family: sans-serif;
  252. .form-control {
  253. padding: 10px 12px;
  254. font-size: 16px;
  255. line-height: 20px;
  256. border: 1px solid #e6e6e6;
  257. transition:
  258. box-shadow 0.15s ease,
  259. border-color 0.15s ease;
  260. box-shadow: 0 1px 3px 0 rgb(0 0 0 / 2%);
  261. &:focus {
  262. outline: none;
  263. border-color: #046530; // brand primary color
  264. box-shadow:
  265. 0 1px 1px rgb(0 0 0 / 3%),
  266. 0 3px 6px rgb(0 0 0 / 2%),
  267. 0 0 0 3px rgb(11 107 39 / 25%),
  268. 0 1px 1px 0 rgb(0 0 0 / 8%);
  269. }
  270. &.is-invalid {
  271. border-color: var(--bs-form-invalid-border-color);
  272. box-shadow:
  273. 0 1px 3px 0 rgb(0 0 0 / 10%),
  274. 0 0 0 1px var(--bs-form-invalid-border-color);
  275. }
  276. }
  277. .invalid-feedback {
  278. .material-symbols {
  279. display: none;
  280. }
  281. }
  282. }
  283. }
  284. }
  285. }
  286. .group-heading {
  287. display: flex;
  288. align-items: center;
  289. gap: var(--spacing-04);
  290. margin-bottom: var(--spacing-06);
  291. h2,
  292. .heading {
  293. @include heading-lg;
  294. margin: 0;
  295. word-break: break-all;
  296. }
  297. .btn-ghost {
  298. --bs-btn-bg: transparent;
  299. }
  300. }
  301. .change-currency {
  302. margin-top: var(--spacing-02);
  303. .dropdown-item:not(:first-child) {
  304. margin-top: var(--spacing-02);
  305. }
  306. }
  307. .change-currency-toggle {
  308. padding-left: 0;
  309. padding-bottom: 0;
  310. text-decoration: underline;
  311. color: var(--content-secondary);
  312. &:hover,
  313. &:focus,
  314. &:active {
  315. // !important is unfortunately necessary to override btn:first-child:active
  316. color: var(--content-secondary) !important;
  317. }
  318. &:not(:hover) {
  319. text-decoration: underline;
  320. }
  321. // Hide the dropdown caret, BS5 react-bootstrap does not have a prop for this
  322. &::after {
  323. display: none;
  324. }
  325. @include body-xs;
  326. }
  327. .change-currency-dropdown-selected-icon {
  328. position: absolute;
  329. right: 10px;
  330. top: var(--bs-dropdown-item-padding-y);
  331. }
  332. .payment-method-toggle {
  333. .form-check {
  334. &:first-of-type {
  335. margin-bottom: var(--spacing-05);
  336. }
  337. label {
  338. margin-bottom: 0; // override .website-redesign default
  339. }
  340. }
  341. .payment-method-logos {
  342. display: inline-block;
  343. margin-left: var(--spacing-05);
  344. img:not(:last-child) {
  345. margin-right: var(--spacing-04);
  346. }
  347. }
  348. }
  349. .address2-button {
  350. text-decoration: none;
  351. margin-bottom: var(--spacing-05);
  352. padding: 0;
  353. :hover {
  354. text-decoration: underline;
  355. }
  356. .button-content {
  357. justify-content: flex-start;
  358. color: var(--link-web);
  359. }
  360. }
  361. .three-d-secure-container {
  362. > .three-d-secure-recurly-container {
  363. height: 400px;
  364. }
  365. }
  366. .group-subscription-upgrade-features {
  367. .material-symbols {
  368. @include body-sm;
  369. vertical-align: top;
  370. }
  371. .per-user-price {
  372. @include heading-lg;
  373. color: var(--content-primary);
  374. }
  375. .per-user-price-text {
  376. @include body-xs;
  377. }
  378. .feature-list-item {
  379. @include body-sm;
  380. }
  381. }
  382. .group-subscription-upgrade-card {
  383. .title {
  384. @include body-lg;
  385. }
  386. }
  387. .pricing-warning-heading {
  388. @include body-base;
  389. font-weight: 600;
  390. }
  391. .not-student-switch {
  392. font-size: var(--font-size-02);
  393. margin-left: var(--spacing-08);
  394. label {
  395. font-weight: normal;
  396. }
  397. button {
  398. margin: 0 0 0 var(--spacing-03);
  399. padding: 0;
  400. color: var(--link-web);
  401. font-size: var(--font-size-02);
  402. vertical-align: inherit;
  403. .button-content {
  404. color: var(--link-web);
  405. }
  406. }
  407. }
  408. .add-on-card {
  409. display: flex;
  410. align-items: center;
  411. padding: var(--spacing-05);
  412. gap: var(--spacing-05);
  413. border: 1px solid var(--border-divider);
  414. border-radius: var(--border-radius-base);
  415. .add-on-card-icon {
  416. width: 40px;
  417. height: 40px;
  418. }
  419. .add-on-card-content {
  420. display: flex;
  421. flex-direction: column;
  422. }
  423. .heading {
  424. @include body-base;
  425. font-weight: 600;
  426. }
  427. .description {
  428. color: var(--content-secondary);
  429. }
  430. .highlight {
  431. color: var(--content-primary);
  432. }
  433. .add-on-options-toggle {
  434. padding: var(--spacing-04);
  435. font-size: 0;
  436. line-height: 1;
  437. border: none;
  438. border-radius: 50%;
  439. &::after {
  440. content: none;
  441. }
  442. }
  443. }
  444. .payment-summary-card {
  445. @extend .card-gray;
  446. border-radius: var(--border-radius-large);
  447. h3 {
  448. margin-top: 0;
  449. margin-bottom: var(--spacing-08);
  450. font-weight: 600;
  451. }
  452. }
  453. .plan-terms {
  454. @include body-xs;
  455. margin-top: var(--spacing-04);
  456. }