:root {
    --cwh-support-navy: #071827;
    --cwh-support-navy-2: #123b55;
    --cwh-support-cyan: #52d8fb;
    --cwh-support-blue: #149dcc;
    --cwh-support-yellow: #ffd83d;
    --cwh-support-green: #2ccf9f;
    --cwh-support-red: #ef5b68;
    --cwh-support-ink: #163147;
    --cwh-support-muted: #66798a;
    --cwh-support-line: #dce8f0;
    --cwh-support-soft: #f3f8fb;
}

.cwh-support-hero,
.cwh-support-minihero,
.cwh-ticket-view-hero,
.cwh-ticket-list-hero {
    position: relative;
    overflow: hidden;
    margin: 8px 0 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 22%, rgba(82,216,251,.17), transparent 22rem),
        linear-gradient(125deg, var(--cwh-support-navy), var(--cwh-support-navy-2));
    border: 1px solid rgba(82,216,251,.18);
    border-radius: 24px;
    box-shadow: 0 22px 54px rgba(7,24,39,.16);
}

.cwh-support-hero::after,
.cwh-support-minihero::after,
.cwh-ticket-view-hero::after,
.cwh-ticket-list-hero::after {
    content: "";
    position: absolute;
    right: -86px;
    bottom: -130px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(82,216,251,.18);
    border-radius: 50%;
}

.cwh-support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: center;
    min-height: 360px;
    padding: 42px 48px;
}

.cwh-support-hero__copy { position: relative; z-index: 2; }
.cwh-support-hero h1,
.cwh-support-minihero h1,
.cwh-ticket-view-hero h1,
.cwh-ticket-list-hero h1 {
    margin: 12px 0 14px;
    color: #fff !important;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.cwh-support-hero p,
.cwh-support-minihero p,
.cwh-ticket-view-hero p,
.cwh-ticket-list-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255,255,255,.76) !important;
    font-size: 17px;
    line-height: 1.7;
}

.cwh-support-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cwh-support-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cwh-support-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}
.cwh-support-trust span,
.cwh-ticket-view-hero__quick span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: #e9f8fd;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.cwh-support-trust i { color: var(--cwh-support-yellow); }

.cwh-support-hero__art {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}
.cwh-support-hero__art img {
    display: block;
    width: min(100%, 500px);
    height: auto;
}

.cwh-support-section {
    margin: 0 0 30px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--cwh-support-line);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(7,24,39,.08);
}
.cwh-section-heading {
    max-width: 680px;
    margin: 0 auto 27px;
    text-align: center;
}
.cwh-section-kicker {
    color: var(--cwh-support-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.cwh-section-heading h2 {
    margin: 7px 0 9px;
    color: var(--cwh-support-navy);
    font-size: 30px;
    font-weight: 800;
}
.cwh-section-heading p { margin: 0; color: var(--cwh-support-muted); font-size: 15px; }

.cwh-department-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.cwh-department-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 30px;
    gap: 15px;
    align-items: center;
    min-height: 112px;
    padding: 20px;
    color: var(--cwh-support-ink) !important;
    background: var(--cwh-support-soft);
    border: 1px solid var(--cwh-support-line);
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cwh-department-card:hover {
    color: var(--cwh-support-ink) !important;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: var(--cwh-support-cyan);
    box-shadow: 0 15px 28px rgba(7,24,39,.1);
}
.cwh-department-card__icon,
.cwh-card-heading > span,
.cwh-help-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: var(--cwh-support-navy);
    background: linear-gradient(135deg, var(--cwh-support-cyan), var(--cwh-support-blue));
    border-radius: 15px;
    font-size: 21px;
}
.cwh-department-card:nth-child(2n) .cwh-department-card__icon { background: var(--cwh-support-yellow); }
.cwh-department-card__content { display: flex; flex-direction: column; }
.cwh-department-card__content strong { color: var(--cwh-support-navy); font-size: 17px; }
.cwh-department-card__content small { margin-top: 5px; color: var(--cwh-support-muted); font-size: 13px; line-height: 1.5; }
.cwh-department-card__arrow { color: var(--cwh-support-blue); text-align: center; }

.cwh-support-promise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--cwh-support-line);
    border: 1px solid var(--cwh-support-line);
    border-radius: 18px;
}
.cwh-support-promise > div {
    display: grid;
    grid-template-columns: 36px 1fr;
    padding: 22px;
    background: #fff;
}
.cwh-support-promise i { grid-row: 1 / 3; color: var(--cwh-support-blue); font-size: 22px; }
.cwh-support-promise strong { color: var(--cwh-support-navy); font-size: 15px; }
.cwh-support-promise span { color: var(--cwh-support-muted); font-size: 12px; line-height: 1.5; }

.cwh-support-minihero,
.cwh-ticket-list-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 210px;
    padding: 34px 42px;
}
.cwh-support-minihero > div,
.cwh-ticket-list-hero > div { position: relative; z-index: 2; }
.cwh-support-minihero h1,
.cwh-ticket-list-hero h1 { font-size: clamp(29px, 3vw, 42px); }
.cwh-support-minihero__icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    color: var(--cwh-support-navy);
    background: var(--cwh-support-yellow);
    border-radius: 30px;
    box-shadow: 0 18px 34px rgba(0,0,0,.2);
    font-size: 48px;
    transform: rotate(4deg);
}

.cwh-ticket-compose-layout { display: flex; flex-direction: column; gap: 24px; }
.cwh-ticket-compose-main { width: 100%; }
.cwh-ticket-form-card,
.cwh-ticket-reply-card,
.cwh-ticket-thread {
    overflow: hidden;
    border: 1px solid var(--cwh-support-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 40px rgba(7,24,39,.08) !important;
}
.cwh-ticket-form-card > .card-body,
.cwh-ticket-reply-card > .card-body { padding: 30px !important; }
.cwh-card-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 27px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--cwh-support-line);
}
.cwh-card-heading > span { width: 50px; height: 50px; flex: 0 0 50px; }
.cwh-card-heading h3 { margin: 0 0 3px; color: var(--cwh-support-navy) !important; font-size: 22px; font-weight: 800; }
.cwh-card-heading p { margin: 0; color: var(--cwh-support-muted); font-size: 13px; }

.cwh-ticket-compose-layout label,
.cwh-ticket-reply-card label {
    margin-bottom: 7px;
    color: var(--cwh-support-navy);
    font-size: 13px;
    font-weight: 700;
}
.cwh-ticket-compose-layout .form-control,
.cwh-ticket-compose-layout .custom-file-label,
.cwh-ticket-reply-card .form-control,
.cwh-ticket-reply-card .custom-file-label {
    min-height: 47px;
    border: 1px solid #cadbe6;
    border-radius: 10px;
    background-color: #fbfdfe;
    color: var(--cwh-support-ink);
    box-shadow: none;
}
.cwh-ticket-compose-layout .form-control:focus,
.cwh-ticket-reply-card .form-control:focus {
    border-color: var(--cwh-support-blue);
    box-shadow: 0 0 0 3px rgba(20,157,204,.12);
}
.cwh-ticket-compose-layout textarea.form-control,
.cwh-ticket-reply-card textarea.form-control { min-height: 210px; }
.cwh-message-field {
    padding: 17px;
    background: var(--cwh-support-soft);
    border: 1px solid var(--cwh-support-line);
    border-radius: 14px;
}
.cwh-ticket-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 26px 0 0; }
.cwh-ticket-form-actions .btn,
.cwh-ticket-reply-card .btn { min-height: 44px; padding: 10px 18px; border-radius: 9px; font-weight: 800; }
.cwh-ticket-form-actions .btn-primary,
.cwh-ticket-reply-card .btn-primary,
.cwh-ticket-list-hero .btn-primary {
    border-color: var(--cwh-support-yellow) !important;
    background: var(--cwh-support-yellow) !important;
    color: var(--cwh-support-navy) !important;
}

.cwh-ticket-compose-aside {
    order: -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}
.cwh-help-card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--cwh-support-line);
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(7,24,39,.07);
}
.cwh-help-card h3 { margin: 13px 0 8px; color: var(--cwh-support-navy); font-size: 17px; font-weight: 800; }
.cwh-help-card p { margin: 0; color: var(--cwh-support-muted); font-size: 13px; line-height: 1.65; }
.cwh-help-card ul { margin: 13px 0 0; padding: 0; list-style: none; }
.cwh-help-card li { display: flex; gap: 9px; margin: 11px 0; color: var(--cwh-support-muted); font-size: 12px; }
.cwh-help-card li i { margin-top: 3px; color: var(--cwh-support-green); }
.cwh-help-card--accent {
    color: #fff;
    background: linear-gradient(145deg, var(--cwh-support-navy), var(--cwh-support-navy-2));
    border-color: transparent;
}
.cwh-help-card--accent h3 { color: #fff; }
.cwh-ticket-compose-aside .cwh-help-card--accent h3 { color: #fff !important; }
.cwh-help-card--accent p { color: rgba(255,255,255,.7); }
.cwh-help-card--accent .cwh-help-card__icon { background: var(--cwh-support-yellow); }
.cwh-help-card--secure { display: flex; gap: 14px; align-items: center; }
.cwh-help-card--secure .cwh-help-card__icon { width: 44px; height: 44px; flex: 0 0 44px; font-size: 17px; }
.cwh-help-card--secure strong,
.cwh-help-card--secure small { display: block; }
.cwh-help-card--secure strong { color: var(--cwh-support-navy); }
.cwh-help-card--secure small { margin-top: 3px; color: var(--cwh-support-muted); font-size: 11px; line-height: 1.4; }

.cwh-ticket-view-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 220px;
    padding: 35px 40px;
}
.cwh-ticket-view-hero__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: var(--cwh-support-navy);
    background: var(--cwh-support-yellow);
    border-radius: 19px;
    font-size: 27px;
}
.cwh-ticket-view-hero__copy { position: relative; z-index: 2; }
.cwh-ticket-view-hero h1 { margin: 8px 0; font-size: clamp(25px, 3vw, 38px); }
.cwh-ticket-view-hero__quick { position: relative; z-index: 2; display: grid; gap: 8px; }

.cwh-ticket-thread__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
    padding: 10px 12px 16px;
    color: var(--cwh-support-navy) !important;
    font-size: 21px !important;
    font-weight: 800;
    border-bottom: 1px solid var(--cwh-support-line);
}
.cwh-ticket-thread__subject { margin: 16px 12px 4px; color: var(--cwh-support-muted); }
.cwh-ticket-reply-wrap { padding: 10px 22px 22px !important; border-top: 0 !important; }
.cwh-ticket-thread .ticket-reply {
    overflow: hidden;
    border: 1px solid var(--cwh-support-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7,24,39,.06);
}
.cwh-ticket-thread .ticket-reply.staff { border-left: 4px solid var(--cwh-support-cyan); background: #f5fbfe; }
.cwh-ticket-thread .ticket-reply:not(.staff) { border-left: 4px solid var(--cwh-support-yellow); }
.cwh-ticket-thread .posted-by {
    padding: 13px 17px;
    background: var(--cwh-support-soft);
    color: var(--cwh-support-muted);
    font-size: 12px;
}
.cwh-ticket-thread .posted-by-name { color: var(--cwh-support-navy); font-weight: 800; }
.cwh-ticket-thread .message { color: var(--cwh-support-ink); font-size: 14px; line-height: 1.75; }
.cwh-ticket-thread .requestor-badge {
    padding: 5px 9px;
    color: var(--cwh-support-navy);
    background: #dff5fc;
    border-radius: 999px;
    font-size: 10px;
}
.cwh-ticket-thread .attachments { border-top: 1px solid var(--cwh-support-line); background: #fbfdfe; }
.cwh-ticket-thread .attachment-list figure { color: var(--cwh-support-blue); }

.cwh-ticket-list-hero .btn {
    position: relative;
    z-index: 2;
    min-width: 175px;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 800;
}
.cwh-ticket-list-shell {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--cwh-support-line);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(7,24,39,.08);
}
.cwh-ticket-list-shell .dataTables_filter input {
    min-height: 42px;
    border: 1px solid #cadbe6;
    border-radius: 9px;
}
.cwh-ticket-list-shell table.table-list {
    overflow: hidden;
    border: 1px solid var(--cwh-support-line);
    border-radius: 13px;
}
.cwh-ticket-list-shell table.table-list thead th {
    padding: 15px 13px !important;
    background: var(--cwh-support-navy) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.08) !important;
}
.cwh-ticket-list-shell table.table-list tbody td { padding: 15px 13px; vertical-align: middle; }
.cwh-ticket-list-shell table.table-list tbody tr { cursor: pointer; transition: background .18s ease; }
.cwh-ticket-list-shell table.table-list tbody tr:hover { background: #f1f9fc; }
.cwh-ticket-list-shell .ticket-number { color: var(--cwh-support-blue); font-weight: 800; }
.cwh-ticket-list-shell .ticket-subject { color: var(--cwh-support-ink); }
.cwh-ticket-list-shell .label.status { padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }

#autoAnswerSuggestions:not(.w-hidden) {
    margin: 22px 0;
    padding: 20px;
    background: #eef8fc;
    border: 1px solid #cbe9f4;
    border-radius: 14px;
}
#autoAnswerSuggestions .card-title { color: var(--cwh-support-navy) !important; font-size: 18px; font-weight: 800; }
#autoAnswerSuggestions .kb-article-item {
    margin-bottom: 7px;
    border: 1px solid var(--cwh-support-line);
    border-radius: 9px;
}
#autoAnswerSuggestions .kb-article-item a { color: var(--cwh-support-ink); font-weight: 700; }
#autoAnswerSuggestions .kb-article-item small { display: block; margin-top: 4px; color: var(--cwh-support-muted); font-weight: 400; }

.cwh-ticket-success {
    position: relative;
    overflow: hidden;
    max-width: 820px;
    margin: 20px auto 34px;
    padding: 48px 42px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 50% 5%, rgba(82,216,251,.18), transparent 22rem),
        linear-gradient(145deg, var(--cwh-support-navy), var(--cwh-support-navy-2));
    border: 1px solid rgba(82,216,251,.18);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(7,24,39,.16);
}
.cwh-ticket-success::before,
.cwh-ticket-success::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(82,216,251,.12);
    border-radius: 50%;
}
.cwh-ticket-success::before { left: -120px; top: -110px; }
.cwh-ticket-success::after { right: -120px; bottom: -120px; }
.cwh-ticket-success__graphic {
    position: relative;
    width: 125px;
    height: 125px;
    margin: 0 auto 23px;
}
.cwh-ticket-success__ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(82,216,251,.35);
    border-radius: 50%;
}
.cwh-ticket-success__check {
    position: absolute;
    inset: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cwh-support-navy);
    background: var(--cwh-support-yellow);
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0,0,0,.22);
    font-size: 36px;
}
.cwh-ticket-success__bubble,
.cwh-ticket-success__plane {
    position: absolute;
    color: var(--cwh-support-cyan);
}
.cwh-ticket-success__bubble { left: -8px; top: 12px; font-size: 24px; }
.cwh-ticket-success__plane { right: -10px; bottom: 16px; font-size: 21px; }
.cwh-ticket-success h1 { margin: 10px 0 8px; color: #fff !important; font-size: 34px; font-weight: 800; }
.cwh-ticket-success__number {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--cwh-support-cyan) !important;
    font-size: 21px;
    font-weight: 800;
}
.cwh-ticket-success p { max-width: 610px; margin: 0 auto; color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.7; }
.cwh-ticket-success__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 600px;
    margin: 28px auto;
}
.cwh-ticket-success__steps span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px;
    color: #eaf8fc;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
}
.cwh-ticket-success__steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--cwh-support-navy);
    background: var(--cwh-support-cyan);
    border-radius: 50%;
}
.cwh-ticket-success > .btn-primary {
    position: relative;
    z-index: 2;
    padding: 12px 22px;
    border-color: var(--cwh-support-yellow) !important;
    border-radius: 10px;
    background: var(--cwh-support-yellow) !important;
    color: var(--cwh-support-navy) !important;
    font-weight: 800;
}

@media (max-width: 991px) {
    .cwh-support-hero { grid-template-columns: 1fr; padding: 38px 32px; }
    .cwh-support-hero__art { justify-content: center; margin-top: 12px; }
    .cwh-support-hero__art img { width: min(100%, 420px); }
    .cwh-ticket-compose-aside { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cwh-ticket-view-hero { grid-template-columns: 62px 1fr; }
    .cwh-ticket-view-hero__quick { grid-column: 1 / -1; display: flex; }
}

@media (max-width: 767px) {
    .cwh-support-hero,
    .cwh-support-minihero,
    .cwh-ticket-view-hero,
    .cwh-ticket-list-hero { border-radius: 17px; }
    .cwh-support-hero { padding: 30px 22px; }
    .cwh-support-hero h1 { font-size: 34px; }
    .cwh-support-minihero,
    .cwh-ticket-list-hero { align-items: flex-start; padding: 28px 22px; }
    .cwh-support-minihero__icon { width: 72px; height: 72px; flex-basis: 72px; border-radius: 20px; font-size: 30px; }
    .cwh-department-grid,
    .cwh-support-promise,
    .cwh-ticket-compose-aside { grid-template-columns: 1fr; }
    .cwh-support-section { padding: 25px 18px; }
    .cwh-ticket-form-card > .card-body,
    .cwh-ticket-reply-card > .card-body { padding: 21px !important; }
    .cwh-ticket-view-hero { grid-template-columns: 50px 1fr; padding: 27px 20px; gap: 14px; }
    .cwh-ticket-view-hero__icon { width: 50px; height: 50px; border-radius: 14px; font-size: 20px; }
    .cwh-ticket-thread__title { display: block; }
    .cwh-ticket-thread__title .ticket-actions { float: none !important; margin-top: 14px !important; }
    .cwh-ticket-list-hero { display: block; }
    .cwh-ticket-list-hero .btn { margin-top: 20px; }
    .cwh-ticket-list-shell { padding: 12px; }
    .cwh-ticket-success { padding: 37px 20px; border-radius: 17px; }
    .cwh-ticket-success__steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cwh-support-minihero__icon { display: none; }
    .cwh-department-card { grid-template-columns: 50px minmax(0, 1fr); padding: 16px; }
    .cwh-department-card__icon { width: 48px; height: 48px; }
    .cwh-department-card__arrow { display: none; }
    .cwh-ticket-form-actions { flex-direction: column; }
    .cwh-ticket-form-actions .btn { width: 100%; }
    .cwh-ticket-view-hero__quick { display: grid; }
}
