﻿@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@700;800&display=swap');

/* ================= 기본 래퍼 & 툴바 ================= */
.rc-wrap {
    width: 980px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 10px !important;
    box-sizing: border-box !important;
}

.rc-toolbar {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 0 16px 0 !important;
    box-sizing: border-box !important;
    background: rgba(30, 41, 59, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.rc-toolbar-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* 1행: 속성 -> 희귀도 -> 이름 검색 */
.rc-toolbar-row-top {
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.rc-attr-filter, .rc-star-filter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.rc-search-box {
    flex: 1 !important;
    display: flex !important;
    min-width: 100px !important;
}

.rc-search-box input {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
}

.rc-search-box input:focus {
    border-color: #60a5fa !important;
}

.rc-search-box input::placeholder {
    color: #94a3b8 !important;
}

/* 2행: 정렬(좌측) ------------ 액션(우측) */
.rc-toolbar-row-bottom {
    justify-content: space-between !important;
}

.rc-sort-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.rc-action-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
}

.btn-attr, .btn-star, .btn-sort, .btn-person {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.btn-attr:hover, .btn-star:hover, .btn-sort:hover, .btn-person:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-attr.active, .btn-star.active, .btn-sort.active {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5) !important;
}

.btn-write {
    background: #8b5cf6 !important;
    color: #fff !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: 0.2s !important;
    white-space: nowrap !important;
}

.btn-write:hover {
    background: #7c3aed !important;
}

.btn-person {
    font-size: 13px !important;
}

/* ================= 카드 그리드 ================= */
.rc-card-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.rc-card {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 153 / 350 !important;
    background: rgba(26, 29, 36, 0.65) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    contain: paint layout !important;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rc-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
}

.rc-card-thumb {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden !important;
    background: transparent !important;
}

.rc-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    border: none !important;
}

.rc-no-img {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 11px;
}

/* 북마크 하트 배지 */
.rc-card-heart-badge {
    position: absolute;
    top: 6px;
    left: 32px;
    z-index: 6;
    color: #ef4444;
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

/* 좌상단 플래그 배지 */
.rc-badge-attr-group {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 5;
    display: flex;
    gap: 3px;
    align-items: flex-start;
}

.rc-attr-flag {
    width: 20px;
    height: auto;
    background: transparent !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.rc-attr-flag .rc-flag-img {
    width: 20px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 우상단 3단 스택 */
.rc-card-topright {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.rc-star-tag {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.rc-res-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.rc-bubble-icon {
    width: 11px;
    height: 11px;
    fill: #38bdf8;
}

.rc-mod-name-tag {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= 광상 칩 (육성완료 / 미완) ================= */
.rc-euphoria-chip {
    display: inline-block;
    background: #701a75 !important;
    border: 1px solid #f0abfc !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 12px;
    margin-bottom: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 8px rgba(232, 121, 249, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

.rc-euphoria-chip.unmaxed {
    background: #334155 !important;
    border: 1px solid #94a3b8 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
    text-shadow: none !important;
    opacity: 0.85;
}

/* ================= 하단 정보 스택 ================= */
.rc-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 34px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.rc-card-info.star-6 {
    background: linear-gradient(to top, rgba(92, 45, 12, 0.94) 0%, rgba(118, 62, 19, 0.72) 45%, rgba(148, 82, 30, 0.25) 75%, transparent 100%);
}
.rc-card-info.star-5 {
    background: linear-gradient(to top, rgba(74, 52, 18, 0.94) 0%, rgba(102, 73, 27, 0.72) 45%, rgba(128, 96, 38, 0.25) 75%, transparent 100%);
}
.rc-card-info.star-4 {
    background: linear-gradient(to top, rgba(46, 26, 61, 0.94) 0%, rgba(68, 39, 89, 0.72) 45%, rgba(92, 57, 117, 0.25) 75%, transparent 100%);
}
.rc-card-info.star-3 {
    background: linear-gradient(to top, rgba(26, 36, 61, 0.94) 0%, rgba(38, 52, 84, 0.72) 45%, rgba(56, 73, 110, 0.25) 75%, transparent 100%);
}
.rc-card-info.star-2 {
    background: linear-gradient(to top, rgba(25, 41, 31, 0.94) 0%, rgba(37, 59, 45, 0.72) 45%, rgba(53, 82, 64, 0.25) 75%, transparent 100%);
}

.rc-center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.rc-insight-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.rc-insight-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.rc-insight-fallback {
    font-size: 16px;
    font-weight: 900;
    color: #f1f5f9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.rc-lvl-text {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.rc-name {
    font-family: "Nanum Myeongjo", "Batang", "AppleMyungjo", serif !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.95);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-top: 2px;
}

.rc-portrait-bar {
    display: flex;
    gap: 3px;
    width: 100%;
    margin-top: 4px;
}

.p-block {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1px;
}

.p-block.active {
    background: #facc15;
    box-shadow: 0 0 5px #facc15;
}

/* ================= 모달 공통 스타일 ================= */
.rc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.rc-modal-content {
    background: #ffffff;
    color: #1e293b;
    width: 100%;
    max-width: 540px;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.rc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.rc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
}

.rc-modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
}

/* 하트 북마크 토글 버튼 */
.btn-heart-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #cbd5e1;
    transition: transform 0.15s, color 0.15s;
    padding: 0 4px;
}

.btn-heart-toggle:hover {
    transform: scale(1.2);
}

.btn-heart-toggle.active {
    color: #ef4444 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* 상세 모달 */
.vm-body {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.vm-thumb-wrap {
    width: 153px !important;
    height: 350px !important;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    position: relative;
}

.vm-thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block;
}

.vm-info-wrap {
    flex: 1;
}

.vm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vm-table th {
    text-align: left;
    color: #64748b;
    padding: 7px 0;
    width: 70px;
}

.vm-table td {
    color: #0f172a;
    font-weight: 600;
    padding: 7px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.vm-attr-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.vm-attr-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 모달 폼 요소 */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-form-row input, .modal-form-row select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

/* 스위치 & 체크박스 */
.switch-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.switch-label {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* 속성 선택기 */
.attr-select-section {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attr-section-label {
    font-size: 13px;
    font-weight: bold;
    color: #1e293b;
}

.attr-icon-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.btn-attr-choice {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.15s;
}

.btn-attr-choice.active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.btn-attr-choice img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.btn-attr-choice span {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.btn-attr-choice.active span {
    color: #2563eb;
    font-weight: bold;
}

.custom-plus {
    font-size: 18px;
    line-height: 22px;
    font-weight: bold;
    color: #64748b;
}

.custom-attr-box {
    margin-top: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 10px;
    border-radius: 6px;
}

.custom-attr-notice {
    margin: 0;
    padding: 8px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #1e40af;
    font-size: 12px;
    line-height: 1.5;
}

/* 프리셋 박스 */
.preset-box {
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preset-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preset-label {
    width: 44px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    flex-shrink: 0;
}

.preset-btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-preset {
    min-width: 40px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.btn-preset.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.preset-input-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 8px;
    height: 36px;
}

.preset-input-wrap input {
    width: 34px;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
}

.preset-max {
    font-size: 11px;
    color: #64748b;
}

.rc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.btn-cancel, .btn-submit {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cancel { background: #94a3b8; color: #fff; }
.btn-submit { background: #2563eb; color: #fff; }

/* 순서 정렬 모달 */
.order-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
}

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: grab;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}

.order-item-row:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.order-item-row:active {
    cursor: grabbing;
}

.order-item-row.dragging {
    opacity: 0.45;
    background: #e0f2fe;
    border: 2px dashed #0284c7;
}

.order-handle {
    color: #94a3b8;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: -1px;
    cursor: grab;
    padding: 0 6px 0 2px;
}

.order-thumb {
    width: 28px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 10px;
}

.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.order-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    padding: 0 6px;
}

.rc-btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* ==========================================================================
   반응형 미디어 쿼리 (태블릿 / 모바일 대응)
   ========================================================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    .rc-toolbar-row-top {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .rc-attr-filter {
        order: 1;
    }

    .rc-star-filter {
        order: 2;
    }

    .rc-search-box {
        order: 3;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .rc-card-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* 4열 배치 */
        gap: 10px !important;
    }
}

/* 중간 태블릿 & 대형 모바일 (768px 이하) */
@media (max-width: 768px) {
    .rc-wrap {
        padding: 10px !important;
    }

    .rc-toolbar {
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }

    /* 필터 버튼 가로 스크롤 지원 */
    .rc-attr-filter, .rc-star-filter {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .rc-toolbar-row-bottom {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .rc-sort-group {
        overflow-x: auto;
        max-width: 100%;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .rc-action-group {
        margin-left: 0 !important;
        width: 100%;
        justify-content: flex-end;
    }

    .rc-card-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 3열 배치 */
        gap: 8px !important;
    }

    /* 상세 모달 레이아웃 (세로 정렬) */
    .vm-body {
        flex-direction: column !important;
        align-items: center;
        gap: 14px !important;
    }

    .vm-thumb-wrap {
        width: 140px !important;
        height: 320px !important;
    }

    .vm-info-wrap {
        width: 100%;
    }

    /* 등록 폼 레이아웃 유동화 */
    .modal-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .attr-icon-selector {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .rc-card-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 모바일 2열 배치 */
        gap: 8px !important;
    }

    .rc-name {
        font-size: 13px !important;
    }

    .rc-modal-content {
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .preset-row {
        flex-wrap: wrap !important;
    }

    .preset-input-wrap {
        margin-left: 0 !important;
        margin-top: 4px;
    }
}