/* Shared product UI. The marketing shell has its own exact brand dimensions. */
:root {
  --color-primary: #f3bb1c;
  --color-primary-hover: #e3ad13;
  --color-background: #f5f9f8;
  --color-surface: #fff;
  --color-border: #d6e3df;
  --color-text: #064d47;
  --color-text-muted: #55756e;
  --color-success: #246746;
  --color-warning: #72531b;
  --color-danger: #943a2e;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 28px rgba(6,77,71,.06);
  --shadow-overlay: 0 20px 70px rgba(6,40,34,.2);
  --type-small: 14px;
  --type-body: 18px;
  --type-title: 36px;
}
.cc-content { overflow-wrap: anywhere; }
.cc-surface { padding: 24px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.cc-section { margin-bottom: 32px; }
.cc-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cc-section-heading h2 { margin: 0; font-size: 23px; }
.cc-section-heading a { font-size: 16px; }
.cc-service-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cc-service-card { display: flex; flex-direction: column; min-width: 0; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.cc-service-card h3 { font-size: 23px; margin: 0 0 4px; overflow-wrap: anywhere; }
.cc-service-card p { margin: 0; }
.cc-service-card .cc-service-meta { color: var(--color-text-muted); font-size: 15px; }
.cc-service-card .cc-service-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.cc-service-card .btn { align-self: flex-start; }
.cc-service-card .label { align-self: flex-start; }
.cc-empty { padding: 40px 24px; text-align: center; border: 1px dashed #acc8bd; border-radius: var(--radius-md); background: #fff; }
.cc-empty h2,.cc-empty h3 { margin: 0 0 10px; }
.cc-empty p { margin: 0 auto 22px; max-width: 480px; color: var(--color-text-muted); }
.cc-empty-icon { display: flex; width: 56px; height: 56px; margin: 0 auto 18px; align-items: center; justify-content: center; border-radius: 50%; background: #e8f4ef; font-size: 24px; color: #077b64; }
.cc-attention { display: grid; gap: 12px; margin-bottom: 32px; }
.cc-attention-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #ecd898; background: #fff9e7; padding: 18px 22px; border-radius: var(--radius-md); }
.cc-attention-item p { margin: 0; }
.cc-attention-item h2 { margin: 0 0 4px; font-size: 19px; }
.cc-quiet-state { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius-md); color: var(--color-success); background: #e7f6ee; }
.cc-detail-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.cc-detail-heading h2 { font-size: 28px; margin: 4px 0 8px; }
.cc-detail-heading p { margin: 0; }
.cc-detail-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--color-border); }
.cc-detail-meta dt { font-weight: 400; font-size: 14px; color: var(--color-text-muted); }
.cc-detail-meta dd { margin: 4px 0 0; font-weight: 500; color: var(--color-text); }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-actions .btn-danger { background: #fff; color: var(--color-danger); border-color: #d7aaa3; }
.cc-actions .btn-danger:hover { background: #fff0ee; }
.cc-disclosure { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; margin: 20px 0; }
.cc-disclosure>summary { min-height: 48px; padding: 16px 20px; font-weight: 500; cursor: pointer; }
.cc-disclosure-body { padding: 0 20px 20px; }
.cc-disclosure[open]>summary { margin-bottom: 8px; }
.cc-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.cc-tool { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; text-decoration: none!important; color: var(--color-text); }
.cc-tool:hover { border-color: #83b5a1; background: #f1f9f5; }
.cc-tool strong { font-family: Urbanist,sans-serif; font-size: 18px; }
.cc-tool span { color: var(--color-text-muted); font-size: 15px; line-height: 1.5; }
.cc-skeleton { position: relative; overflow: hidden; min-height: 100px; background: #e9f0ec; border-radius: var(--radius-md); }
.cc-skeleton:after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,#ffffff90,transparent); animation: cc-skeleton 1.4s infinite; }
@keyframes cc-skeleton { to { transform: translateX(100%); } }
.cc-form-note { font-size: 15px; color: var(--color-text-muted); }
.cc-support-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cc-support-topics .cc-tool { margin: 0; }
.cc-content .nav-tabs { flex-wrap: wrap; }
.cc-content .nav-tabs .nav-link { min-height: 44px; }
.cc-content .dropdown-menu { max-width: calc(100vw - 40px); }
.cc-content .dropdown-item { white-space: normal; min-height: 44px; }
.cc-content .modal-dialog { max-width: calc(100vw - 32px); }
.cc-content .modal-body { max-height: calc(100dvh - 190px); overflow-y: auto; }
.cc-page-options { border: 0; background: transparent; }
.cc-page-options>summary { padding: 8px 0; color: var(--color-text-muted); }
.cc-table-sort { display: none; }
.cc-list-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cc-list-intro p { margin: 0; max-width: 620px; }
.cc-table-primary strong { font-family: Urbanist,sans-serif; font-size: 18px; }
.cc-table-primary small { display: block; margin-top: 4px; }
.cc-billing-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cc-billing-tabs a { padding: 10px 16px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; min-height: 44px; text-decoration: none; }
.cc-billing-tabs a[aria-current=page] { background: #d9eee7; font-weight: 600; }
.cc-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
.cc-field-grid .form-group { min-width: 0; margin: 0; }
.cc-field-grid .form-control { max-width: 100%; }
.cc-profile-section { margin: 24px 0; }
section.cc-profile-section { padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.cc-profile-section h2 { margin: 0 0 20px; font-size: 23px; }
.cc-profile-section .card { border: 0; box-shadow: none; margin: 0; }
.cc-profile-section .card-body { padding: 12px 0; }
.cc-form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cc-topic-card { display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); background: #fff; text-decoration: none!important; }
.cc-topic-card:hover { border-color: #83b5a1; background: #f1f9f5; }
.cc-topic-card>span:nth-child(2) { flex: 1; min-width: 0; }
.cc-topic-card strong { display: block; font: 600 22px/1.25 Urbanist,sans-serif; }
.cc-topic-card .cc-muted { display: block; margin-top: 8px; font-size: 15px; }
.cc-topic-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #e7f3ed; font-size: 22px; }
.cc-support-start>p { max-width: 700px; }
.cc-support-resources { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.cc-support-resources a { min-height: 44px; padding-block: 10px; }
.cc-support-composer .card-title { font-size: 26px; }
.cc-support-composer .card-title+p { max-width: 760px; margin-bottom: 28px; }
.cc-support-composer #inputMessage,.cc-conversation+.card #inputMessage { min-height: 180px; }
.cc-conversation .ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-conversation .ticket-reply { border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; background: #fff; }
.cc-conversation .ticket-reply.staff { background: #f1f8f4; border-color: #accabd; }
.cc-conversation .posted-by { padding: 16px; background: #f5f8f6; font-size: 14px; border-bottom: 1px solid var(--color-border); }
.cc-conversation .posted-by-name { font-weight: 600; }
.cc-conversation .message { line-height: 1.65; }
.cc-conversation .message img { max-width: 100%; height: auto; }
.cc-conversation .message pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-message-details { margin-top: 18px; font-size: 12px; color: var(--color-text-muted); }
.cc-message-details summary { min-height: 44px; padding-top: 12px; cursor: pointer; }
.cc-support-confirm { max-width: 680px; margin: 32px auto; text-align: center; }
.cc-support-confirm .btn { margin-top: 16px; }
#payMethodList td:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-masspay .table { table-layout: fixed; width: 100%; }
.cc-masspay .table th:last-child { width: 28%; }
.cc-masspay .masspay-total { background: #f5f9f7; }
@media(max-width:991.98px) {
  .cc-card-table { display: block; width: 100%; table-layout: fixed; }
  .cc-service-grid { grid-template-columns: 1fr; }
  .cc-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cc-table-scroll { overflow: visible; }
  .cc-table-scroll:before { display: none!important; }
  .cc-table-scroll .table-list { min-width: 0; width: 100%!important; table-layout: fixed; }
  .cc-card-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
  .cc-card-table tbody { display: grid; gap: 14px; }
  .cc-card-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr); padding: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .cc-card-table tbody td { display: block; width: auto!important; min-width: 0; padding: 6px 0; border: 0; text-align: left!important; overflow-wrap: anywhere; }
  .cc-card-table tbody td[data-label]:not([data-label='']):before { content: attr(data-label); display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 2px; }
  .cc-card-table tbody td.cc-table-primary:before,.cc-card-table tbody td:empty { display: none; }
  .cc-card-table .cc-table-primary { grid-row: 1; padding: 0 0 10px; }
  .cc-card-table .cc-table-primary a { display: inline-block; min-height: 44px; padding-block: 8px; }
  .cc-card-table input[type=checkbox] { width: 22px; height: 22px; margin: 8px; }
  .cc-card-table .dataTables_empty { text-align: center!important; padding: 24px 12px; }
  .cc-table-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
  .cc-table-sort select { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; color: var(--color-text); }
  .cc-table-sort label { font-size: 14px; margin: 0; }
  .dataTables_wrapper .dataTables_filter input { max-width: 100%; width: 100%; margin: 6px 0 0; min-height: 44px; }
  .dataTables_wrapper .dataTables_filter { float: none; }
  .dataTables_wrapper .dataTables_filter label { width: 100%; }
  .dataTables_wrapper .dataTables_paginate { float: none; margin: 12px 0; }
  .dataTables_wrapper .pagination { flex-wrap: wrap; gap: 4px; }
  .dataTables_wrapper .pagination a { min-height: 44px; min-width: 44px; }
}
@media(max-width:575.98px) {
  .cc-surface,.cc-service-card { padding: 20px; }
  .cc-detail-heading h2 { font-size: 24px; }
  .cc-detail-meta { grid-template-columns: 1fr; gap: 16px; }
  .cc-tool-grid,.cc-support-topics { grid-template-columns: 1fr; }
  .cc-field-grid { grid-template-columns: 1fr; gap: 20px; }
  section.cc-profile-section { padding: 20px; }
  .cc-topic-card { padding: 18px; gap: 12px; }
  .cc-conversation .ticket-actions { float: none!important; width: 100%; margin: 16px 0; }
  .cc-support-composer .card-body { padding: 20px!important; }
  .cc-support-composer .input-group-append { flex-wrap: wrap; }
  .cc-section-heading,.cc-list-intro,.cc-attention-item { align-items: flex-start; flex-direction: column; }
  .cc-section-heading h2 { font-size: 22px; }
  .cc-empty { padding: 28px 18px; }
  .cc-actions { align-items: stretch; }
  .cc-actions .btn { flex: 1 1 auto; }
  .cc-content .btn-sm,.cc-content .btn-xs { min-height: 44px; }
}
@media(prefers-reduced-motion:reduce) { .cc-skeleton:after { animation: none; } }
