subscription.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  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 {
  35. .circle {
  36. font-size: var(--font-size-06);
  37. border-radius: 50%;
  38. background-color: var(--green-70);
  39. color: white;
  40. white-space: nowrap;
  41. height: 180px;
  42. width: 180px;
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. align-items: center;
  47. gap: var(--spacing-02);
  48. font-weight: bold;
  49. .small {
  50. opacity: 0.85;
  51. }
  52. .circle-subtext {
  53. font-size: var(--font-size-03);
  54. }
  55. }
  56. .legend-as-label {
  57. font-size: var(--font-size-02);
  58. font-weight: 600;
  59. color: var(--content-secondary);
  60. margin-bottom: 0;
  61. }
  62. .educational-discount-badge {
  63. height: 50px;
  64. p {
  65. display: inline-block;
  66. font-weight: bold;
  67. padding-left: var(--spacing-02);
  68. padding-right: var(--spacing-02);
  69. }
  70. .applied {
  71. background-color: rgba($green-70, 0.1);
  72. color: var(--green-70);
  73. }
  74. .ineligible {
  75. background-color: var(--neutral-10);
  76. }
  77. }
  78. }
  79. #change-plan {
  80. table {
  81. @include media-breakpoint-up(lg) {
  82. th:last-child,
  83. td:last-child {
  84. width: 1%; // will expand to fit the content
  85. }
  86. }
  87. @include media-breakpoint-down(lg) {
  88. display: block;
  89. thead {
  90. display: none;
  91. }
  92. tbody,
  93. td,
  94. tr {
  95. display: inline-block;
  96. padding-top: 0;
  97. padding-bottom: 0;
  98. text-align: center;
  99. width: 100%;
  100. }
  101. td:first-child {
  102. padding-top: var(--spacing-07);
  103. }
  104. td:last-child {
  105. padding-top: var(--spacing-03);
  106. padding-bottom: var(--spacing-07);
  107. }
  108. tr {
  109. border-bottom: 1px solid var(--bs-border-color);
  110. td,
  111. th {
  112. border: 0 !important;
  113. }
  114. }
  115. tr:last-child {
  116. border-bottom: 0;
  117. }
  118. }
  119. }
  120. }
  121. .payment-container {
  122. padding-top: var(--spacing-08);
  123. display: flex;
  124. gap: var(--spacing-10);
  125. justify-content: center;
  126. @include media-breakpoint-down(lg) {
  127. flex-direction: column;
  128. align-items: center;
  129. }
  130. .payment-review-panel {
  131. width: 339px;
  132. height: 100%;
  133. @include media-breakpoint-down(lg) {
  134. width: 100%;
  135. }
  136. h4 {
  137. color: var(--neutral-70);
  138. font-weight: 600;
  139. @include heading-sm;
  140. }
  141. .price-feature-description {
  142. color: var(--neutral-70);
  143. font-weight: 400;
  144. @include body-base;
  145. h4 {
  146. margin-bottom: var(--spacing-06);
  147. &:has(+ .payment-nudge-annual-button) {
  148. margin-bottom: 0;
  149. }
  150. }
  151. .features-list {
  152. margin-top: var(--spacing-08);
  153. }
  154. .price-summary {
  155. .price-summary-line {
  156. display: flex;
  157. justify-content: space-between;
  158. .price-summary-line-width {
  159. width: 70%;
  160. }
  161. }
  162. p {
  163. margin: unset;
  164. }
  165. .price-nowrap {
  166. white-space: nowrap;
  167. }
  168. .price-summary-total-line {
  169. margin-top: var(--spacing-06);
  170. .price-summary-due {
  171. color: var(--green-50);
  172. }
  173. }
  174. }
  175. .price-cancel-anytime {
  176. @include body-xs;
  177. }
  178. .trial-coupon-summary {
  179. padding-top: var(--spacing-08);
  180. .trial-coupon-summary-list-container {
  181. padding-left: 0;
  182. li {
  183. display: flex;
  184. color: var(--neutral-90);
  185. align-items: center;
  186. justify-content: flex-start;
  187. margin-bottom: var(--spacing-04);
  188. gap: var(--spacing-05);
  189. @include body-sm;
  190. }
  191. }
  192. }
  193. }
  194. }
  195. .payment-checkout {
  196. padding: var(--spacing-08);
  197. width: 408px;
  198. @include media-breakpoint-down(lg) {
  199. width: 100%;
  200. }
  201. @include media-breakpoint-down(xs) {
  202. padding-left: 0;
  203. padding-right: 0;
  204. }
  205. .address-line-1-tooltip {
  206. font-size: var(--font-size-03);
  207. }
  208. h1 {
  209. @include heading-md;
  210. margin-bottom: var(--spacing-08);
  211. }
  212. .student-disclaimer {
  213. @include body-sm;
  214. }
  215. .paypal-disclaimer {
  216. @include body-sm;
  217. margin: var(--spacing-05) 0 0 0;
  218. }
  219. .form-group {
  220. &:not(.payment-method-toggle) {
  221. margin-bottom: var(--spacing-05);
  222. }
  223. &.address-1 {
  224. margin-bottom: var(--spacing-04);
  225. }
  226. }
  227. .form-check {
  228. margin-bottom: 0; // override bootstrap5 default margin-bottom of 0.125rem
  229. }
  230. .checkout-form-submit {
  231. margin-top: var(--spacing-08);
  232. }
  233. }
  234. }
  235. .group-heading {
  236. display: flex;
  237. align-items: center;
  238. gap: var(--spacing-04);
  239. margin-bottom: var(--spacing-06);
  240. h2,
  241. .heading {
  242. @include heading-lg;
  243. margin: 0;
  244. word-break: break-all;
  245. }
  246. .btn-ghost {
  247. --bs-btn-bg: transparent;
  248. }
  249. }
  250. .change-currency {
  251. margin-top: var(--spacing-02);
  252. .dropdown-item:not(:first-child) {
  253. margin-top: var(--spacing-02);
  254. }
  255. }
  256. .change-currency-toggle {
  257. padding-left: 0;
  258. padding-bottom: 0;
  259. text-decoration: underline;
  260. color: var(--content-secondary);
  261. &:hover,
  262. &:focus,
  263. &:active {
  264. // !important is unfortunately necessary to override btn:first-child:active
  265. color: var(--content-secondary) !important;
  266. }
  267. &:not(:hover) {
  268. text-decoration: underline;
  269. }
  270. // Hide the dropdown caret, BS5 react-bootstrap does not have a prop for this
  271. &::after {
  272. display: none;
  273. }
  274. @include body-xs;
  275. }
  276. .change-currency-dropdown-selected-icon {
  277. position: absolute;
  278. right: 10px;
  279. top: var(--bs-dropdown-item-padding-y);
  280. }
  281. .payment-method-toggle {
  282. .form-check {
  283. &:first-of-type {
  284. margin-bottom: var(--spacing-05);
  285. }
  286. label {
  287. margin-bottom: 0; // override .website-redesign default
  288. }
  289. }
  290. .payment-method-logos {
  291. display: inline-block;
  292. margin-left: var(--spacing-05);
  293. img:not(:last-child) {
  294. margin-right: var(--spacing-04);
  295. }
  296. }
  297. }
  298. .address2-button {
  299. text-decoration: none;
  300. margin-bottom: var(--spacing-05);
  301. padding: 0;
  302. :hover {
  303. text-decoration: underline;
  304. }
  305. .button-content {
  306. justify-content: flex-start;
  307. color: var(--link-web);
  308. }
  309. }
  310. .three-d-secure-container {
  311. > .three-d-secure-recurly-container {
  312. height: 400px;
  313. }
  314. }
  315. .group-subscription-upgrade-features {
  316. .material-symbols {
  317. @include body-sm;
  318. vertical-align: top;
  319. }
  320. .per-user-price {
  321. @include heading-lg;
  322. color: var(--content-primary);
  323. }
  324. .per-user-price-text {
  325. @include body-xs;
  326. }
  327. .feature-list-item {
  328. @include body-sm;
  329. }
  330. }
  331. .group-subscription-upgrade-card {
  332. .title {
  333. @include body-lg;
  334. }
  335. }
  336. .pricing-warning-heading {
  337. @include body-base;
  338. font-weight: 600;
  339. }
  340. .not-student-switch {
  341. font-size: var(--font-size-02);
  342. margin-left: var(--spacing-08);
  343. label {
  344. font-weight: normal;
  345. }
  346. button {
  347. margin: 0 0 0 var(--spacing-03);
  348. padding: 0;
  349. color: var(--link-web);
  350. font-size: var(--font-size-02);
  351. vertical-align: inherit;
  352. .button-content {
  353. color: var(--link-web);
  354. }
  355. }
  356. }
  357. .payment-nudge-annual-button {
  358. margin: var(--spacing-02) 0 var(--spacing-06) 0;
  359. @include body-sm;
  360. button {
  361. padding: 0;
  362. }
  363. }
  364. .add-on-card {
  365. display: flex;
  366. align-items: center;
  367. padding: var(--spacing-05);
  368. gap: var(--spacing-05);
  369. border: 1px solid var(--border-divider);
  370. border-radius: var(--border-radius-base);
  371. .add-on-card-icon {
  372. width: 40px;
  373. height: 40px;
  374. }
  375. .add-on-card-content {
  376. display: flex;
  377. flex-direction: column;
  378. }
  379. .heading {
  380. @include body-base;
  381. font-weight: 600;
  382. }
  383. .description {
  384. color: var(--content-secondary);
  385. }
  386. .highlight {
  387. color: var(--content-primary);
  388. }
  389. .add-on-options-toggle {
  390. padding: var(--spacing-04);
  391. font-size: 0;
  392. line-height: 1;
  393. border: none;
  394. border-radius: 50%;
  395. &::after {
  396. content: none;
  397. }
  398. }
  399. }