customer-ticket-submit.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. .customer-ticket-submit {
  2. container-type: inline-size;
  3. min-width: 0;
  4. }
  5. .customer-ticket-submit .order-heading { margin-bottom: 16px; }
  6. .customer-ticket-submit .order-heading > a { flex: none; }
  7. .customer-request-layout {
  8. --request-inset: clamp(16px, 3vw, 26px);
  9. display: grid;
  10. grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  11. align-items: start;
  12. gap: 16px;
  13. }
  14. .customer-request-panel, .customer-request-guide { min-width: 0; }
  15. .customer-request-panel-heading {
  16. padding: 16px var(--request-inset);
  17. border-bottom: 1px solid var(--border-subtle);
  18. }
  19. .customer-request-panel-heading h2, .customer-request-guide h2 {
  20. margin: 0;
  21. color: var(--foreground);
  22. font-size: var(--type-section);
  23. font-weight: 600;
  24. line-height: 1.4;
  25. }
  26. .customer-request-fields { display: grid; gap: 20px; padding: 20px var(--request-inset); }
  27. .customer-request-type { min-width: 0; margin: 0; padding: 0; border: 0; }
  28. .customer-request-type legend,
  29. .customer-request-field > label {
  30. color: var(--field-label);
  31. font-size: var(--type-support);
  32. font-weight: 500;
  33. }
  34. .customer-request-type legend { margin-bottom: 8px; }
  35. .customer-request-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  36. .customer-request-choice {
  37. position: relative;
  38. display: grid;
  39. grid-template-columns: auto minmax(0, 1fr) auto;
  40. align-items: center;
  41. gap: 10px;
  42. padding: 12px;
  43. border: 1px solid var(--border);
  44. border-radius: var(--radius-control);
  45. background: var(--card);
  46. cursor: pointer;
  47. }
  48. .customer-request-choice:hover { border-color: var(--border-hover); }
  49. .customer-request-choice:has(input:checked) { border-color: var(--primary-border); background: var(--primary-soft); }
  50. .customer-request-choice:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
  51. .customer-request-choice:has(input:disabled) { cursor: default; }
  52. .customer-request-choice-icon {
  53. display: grid;
  54. place-items: center;
  55. width: 34px;
  56. height: 34px;
  57. border: 1px solid var(--border-subtle);
  58. border-radius: 8px;
  59. background: var(--card);
  60. color: var(--primary);
  61. }
  62. .customer-request-choice-text { display: grid; gap: 2px; }
  63. .customer-request-choice-text strong { color: var(--foreground); font-size: var(--type-body); font-weight: 600; }
  64. .customer-request-choice-text small { color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.5; }
  65. .customer-request-choice-marker {
  66. display: grid;
  67. place-items: center;
  68. width: 15px;
  69. height: 15px;
  70. border: 1px solid var(--border-hover);
  71. border-radius: 50%;
  72. background: var(--card);
  73. }
  74. .customer-request-choice:has(input:checked) .customer-request-choice-marker { border-color: var(--primary); }
  75. .customer-request-choice:has(input:checked) .customer-request-choice-marker::after {
  76. content: "";
  77. width: 7px;
  78. height: 7px;
  79. border-radius: 50%;
  80. background: var(--primary);
  81. }
  82. .customer-request-field { display: grid; gap: 7px; min-width: 0; }
  83. .customer-request-field > label span, .customer-request-error { color: var(--destructive); }
  84. .customer-request-field textarea {
  85. width: 100%;
  86. min-height: 132px;
  87. padding: 10px 11px;
  88. border: 1px solid var(--input);
  89. border-radius: var(--radius-control);
  90. background: var(--card);
  91. color: var(--foreground);
  92. font-size: var(--type-body);
  93. line-height: 1.6;
  94. outline: none;
  95. resize: vertical;
  96. }
  97. .customer-request-field textarea::placeholder { color: var(--muted-foreground); opacity: .7; }
  98. .customer-request-field textarea:hover { border-color: var(--border-hover); }
  99. .customer-request-field textarea:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-glow); }
  100. .customer-request-field textarea[aria-invalid="true"] { border-color: var(--destructive); }
  101. .customer-request-field textarea:disabled { opacity: .5; }
  102. .customer-request-field-meta { display: flex; align-items: baseline; gap: 8px; }
  103. .customer-request-field-meta > span { margin-inline-start: auto; color: var(--muted-foreground); font-size: var(--type-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
  104. .customer-request-error { font-size: var(--type-meta); }
  105. .customer-request-fields > .ops-form-error { margin: 0; }
  106. .customer-request-footer {
  107. display: flex;
  108. justify-content: flex-end;
  109. padding: 14px var(--request-inset);
  110. border-top: 1px solid var(--border-subtle);
  111. }
  112. .customer-request-scope {
  113. display: flex;
  114. align-items: flex-start;
  115. gap: 7px;
  116. margin: 0;
  117. color: var(--muted-foreground);
  118. font-size: var(--type-meta);
  119. line-height: 1.6;
  120. }
  121. .customer-request-scope svg { flex: none; margin-top: 2px; color: var(--icon); }
  122. .customer-request-guide { padding: 18px var(--request-inset); }
  123. .customer-request-guide ol { margin: 16px 0; padding-inline-start: 18px; list-style: decimal; }
  124. .customer-request-guide li + li { margin-top: 13px; }
  125. .customer-request-guide li::marker { color: var(--primary); font-size: var(--type-meta); font-weight: 600; }
  126. .customer-request-guide li strong { color: var(--foreground); font-size: var(--type-support); font-weight: 600; }
  127. .customer-request-guide li p { margin: 3px 0 0; color: var(--muted-foreground); font-size: var(--type-support); line-height: 1.55; }
  128. .customer-request-scope { padding-top: 13px; border-top: 1px solid var(--border-subtle); }
  129. .customer-request-success {
  130. display: flex;
  131. align-items: center;
  132. flex-wrap: wrap;
  133. gap: 8px 10px;
  134. margin: 16px var(--request-inset) 0;
  135. padding: 9px 12px;
  136. border: 1px solid var(--success-border);
  137. border-radius: var(--radius-control);
  138. background: var(--success-soft);
  139. color: var(--success);
  140. }
  141. .customer-request-success > svg { flex: none; }
  142. .customer-request-success > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; overflow-wrap: anywhere; }
  143. .customer-request-success strong { font-size: var(--type-support); font-weight: 600; }
  144. .customer-request-success span { font-size: var(--type-meta); }
  145. .customer-request-success > a { margin-inline-start: auto; }
  146. @container (max-width: 790px) {
  147. .customer-request-layout { grid-template-columns: minmax(0, 1fr); }
  148. }
  149. @container (max-width: 470px) {
  150. .customer-request-options { grid-template-columns: minmax(0, 1fr); }
  151. }