.ts-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ts-portal-header h3 {
    margin: 0;
    color: #fff;
    display: inline-block;
}

.ts-portal-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

a.button.ts-view-order-btn,
.ts-header-view-order-btn {
    background-color: #218838 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-block !important;
    border: none !important;
    transition: background 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

a.button.ts-view-order-btn:hover,
.ts-header-view-order-btn:hover {
    background-color: #1e7e34 !important;
}

a.button.ts-back-link {
    padding: 10px 20px !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.ts-btn-portal,
.ts-ticket-action-btn {
    background-color: #2271b1 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-block !important;
    border: none !important;
    transition: background 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ts-btn-portal:hover {
    background-color: #135e96 !important;
}

#ts-history-container {
    max-height: 550px;
    overflow-y: auto;
    background: #121212;
    padding: 25px;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.ts-msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 12px;
    position: relative;
    line-height: 1.6;
    font-size: 14px;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.ts-msg-left {
    align-self: flex-start;
    background: #1a2a3a !important;
    border: 1px solid #2c4a6a;
    border-left: 5px solid #007cba;
}

.ts-msg-right {
    align-self: flex-end;
    background: #1e281a !important;
    border: 1px solid #34442d;
    border-right: 5px solid #4caf50;
}

.ts-msg-system {
    align-self: center;
    background: #252525 !important;
    color: #888 !important;
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid #333;
}

.ts-msg-meta {
    display: block;
    font-size: 11px;
    margin-bottom: 6px;
    color: #aaa !important;
    font-weight: 600;
    text-transform: uppercase;
}

.ts-timestamp {
    font-weight: normal;
    margin-left: 10px;
    color: #666 !important;
}

.ts-frontend-reply-box {
    padding: 25px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
}

#ts-reply-content {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
    padding: 15px;
    width: 100%;
    border-radius: 6px;
}

.ts-frontend-reply-box-closed {
    opacity: 0.45;
    filter: grayscale(100%);
    pointer-events: none;
}

.ts-frontend-reply-box-closed textarea {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #777 !important;
    cursor: not-allowed !important;
    line-height: 1.4;
    padding-bottom: 12px;
    padding-top: 12px;
    resize: none;
    text-align: center;
}

.ts-frontend-reply-box-closed button {
    background: #444 !important;
    border-color: #555 !important;
    color: #888 !important;
    cursor: not-allowed !important;
}

.ts-closed-reply-display {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
    padding: 0 12px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.65;
    filter: grayscale(100%);
    cursor: not-allowed;
    user-select: none;
}

#ts-overlay-order-btn{
 margin-bottom:25px;
}

.ts-overlay-box h2 {
    font-size: 22px;
    margin-bottom: 25px;
}

.ts-overlay-box .ts-btn-submit {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 0;
    font-size: 15px;
}

.ts-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-bottom: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.ts-back-btn:hover {
    background-color: #e2e2e2;
    border-color: #bfbfbf;
}

.ts-back-btn:active {
    background-color: #d6d6d6;
}
