billing-section.module.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .root {
  2. [data-slot="section-content"] {
  3. display: flex;
  4. flex-direction: column;
  5. gap: var(--space-3);
  6. }
  7. [data-slot="reload-error"] {
  8. display: flex;
  9. align-items: center;
  10. justify-content: space-between;
  11. gap: var(--space-4);
  12. padding: var(--space-4);
  13. border: 1px solid var(--color-border);
  14. border-radius: var(--border-radius-sm);
  15. p {
  16. color: var(--color-danger);
  17. font-size: var(--font-size-sm);
  18. line-height: 1.4;
  19. margin: 0;
  20. flex: 1;
  21. }
  22. [data-slot="create-form"] {
  23. display: flex;
  24. gap: var(--space-2);
  25. margin: 0;
  26. flex-shrink: 0;
  27. }
  28. }
  29. [data-slot="payment"] {
  30. display: flex;
  31. flex-direction: column;
  32. gap: var(--space-3);
  33. padding: var(--space-4);
  34. border: 1px solid var(--color-border);
  35. border-radius: var(--border-radius-sm);
  36. min-width: 14.5rem;
  37. width: fit-content;
  38. @media (max-width: 30rem) {
  39. width: 100%;
  40. }
  41. [data-slot="credit-card"] {
  42. padding: var(--space-3-5) var(--space-4);
  43. background-color: var(--color-bg-surface);
  44. border-radius: var(--border-radius-sm);
  45. display: flex;
  46. align-items: center;
  47. justify-content: space-between;
  48. [data-slot="card-icon"] {
  49. display: flex;
  50. align-items: center;
  51. color: var(--color-text-muted);
  52. }
  53. [data-slot="card-details"] {
  54. display: flex;
  55. align-items: baseline;
  56. gap: var(--space-1);
  57. [data-slot="secret"] {
  58. position: relative;
  59. bottom: 2px;
  60. font-size: var(--font-size-lg);
  61. color: var(--color-text-muted);
  62. font-weight: 400;
  63. }
  64. [data-slot="number"] {
  65. font-size: var(--font-size-3xl);
  66. font-weight: 500;
  67. color: var(--color-text);
  68. }
  69. }
  70. }
  71. [data-slot="button-row"] {
  72. display: flex;
  73. gap: var(--space-2);
  74. align-items: center;
  75. @media (max-width: 30rem) {
  76. flex-direction: column;
  77. > button {
  78. width: 100%;
  79. }
  80. }
  81. [data-slot="create-form"] {
  82. margin: 0;
  83. }
  84. /* Make Enable Billing button full width when it's the only button */
  85. > button {
  86. flex: 1;
  87. }
  88. }
  89. }
  90. [data-slot="usage"] {
  91. p {
  92. font-size: var(--font-size-sm);
  93. line-height: 1.5;
  94. color: var(--color-text-secondary);
  95. b {
  96. font-weight: 600;
  97. }
  98. }
  99. }
  100. }