subscription.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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. }
  240. .group-heading {
  241. display: flex;
  242. align-items: center;
  243. gap: var(--spacing-04);
  244. margin-bottom: var(--spacing-06);
  245. h2,
  246. .heading {
  247. @include heading-lg;
  248. margin: 0;
  249. word-break: break-all;
  250. }
  251. .btn-ghost {
  252. --bs-btn-bg: transparent;
  253. }
  254. }
  255. .change-currency {
  256. margin-top: var(--spacing-02);
  257. .dropdown-item:not(:first-child) {
  258. margin-top: var(--spacing-02);
  259. }
  260. }
  261. .change-currency-toggle {
  262. padding-left: 0;
  263. padding-bottom: 0;
  264. text-decoration: underline;
  265. color: var(--content-secondary);
  266. &:hover,
  267. &:focus,
  268. &:active {
  269. // !important is unfortunately necessary to override btn:first-child:active
  270. color: var(--content-secondary) !important;
  271. }
  272. &:not(:hover) {
  273. text-decoration: underline;
  274. }
  275. // Hide the dropdown caret, BS5 react-bootstrap does not have a prop for this
  276. &::after {
  277. display: none;
  278. }
  279. @include body-xs;
  280. }
  281. .change-currency-dropdown-selected-icon {
  282. position: absolute;
  283. right: 10px;
  284. top: var(--bs-dropdown-item-padding-y);
  285. }
  286. .payment-method-toggle {
  287. .form-check {
  288. &:first-of-type {
  289. margin-bottom: var(--spacing-05);
  290. }
  291. label {
  292. margin-bottom: 0; // override .website-redesign default
  293. }
  294. }
  295. .payment-method-logos {
  296. display: inline-block;
  297. margin-left: var(--spacing-05);
  298. img:not(:last-child) {
  299. margin-right: var(--spacing-04);
  300. }
  301. }
  302. }
  303. .address2-button {
  304. text-decoration: none;
  305. margin-bottom: var(--spacing-05);
  306. padding: 0;
  307. :hover {
  308. text-decoration: underline;
  309. }
  310. .button-content {
  311. justify-content: flex-start;
  312. color: var(--link-web);
  313. }
  314. }
  315. .three-d-secure-container {
  316. > .three-d-secure-recurly-container {
  317. height: 400px;
  318. }
  319. }
  320. .group-subscription-upgrade-features {
  321. .material-symbols {
  322. @include body-sm;
  323. vertical-align: top;
  324. }
  325. .per-user-price {
  326. @include heading-lg;
  327. color: var(--content-primary);
  328. }
  329. .per-user-price-text {
  330. @include body-xs;
  331. }
  332. .feature-list-item {
  333. @include body-sm;
  334. }
  335. }
  336. .group-subscription-upgrade-card {
  337. .title {
  338. @include body-lg;
  339. }
  340. }
  341. .pricing-warning-heading {
  342. @include body-base;
  343. font-weight: 600;
  344. }
  345. .not-student-switch {
  346. font-size: var(--font-size-02);
  347. margin-left: var(--spacing-08);
  348. label {
  349. font-weight: normal;
  350. }
  351. button {
  352. margin: 0 0 0 var(--spacing-03);
  353. padding: 0;
  354. color: var(--link-web);
  355. font-size: var(--font-size-02);
  356. vertical-align: inherit;
  357. .button-content {
  358. color: var(--link-web);
  359. }
  360. }
  361. }
  362. .add-on-card {
  363. display: flex;
  364. align-items: center;
  365. padding: var(--spacing-05);
  366. gap: var(--spacing-05);
  367. border: 1px solid var(--border-divider);
  368. border-radius: var(--border-radius-base);
  369. .add-on-card-icon {
  370. width: 40px;
  371. height: 40px;
  372. }
  373. .add-on-card-content {
  374. display: flex;
  375. flex-direction: column;
  376. }
  377. .heading {
  378. @include body-base;
  379. font-weight: 600;
  380. }
  381. .description {
  382. color: var(--content-secondary);
  383. }
  384. .highlight {
  385. color: var(--content-primary);
  386. }
  387. .add-on-options-toggle {
  388. padding: var(--spacing-04);
  389. font-size: 0;
  390. line-height: 1;
  391. border: none;
  392. border-radius: 50%;
  393. &::after {
  394. content: none;
  395. }
  396. }
  397. }
  398. .payment-summary-card {
  399. @extend .card-gray;
  400. border-radius: var(--border-radius-large);
  401. h3 {
  402. margin-top: 0;
  403. margin-bottom: var(--spacing-08);
  404. font-weight: 600;
  405. }
  406. }
  407. .plan-terms {
  408. @include body-xs;
  409. margin-top: var(--spacing-04);
  410. }