/* Accordion Wrapper */
.cmt-accordion {
    font-family: inherit;
}

/* Each Item */
.cmt-item {
    border-bottom: 0;
    background: #f7f7f7;
    transition: background 0.25s ease;
    margin-bottom: 15px;
}

/* Hover effect (subtle like your screenshot) */

/* Header */
.cmt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
}

/* Title */
.cmt-title {
    font-size: 16px;
    font-weight: 600;
    color: #E00101;
}

/* Content */
.cmt-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 22px;
    background: #ffffff;
}

/* Content text */
.cmt-content p {
    margin: 15px 0;
    color: #444;
    line-height: 1.6;
}

/* When active (open) */
.cmt-item.active .cmt-content {
    padding-bottom: 18px;
    background: #f7f7f7;
}

/* =========================
   ICON FIX (IMPORTANT PART)
   ========================= */

.cmt-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Stack BOTH icons perfectly centered */
.cmt-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Default state (arrow visible) */
.icon-down {
    opacity: 1;
}

.icon-close {
    opacity: 0;
    pointer-events: none;
}

/* Active state (X visible) */
.cmt-item.active .icon-down {
    opacity: 0;
}

.cmt-item.active .icon-close {
    opacity: 1;
}

/* Optional: slight scale animation */
.cmt-item.active .icon-close {
    transform: translate(-50%, -50%) scale(1);
}

.icon-close {
    transform: translate(-50%, -50%) scale(0.8);
}