/* =========================
   WRAPPER
========================= */
.da-ticket-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: "DM Sans", sans-serif;
}

.da-generic-page-title {
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
    line-height: 1.3em;
    color: #1D1E20;
	font-size: 25px;
}

.da-generic-page-text {
	font-family: "DM Sans", sans-serif;
    font-size: 17px;
}

.da-create-new-ticket {
	font-family: "DM Sans", sans-serif;
    font-size: 17px;
	color: #1D1E20;
}

.da-create-new-ticket a {
	color: #1D1E20;
	transition: 350ms ease;
}

.da-create-new-ticket a:hover {
	color: #673DE6;
}

/* =========================
   CARD
========================= */
.da-ticket-item {
    border: 1px solid #d5dfff;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

/* =========================
   SUMMARY (HEADER)
========================= */
.da-ticket-header {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafbff;
    user-select: none;
    gap: 12px;
}

.da-ticket-header::-webkit-details-marker {
    display: none;
}

/* LEFT SIDE */
.da-ticket-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* TITLE font (DU TAPPADE DEN HÄR) */
.da-ticket-title {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1D1E20;
}

.da-ticket-date {
    font-size: 13px;
    color: #666;
}

/* =========================
   STATUS (FIXAD - ingen dubbel dot)
========================= */
.da-ticket-inline-status {
    margin-left: 6px;
    font-size: 13px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-left: 14px;
}

/* ENDA status-dot (fix dubbel rendering) */
.da-ticket-inline-status::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.da-ticket-inline-status.active::before {
    background: #7ddf7d;
}

.da-ticket-inline-status.inactive::before {
    background: #fca5a5;
}

/* =========================
   DROPDOWN ICON (NU FIXAD)
========================= */

/* Lägg IKON i header via CSS (ingen extra HTML krävs) */
.da-ticket-header::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #7253ED;
    border-bottom: 2px solid #7253ED;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: auto;
    opacity: 0.7;
}

/* rotera när open */
.da-ticket-item[open] .da-ticket-header::after {
    transform: rotate(-135deg);
}

/* hover polish */
.da-ticket-header:hover {
    background: #f3f6ff;
}

/* =========================
   BODY
========================= */
.da-ticket-body {
    padding: 24px 28px;
}

/* =========================
   MESSAGES
========================= */
.da-ticket-message {
    font-size: 14px;
    line-height: 1.6;
    padding: 16px 18px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.da-ticket-message--user {
    background: #f3f4f6;
}

.da-ticket-message--reply {
    background: #7253ed1c;
}

.da-ticket-message p {
    margin: 6px 0 0 0;
}

/* =========================
   REPLY FIX (JS FUNKAR NU)
========================= */
.da-ticket-reply-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ⚠️ FIX: du saknade font + sizing consistency */
.da-ticket-reply-textarea {
    font-family: "DM Sans", sans-serif;
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #d5dfff;
    background: #fafbff;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
}

.da-ticket-reply-textarea:focus {
    border-color: #5025D1;
    outline: none;
}

.da-ticket-reply-button {
	font-family: "DM Sans", sans-serif;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    background: #673DE6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
	transition: 350ms ease-in-out;
}

.da-ticket-reply-button:hover {
    background: #532acb;
}

.da-ticket-reply-feedback {
    font-size: 13px;
    color: #000000;
	margin-top: 2px;
}

/* =========================
   CLOSED
========================= */
.da-ticket-closed-note {
    color: #888;
    font-size: 14px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .da-ticket-body {
        padding: 18px 16px;
    }
	
	.da-generic-page-title {
		font-size: 20px;	
	}

    .da-ticket-message {
        max-width: 100%;
    }

    .da-ticket-reply-textarea {
        font-size: 16px;
    }
}