.fsdm-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.fsdm-sidebar {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 15px;
    position: sticky;
    top: 40px;
}

.type-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.tr-box {
    background: #fff8e5;
    border: 1px solid #ffb900;
    padding: 10px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 11px;
}

.input-badge {
    background: #e7f3ff;
    color: #2271b1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid #d0e7ff;
}

/* Main Grid handled by .fsdm-settings-row */
.fsdm-settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
    margin-bottom: 20px;
}

.mode-section {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 200px;
}

.mode-section strong {
    margin-right: 5px;
    white-space: nowrap;
}

.mode-section label {
    margin-right: 10px;
    white-space: nowrap;
}

.target-box {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

.fsdm-main .postbox {
    padding: 20px;
    border-radius: 8px;
}

.fsdm-loader.is-active {
    float: right;
    margin-top: 5px;
}

/* ========================================================= */
/* 5. Precision Delete Floating Cart & UI Additions          */
/* ========================================================= */
.fsdm-cart-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fsdm-cart-widget.minimized .fsdm-cart-body {
    display: none;
}

.fsdm-cart-header {
    background: #1e1e1e;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

.fsdm-cart-widget.minimized .fsdm-cart-header {
    border-radius: 8px;
}

.fsdm-cart-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fsdm-cart-badge {
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

.fsdm-cart-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.fsdm-cart-body {
    background: #f1f1f1;
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

#fsdm-cart-items-container {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 300px;
}

.fsdm-cart-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 8px;
    position: relative;
}

.fsdm-cart-item-title {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    margin-bottom: 5px;
    padding-right: 20px;
}

.fsdm-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #a00;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.fsdm-cart-item input[type="url"] {
    width: 100%;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.fsdm-cart-footer {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.fsdm-cart-footer .button {
    flex: 1;
    text-align: center;
    padding: 4px 8px;
    font-size: 12px;
}