#mnm-font-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 15px;
    width: 100%;
}

.font-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.font-preview {
    font-size: inherit;
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    margin-bottom: 0;
}

.copy-btn {
    font-family: 'YourWebsiteFont', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #c8102e;
    padding: 14px 25px;
    border-radius: 9999px;
    transition: background 0.25s ease-in-out,
                transform 0.25s ease-in-out;
    align-self: flex-start;
    white-space: nowrap;
    cursor: pointer;
}

.copy-btn:hover {
    color: #fff;
    background: #090909;
    transform: scale(0.95);
}

@media (max-width: 1068px) {
    #mnm-font-list {
        grid-template-columns: 1fr;
    }
}

.font-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; 
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.font-controls label {
    margin: 0 5px 0 0;
}

.input-group input#mnm-font-input {
    margin: 0 !important;
}

#mnm-font-size {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 6px;
    background: #c8102e;
    outline: none;
    border-radius: 5px;
    margin-right: 5px;
    position: relative;
}

#mnm-font-size::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #c8102e;
    border-radius: 50%;
    cursor: pointer;
}

#mnm-font-size::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #c8102e;
    border-radius: 50%;
    cursor: pointer;
}

.dm-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.dm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #888;
    transition: 0.3s;
    border-radius: 34px;
}

.dm-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .dm-slider {
    background-color: #c8102e;
}

input:checked + .dm-slider:before {
    transform: translateX(20px);
}