summaryrefslogtreecommitdiffhomepage
path: root/cloud/app/src/component/workspace/billing-section.module.css
blob: 58589de730e5d8c6dbdf08ac764829e2e979bad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.root {
  [data-slot="section-content"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  [data-slot="reload-error"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);

    p {
      color: var(--color-danger);
      font-size: var(--font-size-sm);
      line-height: 1.4;
      margin: 0;
      flex: 1;
    }

    [data-slot="create-form"] {
      display: flex;
      gap: var(--space-2);
      margin: 0;
      flex-shrink: 0;
    }
  }
  [data-slot="payment"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    min-width: 14.5rem;
    width: fit-content;

    [data-slot="credit-card"] {
      padding: var(--space-3-5) var(--space-4);
      background-color: var(--color-bg-surface);
      border-radius: var(--border-radius-sm);
      display: flex;
      align-items: center;
      justify-content: space-between;

      [data-slot="card-icon"] {
        display: flex;
        align-items: center;
      }

      [data-slot="card-details"] {
        display: flex;
        align-items: baseline;
        gap: var(--space-1);

        [data-slot="secret"] {
          position: relative;
          bottom: 2px;
          font-size: var(--font-size-lg);
          color: var(--color-text-muted);
          font-weight: 400;
        }

        [data-slot="number"] {
          font-size: var(--font-size-3xl);
          font-weight: 500;
          color: var(--color-text);
        }
      }
    }

    [data-slot="button-row"] {
      display: flex;
      gap: var(--space-2);
      align-items: center;

      [data-slot="create-form"] {
        margin: 0;
      }

      /* Make Enable Billing button full width when it's the only button */
      > button {
        flex: 1;
      }
    }
  }
  [data-slot="usage"] {
    p {
      font-size: var(--font-size-sm);
      line-height: 1.5;
      color: var(--color-text-secondary);
      b {
        font-weight: 600;
      }
    }
  }
}