subscription.scss 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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. .payment-review-panel {
  136. width: 339px;
  137. height: 100%;
  138. @include media-breakpoint-down(lg) {
  139. width: 100%;
  140. }
  141. h4 {
  142. color: var(--neutral-70);
  143. font-weight: 600;
  144. @include heading-sm;
  145. }
  146. .price-feature-description {
  147. color: var(--neutral-70);
  148. font-weight: 400;
  149. @include body-base;
  150. h4 {
  151. margin-bottom: var(--spacing-06);
  152. }
  153. .features-list {
  154. margin-top: var(--spacing-08);
  155. }
  156. .price-summary {
  157. .price-summary-line {
  158. display: flex;
  159. justify-content: space-between;
  160. .price-summary-line-width {
  161. width: 70%;
  162. }
  163. }
  164. p {
  165. margin: unset;
  166. }
  167. .price-nowrap {
  168. white-space: nowrap;
  169. }
  170. .price-summary-total-line {
  171. margin-top: var(--spacing-06);
  172. .price-summary-due {
  173. color: var(--green-50);
  174. }
  175. }
  176. }
  177. .price-cancel-anytime {
  178. @include body-xs;
  179. }
  180. .trial-coupon-summary {
  181. padding-top: var(--spacing-08);
  182. .trial-coupon-summary-list-container {
  183. padding-left: 0;
  184. li {
  185. display: flex;
  186. color: var(--neutral-90);
  187. align-items: center;
  188. justify-content: flex-start;
  189. margin-bottom: var(--spacing-04);
  190. gap: var(--spacing-05);
  191. @include body-sm;
  192. }
  193. }
  194. }
  195. }
  196. }
  197. .payment-checkout {
  198. padding: var(--spacing-08);
  199. width: 408px;
  200. @include media-breakpoint-down(lg) {
  201. width: 100%;
  202. }
  203. @include media-breakpoint-down(xs) {
  204. padding-left: 0;
  205. padding-right: 0;
  206. }
  207. .address-line-1-tooltip {
  208. font-size: var(--font-size-03);
  209. }
  210. h1 {
  211. @include heading-md;
  212. margin-bottom: var(--spacing-08);
  213. }
  214. .student-disclaimer {
  215. @include body-sm;
  216. }
  217. .paypal-disclaimer {
  218. @include body-sm;
  219. margin: var(--spacing-05) 0 0 0;
  220. }
  221. .form-group {
  222. &:not(.payment-method-toggle) {
  223. margin-bottom: var(--spacing-05);
  224. }
  225. &.address-1 {
  226. margin-bottom: var(--spacing-04);
  227. }
  228. }
  229. .form-check {
  230. margin-bottom: 0; // override bootstrap5 default margin-bottom of 0.125rem
  231. }
  232. .checkout-form-submit {
  233. margin-top: var(--spacing-08);
  234. }
  235. }
  236. }
  237. .group-heading {
  238. display: flex;
  239. align-items: center;
  240. gap: var(--spacing-04);
  241. margin-bottom: var(--spacing-06);
  242. h2,
  243. .heading {
  244. @include heading-lg;
  245. margin: 0;
  246. word-break: break-all;
  247. }
  248. .btn-ghost {
  249. --bs-btn-bg: transparent;
  250. }
  251. }
  252. .change-currency {
  253. margin-top: var(--spacing-02);
  254. .dropdown-item:not(:first-child) {
  255. margin-top: var(--spacing-02);
  256. }
  257. }
  258. .change-currency-toggle {
  259. padding-left: 0;
  260. padding-bottom: 0;
  261. text-decoration: underline;
  262. color: var(--content-secondary);
  263. &:hover,
  264. &:focus,
  265. &:active {
  266. // !important is unfortunately necessary to override btn:first-child:active
  267. color: var(--content-secondary) !important;
  268. }
  269. &:not(:hover) {
  270. text-decoration: underline;
  271. }
  272. // Hide the dropdown caret, BS5 react-bootstrap does not have a prop for this
  273. &::after {
  274. display: none;
  275. }
  276. @include body-xs;
  277. }
  278. .change-currency-dropdown-selected-icon {
  279. position: absolute;
  280. right: 10px;
  281. top: var(--bs-dropdown-item-padding-y);
  282. }
  283. .payment-method-toggle {
  284. .form-check {
  285. &:first-of-type {
  286. margin-bottom: var(--spacing-05);
  287. }
  288. label {
  289. margin-bottom: 0; // override .website-redesign default
  290. }
  291. }
  292. .payment-method-logos {
  293. display: inline-block;
  294. margin-left: var(--spacing-05);
  295. img:not(:last-child) {
  296. margin-right: var(--spacing-04);
  297. }
  298. }
  299. }
  300. .address2-button {
  301. text-decoration: none;
  302. margin-bottom: var(--spacing-05);
  303. padding: 0;
  304. :hover {
  305. text-decoration: underline;
  306. }
  307. .button-content {
  308. justify-content: flex-start;
  309. color: var(--link-web);
  310. }
  311. }
  312. .three-d-secure-container {
  313. > .three-d-secure-recurly-container {
  314. height: 400px;
  315. }
  316. }
  317. .group-subscription-upgrade-features {
  318. .material-symbols {
  319. @include body-sm;
  320. vertical-align: top;
  321. }
  322. .per-user-price {
  323. @include heading-lg;
  324. color: var(--content-primary);
  325. }
  326. .per-user-price-text {
  327. @include body-xs;
  328. }
  329. .feature-list-item {
  330. @include body-sm;
  331. }
  332. }
  333. .group-subscription-upgrade-card {
  334. .title {
  335. @include body-lg;
  336. }
  337. }
  338. .pricing-warning-heading {
  339. @include body-base;
  340. font-weight: 600;
  341. }
  342. .not-student-switch {
  343. font-size: var(--font-size-02);
  344. margin-left: var(--spacing-08);
  345. label {
  346. font-weight: normal;
  347. }
  348. button {
  349. margin: 0 0 0 var(--spacing-03);
  350. padding: 0;
  351. color: var(--link-web);
  352. font-size: var(--font-size-02);
  353. vertical-align: inherit;
  354. .button-content {
  355. color: var(--link-web);
  356. }
  357. }
  358. }
  359. .add-on-card {
  360. display: flex;
  361. align-items: center;
  362. padding: var(--spacing-05);
  363. gap: var(--spacing-05);
  364. border: 1px solid var(--border-divider);
  365. border-radius: var(--border-radius-base);
  366. .add-on-card-icon {
  367. width: 40px;
  368. height: 40px;
  369. }
  370. .add-on-card-content {
  371. display: flex;
  372. flex-direction: column;
  373. }
  374. .heading {
  375. @include body-base;
  376. font-weight: 600;
  377. }
  378. .description {
  379. color: var(--content-secondary);
  380. }
  381. .highlight {
  382. color: var(--content-primary);
  383. }
  384. .add-on-options-toggle {
  385. padding: var(--spacing-04);
  386. font-size: 0;
  387. line-height: 1;
  388. border: none;
  389. border-radius: 50%;
  390. &::after {
  391. content: none;
  392. }
  393. }
  394. }
  395. .payment-summary-card {
  396. @extend .card-gray;
  397. border-radius: var(--border-radius-large);
  398. h3 {
  399. margin-top: 0;
  400. margin-bottom: var(--spacing-08);
  401. font-weight: 600;
  402. }
  403. }